@progress/kendo-angular-pager 2.0.1-dev.202104070907 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-pager.js +14 -14
- package/dist/cdn/main.js +2 -2
- package/dist/es/index.js +1 -1
- package/dist/es/main.js +1 -1
- package/dist/es/package-metadata.js +2 -2
- package/dist/es/pager/change-event-args.interface.js +1 -1
- package/dist/es/pager/common/constants.js +1 -1
- package/dist/es/pager/common/pager-type.js +1 -1
- package/dist/es/pager/localization/custom-messages.component.js +1 -1
- package/dist/es/pager/localization/localized-messages.directive.js +1 -1
- package/dist/es/pager/localization/messages.js +1 -1
- package/dist/es/pager/pager-context.service.js +1 -1
- package/dist/es/pager/pager-element.component.js +1 -1
- package/dist/es/pager/pager-info.component.js +1 -1
- package/dist/es/pager/pager-input.component.js +1 -1
- package/dist/es/pager/pager-next-buttons.component.js +1 -1
- package/dist/es/pager/pager-numeric-buttons.component.js +1 -1
- package/dist/es/pager/pager-page-sizes.component.js +1 -1
- package/dist/es/pager/pager-prev-buttons.component.js +1 -1
- package/dist/es/pager/pager-template.directive.js +1 -1
- package/dist/es/pager/pager.component.js +1 -1
- package/dist/es/pager/pager.module.js +1 -1
- package/dist/es/pager/pagesize-item.interface.js +1 -1
- package/dist/es/pager/pagesizechange-event.js +1 -1
- package/dist/es/pager/preventable-event.js +1 -1
- package/dist/es/util.js +1 -1
- package/dist/es2015/index.d.ts +1 -1
- package/dist/es2015/index.js +1 -1
- package/dist/es2015/main.d.ts +1 -1
- package/dist/es2015/main.js +1 -1
- package/dist/es2015/package-metadata.d.ts +1 -1
- package/dist/es2015/package-metadata.js +2 -2
- package/dist/es2015/pager/change-event-args.interface.d.ts +1 -1
- package/dist/es2015/pager/change-event-args.interface.js +1 -1
- package/dist/es2015/pager/common/constants.d.ts +1 -1
- package/dist/es2015/pager/common/constants.js +1 -1
- package/dist/es2015/pager/common/pager-type.d.ts +1 -1
- package/dist/es2015/pager/common/pager-type.js +1 -1
- package/dist/es2015/pager/localization/custom-messages.component.d.ts +1 -1
- package/dist/es2015/pager/localization/custom-messages.component.js +1 -1
- package/dist/es2015/pager/localization/localized-messages.directive.d.ts +1 -1
- package/dist/es2015/pager/localization/localized-messages.directive.js +1 -1
- package/dist/es2015/pager/localization/messages.d.ts +1 -1
- package/dist/es2015/pager/localization/messages.js +1 -1
- package/dist/es2015/pager/pager-context.service.d.ts +1 -1
- package/dist/es2015/pager/pager-context.service.js +1 -1
- package/dist/es2015/pager/pager-element.component.d.ts +1 -1
- package/dist/es2015/pager/pager-element.component.js +1 -1
- package/dist/es2015/pager/pager-info.component.d.ts +1 -1
- package/dist/es2015/pager/pager-info.component.js +1 -1
- package/dist/es2015/pager/pager-input.component.d.ts +1 -1
- package/dist/es2015/pager/pager-input.component.js +1 -1
- package/dist/es2015/pager/pager-next-buttons.component.d.ts +1 -1
- package/dist/es2015/pager/pager-next-buttons.component.js +1 -1
- package/dist/es2015/pager/pager-numeric-buttons.component.d.ts +1 -1
- package/dist/es2015/pager/pager-numeric-buttons.component.js +1 -1
- package/dist/es2015/pager/pager-page-sizes.component.d.ts +1 -1
- package/dist/es2015/pager/pager-page-sizes.component.js +1 -1
- package/dist/es2015/pager/pager-prev-buttons.component.d.ts +1 -1
- package/dist/es2015/pager/pager-prev-buttons.component.js +1 -1
- package/dist/es2015/pager/pager-template.directive.d.ts +1 -1
- package/dist/es2015/pager/pager-template.directive.js +1 -1
- package/dist/es2015/pager/pager.component.d.ts +1 -1
- package/dist/es2015/pager/pager.component.js +1 -1
- package/dist/es2015/pager/pager.module.d.ts +1 -1
- package/dist/es2015/pager/pager.module.js +1 -1
- package/dist/es2015/pager/pagesize-item.interface.d.ts +1 -1
- package/dist/es2015/pager/pagesize-item.interface.js +1 -1
- package/dist/es2015/pager/pagesizechange-event.d.ts +1 -1
- package/dist/es2015/pager/pagesizechange-event.js +1 -1
- package/dist/es2015/pager/preventable-event.d.ts +1 -1
- package/dist/es2015/pager/preventable-event.js +1 -1
- package/dist/es2015/util.d.ts +1 -1
- package/dist/es2015/util.js +1 -1
- package/dist/fesm2015/index.js +2 -2
- package/dist/fesm5/index.js +2 -2
- package/dist/npm/index.js +1 -1
- package/dist/npm/main.js +1 -1
- package/dist/npm/package-metadata.js +2 -2
- package/dist/npm/pager/change-event-args.interface.js +1 -1
- package/dist/npm/pager/common/constants.js +1 -1
- package/dist/npm/pager/common/pager-type.js +1 -1
- package/dist/npm/pager/localization/custom-messages.component.js +1 -1
- package/dist/npm/pager/localization/localized-messages.directive.js +1 -1
- package/dist/npm/pager/localization/messages.js +1 -1
- package/dist/npm/pager/pager-context.service.js +1 -1
- package/dist/npm/pager/pager-element.component.js +1 -1
- package/dist/npm/pager/pager-info.component.js +1 -1
- package/dist/npm/pager/pager-input.component.js +1 -1
- package/dist/npm/pager/pager-next-buttons.component.js +1 -1
- package/dist/npm/pager/pager-numeric-buttons.component.js +1 -1
- package/dist/npm/pager/pager-page-sizes.component.js +1 -1
- package/dist/npm/pager/pager-prev-buttons.component.js +1 -1
- package/dist/npm/pager/pager-template.directive.js +1 -1
- package/dist/npm/pager/pager.component.js +1 -1
- package/dist/npm/pager/pager.module.js +1 -1
- package/dist/npm/pager/pagesize-item.interface.js +1 -1
- package/dist/npm/pager/pagesizechange-event.js +1 -1
- package/dist/npm/pager/preventable-event.js +1 -1
- package/dist/npm/util.js +1 -1
- package/dist/systemjs/kendo-angular-pager.js +2 -2
- package/package.json +4 -4
- package/schematics/ngAdd/schema.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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("
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@progress/kendo-angular-l10n"),require("rxjs/operators"),require("rxjs"),require("@angular/common"),require("@angular/animations")):"function"==typeof define&&define.amd?define(["@angular/core","@progress/kendo-angular-l10n","rxjs/operators","rxjs","@angular/common","@angular/animations"],t):"object"==typeof exports?exports.KendoAngularPager=t(require("@angular/core"),require("@progress/kendo-angular-l10n"),require("rxjs/operators"),require("rxjs"),require("@angular/common"),require("@angular/animations")):e.KendoAngularPager=t(e["@angular/core"],e["@progress/kendo-angular-l10n"],e["rxjs/operators"],e.rxjs,e["@angular/common"],e["@angular/animations"])}(window,(function(e,t,n,i,o,r){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=28)}([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 a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return l})),n.d(t,"__awaiter",(function(){return d})),n.d(t,"__generator",(function(){return u})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return b})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return v})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return O})),n.d(t,"__makeTemplateObject",(function(){return j})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return S})),n.d(t,"__classPrivateFieldGet",(function(){return x})),n.d(t,"__classPrivateFieldSet",(function(){return w}));
|
|
6
6
|
/*! *****************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
|
|
@@ -17,14 +17,14 @@ 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 a(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 s(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,i){t(n,i,e)}}function u(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 a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}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,s])}}}function p(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],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 b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.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 a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(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],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,u):l(r[0][2],n)}catch(e){l(r[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),r.shift(),r.length&&s(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:v(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},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 j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(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 w(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function x(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(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return N})),n.d(t,"PreventableEvent",(function(){return W})),n.d(t,"DraggableDirective",(function(){return f})),n.d(t,"DraggableModule",(function(){return b})),n.d(t,"closestInScope",(function(){return m})),n.d(t,"closest",(function(){return g})),n.d(t,"contains",(function(){return v})),n.d(t,"findElement",(function(){return y})),n.d(t,"findFocusableChild",(function(){return S})),n.d(t,"findFocusable",(function(){return w})),n.d(t,"hasClasses",(function(){return k})),n.d(t,"isFocusableWithTabKey",(function(){return C})),n.d(t,"isFocusable",(function(){return O})),n.d(t,"isVisible",(function(){return j})),n.d(t,"matchesClasses",(function(){return E})),n.d(t,"matchesNodeName",(function(){return D})),n.d(t,"rtlScrollPosition",(function(){return P})),n.d(t,"EventsOutsideAngularDirective",(function(){return F})),n.d(t,"EventsModule",(function(){return M})),n.d(t,"ResizeSensorComponent",(function(){return H})),n.d(t,"ResizeBatchService",(function(){return L})),n.d(t,"ResizeCompatService",(function(){return R})),n.d(t,"ResizeObserverService",(function(){return z})),n.d(t,"ResizeSensorModule",(function(){return G})),n.d(t,"KendoInput",(function(){return U})),n.d(t,"isDocumentAvailable",(function(){return u})),n.d(t,"isChanged",(function(){return l})),n.d(t,"anyChanged",(function(){return d})),n.d(t,"hasObservers",(function(){return p})),n.d(t,"guid",(function(){return h})),n.d(t,"Keys",(function(){return T}));var i=n(0),o=n(1),r=n(15),a=n(6),s=n(3),c=n(5),u=function(){return"undefined"!=typeof document},l=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},d=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return l(e,t,n)}))},p=function(e){return e&&e.observers.length>0},h=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},f=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){l("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;u()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new r.a({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)}(),b=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[f],exports:[f],imports:[a.CommonModule]})],e)}(),m=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},g=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},v=function(e,t,n){if(void 0===n&&(n=!1),!g(t,(function(t){return t===e})))return!1;var i=g(t,(function(e){return e===t}));return i&&(n||i!==e)},y=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=y(e,t);if(i)return i}e=e.nextSibling}}},_=/^(?:a|input|select|option|textarea|button|object)$/i,O=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&_.test(t)||n},j=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},C=function(e,t){if(void 0===t&&(t=!0),!O(e))return!1;var n=e.getAttribute("tabIndex");return(!t||j(e))&&"-1"!==n},S=function(e,t){return void 0===t&&(t=!0),y(e,(function(e){return C(e,t)}),!1)},w=function(e,t){return void 0===t&&(t=!0),y(e,(function(e){return C(e,t)}))},x=function(e){return String(e).trim().split(" ")},k=function(e,t){var n=x(t);return Boolean(x(e.className).find((function(e){return n.indexOf(e)>=0})))},E=function(e){return function(t){return k(t,e)}},I={},D=function(e){return I[e]||(I[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),I[e]};function P(e,t,n){var i=e;return n<0?i=-e:n>0&&(i=t.scrollWidth-t.offsetWidth-e),i}var T,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)}(),M=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[F],exports:[F]})],e)}(),N=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(){u()&&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}(),A=function(e){var t=document.createElement("div");return t.style.cssText=e,t},B="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",R=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=B,e.setAttribute("dir","ltr"),this.expand=A(B),this.expandChild=A("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=A(B);var t=A("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(c.merge)(Object(c.fromEvent)(e.shrink,"scroll"),Object(c.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(N),V="undefined"!=typeof ResizeObserver,z=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 V},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}(N),L=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(c.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)}(),H=function(){function e(e,t,n){var i=this;this.rateLimit=10,this.resize=new o.EventEmitter;var r=z.supported()?z:R;this.resizeService=new r(e,t,n);var a=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(s.auditTime)(a)).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",[L,o.ElementRef,o.NgZone])],e)}(),K=[H],G=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[K],exports:[K],providers:[L]})],e)}(),U=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"}(T||(T={}));var W=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";n.d(t,"c",(function(){return ke})),n.d(t,"d",(function(){return Ae})),n.d(t,"e",(function(){return tt})),n.d(t,"b",(function(){return He})),n.d(t,"a",(function(){return En}));var i=n(0),o=n(1),r=n(6),a=null;function s(){return a}var c,u=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],o=0;o<i.length;o++)if(null!=t.getStyle(n,i[o]+"AnimationName")){t._animationPrefix="-"+i[o].toLowerCase()+"-";break}var r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(r).forEach((function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=r[e])}))}catch(e){t._animationPrefix=null,t._transitionEnd=null}return t}return Object(i.__extends)(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}()),l={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},d={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},p={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},h=function(){if(o["ɵglobal"].Node)return o["ɵglobal"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,a||(a=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var o;(o=e)[t].apply(o,Object(i.__spread)(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return l},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return h.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),i=0;i<t.length;i++)n[i]=t[i];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach((function(n){return e.insertBefore(n,t)}))},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var i=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return i.setAttribute(e,t),i},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var i=this.getStyle(e,t)||"";return n?i==n:i.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,i=0;i<n.length;i++){var o=n.item(i);t.set(o.name,o.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,i){e.setAttributeNS(t,n,i)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&p.hasOwnProperty(t)&&(t=p[t]))}return d[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t=function(){if(!b&&!(b=document.querySelector("base")))return null;return b.getAttribute("href")}();return null==t?null:function(e){c||(c=document.createElement("a"));return c.setAttribute("href",e),"/"===c.pathname.charAt(0)?c.pathname:"/"+c.pathname}
|
|
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 a(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 s(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,i){t(n,i,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function u(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}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,s])}}}function p(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],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 b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.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 a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(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],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,l):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function d(e,t){e(t),r.shift(),r.length&&s(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:v(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},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 j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(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 x(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function w(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(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return A})),n.d(t,"PreventableEvent",(function(){return W})),n.d(t,"DraggableDirective",(function(){return f})),n.d(t,"DraggableModule",(function(){return b})),n.d(t,"closestInScope",(function(){return m})),n.d(t,"closest",(function(){return g})),n.d(t,"contains",(function(){return v})),n.d(t,"findElement",(function(){return y})),n.d(t,"findFocusableChild",(function(){return S})),n.d(t,"findFocusable",(function(){return x})),n.d(t,"hasClasses",(function(){return k})),n.d(t,"isFocusableWithTabKey",(function(){return C})),n.d(t,"isFocusable",(function(){return O})),n.d(t,"isVisible",(function(){return j})),n.d(t,"matchesClasses",(function(){return I})),n.d(t,"matchesNodeName",(function(){return D})),n.d(t,"rtlScrollPosition",(function(){return T})),n.d(t,"EventsOutsideAngularDirective",(function(){return F})),n.d(t,"EventsModule",(function(){return M})),n.d(t,"ResizeSensorComponent",(function(){return H})),n.d(t,"ResizeBatchService",(function(){return L})),n.d(t,"ResizeCompatService",(function(){return R})),n.d(t,"ResizeObserverService",(function(){return z})),n.d(t,"ResizeSensorModule",(function(){return G})),n.d(t,"KendoInput",(function(){return U})),n.d(t,"isDocumentAvailable",(function(){return l})),n.d(t,"isChanged",(function(){return d})),n.d(t,"anyChanged",(function(){return u})),n.d(t,"hasObservers",(function(){return p})),n.d(t,"guid",(function(){return h})),n.d(t,"Keys",(function(){return P}));var i=n(0),o=n(1),r=n(15),a=n(6),s=n(4),c=n(5),l=function(){return"undefined"!=typeof document},d=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},u=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return d(e,t,n)}))},p=function(e){return e&&e.observers.length>0},h=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},f=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){d("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;l()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new r.a({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)}(),b=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[f],exports:[f],imports:[a.CommonModule]})],e)}(),m=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},g=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},v=function(e,t,n){if(void 0===n&&(n=!1),!g(t,(function(t){return t===e})))return!1;var i=g(t,(function(e){return e===t}));return i&&(n||i!==e)},y=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=y(e,t);if(i)return i}e=e.nextSibling}}},_=/^(?:a|input|select|option|textarea|button|object)$/i,O=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&_.test(t)||n},j=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},C=function(e,t){if(void 0===t&&(t=!0),!O(e))return!1;var n=e.getAttribute("tabIndex");return(!t||j(e))&&"-1"!==n},S=function(e,t){return void 0===t&&(t=!0),y(e,(function(e){return C(e,t)}),!1)},x=function(e,t){return void 0===t&&(t=!0),y(e,(function(e){return C(e,t)}))},w=function(e){return String(e).trim().split(" ")},k=function(e,t){var n=w(t);return Boolean(w(e.className).find((function(e){return n.indexOf(e)>=0})))},I=function(e){return function(t){return k(t,e)}},E={},D=function(e){return E[e]||(E[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),E[e]};function T(e,t,n){var i=e;return n<0?i=-e:n>0&&(i=t.scrollWidth-t.offsetWidth-e),i}var P,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)}(),M=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[F],exports:[F]})],e)}(),A=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(){l()&&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}(),N=function(e){var t=document.createElement("div");return t.style.cssText=e,t},B="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",R=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=B,e.setAttribute("dir","ltr"),this.expand=N(B),this.expandChild=N("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=N(B);var t=N("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(c.merge)(Object(c.fromEvent)(e.shrink,"scroll"),Object(c.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(A),V="undefined"!=typeof ResizeObserver,z=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 V},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}(A),L=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(c.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)}(),H=function(){function e(e,t,n){var i=this;this.rateLimit=10,this.resize=new o.EventEmitter;var r=z.supported()?z:R;this.resizeService=new r(e,t,n);var a=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(s.auditTime)(a)).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",[L,o.ElementRef,o.NgZone])],e)}(),K=[H],G=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[K],exports:[K],providers:[L]})],e)}(),U=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"}(P||(P={}));var W=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";n.d(t,"c",(function(){return ke})),n.d(t,"d",(function(){return Ne})),n.d(t,"e",(function(){return tt})),n.d(t,"b",(function(){return He})),n.d(t,"a",(function(){return In}));var i=n(0),o=n(1),r=n(6),a=null;function s(){return a}var c,l=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],o=0;o<i.length;o++)if(null!=t.getStyle(n,i[o]+"AnimationName")){t._animationPrefix="-"+i[o].toLowerCase()+"-";break}var r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(r).forEach((function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=r[e])}))}catch(e){t._animationPrefix=null,t._transitionEnd=null}return t}return Object(i.__extends)(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}()),d={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},u={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},p={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},h=function(){if(o["ɵglobal"].Node)return o["ɵglobal"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,a||(a=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var o;(o=e)[t].apply(o,Object(i.__spread)(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return d},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return h.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),i=0;i<t.length;i++)n[i]=t[i];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach((function(n){return e.insertBefore(n,t)}))},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var i=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return i.setAttribute(e,t),i},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var i=this.getStyle(e,t)||"";return n?i==n:i.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,i=0;i<n.length;i++){var o=n.item(i);t.set(o.name,o.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,i){e.setAttributeNS(t,n,i)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&p.hasOwnProperty(t)&&(t=p[t]))}return u[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t=function(){if(!b&&!(b=document.querySelector("base")))return null;return b.getAttribute("href")}();return null==t?null:function(e){c||(c=document.createElement("a"));return c.setAttribute("href",e),"/"===c.pathname.charAt(0)?c.pathname:"/"+c.pathname}
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright Google Inc. All Rights Reserved.
|
|
24
24
|
*
|
|
25
25
|
* Use of this source code is governed by an MIT-style license that can be
|
|
26
26
|
* found in the LICENSE file at https://angular.io/license
|
|
27
|
-
*/(t)},t.prototype.resetBaseElement=function(){b=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return Object(r["ɵparseCookieValue"])(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(
|
|
27
|
+
*/(t)},t.prototype.resetBaseElement=function(){b=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return Object(r["ɵparseCookieValue"])(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(l),b=null;
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -59,7 +59,7 @@ var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|
|
59
59
|
*
|
|
60
60
|
* Use of this source code is governed by an MIT-style license that can be
|
|
61
61
|
* found in the LICENSE file at https://angular.io/license
|
|
62
|
-
*/var j={ApplicationRef:o.ApplicationRef,NgZone:o.NgZone};function C(e){return Object(o.getDebugNode)(e)}var S=[{provide:o.APP_INITIALIZER,useFactory:function(e){return O("probe",C),O("coreTokens",Object(i.__assign)({},j,(e||[]).reduce((function(e,t){return e[t.name]=t.token,e}),{}))),function(){return C}},deps:[[o.NgProbeToken,new o.Optional]],multi:!0}],w=new o.InjectionToken("EventManagerPlugins"),x=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach((function(e){return e.manager=n})),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var o=n[i];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(w)),Object(i.__metadata)("design:paramtypes",[Array,o.NgZone])],e)}(),k=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var i=s().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target "+i+" for event "+t);return this.addEventListener(i,t,n)},e}(),E=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),I=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return Object(i.__extends)(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach((function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))}))},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(e){return s().remove(e)}))},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(E),D={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},P=/%COMP%/g,T="_nghost-%COMP%",F="_ngcontent-%COMP%";function M(e,t,n){for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?M(e,o,n):(o=o.replace(P,e),n.push(o))}return n}function N(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var A=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new B(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case o.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new z(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case o.ViewEncapsulation.Native:case o.ViewEncapsulation.ShadowDom:return new L(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=M(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(2,Object(o.Inject)(o.APP_ID)),Object(i.__metadata)("design:paramtypes",[x,I,String])],e)}(),B=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(D[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,i){if(i){t=i+":"+t;var o=D[i];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var i=D[n];i?e.removeAttributeNS(i,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,i){i&o.RendererStyleFlags2.DashCase?e.style.setProperty(t,n,i&o.RendererStyleFlags2.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&o.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){V(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return V(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,N(n)):this.eventManager.addEventListener(e,t,N(n))},e}(),R="@".charCodeAt(0);function V(e,t){if(e.charCodeAt(0)===R)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var z=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;r.component=i;var a,s=M(o+"-"+i.id,i.styles,[]);return n.addStyles(s),r.contentAttr=(a=o+"-"+i.id,F.replace(P,a)),r.hostAttr=function(e){return T.replace(P,e)}(o+"-"+i.id),r}return Object(i.__extends)(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var i=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,i,this.contentAttr,""),i},t}(B),L=function(e){function t(t,n,i,r){var a=e.call(this,t)||this;a.sharedStylesHost=n,a.hostEl=i,a.component=r,r.encapsulation===o.ViewEncapsulation.ShadowDom?a.shadowRoot=i.attachShadow({mode:"open"}):a.shadowRoot=i.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=M(r.id,r.styles,[]),c=0;c<s.length;c++){var u=document.createElement("style");u.textContent=s[c],a.shadowRoot.appendChild(u)}return a}return Object(i.__extends)(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,i){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,i)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(B),H="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},K=H("addEventListener"),G=H("removeEventListener"),U={},W="__zone_symbol__propagationStopped",Z=function(){var e="undefined"!=typeof Zone&&Zone[H("BLACK_LISTED_EVENTS")];if(e){var t={};return e.forEach((function(e){t[e]=e})),t}}(),$=function(e){return!!Z&&Z.hasOwnProperty(e)},q=function(e){var t=U[e.type];if(t){var n=this[t];if(n){var i=[e];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,i):a.handler.apply(this,i);for(var o=n.slice(),r=0;r<o.length&&!0!==e[W];r++){var a;(a=o[r]).zone!==Zone.current?a.zone.run(a.handler,this,i):a.handler.apply(this,i)}}}},X=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.ngZone=n,i&&Object(r.isPlatformServer)(i)||o.patchEvent(),o}return Object(i.__extends)(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[W]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var i=this,r=e[K],a=n;if(!r||o.NgZone.isInAngularZone()&&!$(t))e.addEventListener(t,a,!1);else{var s=U[t];s||(s=U[t]=H("ANGULAR"+t+"FALSE"));var c=e[s],u=c&&c.length>0;c||(c=e[s]=[]);var l=$(t)?Zone.root:Zone.current;if(0===c.length)c.push({zone:l,handler:a});else{for(var d=!1,p=0;p<c.length;p++)if(c[p].handler===a){d=!0;break}d||c.push({zone:l,handler:a})}u||e[K](t,q,!1)}return function(){return i.removeEventListener(e,t,a)}},t.prototype.removeEventListener=function(e,t,n){var i=e[G];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);var o=U[t],r=o&&e[o];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);for(var a=!1,s=0;s<r.length;s++)if(r[s].handler===n){a=!0,r.splice(s,1);break}a?0===r.length&&i.apply(e,[t,q,!1]):e.removeEventListener.apply(e,[t,n,!1])},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(o.PLATFORM_ID)),Object(i.__metadata)("design:paramtypes",[Object,o.NgZone,Object])],t)}(k),Y={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},J=new o.InjectionToken("HammerGestureConfig"),Q=new o.InjectionToken("HammerLoader"),ee=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),te=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;return r._config=n,r.console=i,r.loader=o,r}return Object(i.__extends)(t,e),t.prototype.supports=function(e){return!(!Y.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))&&(!(!window.Hammer&&!this.loader)||(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),!1))},t.prototype.addEventListener=function(e,t,n){var i=this,o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var r=!1,a=function(){r=!0};return this.loader().then((function(){if(!window.Hammer)return i.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});r||(a=i.addEventListener(e,t,n))})).catch((function(){i.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}})),function(){a()}}return o.runOutsideAngular((function(){var r=i._config.buildHammer(e),a=function(e){o.runGuarded((function(){n(e)}))};return r.on(t,a),function(){r.off(t,a),"function"==typeof r.destroy&&r.destroy()}}))},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__param)(1,Object(o.Inject)(J)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Q)),Object(i.__metadata)("design:paramtypes",[Object,ee,o["ɵConsole"],Object])],t)}(k),ne=["alt","control","meta","shift"],ie={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},oe=function(e){function t(t){return e.call(this,t)||this}var n;return Object(i.__extends)(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,i){var o=n.parseEventName(t),r=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return s().onAndCancel(e,o.domEventName,r)}))},t.parseEventName=function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var o=n._normalizeKey(t.pop()),r="";if(ne.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),r+=e+".")})),r+=o,0!=t.length||0===o.length)return null;var a={};return a.domEventName=i,a.fullKey=r,a},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ne.forEach((function(i){i!=n&&((0,ie[i])(e)&&(t+=i+"."))})),t+=n},t.eventCallback=function(e,t,i){return function(o){n.getEventFullKey(o)===e&&i.runGuarded((function(){return t(o)}))}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t=n=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(k),re=function(){},ae=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(i.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case o.SecurityContext.NONE:return t;case o.SecurityContext.HTML:return t instanceof ce?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(o["ɵ_sanitizeHtml"])(this._doc,String(t)));case o.SecurityContext.STYLE:return t instanceof ue?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(o["ɵ_sanitizeStyle"])(t));case o.SecurityContext.SCRIPT:if(t instanceof le)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case o.SecurityContext.URL:return t instanceof pe||t instanceof de?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(o["ɵ_sanitizeUrl"])(String(t)));case o.SecurityContext.RESOURCE_URL:if(t instanceof pe)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof se)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new ce(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new ue(e)},t.prototype.bypassSecurityTrustScript=function(e){return new le(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new de(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new pe(e)},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(re),se=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(se),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(se),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(se),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(se),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(se),he=r["ɵPLATFORM_BROWSER_ID"],fe=[{provide:o.PLATFORM_ID,useValue:he},{provide:o.PLATFORM_INITIALIZER,useValue:function(){f.makeCurrent(),_.init()},multi:!0},{provide:r.PlatformLocation,useClass:g,deps:[r.DOCUMENT]},{provide:r.DOCUMENT,useFactory:function(){return document},deps:[]}],be=[{provide:o.Sanitizer,useExisting:re},{provide:re,useClass:ae,deps:[r.DOCUMENT]}];Object(o.createPlatformFactory)(o.platformCore,"browser",fe);var me=[be,{provide:o["ɵAPP_ROOT"],useValue:!0},{provide:o.ErrorHandler,useFactory:function(){return new o.ErrorHandler},deps:[]},{provide:w,useClass:X,multi:!0,deps:[r.DOCUMENT,o.NgZone,o.PLATFORM_ID]},{provide:w,useClass:oe,multi:!0,deps:[r.DOCUMENT]},{provide:w,useClass:te,multi:!0,deps:[r.DOCUMENT,J,o["ɵConsole"],[new o.Optional,Q]]},{provide:J,useClass:ee,deps:[]},{provide:A,useClass:A,deps:[x,I,o.APP_ID]},{provide:o.RendererFactory2,useExisting:A},{provide:E,useExisting:I},{provide:I,useClass:I,deps:[r.DOCUMENT]},{provide:o.Testability,useClass:o.Testability,deps:[o.NgZone]},{provide:x,useClass:x,deps:[w,o.NgZone]},S];!function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var t;t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:o.APP_ID,useValue:e.appId},{provide:v,useExisting:o.APP_ID},y]}},e=t=Object(i.__decorate)([Object(o.NgModule)({providers:me,exports:[r.CommonModule,o.ApplicationModule]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(0,Object(o.Inject)(t)),Object(i.__metadata)("design:paramtypes",[Object])],e)}();function ge(){return new ve(Object(o["ɵɵinject"])(r.DOCUMENT))}var ve=function(){function e(e){this._doc=e,this._dom=s()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce((function(e,i){return i&&e.push(n._getOrCreateElement(i,t)),e}),[]):[]},e.prototype.getTag=function(e){return e&&this._dom.querySelector(this._doc,"meta["+e+"]")||null},e.prototype.getTags=function(e){if(!e)return[];var t=this._dom.querySelectorAll(this._doc,"meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),i=this.getTag(n);if(i&&this._containsAttributes(e,i))return i}var o=this._dom.createElement("meta");this._setMetaElementAttributes(e,o);var r=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(r,o),o},e.prototype._setMetaElementAttributes=function(e,t){var n=this;return Object.keys(e).forEach((function(i){return n._dom.setAttribute(t,i,e[i])})),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){var n=this;return Object.keys(e).every((function(i){return n._dom.getAttribute(t,i)===e[i]}))},e.ngInjectableDef=Object(o["ɵɵdefineInjectable"])({factory:ge,token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(o.Injectable)({providedIn:"root",useFactory:ge,deps:[]}),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],e)}();function ye(){return new _e(Object(o["ɵɵinject"])(r.DOCUMENT))}var _e=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return s().getTitle(this._doc)},e.prototype.setTitle=function(e){s().setTitle(this._doc,e)},e.ngInjectableDef=Object(o["ɵɵdefineInjectable"])({factory:ye,token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(o.Injectable)({providedIn:"root",useFactory:ye,deps:[]}),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],e)}(),Oe="undefined"!=typeof window&&window||{},je=function(e,t){this.msPerTick=e,this.numTicks=t};
|
|
62
|
+
*/var j={ApplicationRef:o.ApplicationRef,NgZone:o.NgZone};function C(e){return Object(o.getDebugNode)(e)}var S=[{provide:o.APP_INITIALIZER,useFactory:function(e){return O("probe",C),O("coreTokens",Object(i.__assign)({},j,(e||[]).reduce((function(e,t){return e[t.name]=t.token,e}),{}))),function(){return C}},deps:[[o.NgProbeToken,new o.Optional]],multi:!0}],x=new o.InjectionToken("EventManagerPlugins"),w=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach((function(e){return e.manager=n})),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var o=n[i];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(x)),Object(i.__metadata)("design:paramtypes",[Array,o.NgZone])],e)}(),k=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var i=s().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target "+i+" for event "+t);return this.addEventListener(i,t,n)},e}(),I=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),E=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return Object(i.__extends)(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach((function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))}))},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(e){return s().remove(e)}))},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(I),D={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},T=/%COMP%/g,P="_nghost-%COMP%",F="_ngcontent-%COMP%";function M(e,t,n){for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?M(e,o,n):(o=o.replace(T,e),n.push(o))}return n}function A(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var N=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new B(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case o.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new z(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case o.ViewEncapsulation.Native:case o.ViewEncapsulation.ShadowDom:return new L(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=M(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(2,Object(o.Inject)(o.APP_ID)),Object(i.__metadata)("design:paramtypes",[w,E,String])],e)}(),B=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(D[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,i){if(i){t=i+":"+t;var o=D[i];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var i=D[n];i?e.removeAttributeNS(i,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,i){i&o.RendererStyleFlags2.DashCase?e.style.setProperty(t,n,i&o.RendererStyleFlags2.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&o.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){V(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return V(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,A(n)):this.eventManager.addEventListener(e,t,A(n))},e}(),R="@".charCodeAt(0);function V(e,t){if(e.charCodeAt(0)===R)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var z=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;r.component=i;var a,s=M(o+"-"+i.id,i.styles,[]);return n.addStyles(s),r.contentAttr=(a=o+"-"+i.id,F.replace(T,a)),r.hostAttr=function(e){return P.replace(T,e)}(o+"-"+i.id),r}return Object(i.__extends)(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var i=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,i,this.contentAttr,""),i},t}(B),L=function(e){function t(t,n,i,r){var a=e.call(this,t)||this;a.sharedStylesHost=n,a.hostEl=i,a.component=r,r.encapsulation===o.ViewEncapsulation.ShadowDom?a.shadowRoot=i.attachShadow({mode:"open"}):a.shadowRoot=i.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=M(r.id,r.styles,[]),c=0;c<s.length;c++){var l=document.createElement("style");l.textContent=s[c],a.shadowRoot.appendChild(l)}return a}return Object(i.__extends)(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,i){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,i)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(B),H="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},K=H("addEventListener"),G=H("removeEventListener"),U={},W="__zone_symbol__propagationStopped",Z=function(){var e="undefined"!=typeof Zone&&Zone[H("BLACK_LISTED_EVENTS")];if(e){var t={};return e.forEach((function(e){t[e]=e})),t}}(),$=function(e){return!!Z&&Z.hasOwnProperty(e)},q=function(e){var t=U[e.type];if(t){var n=this[t];if(n){var i=[e];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,i):a.handler.apply(this,i);for(var o=n.slice(),r=0;r<o.length&&!0!==e[W];r++){var a;(a=o[r]).zone!==Zone.current?a.zone.run(a.handler,this,i):a.handler.apply(this,i)}}}},X=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.ngZone=n,i&&Object(r.isPlatformServer)(i)||o.patchEvent(),o}return Object(i.__extends)(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[W]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var i=this,r=e[K],a=n;if(!r||o.NgZone.isInAngularZone()&&!$(t))e.addEventListener(t,a,!1);else{var s=U[t];s||(s=U[t]=H("ANGULAR"+t+"FALSE"));var c=e[s],l=c&&c.length>0;c||(c=e[s]=[]);var d=$(t)?Zone.root:Zone.current;if(0===c.length)c.push({zone:d,handler:a});else{for(var u=!1,p=0;p<c.length;p++)if(c[p].handler===a){u=!0;break}u||c.push({zone:d,handler:a})}l||e[K](t,q,!1)}return function(){return i.removeEventListener(e,t,a)}},t.prototype.removeEventListener=function(e,t,n){var i=e[G];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);var o=U[t],r=o&&e[o];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);for(var a=!1,s=0;s<r.length;s++)if(r[s].handler===n){a=!0,r.splice(s,1);break}a?0===r.length&&i.apply(e,[t,q,!1]):e.removeEventListener.apply(e,[t,n,!1])},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(o.PLATFORM_ID)),Object(i.__metadata)("design:paramtypes",[Object,o.NgZone,Object])],t)}(k),Y={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},J=new o.InjectionToken("HammerGestureConfig"),Q=new o.InjectionToken("HammerLoader"),ee=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),te=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;return r._config=n,r.console=i,r.loader=o,r}return Object(i.__extends)(t,e),t.prototype.supports=function(e){return!(!Y.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))&&(!(!window.Hammer&&!this.loader)||(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),!1))},t.prototype.addEventListener=function(e,t,n){var i=this,o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var r=!1,a=function(){r=!0};return this.loader().then((function(){if(!window.Hammer)return i.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});r||(a=i.addEventListener(e,t,n))})).catch((function(){i.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}})),function(){a()}}return o.runOutsideAngular((function(){var r=i._config.buildHammer(e),a=function(e){o.runGuarded((function(){n(e)}))};return r.on(t,a),function(){r.off(t,a),"function"==typeof r.destroy&&r.destroy()}}))},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__param)(1,Object(o.Inject)(J)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Q)),Object(i.__metadata)("design:paramtypes",[Object,ee,o["ɵConsole"],Object])],t)}(k),ne=["alt","control","meta","shift"],ie={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},oe=function(e){function t(t){return e.call(this,t)||this}var n;return Object(i.__extends)(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,i){var o=n.parseEventName(t),r=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return s().onAndCancel(e,o.domEventName,r)}))},t.parseEventName=function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var o=n._normalizeKey(t.pop()),r="";if(ne.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),r+=e+".")})),r+=o,0!=t.length||0===o.length)return null;var a={};return a.domEventName=i,a.fullKey=r,a},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ne.forEach((function(i){i!=n&&((0,ie[i])(e)&&(t+=i+"."))})),t+=n},t.eventCallback=function(e,t,i){return function(o){n.getEventFullKey(o)===e&&i.runGuarded((function(){return t(o)}))}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t=n=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(k),re=function(){},ae=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(i.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case o.SecurityContext.NONE:return t;case o.SecurityContext.HTML:return t instanceof ce?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(o["ɵ_sanitizeHtml"])(this._doc,String(t)));case o.SecurityContext.STYLE:return t instanceof le?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(o["ɵ_sanitizeStyle"])(t));case o.SecurityContext.SCRIPT:if(t instanceof de)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case o.SecurityContext.URL:return t instanceof pe||t instanceof ue?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(o["ɵ_sanitizeUrl"])(String(t)));case o.SecurityContext.RESOURCE_URL:if(t instanceof pe)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof se)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new ce(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new le(e)},t.prototype.bypassSecurityTrustScript=function(e){return new de(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new ue(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new pe(e)},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(re),se=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(se),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(se),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(se),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(se),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(se),he=r["ɵPLATFORM_BROWSER_ID"],fe=[{provide:o.PLATFORM_ID,useValue:he},{provide:o.PLATFORM_INITIALIZER,useValue:function(){f.makeCurrent(),_.init()},multi:!0},{provide:r.PlatformLocation,useClass:g,deps:[r.DOCUMENT]},{provide:r.DOCUMENT,useFactory:function(){return document},deps:[]}],be=[{provide:o.Sanitizer,useExisting:re},{provide:re,useClass:ae,deps:[r.DOCUMENT]}];Object(o.createPlatformFactory)(o.platformCore,"browser",fe);var me=[be,{provide:o["ɵAPP_ROOT"],useValue:!0},{provide:o.ErrorHandler,useFactory:function(){return new o.ErrorHandler},deps:[]},{provide:x,useClass:X,multi:!0,deps:[r.DOCUMENT,o.NgZone,o.PLATFORM_ID]},{provide:x,useClass:oe,multi:!0,deps:[r.DOCUMENT]},{provide:x,useClass:te,multi:!0,deps:[r.DOCUMENT,J,o["ɵConsole"],[new o.Optional,Q]]},{provide:J,useClass:ee,deps:[]},{provide:N,useClass:N,deps:[w,E,o.APP_ID]},{provide:o.RendererFactory2,useExisting:N},{provide:I,useExisting:E},{provide:E,useClass:E,deps:[r.DOCUMENT]},{provide:o.Testability,useClass:o.Testability,deps:[o.NgZone]},{provide:w,useClass:w,deps:[x,o.NgZone]},S];!function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var t;t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:o.APP_ID,useValue:e.appId},{provide:v,useExisting:o.APP_ID},y]}},e=t=Object(i.__decorate)([Object(o.NgModule)({providers:me,exports:[r.CommonModule,o.ApplicationModule]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(0,Object(o.Inject)(t)),Object(i.__metadata)("design:paramtypes",[Object])],e)}();function ge(){return new ve(Object(o["ɵɵinject"])(r.DOCUMENT))}var ve=function(){function e(e){this._doc=e,this._dom=s()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce((function(e,i){return i&&e.push(n._getOrCreateElement(i,t)),e}),[]):[]},e.prototype.getTag=function(e){return e&&this._dom.querySelector(this._doc,"meta["+e+"]")||null},e.prototype.getTags=function(e){if(!e)return[];var t=this._dom.querySelectorAll(this._doc,"meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),i=this.getTag(n);if(i&&this._containsAttributes(e,i))return i}var o=this._dom.createElement("meta");this._setMetaElementAttributes(e,o);var r=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(r,o),o},e.prototype._setMetaElementAttributes=function(e,t){var n=this;return Object.keys(e).forEach((function(i){return n._dom.setAttribute(t,i,e[i])})),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){var n=this;return Object.keys(e).every((function(i){return n._dom.getAttribute(t,i)===e[i]}))},e.ngInjectableDef=Object(o["ɵɵdefineInjectable"])({factory:ge,token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(o.Injectable)({providedIn:"root",useFactory:ge,deps:[]}),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],e)}();function ye(){return new _e(Object(o["ɵɵinject"])(r.DOCUMENT))}var _e=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return s().getTitle(this._doc)},e.prototype.setTitle=function(e){s().setTitle(this._doc,e)},e.ngInjectableDef=Object(o["ɵɵdefineInjectable"])({factory:ye,token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(o.Injectable)({providedIn:"root",useFactory:ye,deps:[]}),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],e)}(),Oe="undefined"!=typeof window&&window||{},je=function(e,t){this.msPerTick=e,this.numTicks=t};
|
|
63
63
|
/**
|
|
64
64
|
* @license
|
|
65
65
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -73,7 +73,7 @@ var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|
|
73
73
|
*
|
|
74
74
|
* Use of this source code is governed by an MIT-style license that can be
|
|
75
75
|
* found in the LICENSE file at https://angular.io/license
|
|
76
|
-
*/;var
|
|
76
|
+
*/;var xe=n(5),we=n(4),ke=new o.InjectionToken("NgValueAccessor"),Ie={provide:ke,useExisting:Object(o.forwardRef)((function(){return Ee})),multi:!0},Ee=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[Ie]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),De={provide:ke,useExisting:Object(o.forwardRef)((function(){return Pe})),multi:!0};var Te=new o.InjectionToken("CompositionEventMode"),Pe=function(){function e(e,t,n){var i;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=s()?s().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e=Object(i.__decorate)([Object(o.Directive)({selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[De]}),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(Te)),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,Boolean])],e)}(),Fe=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),Me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(Fe);
|
|
77
77
|
/**
|
|
78
78
|
* @license
|
|
79
79
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -81,7 +81,7 @@ var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|
|
81
81
|
* Use of this source code is governed by an MIT-style license that can be
|
|
82
82
|
* found in the LICENSE file at https://angular.io/license
|
|
83
83
|
*/
|
|
84
|
-
function
|
|
84
|
+
function Ae(){throw new Error("unimplemented")}var Ne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return Ae()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Ae()},enumerable:!0,configurable:!0}),t}(Fe),Be=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),Re={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},Ve=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formControlName],[ngModel],[formControl]",host:Re}),Object(i.__param)(0,Object(o.Self)()),Object(i.__metadata)("design:paramtypes",[Ne])],t)}(Be),ze=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:Re}),Object(i.__param)(0,Object(o.Self)()),Object(i.__metadata)("design:paramtypes",[Me])],t)}(Be);
|
|
85
85
|
/**
|
|
86
86
|
* @license
|
|
87
87
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -96,7 +96,7 @@ function Ne(){throw new Error("unimplemented")}var Ae=function(e){function t(){v
|
|
|
96
96
|
* Use of this source code is governed by an MIT-style license that can be
|
|
97
97
|
* found in the LICENSE file at https://angular.io/license
|
|
98
98
|
*/
|
|
99
|
-
function Le(e){return null==e||0===e.length}var He=new o.InjectionToken("NgValidators"),Ke=new o.InjectionToken("NgAsyncValidators"),Ge=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ue=function(){function e(){}return e.min=function(e){return function(t){if(Le(t.value)||Le(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(Le(t.value)||Le(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return Le(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Le(e.value)||Ge.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(Le(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(Le(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(We);return 0==t.length?null:function(e){return $e(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(We);return 0==t.length?null:function(e){var n=function(e,t){return t.map((function(t){return t(e)}))}(e,t).map(Ze);return Object(
|
|
99
|
+
function Le(e){return null==e||0===e.length}var He=new o.InjectionToken("NgValidators"),Ke=new o.InjectionToken("NgAsyncValidators"),Ge=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ue=function(){function e(){}return e.min=function(e){return function(t){if(Le(t.value)||Le(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(Le(t.value)||Le(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return Le(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Le(e.value)||Ge.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(Le(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(Le(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(We);return 0==t.length?null:function(e){return $e(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(We);return 0==t.length?null:function(e){var n=function(e,t){return t.map((function(t){return t(e)}))}(e,t).map(Ze);return Object(xe.forkJoin)(n).pipe(Object(we.map)($e))}},e}();function We(e){return null!=e}function Ze(e){var t=Object(o["ɵisPromise"])(e)?Object(xe.from)(e):e;if(!Object(o["ɵisObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function $e(e){var t=e.reduce((function(e,t){return null!=t?Object(i.__assign)({},e,t):e}),{});return 0===Object.keys(t).length?null:t}
|
|
100
100
|
/**
|
|
101
101
|
* @license
|
|
102
102
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -110,7 +110,7 @@ function Le(e){return null==e||0===e.length}var He=new o.InjectionToken("NgValid
|
|
|
110
110
|
*
|
|
111
111
|
* Use of this source code is governed by an MIT-style license that can be
|
|
112
112
|
* found in the LICENSE file at https://angular.io/license
|
|
113
|
-
*/var Ye={provide:ke,useExisting:Object(o.forwardRef)((function(){return Je})),multi:!0},Je=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[Ye]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),Qe={provide:ke,useExisting:Object(o.forwardRef)((function(){return tt})),multi:!0},et=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),tt=function(){function e(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Ae),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"name",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formControlName",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"value",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[Qe]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,et,o.Injector])],e)}(),nt={provide:ke,useExisting:Object(o.forwardRef)((function(){return it})),multi:!0},it=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[nt]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),ot='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',rt='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',at='\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',st='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ct='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ',ut=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ot)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+rt+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+st)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ot)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+rt)},e.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+at)},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}(),lt={provide:ke,useExisting:Object(o.forwardRef)((function(){return pt})),multi:!0};function dt(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var pt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=o["ɵlooseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=dt(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){var t,n;try{for(var o=Object(i.__values)(Array.from(this._optionMap.keys())),r=o.next();!r.done;r=o.next()){var a=r.value;if(this._compareWith(this._optionMap.get(a),e))return a}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[lt]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),ht=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(dt(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},Object(i.__decorate)([Object(o.Input)("ngValue"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"ngValue",null),Object(i.__decorate)([Object(o.Input)("value"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"option"}),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Host)()),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,pt])],e)}(),ft={provide:ke,useExisting:Object(o.forwardRef)((function(){return mt})),multi:!0};function bt(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var mt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=o["ɵlooseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,r=0;r<o.length;r++){var a=o.item(r),s=t._getOptionValue(a.value);i.push(s)}else for(o=n.options,r=0;r<o.length;r++){if((a=o.item(r)).selected){s=t._getOptionValue(a.value);i.push(s)}}t.value=i,e(i)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){var t,n;try{for(var o=Object(i.__values)(Array.from(this._optionMap.keys())),r=o.next();!r.done;r=o.next()){var a=r.value;if(this._compareWith(this._optionMap.get(a)._value,e))return a}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[ft]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),gt=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(bt(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(bt(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},Object(i.__decorate)([Object(o.Input)("ngValue"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"ngValue",null),Object(i.__decorate)([Object(o.Input)("value"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"option"}),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Host)()),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,mt])],e)}();
|
|
113
|
+
*/var Ye={provide:ke,useExisting:Object(o.forwardRef)((function(){return Je})),multi:!0},Je=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[Ye]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),Qe={provide:ke,useExisting:Object(o.forwardRef)((function(){return tt})),multi:!0},et=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),tt=function(){function e(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Ne),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"name",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formControlName",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"value",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[Qe]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,et,o.Injector])],e)}(),nt={provide:ke,useExisting:Object(o.forwardRef)((function(){return it})),multi:!0},it=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[nt]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),ot='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',rt='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',at='\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',st='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ct='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ',lt=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ot)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+rt+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+st)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ot)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+rt)},e.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+at)},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}(),dt={provide:ke,useExisting:Object(o.forwardRef)((function(){return pt})),multi:!0};function ut(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var pt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=o["ɵlooseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=ut(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){var t,n;try{for(var o=Object(i.__values)(Array.from(this._optionMap.keys())),r=o.next();!r.done;r=o.next()){var a=r.value;if(this._compareWith(this._optionMap.get(a),e))return a}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[dt]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),ht=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(ut(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},Object(i.__decorate)([Object(o.Input)("ngValue"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"ngValue",null),Object(i.__decorate)([Object(o.Input)("value"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"option"}),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Host)()),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,pt])],e)}(),ft={provide:ke,useExisting:Object(o.forwardRef)((function(){return mt})),multi:!0};function bt(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var mt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=o["ɵlooseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,r=0;r<o.length;r++){var a=o.item(r),s=t._getOptionValue(a.value);i.push(s)}else for(o=n.options,r=0;r<o.length;r++){if((a=o.item(r)).selected){s=t._getOptionValue(a.value);i.push(s)}}t.value=i,e(i)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){var t,n;try{for(var o=Object(i.__values)(Array.from(this._optionMap.keys())),r=o.next();!r.done;r=o.next()){var a=r.value;if(this._compareWith(this._optionMap.get(a)._value,e))return a}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[ft]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),gt=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(bt(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(bt(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},Object(i.__decorate)([Object(o.Input)("ngValue"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"ngValue",null),Object(i.__decorate)([Object(o.Input)("value"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"option"}),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Host)()),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,mt])],e)}();
|
|
114
114
|
/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -118,21 +118,21 @@ function Le(e){return null==e||0===e.length}var He=new o.InjectionToken("NgValid
|
|
|
118
118
|
* Use of this source code is governed by an MIT-style license that can be
|
|
119
119
|
* found in the LICENSE file at https://angular.io/license
|
|
120
120
|
*/
|
|
121
|
-
function vt(e,t){return Object(i.__spread)(t.path,[e])}function yt(e,t){e||Ct(t,"Cannot find control with"),t.valueAccessor||Ct(t,"No value accessor for form control with"),e.validator=Ue.compose([e.validator,t.validator]),e.asyncValidator=Ue.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange((function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&_t(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&_t(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function _t(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ot(e,t){null==e&&Ct(t,"Cannot find control with"),e.validator=Ue.compose([e.validator,t.validator]),e.asyncValidator=Ue.composeAsync([e.asyncValidator,t.asyncValidator])}function jt(e){return Ct(e,"There is no FormControl instance attached to form control element with")}function Ct(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function St(e){return null!=e?Ue.compose(e.map(qe)):null}function
|
|
121
|
+
function vt(e,t){return Object(i.__spread)(t.path,[e])}function yt(e,t){e||Ct(t,"Cannot find control with"),t.valueAccessor||Ct(t,"No value accessor for form control with"),e.validator=Ue.compose([e.validator,t.validator]),e.asyncValidator=Ue.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange((function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&_t(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&_t(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function _t(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ot(e,t){null==e&&Ct(t,"Cannot find control with"),e.validator=Ue.compose([e.validator,t.validator]),e.asyncValidator=Ue.composeAsync([e.asyncValidator,t.asyncValidator])}function jt(e){return Ct(e,"There is no FormControl instance attached to form control element with")}function Ct(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function St(e){return null!=e?Ue.compose(e.map(qe)):null}function xt(e){return null!=e?Ue.composeAsync(e.map(Xe)):null}function wt(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(o["ɵlooseIdentical"])(t,n.currentValue)}var kt=[Ee,it,Je,pt,mt,tt];function It(e,t){e._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}))}function Et(e,t){if(!t)return null;Array.isArray(t)||Ct(e,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,o=void 0;return t.forEach((function(t){var r;t.constructor===Pe?n=t:(r=t,kt.some((function(e){return r.constructor===e}))?(i&&Ct(e,"More than one built-in value accessor matches form control with"),i=t):(o&&Ct(e,"More than one custom value accessor matches form control with"),o=t))})),o||(i||(n||(Ct(e,"No valid value accessor for form control with"),null)))}function Dt(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Tt(e,t,n,i){Object(o.isDevMode)()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(lt.ngModelWarning(e),t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}
|
|
122
122
|
/**
|
|
123
123
|
* @license
|
|
124
124
|
* Copyright Google Inc. All Rights Reserved.
|
|
125
125
|
*
|
|
126
126
|
* Use of this source code is governed by an MIT-style license that can be
|
|
127
127
|
* found in the LICENSE file at https://angular.io/license
|
|
128
|
-
*/function Tt(e){var t=Mt(e)?e.validators:e;return Array.isArray(t)?St(t):t||null}function Ft(e,t){var n=Mt(t)?t.asyncValidators:e;return Array.isArray(n)?wt(n):n||null}function Mt(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Nt=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=Tt(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=Ft(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object(i.__assign)({},e,{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object(i.__assign)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))},e.prototype.enable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object(i.__assign)({},e,{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object(i.__assign)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=Ze(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(n)),t instanceof Array&&0===t.length?null:t.reduce((function(e,t){return e instanceof Bt?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Rt&&e.at(t)||null}),e))}(this,e,".")},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls((function(t){return t.status===e}))},e.prototype._anyControlsDirty=function(){return this._anyControls((function(e){return e.dirty}))},e.prototype._anyControlsTouched=function(){return this._anyControls((function(e){return e.touched}))},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){Mt(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e.prototype._parentMarkedDirty=function(e){var t=this._parent&&this._parent.dirty;return!e&&t&&!this._parent._anyControlsDirty()},e}(),At=function(e){function t(t,n,i){void 0===t&&(t=null);var o=e.call(this,Tt(n),Ft(i,n))||this;return o._onChange=[],o._applyFormState(t),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(i.__extends)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach((function(e){return e(n.value,!1!==t.emitViewToModelChange)})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(Nt),Bt=function(e){function t(t,n,i){var o=e.call(this,Tt(n),Ft(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach((function(i){n._throwIfControlMissing(i),n.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach((function(i){n.controls[i]&&n.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof At?t.value:t.getRawValue(),e}))},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))},t.prototype._setUpControls=function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild((function(i,o){n=n||t.contains(o)&&e(i)})),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},(function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t}))},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild((function(e,i){n=t(n,e,i)})),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(i.__values)(Object.keys(this.controls)),o=n.next();!o.done;o=n.next()){var r=o.value;if(this.controls[r].enabled)return!1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},t}(Nt),Rt=function(e){function t(t,n,i){var o=e.call(this,Tt(n),Ft(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach((function(e,i){n._throwIfControlMissing(i),n.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach((function(e,i){n.at(i)&&n.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this.controls.map((function(e){return e instanceof At?e.value:e.getRawValue()}))},t.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},t.prototype._syncPendingControls=function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach((function(t,n){e(t,n)}))},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))},t.prototype._anyControls=function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))},t.prototype._setUpControls=function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))},t.prototype._checkAllValuesPresent=function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")}))},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(i.__values)(this.controls),o=n.next();!o.done;o=n.next()){if(o.value.enabled)return!1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(Nt),Vt={provide:Me,useExisting:Object(o.forwardRef)((function(){return Lt}))},zt=Promise.resolve(null),Lt=function(e){function t(t,n){var i=e.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new o.EventEmitter,i.form=new Bt({},St(t),wt(n)),i}return Object(i.__extends)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),yt(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Dt(t._directives,e)}))},t.prototype.addFormGroup=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path),i=new Bt({});Ot(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})}))},t.prototype.removeFormGroup=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;zt.then((function(){n.form.get(e.path).setValue(t)}))},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,Et(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},Object(i.__decorate)([Object(o.Input)("ngFormOptions"),Object(i.__metadata)("design:type",Object)],t.prototype,"options",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"form:not([ngNoForm]):not([formGroup]),ngForm,ng-form,[ngForm]",providers:[Vt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Self)()),Object(i.__param)(0,Object(o.Inject)(He)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Array,Array])],t)}(Me),Ht=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ot+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+ct)},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+rt+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+st)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+rt+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+st)},e.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")},e}(),Kt=new o.InjectionToken("NgFormSelectorWarning"),Gt=function(){function e(e){(e&&"once"!==e||t._ngFormWarning)&&"always"!==e||(Ht.ngFormWarning(),t._ngFormWarning=!0)}var t;return t=e,e._ngFormWarning=!1,e=t=Object(i.__decorate)([Object(o.Directive)({selector:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Inject)(Kt)),Object(i.__metadata)("design:paramtypes",[Object])],e)}(),Ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return vt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return St(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return wt(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(Me),Wt={provide:Me,useExisting:Object(o.forwardRef)((function(){return Zt}))},Zt=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}var n;return Object(i.__extends)(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof Lt||Ht.modelGroupParentException()},Object(i.__decorate)([Object(o.Input)("ngModelGroup"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=n=Object(i.__decorate)([Object(o.Directive)({selector:"[ngModelGroup]",providers:[Wt],exportAs:"ngModelGroup"}),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(He)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Me,Array,Array])],t)}(Ut),$t={provide:Ae,useExisting:Object(o.forwardRef)((function(){return Xt}))},qt=Promise.resolve(null),Xt=function(e){function t(t,n,i,r){var a=e.call(this)||this;return a.control=new At,a._registered=!1,a.update=new o.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=i||[],a.valueAccessor=It(a,r),a}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),xt(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?vt(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return St(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return wt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){yt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Zt)&&this._parent instanceof Ut?Ht.formGroupNameException():this._parent instanceof Zt||this._parent instanceof Lt||Ht.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ht.missingNameException()},t.prototype._updateValue=function(e){var t=this;qt.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;qt.then((function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),Object(i.__decorate)([Object(o.Input)("disabled"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"isDisabled",void 0),Object(i.__decorate)([Object(o.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(o.Input)("ngModelOptions"),Object(i.__metadata)("design:type",Object)],t.prototype,"options",void 0),Object(i.__decorate)([Object(o.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[$t],exportAs:"ngModel"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(He)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Self)()),Object(i.__param)(3,Object(o.Inject)(ke)),Object(i.__metadata)("design:paramtypes",[Me,Array,Array,Array])],t)}(Ae),Yt=function(){function e(){}return e=Object(i.__decorate)([Object(o.Directive)({selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}})],e)}(),Jt=new o.InjectionToken("NgModelWithFormControlWarning"),Qt={provide:Ae,useExisting:Object(o.forwardRef)((function(){return en}))},en=function(e){function t(t,n,i,r){var a=e.call(this)||this;return a._ngModelWarningConfig=r,a.update=new o.EventEmitter,a._ngModelWarningSent=!1,a._rawValidators=t||[],a._rawAsyncValidators=n||[],a.valueAccessor=It(a,i),a}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){ut.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(yt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),xt(e,this.viewModel)&&(Pt("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return St(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return wt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t._ngModelWarningSentOnce=!1,Object(i.__decorate)([Object(o.Input)("formControl"),Object(i.__metadata)("design:type",At)],t.prototype,"form",void 0),Object(i.__decorate)([Object(o.Input)("disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),Object(i.__decorate)([Object(o.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(o.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=n=Object(i.__decorate)([Object(o.Directive)({selector:"[formControl]",providers:[Qt],exportAs:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Self)()),Object(i.__param)(0,Object(o.Inject)(He)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Ke)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(ke)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Jt)),Object(i.__metadata)("design:paramtypes",[Array,Array,Array,Object])],t)}(Ae),tn={provide:Me,useExisting:Object(o.forwardRef)((function(){return nn}))},nn=function(e){function t(t,n){var i=e.call(this)||this;return i._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new o.EventEmitter,i}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return yt(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){Dt(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);Ot(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);Ot(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,Et(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach((function(t){var n=e.form.get(t.path);t.control!==n&&(!function(e,t){t.valueAccessor.registerOnChange((function(){return jt(t)})),t.valueAccessor.registerOnTouched((function(){return jt(t)})),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),n&&yt(n,t),t.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=St(this._validators);this.form.validator=Ue.compose([this.form.validator,e]);var t=wt(this._asyncValidators);this.form.asyncValidator=Ue.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||ut.missingFormException()},Object(i.__decorate)([Object(o.Input)("formGroup"),Object(i.__metadata)("design:type",Bt)],t.prototype,"form",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",Object)],t.prototype,"ngSubmit",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formGroup]",providers:[tn],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Self)()),Object(i.__param)(0,Object(o.Inject)(He)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Array,Array])],t)}(Me),on={provide:Me,useExisting:Object(o.forwardRef)((function(){return rn}))},rn=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype._checkParentType=function(){cn(this._parent)&&ut.groupParentException()},Object(i.__decorate)([Object(o.Input)("formGroupName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formGroupName]",providers:[on]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(He)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Me,Array,Array])],t)}(Ut),an={provide:Me,useExisting:Object(o.forwardRef)((function(){return sn}))},sn=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return vt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return St(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return wt(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){cn(this._parent)&&ut.arrayParentException()},Object(i.__decorate)([Object(o.Input)("formArrayName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formArrayName]",providers:[an]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(He)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Me,Array,Array])],t)}(Me);function cn(e){return!(e instanceof rn||e instanceof nn||e instanceof sn)}
|
|
128
|
+
*/function Pt(e){var t=Mt(e)?e.validators:e;return Array.isArray(t)?St(t):t||null}function Ft(e,t){var n=Mt(t)?t.asyncValidators:e;return Array.isArray(n)?xt(n):n||null}function Mt(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var At=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=Pt(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=Ft(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object(i.__assign)({},e,{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object(i.__assign)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))},e.prototype.enable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object(i.__assign)({},e,{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object(i.__assign)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=Ze(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(n)),t instanceof Array&&0===t.length?null:t.reduce((function(e,t){return e instanceof Bt?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Rt&&e.at(t)||null}),e))}(this,e,".")},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls((function(t){return t.status===e}))},e.prototype._anyControlsDirty=function(){return this._anyControls((function(e){return e.dirty}))},e.prototype._anyControlsTouched=function(){return this._anyControls((function(e){return e.touched}))},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){Mt(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e.prototype._parentMarkedDirty=function(e){var t=this._parent&&this._parent.dirty;return!e&&t&&!this._parent._anyControlsDirty()},e}(),Nt=function(e){function t(t,n,i){void 0===t&&(t=null);var o=e.call(this,Pt(n),Ft(i,n))||this;return o._onChange=[],o._applyFormState(t),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(i.__extends)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach((function(e){return e(n.value,!1!==t.emitViewToModelChange)})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(At),Bt=function(e){function t(t,n,i){var o=e.call(this,Pt(n),Ft(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach((function(i){n._throwIfControlMissing(i),n.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach((function(i){n.controls[i]&&n.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof Nt?t.value:t.getRawValue(),e}))},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))},t.prototype._setUpControls=function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild((function(i,o){n=n||t.contains(o)&&e(i)})),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},(function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t}))},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild((function(e,i){n=t(n,e,i)})),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(i.__values)(Object.keys(this.controls)),o=n.next();!o.done;o=n.next()){var r=o.value;if(this.controls[r].enabled)return!1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},t}(At),Rt=function(e){function t(t,n,i){var o=e.call(this,Pt(n),Ft(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach((function(e,i){n._throwIfControlMissing(i),n.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach((function(e,i){n.at(i)&&n.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this.controls.map((function(e){return e instanceof Nt?e.value:e.getRawValue()}))},t.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},t.prototype._syncPendingControls=function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach((function(t,n){e(t,n)}))},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))},t.prototype._anyControls=function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))},t.prototype._setUpControls=function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))},t.prototype._checkAllValuesPresent=function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")}))},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(i.__values)(this.controls),o=n.next();!o.done;o=n.next()){if(o.value.enabled)return!1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(At),Vt={provide:Me,useExisting:Object(o.forwardRef)((function(){return Lt}))},zt=Promise.resolve(null),Lt=function(e){function t(t,n){var i=e.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new o.EventEmitter,i.form=new Bt({},St(t),xt(n)),i}return Object(i.__extends)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),yt(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Dt(t._directives,e)}))},t.prototype.addFormGroup=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path),i=new Bt({});Ot(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})}))},t.prototype.removeFormGroup=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;zt.then((function(){n.form.get(e.path).setValue(t)}))},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,It(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},Object(i.__decorate)([Object(o.Input)("ngFormOptions"),Object(i.__metadata)("design:type",Object)],t.prototype,"options",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"form:not([ngNoForm]):not([formGroup]),ngForm,ng-form,[ngForm]",providers:[Vt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Self)()),Object(i.__param)(0,Object(o.Inject)(He)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Array,Array])],t)}(Me),Ht=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ot+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+ct)},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+rt+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+st)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+rt+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+st)},e.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")},e}(),Kt=new o.InjectionToken("NgFormSelectorWarning"),Gt=function(){function e(e){(e&&"once"!==e||t._ngFormWarning)&&"always"!==e||(Ht.ngFormWarning(),t._ngFormWarning=!0)}var t;return t=e,e._ngFormWarning=!1,e=t=Object(i.__decorate)([Object(o.Directive)({selector:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Inject)(Kt)),Object(i.__metadata)("design:paramtypes",[Object])],e)}(),Ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return vt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return St(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return xt(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(Me),Wt={provide:Me,useExisting:Object(o.forwardRef)((function(){return Zt}))},Zt=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}var n;return Object(i.__extends)(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof Lt||Ht.modelGroupParentException()},Object(i.__decorate)([Object(o.Input)("ngModelGroup"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=n=Object(i.__decorate)([Object(o.Directive)({selector:"[ngModelGroup]",providers:[Wt],exportAs:"ngModelGroup"}),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(He)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Me,Array,Array])],t)}(Ut),$t={provide:Ne,useExisting:Object(o.forwardRef)((function(){return Xt}))},qt=Promise.resolve(null),Xt=function(e){function t(t,n,i,r){var a=e.call(this)||this;return a.control=new Nt,a._registered=!1,a.update=new o.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=i||[],a.valueAccessor=Et(a,r),a}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),wt(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?vt(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return St(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return xt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){yt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Zt)&&this._parent instanceof Ut?Ht.formGroupNameException():this._parent instanceof Zt||this._parent instanceof Lt||Ht.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ht.missingNameException()},t.prototype._updateValue=function(e){var t=this;qt.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;qt.then((function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),Object(i.__decorate)([Object(o.Input)("disabled"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"isDisabled",void 0),Object(i.__decorate)([Object(o.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(o.Input)("ngModelOptions"),Object(i.__metadata)("design:type",Object)],t.prototype,"options",void 0),Object(i.__decorate)([Object(o.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[$t],exportAs:"ngModel"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(He)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Self)()),Object(i.__param)(3,Object(o.Inject)(ke)),Object(i.__metadata)("design:paramtypes",[Me,Array,Array,Array])],t)}(Ne),Yt=function(){function e(){}return e=Object(i.__decorate)([Object(o.Directive)({selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}})],e)}(),Jt=new o.InjectionToken("NgModelWithFormControlWarning"),Qt={provide:Ne,useExisting:Object(o.forwardRef)((function(){return en}))},en=function(e){function t(t,n,i,r){var a=e.call(this)||this;return a._ngModelWarningConfig=r,a.update=new o.EventEmitter,a._ngModelWarningSent=!1,a._rawValidators=t||[],a._rawAsyncValidators=n||[],a.valueAccessor=Et(a,i),a}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){lt.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(yt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),wt(e,this.viewModel)&&(Tt("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return St(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return xt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t._ngModelWarningSentOnce=!1,Object(i.__decorate)([Object(o.Input)("formControl"),Object(i.__metadata)("design:type",Nt)],t.prototype,"form",void 0),Object(i.__decorate)([Object(o.Input)("disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),Object(i.__decorate)([Object(o.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(o.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=n=Object(i.__decorate)([Object(o.Directive)({selector:"[formControl]",providers:[Qt],exportAs:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Self)()),Object(i.__param)(0,Object(o.Inject)(He)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Ke)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(ke)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Jt)),Object(i.__metadata)("design:paramtypes",[Array,Array,Array,Object])],t)}(Ne),tn={provide:Me,useExisting:Object(o.forwardRef)((function(){return nn}))},nn=function(e){function t(t,n){var i=e.call(this)||this;return i._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new o.EventEmitter,i}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return yt(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){Dt(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);Ot(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);Ot(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,It(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach((function(t){var n=e.form.get(t.path);t.control!==n&&(!function(e,t){t.valueAccessor.registerOnChange((function(){return jt(t)})),t.valueAccessor.registerOnTouched((function(){return jt(t)})),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),n&&yt(n,t),t.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=St(this._validators);this.form.validator=Ue.compose([this.form.validator,e]);var t=xt(this._asyncValidators);this.form.asyncValidator=Ue.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||lt.missingFormException()},Object(i.__decorate)([Object(o.Input)("formGroup"),Object(i.__metadata)("design:type",Bt)],t.prototype,"form",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",Object)],t.prototype,"ngSubmit",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formGroup]",providers:[tn],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Self)()),Object(i.__param)(0,Object(o.Inject)(He)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Array,Array])],t)}(Me),on={provide:Me,useExisting:Object(o.forwardRef)((function(){return rn}))},rn=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype._checkParentType=function(){cn(this._parent)&<.groupParentException()},Object(i.__decorate)([Object(o.Input)("formGroupName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formGroupName]",providers:[on]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(He)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Me,Array,Array])],t)}(Ut),an={provide:Me,useExisting:Object(o.forwardRef)((function(){return sn}))},sn=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return vt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return St(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return xt(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){cn(this._parent)&<.arrayParentException()},Object(i.__decorate)([Object(o.Input)("formArrayName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formArrayName]",providers:[an]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(He)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Me,Array,Array])],t)}(Me);function cn(e){return!(e instanceof rn||e instanceof nn||e instanceof sn)}
|
|
129
129
|
/**
|
|
130
130
|
* @license
|
|
131
131
|
* Copyright Google Inc. All Rights Reserved.
|
|
132
132
|
*
|
|
133
133
|
* Use of this source code is governed by an MIT-style license that can be
|
|
134
134
|
* found in the LICENSE file at https://angular.io/license
|
|
135
|
-
*/var
|
|
135
|
+
*/var ln={provide:Ne,useExisting:Object(o.forwardRef)((function(){return dn}))},dn=function(e){function t(t,n,i,r,a){var s=e.call(this)||this;return s._ngModelWarningConfig=a,s._added=!1,s.update=new o.EventEmitter,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=i||[],s.valueAccessor=Et(s,r),s}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){lt.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),wt(e,this.viewModel)&&(Tt("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return vt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return St(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return xt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof rn)&&this._parent instanceof Ut?lt.ngModelGroupException():this._parent instanceof rn||this._parent instanceof nn||this._parent instanceof sn||lt.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t._ngModelWarningSentOnce=!1,Object(i.__decorate)([Object(o.Input)("formControlName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),Object(i.__decorate)([Object(o.Input)("disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),Object(i.__decorate)([Object(o.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(o.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=n=Object(i.__decorate)([Object(o.Directive)({selector:"[formControlName]",providers:[ln]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(He)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Self)()),Object(i.__param)(3,Object(o.Inject)(ke)),Object(i.__param)(4,Object(o.Optional)()),Object(i.__param)(4,Object(o.Inject)(Jt)),Object(i.__metadata)("design:paramtypes",[Me,Array,Array,Array,Object])],t)}(Ne),un={provide:He,useExisting:Object(o.forwardRef)((function(){return hn})),multi:!0},pn={provide:He,useExisting:Object(o.forwardRef)((function(){return fn})),multi:!0},hn=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?Ue.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"required",null),e=Object(i.__decorate)([Object(o.Directive)({selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[un],host:{"[attr.required]":'required ? "" : null'}})],e)}(),fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.validate=function(e){return this.required?Ue.requiredTrue(e):null},t=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[pn],host:{"[attr.required]":'required ? "" : null'}})],t)}(hn),bn={provide:He,useExisting:Object(o.forwardRef)((function(){return mn})),multi:!0},mn=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?Ue.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"email",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[bn]})],e)}(),gn={provide:He,useExisting:Object(o.forwardRef)((function(){return vn})),multi:!0},vn=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Ue.minLength(parseInt(this.minlength,10))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"minlength",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[gn],host:{"[attr.minlength]":"minlength ? minlength : null"}})],e)}(),yn={provide:He,useExisting:Object(o.forwardRef)((function(){return _n})),multi:!0},_n=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Ue.maxLength(parseInt(this.maxlength,10))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"maxlength",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[yn],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}})],e)}(),On={provide:He,useExisting:Object(o.forwardRef)((function(){return jn})),multi:!0},jn=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Ue.pattern(this.pattern)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"pattern",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[On],host:{"[attr.pattern]":"pattern ? pattern : null"}})],e)}(),Cn=[Yt,ht,gt,Pe,Je,it,Ee,pt,mt,tt,Ve,ze,hn,vn,_n,jn,fn,mn],Sn=[Xt,Zt,Lt,Gt],xn=[en,nn,dn,rn,sn],wn=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:Cn,exports:Cn})],e)}();var kn=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),i=null,o=null,r=void 0;return null!=t&&(!
|
|
136
136
|
/**
|
|
137
137
|
* @license
|
|
138
138
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -140,11 +140,11 @@ function vt(e,t){return Object(i.__spread)(t.path,[e])}function yt(e,t){e||Ct(t,
|
|
|
140
140
|
* Use of this source code is governed by an MIT-style license that can be
|
|
141
141
|
* found in the LICENSE file at https://angular.io/license
|
|
142
142
|
*/
|
|
143
|
-
function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validator?t.validator:null,o=null!=t.asyncValidator?t.asyncValidator:null):(i=null!=t.validators?t.validators:null,o=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0)),new Bt(n,{asyncValidators:o,updateOn:r,validators:i})},e.prototype.control=function(e,t,n){return new
|
|
143
|
+
function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validator?t.validator:null,o=null!=t.asyncValidator?t.asyncValidator:null):(i=null!=t.validators?t.validators:null,o=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0)),new Bt(n,{asyncValidators:o,updateOn:r,validators:i})},e.prototype.control=function(e,t,n){return new Nt(e,t,n)},e.prototype.array=function(e,t,n){var i=this,o=e.map((function(e){return i._createControl(e)}));return new Rt(o,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach((function(i){n[i]=t._createControl(e[i])})),n},e.prototype._createControl=function(e){if(e instanceof Nt||e instanceof Bt||e instanceof Rt)return e;if(Array.isArray(e)){var t=e[0],n=e.length>1?e[1]:null,i=e.length>2?e[2]:null;return this.control(t,n,i)}return this.control(e)},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),In=(new o.Version("8.2.14"),function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Kt,useValue:e.warnOnDeprecatedNgFormSelector}]}},e=t=Object(i.__decorate)([Object(o.NgModule)({declarations:Sn,providers:[et],exports:[wn,Sn]})],e)}());
|
|
144
144
|
/**
|
|
145
145
|
* @license
|
|
146
146
|
* Copyright Google Inc. All Rights Reserved.
|
|
147
147
|
*
|
|
148
148
|
* Use of this source code is governed by an MIT-style license that can be
|
|
149
149
|
* found in the LICENSE file at https://angular.io/license
|
|
150
|
-
*/!function(){function e(){}var t;t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Jt,useValue:e.warnOnNgModelWithFormControl}]}},e=t=Object(i.__decorate)([Object(o.NgModule)({declarations:[wn],providers:[kn,et],exports:[xn,wn]})],e)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"d",(function(){return j}));var i=function(){return"undefined"!=typeof window},o={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},r={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},a={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},s={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},c=function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},u=i()&&window.navigator?window.navigator.userAgent:null,l=u?function(e){var t=null,n=[];for(var i in a)if(a.hasOwnProperty(i)&&(n=e.match(a[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t}(u):null,d=u?function(e){var t,n=[];for(var i in o)if(o.hasOwnProperty(i)){if(!(n=e.match(o[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;var a={};return a.device=i,a.browser=c(e,s,"default"),a.name=c(i,r),a[a.name]=!0,a.majorVersion=n[2],a.minorVersion=n[3]?n[3].replace("_","."):".0",t=a.minorVersion.replace(".","").substr(0,2),a.flatVersion=a.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),a.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,a.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||a.cordova,a}return null}(u):null,p=i()&&"ontouchstart"in window,h=l&&!l.chrome&&window.MSPointerEvent,f=l&&!l.chrome&&window.PointerEvent,b=d&&(p||h||f),m=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function g(e){var t=[];return e.replace(m,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),t}var v={};function y(e){if(v[e])return v[e];var t=g(e);return v[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},v[e]}v[void 0]=function(e){return e};var _={undefined:function(e){return e}},O=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function j(e){if(_[e])return _[e];var t=g(e);return _[e]=function(e,n,i){for(var o=e,r=t.length-1,a=0;a<r&&o;a++)o=o[t[a]]=o[t[a]]||O(t[a+1],i);o[t[r]]=n},_[e]}},function(e,t,n){"use strict";n.r(t),n.d(t,"validatePackage",(function(){return u}));var i,o,r=["DhrPzK8=","CgfYC2u=","u2vLia==","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","q2X1D1y=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","zg9JC1vYBa==","zxHWAxj5rgf0zq==","rMrNr2W=","z3jVDxa=","wwPKqvC=","Dg9mB2nHBgvtDhjPBMC=","BMfTzq==","Cwzus0e=","tM8GBgLJzw5ZzsbMB3vUzc4k","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","veTjqvO=","swXxDwm=","D09PC2e=","re5rCfy=","AgfZ","DhLWzq==","D1vfwvu=","sKPkD2e=","A0XWz3i=","DMvYC2LVBG==","y2vzBKi=","C2v0","BgvUz3rO","Eu5Yt2y=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zwfwqLi=","z3jVDxbfBMq=","ChjVzhvJDhm=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","BMnyuLm=","BK1VugS=","zNvUy3rPB24=","s1LMuNe=","zgf0yq==","yK9pqNy=","BfbuEg0=","DgLTzxn0yw1W","D2fYBG==","r1zxqLq=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","B2jQzwn0","uNHkrKi=","CgfJA2fNzu5HBwu=","y29Kzq==","C3z3CMm=","D29NvNG=","uhjVz3jLC3mG","BgLJzw5ZAw5Nrg9JC1vYBa==","v0nkq0q=","ChvIBgLZAerHDgu=","ChjVzhvJDenVzgvZ","z2v0","zMLUza==","wvLpyMG=","A3fbB0C=","ChjVzhvJDe5HBwu="];i=r,o=334,function(e){for(;--e;)i.push(i.shift())}(++o);var a=function(e,t){var n=r[e-=0];if(void 0===a.QMJAKQ){a.PnYrIu=function(e){for(var t=function(e){for(var t,n,i=String(e).replace(/=+$/,""),o="",r=0,a=0;n=i.charAt(a++);~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)},a.TLHuwf={},a.QMJAKQ=!0}var i=a.TLHuwf[e];return void 0===i?(n=a.PnYrIu(n),a.TLHuwf[e]=n):n=i,n},s={data:' {"timestamp":1611322422,"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":"GZYuP8GbCQNqsMpEiXy35YzR7T8="} '},c=new Map;function u(e){if(c[a("0x3a")](e[a("0x32")])){if(a("0x11")==a("0x11"))return c[a("0x21")](e[a("0x32")])}var t,n=e[a("0x1")]?" v"+e[a("0x1")]:"",i=e[a("0x32")]+n,o=JSON[a("0x27")](s[a("0xf")]),r=!o[a("0x12")],u=function(e,t){var n=e[a("0x9")];if(!n||!n[a("0x4")]){if(a("0x1b")==a("0x1b"))return null}var i=new Set(t);return n[a("0x22")]((function(e){if(a("0x2a")!==a("0x1a"))return i[a("0x3a")](e[a("0x19")])}))}(o,e[a("0x20")]);if(r)if(a("0x2")!==a("0xe"))t={type:0,packageName:i,docsUrl:e[a("0x1d")]};else{}else if(a("0x10")===a("0x23")){}else if(u){if(a("0x2e")===a("0xb")){}else if(u[a("0x29")]<e[a("0x1f")])if(a("0x24")!=a("0x24")){}else t={type:2,packageName:i,publishDate:d(e[a("0x1f")]),expiryDate:d(u[a("0x29")]),docsUrl:e[a("0x1d")]}}else if(a("0x39")===a("0x5")){}else t={type:1,packageName:i,docsUrl:e[a("0x1d")]};if(t&&typeof console===a("0x16"))if(a("0x7")===a("0x3d")){}else{var p=a("0x1c")+e[a("0x25")],h=typeof console[a("0x2f")]===a("0xd");if(h)if(a("0x3c")!==a("0x37"))console[a("0x2f")](p);else{}else if(a("0x33")===a("0x26")){}else console[a("0x13")](p);if(console[a("0x13")](l(t)),h)if(a("0x30")!==a("0x1e"))console[a("0x8")]();else{}}var f=!t;return c[a("0x3")](e[a("0x32")],f),f}function l(e){var t=a("0x2b")+e[a("0x18")]+"\n";if(2===e[a("0x3b")])if(a("0x0")===a("0x36")){}else t+=a("0x6")+e[a("0x2d")][a("0x31")]()+a("0xa")+e[a("0x1f")][a("0x31")]()+".\n";else if(0===e[a("0x3b")])if(a("0x14")!==a("0x38"))t+=a("0x34");else{}else if(1===e[a("0x3b")])if(a("0x17")===a("0xc")){}else t+=a("0x15");return t+=a("0x28")+e[a("0x2c")]+a("0x35")}function d(e){return new Date(1e3*e)}},function(e,t){e.exports=r},function(e,t,n){"use strict";n.d(t,"c",(function(){return se})),n.d(t,"a",(function(){return re})),n.d(t,"b",(function(){return ue}));var i=n(0),o=n(1),r="bottom",a="center",s="middle",c="left",u="right",l="top",d=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,c=e.margin;void 0===c&&(c={});var l=n.horizontal,d=n.vertical,p=o.horizontal,h=o.vertical,f=c.horizontal||0,b=c.vertical||0,m=t.top,g=t.left;return d===r&&(m+=t.height),d!==a&&d!==s||(m+=Math.round(t.height/2)),h===r&&(m-=i.height,b*=-1),h!==a&&h!==s||(m-=Math.round(i.height/2),b*=-1),l===u&&(g+=t.width),l!==a&&l!==s||(g+=Math.round(t.width/2)),p===u&&(g-=i.width,f*=-1),p!==a&&p!==s||(g-=Math.round(i.width/2),f*=-1),{top:m+b,left:g+f}};function p(e){return e.ownerDocument||e.document||e}var h=function(e){return p(e).defaultView},f=function(e){return p(e).documentElement},b=0;function m(){if(!b&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),b=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return b}function g(e){var t=h(e),n=f(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=m()),i}var v=function(e){if(!e.getBoundingClientRect){var t=g(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}},y=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||f(e)},_=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}},O=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function j(e){var t=f(e),n=h(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var C=function(e){return e===(e.ownerDocument||{}).body?j(e):{x:e.scrollLeft,y:e.scrollTop}};var S=function(e,t){var n=h(e),i=n.getComputedStyle(e),o=_(e),r=t||y(e),a=e.ownerDocument,s=r!==a.body&&r!==a.documentElement,c={top:0,left:0};if("fixed"!==i.position&&s){var u=n.getComputedStyle(r);(c=_(r)).top+=parseInt(u.borderTopWidth,10),c.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-c.top,left:o.left-c.left,height:o.height,width:o.width}},w=function(e,t){return e?C(e):function(e){var t=y(e);return t?C(t):{x:0,y:0}}(t)};var x="fit",k="flip",E=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},I=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,r=e.anchorAlignPoint,u=e.elementAlignPoint,d=0,p=2*e.margin;if(u!==r&&!(u===a||u===s)&&!(r===a||r===s)){var h=r===l||r===c;t<0&&h?t+(d=n+i+p)+n>o&&(d=0):t>=0&&!h&&(t+n>o&&(d+=-(i+n+p)),t+d<0&&(d=0))}return d},D=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var c=i.top,u=i.left,l=i.height,d=i.width,p=a.height,h=a.width,f=s.horizontal||0,b=s.vertical||0,m=0,g=0,v=r.horizontal===k,y=r.vertical===k;r.vertical===x&&(g+=E(c,l,p)),r.horizontal===x&&(m+=E(u,d,h)),y&&(g+=I({margin:b,offset:c,size:l,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),v&&(m+=I({margin:f,offset:u,size:d,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var _=v&&0!==m,O=y&&0!==g;return{flipped:_||O,flip:{horizontal:_,vertical:O},offset:{left:m,top:g}}},P=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},T=function(e,t){for(var n,i,o=O(e),r=t;r&&(n=P(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i};var F=n(2),M=n(5),N=n(3),A=n(10),B=n(9),R=n(6),V=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},z=function(){return"undefined"!=typeof window},L=/auto|scroll/,H=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var K,G,U,W=(K=function(){if(!Object(F.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},U=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U||(G=K.apply(void 0,e),U=!0),G}),Z=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},$=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],q=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.align=function(e){return d(e)},e.prototype.boundingOffset=function(e){return v(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return $.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return z()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?_(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,r=i.top,a=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var s=_(n);return n.style.left=o,n.style.top=r,n.offsetHeight,n.style.transition=a,s},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?function(e,t,n){void 0===n&&(n=1);var i=t?y(t):null,o=S(e,i),r=o.top,a=o.left,s=o.height,c=o.width,u=w(i,e),l=u.x,d=u.y,p=e.ownerDocument,h=i===p.body||i===p.documentElement?1:n;return{top:r+d*h,left:a+l*h,height:s,width:c}}(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return D(e)},e.prototype.scrollPosition=function(e){return j(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(F.isDocumentAvailable)()||!z())return t;for(var n=e.parentElement;n;)(L.test(H(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?_(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||!W())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 g(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(F.isDocumentAvailable)()||!z())return null;var n=T(e,t);if(!n)return null;var i=[e].concat(O(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}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(F.isDocumentAvailable)()&&z()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),X=new o.InjectionToken("Popup Document Scale"),Y=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,s=e.positionMode,c=this.scale||1,u="fixed"===s||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,c):this.relativeRect(t,n,a,c),l=Z(this._dom.offset(n),c);return this._dom.align({anchorAlign:i,anchorRect:u,elementAlign:o,elementRect:l,margin:r})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),r=V(this._dom.offset(e),n),a=2*i,s=this._dom.stackingElementScroll(t);1!==i&&s&&(s.x/=a,s.y/=a);var c=this._dom.stackingElementOffset(t);return 1!==i&&c&&(c.left/=a,c.top/=a),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(Z(r,i),c),s),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=V(this._dom.position(e,t,i),n);return Z(o,i)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(X)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[q,Number])],e)}(),J=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,s=e.margin,c=this._dom,u=this.scale||1,l=c.offsetAtPoint(i,n),d=Z(l,u),p=Z(c.offset(t),u),h=V(p,n),f=e.viewPort||c.windowViewPort(i);f.width=f.width/u,f.height=f.height/u;var b=c.restrictToView({anchorAlign:o,anchorRect:h,collisions:a,elementAlign:r,elementRect:d,margin:s,viewPort:f}),m=c.addOffset(n,b.offset);return{flip:b.flip,flipped:b.flipped,offset:m}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(X)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[q,Number])],e)}(),Q=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(F.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(M.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(N.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[q,o.NgZone])],e)}(),ee=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(F.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 Object(M.fromEvent)(e,"scroll").pipe(Object(N.auditTime)(1e3/60))}));t.subscription=M.merge.apply(void 0,o).subscribe((function(o){var r=o.target,a=i.filter((function(e){return e===r})).length>0,s=r===document,c=r===window;(a||s||c)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom)&&(!(1<n.top-i.bottom)&&(!(1<n.left-i.right)&&!(1<i.left-n.right)))},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[q,o.NgZone])],e)}(),te={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)"}}}},ne=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=te[i];if(r){var a=r(this.getDirection(n,t));this.playStates(e,a,t)}else if(Object(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,r=this.animationBuilder.build([Object(A.style)(t.start),Object(A.animate)(o+"ms ease-in",Object(A.style)(t.end))]),a=this.player=r.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=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[A.AnimationBuilder])],e)}(),ie={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1608131941,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"},oe={left:-1e4,top:0},re=function(){function e(e,t,n,i,r,a,s,c,u){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=a,this.animationService=s,this._renderer=c,this._zone=u,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=oe,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,Object(B.validatePackage)(ie),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=oe,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.reposition(),this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(M.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(F.isDocumentAvailable)()){var t,n,i,o,r,a,s=this.position(),c=s.flip,u=s.offset;(!this.currentOffset||(t=this.currentOffset,n=u,i=t.left,o=t.top,r=n.left,a=n.top,Math.abs(i-r)>=1||Math.abs(o-a)>=1))&&(this.currentOffset=u,Object(F.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:u,flip:c})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,c),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(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()},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)(F.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",F.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendo-popup",providers:[Y,ne,q,J,Q,ee],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,Y,q,J,Q,ee,ne,o.Renderer2,o.NgZone])],e)}(),ae=new o.InjectionToken("Popup Container"),se=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 a=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=a)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:a,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(re,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=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(3,Object(o.Inject)(ae)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}(),ce=[re],ue=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ce],entryComponents:[ce],exports:[ce],imports:[R.CommonModule,F.ResizeSensorModule],providers:[se]})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=function(){function e(){this.changes=new i.Subject,this.pageChange=new i.Subject,this.pageSizeChange=new i.Subject}return Object.defineProperty(e.prototype,"currentPage",{get:function(){return this.skip/this.pageSize},enumerable:!0,configurable:!0}),e.prototype.notifyChanges=function(e){this.total=e.total,this.pageSize=e.pageSize,this.skip=e.skip,this.changes.next(e)},e.prototype.changePage=function(e){this.pageChange.next({skip:e*this.pageSize,take:this.pageSize})},e.prototype.changePageSize=function(e){this.pageSizeChange.next(e)},e.prototype.nextPage=function(){var e=this.currentPage+1;e*this.pageSize<=this.total&&this.changePage(e)},e.prototype.prevPage=function(){var e=this.currentPage-1;e*this.pageSize>=0&&this.changePage(e)},e}();t.PagerContextService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){this.localization=e,this.pagerContext=t,this.cd=n,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize}return Object.defineProperty(e.prototype,"currentPage",{get:function(){return Math.floor((this.skip||0)/this.pageSize)+1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalPages",{get:function(){return Math.ceil((this.total||0)/this.pageSize)},enumerable:!0,configurable:!0}),e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.changePage=function(e){return this.pagerContext.changePage(e),!1},e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe((function(){return e.cd.markForCheck()})))},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e}();t.PagerElementComponent=i},function(e,t,n){"use strict";n.r(t),n.d(t,"CheckBoxModule",(function(){return Mo})),n.d(t,"ColorInputComponent",(function(){return Eo})),n.d(t,"FocusOnDomReadyDirective",(function(){return Io})),n.d(t,"ColorPaletteService",(function(){return Co})),n.d(t,"MaskingService",(function(){return Pi})),n.d(t,"NumericTextBoxMessages",(function(){return _i})),n.d(t,"RadioButtonModule",(function(){return Ao})),n.d(t,"RangeSliderCustomMessagesComponent",(function(){return Ki})),n.d(t,"RangeSliderMessages",(function(){return Li})),n.d(t,"SHARED_DIRECTIVES",(function(){return ro})),n.d(t,"SliderCustomMessagesComponent",(function(){return Vi})),n.d(t,"SliderMessages",(function(){return Bi})),n.d(t,"SliderBase",(function(){return ei})),n.d(t,"SlidersCommonModule",(function(){return Ai})),n.d(t,"SwitchCustomMessagesComponent",(function(){return Zi})),n.d(t,"Messages",(function(){return Ui})),n.d(t,"TextFieldsBase",(function(){return co})),n.d(t,"TextBoxCustomMessagesComponent",(function(){return no})),n.d(t,"LocalizedTextBoxMessagesDirective",(function(){return io})),n.d(t,"TextBoxMessages",(function(){return to})),n.d(t,"SliderComponent",(function(){return ti})),n.d(t,"RangeSliderComponent",(function(){return ii})),n.d(t,"LabelTemplateDirective",(function(){return Qn})),n.d(t,"SwitchComponent",(function(){return oi})),n.d(t,"TextBoxContainerComponent",(function(){return ci})),n.d(t,"TextBoxDirective",(function(){return ui})),n.d(t,"TextAreaDirective",(function(){return ri})),n.d(t,"NumericTextBoxComponent",(function(){return yi})),n.d(t,"NumericTextBoxCustomMessagesComponent",(function(){return Oi})),n.d(t,"MaskedTextBoxComponent",(function(){return Fi})),n.d(t,"InputsModule",(function(){return Ko})),n.d(t,"SliderTicksComponent",(function(){return Ni})),n.d(t,"SliderModule",(function(){return zi})),n.d(t,"RangeSliderModule",(function(){return Gi})),n.d(t,"SwitchModule",(function(){return $i})),n.d(t,"NumericTextBoxModule",(function(){return Xi})),n.d(t,"MaskedTextBoxModule",(function(){return Yi})),n.d(t,"TextBoxModule",(function(){return so})),n.d(t,"TextAreaModule",(function(){return ho})),n.d(t,"ColorPickerComponent",(function(){return jo})),n.d(t,"ColorPaletteComponent",(function(){return wo})),n.d(t,"ColorGradientComponent",(function(){return ko})),n.d(t,"ColorPickerModule",(function(){return To})),n.d(t,"ActiveColorClickEvent",(function(){return bo})),n.d(t,"CheckBoxDirective",(function(){return Fo})),n.d(t,"RadioButtonDirective",(function(){return No})),n.d(t,"HintComponent",(function(){return zo})),n.d(t,"ErrorComponent",(function(){return Ro})),n.d(t,"FormFieldComponent",(function(){return Lo})),n.d(t,"FormFieldModule",(function(){return Ho})),n.d(t,"TextBoxComponent",(function(){return eo})),n.d(t,"TextBoxPrefixTemplateDirective",(function(){return Qi})),n.d(t,"TextBoxSuffixTemplateDirective",(function(){return Ji})),n.d(t,"TextAreaComponent",(function(){return lo})),n.d(t,"TextAreaSuffixComponent",(function(){return po})),n.d(t,"InputSeparatorComponent",(function(){return oo})),n.d(t,"SharedModule",(function(){return ao})),n.d(t,"LocalizedNumericTextBoxMessagesDirective",(function(){return qi})),n.d(t,"LocalizedSliderMessagesDirective",(function(){return Ri})),n.d(t,"LocalizedRangeSliderMessagesDirective",(function(){return Hi})),n.d(t,"LocalizedSwitchMessagesDirective",(function(){return Wi}));var i=n(0),o=n(1),r=n(7),a=n(5),s=n(3),c=n(4),u=n(2),l=n(9),d=n(8),p={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function h(e){return"string"==typeof e}var f=/\{(\d+)}?\}/g,b=function(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n};b.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=m(e),i=this.message.replace(f,(function(e,t){return n[parseInt(t,10)]}));return this.name+": "+i},b.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var m=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},g=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new b({name:n,message:e[n]}),t}),{})}({NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."});var v=p;function y(e){return h(e)?_(e):e}function _(e){if(v[e])return v[e];if(v.supplemental.likelySubtags){var t=e.split("-"),n=t[0],i=t.slice(1),o=function(e,t){for(var n=v.supplemental.likelySubtags,i=0;i<t.length;i++){var o=n[e+"-"+t[i]];if(o)return o}if(n[e])return n[e]}(n,i),r=o?function(e,t){var n=e.split("-"),i=n[0],o=n[1],r=n[2];return v[e]||-1!==t.indexOf(r)&&v[i+"-"+r]||-1!==t.indexOf(o)&&v[i+"-"+o]||v[i]}(o,i):null;if(r)return r}throw g.NoLocale.error(e)}var O=/([#,0.]+)/g,j=/¤/g;function C(e){return O.lastIndex=0,e.replace(j,"$").replace(O,"n").split(";")}function S(e){return O.lastIndex=0,O.exec(e.split(";")[0])[0].split(".")[0].split(",").slice(1).map((function(e){return e.length})).reverse()}function w(e,t){for(var n in t)n.startsWith("unitPattern")&&(e[n]=t[n].replace("{0}","n").replace("{1}","$"))}function x(e,t){var n=v[e],i=n.numbers=n.numbers||{};for(var o in i.symbols=i.symbols||{},t)if("symbols-numberSystem-latn"===o)Object.assign(i.symbols,t[o]);else if(o.includes("Formats-numberSystem-latn")){var r=o.substr(0,o.indexOf("Formats-numberSystem-latn")),a=t[o].standard;i[r]={patterns:C(a)},"currency"===r?(i[r].groupSize=S((t["decimalFormats-numberSystem-latn"]||t[o]).standard),w(i[r],t[o]),i.accounting={patterns:C(t[o].accounting),groupSize:i[r].groupSize}):i[r].groupSize=S(a)}else"currencies"===o&&(i.currencies=t[o])}var k={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},E=/y+/g,I=[["dateFormats","short"]],D={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function P(e){for(var t=[],n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var o=e[n[i]];t.push(o)}return t}function T(e,t){var n={};for(var i in e){var o=n[i]={};for(var r in e[i]){var a=e[i][r];o[r]=t?a:P(a)}}return n}function F(e,t){var n=v[e].calendar;n.days=T(t.days),n.months=T(t.months),n.quarters=T(t.quarters),n.dayPeriods=T(t.dayPeriods,!0),n.eras=function(e){var t={},n=t.format={},i={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(var o in e){n[i[o]]=e[o]}return t}(t.eras)}function M(e,t){var n=v[e].calendar,i={};for(var o in t){var r=o.split("-"),a=r[0],s=r[1];void 0===s&&(s="wide");var c=i[a]||{},u=t[o].displayName;u&&(c[s]=u,i[a]=c)}n.dateFields=i}function N(e,t){for(var n=[],i=0;i<e.length;i++){for(var o=e[i],r=t,a=0;a<o.length;a++)r=r[o[a]];n.push(r)}return n.join(" ")}function A(e,t){var n=v[e].calendar,i=n.patterns={};for(var o in i.d=N(I,t).replace(E,"y"),D)i[o]=N(D[o],t);for(var r in k)i[r]=k[r];var a=t.dateTimeFormats;n.dateTimeFormats={full:a.full,long:a.long,medium:a.medium,short:a.short,availableFormats:a.availableFormats},n.timeFormats=t.timeFormats,n.dateFormats=t.dateFormats}function B(e,t){var n=v[e].calendar=v[e].calendar||{};for(var i in t)"timeZoneNames"===i?(n.gmtFormat=t[i].gmtFormat,n.gmtZeroFormat=t[i].gmtZeroFormat):"calendars"===i&&t[i].gregorian?(A(e,t[i].gregorian),F(e,t[i].gregorian)):"fields"===i&&M(e,t.fields)}function R(e){if(e.territory)return e.territory;var t,n=e.name,i=e.identity;return t=i&&i.territory?i.territory:function(e,t){var n=v.supplemental.likelySubtags,i=e.split("-");if(n){var o=n[e]||n[i[0]];o&&(i=o.split("-"))}if(t)for(var r=i.length-1;r>=1;r--){var a=i[r];a!==t.variant&&a!==t.script||i.splice(r,1)}var s=i.length;if(s>1)return i[s-1].toUpperCase()}(n,i),e.territory=t,t}function V(e,t){for(var n in t)"numbers"===n?x(e,t[n]):"dates"===n&&B(e,t[n])}function z(e,t){var n,i=t.type,o=t.nameType,r=t.standAlone,a=t.lower,s=r?"stand-alone":"format",c=(a?"lower-":"")+o,u=y(e).calendar[i][s],l=u[c];return!l&&a&&(l=u[c]=(n=u[o],Array.isArray(n)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}(n):function(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t}(n))),l}function L(e){var t=e.split("-"),n=parseInt(t[0],10),i=parseInt(t[1],10)-1,o=parseInt(t[2],10);return new Date(n,i,o)}var H=g.NoCurrency,K=g.NoCurrencyDisplay,G=g.NoSupplementalCurrency,U=g.NoCurrencyRegion,W=g.NoValidCurrency,Z={"001":"USD",150:"EUR"};function $(e,t,n){var i=y(e).numbers.currencies;if(i){var o=i[t];if(o)return o;if(n)throw K.error()}else if(n)throw H.error()}function q(e,t){return t.length-e.length}function X(e,t){if(void 0===t&&(t=!0),Z[e])return Z[e];var n=v.supplemental.currencyData;if(n){var i=n.region[e];if(i)return function(e){for(var t,n,i,o,r=0;r<e.length;r++){var a=e[r],s=Object.keys(a)[0],c=a[s];if("XXX"!==s&&"false"!==c._tender&&c._from)if(c._to){if(!i){var u=L(c._from),l=L(c._to);(!n||n.to<l||n.from<u)&&(t=s,n={from:u,to:l})}}else{var d=L(c._from);(!o||o<d)&&(i=s,o=d)}}return i||t}(i);if(t)throw U.error(e)}else if(t)throw G.error()}function Y(e,t){var n=y(e),i=n.numbers;if(!i.localeCurrency){var o=X(R(n),t);if(!o&&t)throw W.error(n.name);i.localeCurrency=o}return i.localeCurrency}var J=["sun","mon","tue","wed","thu","fri","sat"],Q=g.NoWeekData,ee=g.NoFirstDay;function te(e){var t=y(e);if(!isNaN(t.firstDay))return t.firstDay;var n=v.supplemental.weekData;if(!n)throw Q.error();var i=n.firstDay[R(t)]||n.firstDay["001"];if(!i)throw ee.error();return t.firstDay=J.indexOf(i),t.firstDay}var ne=g.NoWeekData;function ie(e){return 1/e==-1/0}function oe(e,t){return void 0===t&&(t={}),t.currency||(t.currency=Y(e,!0)),function(e,t){var n=t.value,i=t.currency,o=t.currencyDisplay;if(void 0===o&&(o="symbol"),"code"===o)return i;var r=$(e,i,!0);return"symbol"===o?r["symbol-alt-narrow"]||r.symbol:void 0===typeof n||1!==n?r["displayName-count-other"]:r["displayName-count-one"]}(e,t)}function re(e,t,n,i,o){var r=o.numbers.symbols,a=e.indexOf(r.decimal),s=i.groupSize.slice(),c=s.shift(),u=-1!==a?a:n+1,l=e.substring(t,u),d=e,p=l.length;if(p>=c){for(var h=p,f=[];h>-1;){var b=l.substring(h-c,h);b&&f.push(b),h-=c;var m=s.shift();if(0===(c=void 0!==m?m:c)){(b=l.substring(0,h))&&f.push(b);break}}l=f.reverse().join(r.group),d=e.substring(0,t)+l+e.substring(u)}return d}function ae(e){return"currency"===e||"accounting"===e}function se(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var i=t-String(e).length,o=e;if(i>0){var r=new Array(i+1).join("0");o=n?e+r:r+e}return o}function ce(e,t){var n=e,i=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+i:i)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-i:-i))).toFixed(Math.min(i,20))}var ue=/0+$/;function le(e){var t,n=e.minimumFractionDigits,i=e.maximumFractionDigits,o=e.style,r=ae(o);return r&&(t=function(e){var t=2,n=2,i=((v.supplemental.currencyData||{}).fractions||{})[e];return i&&i._digits&&(n=t=parseInt(i._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:n}}(e.currency)),void 0===n&&(n=r?t.minimumFractionDigits:0),void 0===i&&(i="percent"===o?Math.max(n,0):r?Math.max(n,t.maximumFractionDigits):Math.max(n,3)),{minimumFractionDigits:n,maximumFractionDigits:i}}var de=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g;function pe(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style="percent",e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf("$")&&(e.style="currency",e.symbol=oe(t))}function he(e){var t=e.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){var n=e.literals=[];e.format=t.replace(de,(function(e){var t=e.charAt(0).replace("\\",""),i=e.slice(1).replace(t,"");return n.push(i),"__??__"}))}}var fe=/(\.(?:[0-9]*[1-9])?)0+$/g,be=/\.$/,me=/\,/g;function ge(e){var t,n,i,o=e.number,r=e.format,a=r.indexOf(".");if(-1!==a){var s=r.lastIndexOf("0")-a,c=r.lastIndexOf("#")-a,u=s>-1,l=c>-1,d=o.toString().split("e"),p=(d=(d=d[1]?ce(o,Math.abs(d[1])):d[0]).split(".")[1]||"").length,h=-1;u||l?u&&s>c?p=s:c>s&&(l&&p>c?p=c:u&&p<s&&(p=s),h=u?s:0):(e.format=r.substring(0,a)+r.substring(a+1),a=-1,p=0),p>-1&&(o=ce(o,p),h>-1&&(t=o,i=0===(n=h)?fe:new RegExp("(\\.[0-9]{"+n+"}[1-9]*)0+$","g"),o=t.replace(i,"$1").replace(be,"")))}else o=ce(o);e.negative&&-1*o>=0&&!e.negativeZero&&(e.negative=!1),e.number=o,e.decimalIndex=a}function ve(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function ye(e,t){var n=e.number;return-1!==e.start&&(n=function(e,t){var n=e;if(t)for(var i=t.length,o=0;o<i;o++)n=n.replace("__??__",t[o]);return n}(n=function(e,t,n){var i=e;if("currency"===t||"percent"===t){i="";for(var o=0,r=e.length;o<r;o++){var a=e.charAt(o);i+="$"===a||"%"===a?n:a}}return i}(n=function(e,t){var n=e.start,i=e.end,o=e.negative,r=e.negativeZero,a=e.format,s=e.decimalIndex,c=e.lastZeroIndex,u=e.hasNegativeFormat,l=e.hasGroup,d=e.number,p=d.toString().split("."),h=a.length,f=p[0],b=p[1]||"",m=f.length,g="";d=a.substring(0,n),!o&&!r||u||(d+="-");for(var v=n;v<h;v++){var y=a.charAt(v);if(-1===s){if(i-v<m){d+=f;break}}else if(-1!==c&&c<v&&(g=""),s-v<=m&&s-v>-1&&(d+=f,v=s),s===v){d+=(b?t.numbers.symbols.decimal:"")+b,v+=i-s+1;continue}"0"===y?(d+=y,g=y):"#"===y&&(d+=g)}return l&&(d=re(d,n+(o&&!u?1:0),Math.max(i,m+n),t.numbers.decimal,t)),i>=n&&(d+=a.substring(i+1)),d}(e,t),e.style,e.symbol),e.literals)),n}function _e(e,t,n){var i={negative:e<0,number:Math.abs(e),negativeZero:ie(e),format:t};return function(e){var t=e.number,n=e.format;if(n=n.split(";"),(e.negative||e.negativeZero)&&n[1])n=n[1],e.hasNegativeFormat=!0;else if(0===t){var i=n[2];n=i||n[0],i&&function(e){return-1===e.indexOf("#")&&-1===e.indexOf("0")}(i)&&(e.constant=i)}else n=n[0];e.format=n}(i),i.constant?i.constant:(he(i),pe(i,n),function(e){e.hasGroup=e.format.indexOf(",")>-1,e.hasGroup&&(e.format=e.format.replace(me,""))}(i),ge(i),function(e){var t=e.format,n=t.indexOf("#"),i=t.indexOf("0"),o=ve(n,i,!0),r=ve(n=t.lastIndexOf("#"),i=t.lastIndexOf("0"));o===t.length&&(r=o),e.start=o,e.end=r,e.lastZeroIndex=i}(i),ye(i,n))}var Oe=/^(n|c|p|e|a)(\d*)$/i;function je(e){return h(e)?function(e){var t=Oe.exec(e);if(t){var n={style:"decimal"},i=t[1].toLowerCase();return"c"===i?n.style="currency":"a"===i?n.style="accounting":"p"===i?n.style="percent":"e"===i&&(n.style="scientific"),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}(e):e}function Ce(e,t,n){if(void 0===t&&(t="n"),void 0===n&&(n="en"),null==e)return"";if(!isFinite(e))return String(e);var i,o=_(n),r=je(t);if(r){var a=r.style||"decimal";i=function(e,t,n){var i=n.numbers.symbols,o=t.style,r=ae(o);if("scientific"===o)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(".",i.decimal);var a,s=e;r&&(t.value=s,a=oe(n,t)),"percent"===o&&(s*=100,a=i.percentSign);var c=le(t),u=c.minimumFractionDigits,l=(s=ce(s,c.maximumFractionDigits))<0,d=ie(e),p=s.split("."),h=p[0],f=se(p[1]?p[1].replace(ue,""):"",u,!0);l&&(h=h.substring(1)),t.minimumIntegerDigits&&(h=se(h,t.minimumIntegerDigits));var b,m=!1!==t.useGrouping?re(h,0,h.length,t,n):h;if(f&&(m+=i.decimal+f),r&&"name"===t.currencyDisplay)b=function(e,t){var n=e.numbers.currency,i=1!==t?n["unitPattern-count-other"]:n["unitPattern-count-one"];return t<0&&(i=i.replace("n","-n")),i}(n,e);else{var g=t.patterns;b=l||d?g[1]||"-"+g[0]:g[0]}return"n"!==b||l?function(e,t,n){for(var i="",o=0,r=t.length;o<r;o++){var a=t.charAt(o);i+="n"===a?e:"$"===a||"%"===a?n:a}return i}(m,b,a):m}(e,Object.assign({},o.numbers[a],r),o)}else i=_e(e,t,o);return i}function Se(e){return"number"==typeof e}var we=/[eE][\-+]?[0-9]+/,xe=/\u00A0/g;function ke(e,t){if(t.length>1){var n=(t[1]||"").replace("$","").split("n");if(e.indexOf(n[0])>-1&&e.indexOf(n[1])>-1)return e.replace(n[0],"").replace(n[1],"")}}function Ee(e,t,n){var i,o=je(n)||{},r=ae(o.style),a=e,s=o.currency||Y(t,r);if(s){var c=function(e,t,n){void 0===n&&(n=!0);var i=$(e,t,n);if(i){if(!i.displays){var o=[t];for(var r in i)o.push(i[r]);o.sort(q),i.displays=o}return i.displays}}(t,s,r);if(c)for(var u=0;u<c.length;u++){var l=c[u];if(a.includes(l)){a=a.replace(l,""),r=!0;break}}if(r){var d=ke(a,t.numbers.currency.patterns)||ke(a,t.numbers.accounting.patterns);d&&(i=!0,a=d)}}return{number:a,negative:i}}var Ie=/\{(\d+)}/g;function De(e){var t=arguments;return e.replace(Ie,(function(e,n){return t[parseInt(n,10)+1]}))}var Pe=[2,1,5,3,4],Te={};Te[(-2).toString()]=8,Te[(-1).toString()]=6,Te[2..toString()]=6,Te[1..toString()]=3;var Fe={numeric:1,"2-digit":2,short:3,long:4,narrow:5},Me=/[hHmsSzZoOvVxX]/;var Ne=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],Ae={e:"c",E:"c",M:"L",Q:"q"},Be={},Re={};function Ve(e){return Be[e]||(Be[e]=new RegExp(e+"+")),Be[e]}function ze(e){for(var t=[],n=e.charAt(0),i=n,o=1;o<e.length;o++){var r=e.charAt(o);r===i?n+=r:(t.push(n),n=i=r)}return t.push(n),t}function Le(e,t){var n,i,o=e.length,r=-Number.MAX_VALUE;for(var a in t){for(var s=[],c=a.replace("v","z"),u=0,l=0;l<o;l++){var d=e[l],p=(Ve(d[0]).exec(c)||[])[0];if(p){if(c=c.replace(p,""),p.length!==d.length){var h=Math.max(Math.min(Pe[p.length]-Pe[d.length],2),-2);u-=Te[h]}}else u-=120;if(s.push(p),u<r)break}c.length&&(u-=20*ze(c).length),u>r&&(r=u,n=s,i=t[a])}i=i.replace("v","z");for(var f=0;f<o;f++){var b=n[f];if(b&&b!==e[f]){var m=n[f][0];i=i.replace(Ve(m),e[f]),Ae[m]&&(i=i.replace(Ve(Ae[m]),e[f]))}}return i}function He(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(Re[t.name]&&Re[t.name][e])return Re[t.name][e];var i,o=e.search(Me);if(o>0){var r=e.substr(0,o),a=e.substr(o);i=De(t.calendar.dateTimeFormats.short,n[a]||Le(ze(a),n),n[r]||Le(ze(r),n))}else i=Le(ze(e),n);return function(e,t,n){Re[n]||(Re[n]={}),Re[n][e]=t}(e,i,t.name),i}function Ke(e,t){var n,i=t.calendar;if(h(e))n=i.patterns[e]?i.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var o=e.skeleton;o||(e.datetime?n=De(i.dateTimeFormats[e.datetime],i.timeFormats[e.datetime],i.dateFormats[e.datetime]):e.date?n=i.dateFormats[e.date]:e.time?n=i.timeFormats[e.time]:o=function(e){for(var t=[],n=0;n<Ne.length;n++){var i=Ne[n],o=e[i.key];if(o){var r=i.specifier||i.getSpecifier(e);t.push(r.repeat(Fe[o]))}}return t.join("")}(e)),o&&(n=He(o,t))}return n||(n=i.patterns.d),n}function Ge(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function Ue(e,t,n,i,o){return z(e,{type:t,nameType:Ge(n),standAlone:i,lower:o})}function We(e){return"function"==typeof e}function Ze(e){return Boolean(e)&&We(e.getTime)&&We(e.getMonth)}var $e={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},qe=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function Xe(e,t,n,i){return t<=2?se(e+1,t):Ue(n,"months",t,i)[e]}function Ye(e,t,n,i){var o=Math.floor(e.getMonth()/3);return t<3?o+1:Ue(n,"quarters",t,i)[o]}function Je(e,t,n){var i=n.shortHours,o=n.optionalMinutes,r=n.separator,a=n.localizedName,s=n.zZeroOffset,c=e.getTimezoneOffset()/60;if(0===c&&s)return"Z";var u=c<=0?"+":"-",l=Math.abs(c).toString().split("."),d=l[1]||0,p=u+(i?l[0]:se(l[0],2));(!d&&o||(p+=(r?":":"")+se(d,2)),a)&&(p=De(0===c?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,p));return p}function Qe(e,t,n,i){var o,r,a;return t<3?(r=e.getDay(),a=te(n),o=(r<a?7-a+r:r-a)+1):o=Ue(n,"days",t,i)[e.getDay()],o}var et={};function tt(e,t,n){if(void 0===n&&(n="en"),!Ze(e))return null==e?"":e;var i=_(n);return Ke(t,i).replace(qe,(function(t){var n=t.length;return t.includes("'")||t.includes('"')?t.slice(1,n-1):et[t[0]](e,n,i)}))}function nt(e,t,n){var i=e.getTimezoneOffset(),o=new Date(e.getTime()+6e4*(t-n)),r=o.getTimezoneOffset();return new Date(o.getTime()+6e4*(r-i))}et.d=function(e,t){return se(e.getDate(),t)},et.E=function(e,t,n){return Ue(n,"days",t)[e.getDay()]},et.M=function(e,t,n){return Xe(e.getMonth(),t,n,!1)},et.L=function(e,t,n){return Xe(e.getMonth(),t,n,!0)},et.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),se(n,t)},et.h=function(e,t){return se(e.getHours()%12||12,t)},et.H=function(e,t){return se(e.getHours(),t)},et.k=function(e,t){return se(e.getHours()||24,t)},et.K=function(e,t){return se(e.getHours()%12,t)},et.m=function(e,t){return se(e.getMinutes(),t)},et.s=function(e,t){return se(e.getSeconds(),t)},et.S=function(e,t){var n=e.getMilliseconds();return 0!==n?se(String(n/1e3).split(".")[1].substr(0,t),t,!0):se("",t)},et.a=function(e,t,n){return Ue(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},et.z=function(e,t,n){return Je(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},et.Z=function(e,t,n){return Je(e,n,{separator:t>3,localizedName:4===t,zZeroOffset:5===t})},et.x=function(e,t,n){return Je(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},et.X=function(e,t,n){return Je(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},et.G=function(e,t,n){var i=e.getFullYear()>=0?1:0;return Ue(n,"eras",t)[i]},et.e=Qe,et.c=function(e,t,n){return Qe(e,t,n,!0)},et.q=function(e,t,n){return Ye(e,t,n,!0)},et.Q=Ye;var it=/([+|\-]\d{1,2})(:?)(\d{2})?/,ot=/^\/Date\((.*?)\)\/$/,rt=/[+-]\d*/,at={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},st=/\d+/,ct=/^ */,ut=/ *$/,lt=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],dt=["G","g","F","Y","y","M","m","D","d","y","T","t"];function pt(e,t,n){return!(e>=t&&e<=n)}function ht(e,t){for(var n=t.format,i=t.idx,o=0;n[i]===e;)o++,i++;return o>0&&(i-=1),t.idx=i,o}function ft(e,t){var n=e?at[e]||new RegExp("^\\d{1,"+e+"}"):st,i=t.value.substr(t.valueIdx,e).match(n);return i?(i=i[0],t.valueIdx+=i.length,parseInt(i,10)):null}function bt(e,t,n){for(var i,o,r,a=0,s=e.length,c=0,u=0;a<s;a++)o=(i=e[a]).length,r=t.value.substr(t.valueIdx,o),n&&(r=r.toLowerCase()),r===i&&o>c&&(c=o,u=a);return c?(t.valueIdx+=c,u+1):null}function mt(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function gt(e,t,n){var i=n.shortHours,o=n.noSeparator,r=n.optionalMinutes,a=n.localizedName,s=n.zLiteral;if(e.UTC=!0,s&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(a&&!bt(function(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw g.NoGMTInfo.error();return[t.replace("{0}","").toLowerCase(),n.replace("{0}","").toLowerCase()]}(t.calendar),e,!0))return!0;var c=it.exec(e.value.substr(e.valueIdx,6));if(!c)return!a;var u=c[1],l=c[3],d=parseInt(u,10),p=c[2],h=parseInt(l,10);return!!(isNaN(d)||!i&&3!==u.length||!r&&isNaN(h)||o&&p)||(isNaN(h)&&(h=null),!!(pt(d,-12,13)||h&&pt(h,0,59))||(e.valueIdx+=c[0].length,e.hoursOffset=d,void(e.minutesOffset=h)))}function vt(e,t,n){var i=ht(e,t),o=Ue(n,"months",i,"L"===e,!0),r=i<3?ft(2,t):bt(o,t,!0);if(null===r||pt(r,1,12))return!0;t.month=r-1}function yt(e,t,n){var i=ht(e,t),o=Ue(n,"days",i,"c"===e,!0),r=i<3?ft(1,t):bt(o,t,!0);if(!r&&0!==r||pt(r,1,7))return!0}var _t={};function Ot(e,t){return""+ct.exec(t)[0]+e+ut.exec(t)[0]}function jt(e,t,n){for(var i=Ke(t,n).split(""),o={format:i,idx:0,value:Ot(e,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},r=i.length,a=!1;o.idx<r;o.idx++){var s=i[o.idx];if(a)"'"===s&&(a=!1),mt(o);else if(_t[s]){if(_t[s](o,n))return null}else if("'"===s)a=!0,mt(o);else if(!mt(o))return null}return o.valueIdx<e.length?null:function(e){var t,n=e.year,i=e.month,o=e.day,r=e.hours,a=e.minutes,s=e.seconds,c=e.milliseconds,u=e.pmHour,l=e.UTC,d=e.hoursOffset,p=e.minutesOffset,h=null!==r||null!==a||s||null,f=new Date;return null===n&&null===i&&null===o&&h?(n=f.getFullYear(),i=f.getMonth(),o=f.getDate()):(null===n&&(n=f.getFullYear()),null===o&&(o=1)),u&&r<12&&(r+=12),l?(d&&(r+=-d),p&&(a+=-p*(d<0?-1:1)),t=new Date(Date.UTC(n,i,o,r,a,s,c))):function(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}(t=new Date(n,i,o,r,a,s,c),r),n<100&&t.setFullYear(n),t.getDate()!==o&&void 0===l?null:t}(o)||null}function Ct(e){if(e&&0===e.indexOf("/D")){var t=ot.exec(e);if(t){t=t[1];var n=rt.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(i=n[0],o="-"===i.substr(0,1)?-1:1,r=i.substring(1),n=o*(r=60*parseInt(r.substr(0,2),10)+parseInt(r.substring(2),10)),t=nt(t,t.getTimezoneOffset(),0),t=nt(t,0,-1*n)),t}}var i,o,r}_t.d=function(e){ht("d",e);var t=ft(2,e);if(null===t||pt(t,1,31))return!0;null===e.day&&(e.day=t)},_t.E=function(e,t){if(null===bt(Ue(t,"days",ht("E",e),!1,!0),e,!0))return!0},_t.M=function(e,t){return vt("M",e,t)},_t.L=function(e,t){return vt("L",e,t)},_t.y=function(e){var t=ht("y",e),n=ft(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var i=(new Date).getFullYear();(n=i-i%100+n)>2029&&(n-=100)}e.year=n},_t.h=function(e){ht("h",e);var t=ft(2,e);if(12===t&&(t=0),null===t||pt(t,0,11))return!0;e.hours=t},_t.K=function(e){ht("K",e);var t=ft(2,e);if(null===t||pt(t,0,11))return!0;e.hours=t},_t.a=function(e,t){var n=Ue(t,"dayPeriods",ht("a",e),!1,!0),i=bt([n.pm],e,!0);if(!i&&!bt([n.am],e,!0))return!0;e.pmHour=i},_t.H=function(e){ht("H",e);var t=ft(2,e);if(null===t||pt(t,0,23))return!0;e.hours=t},_t.k=function(e){ht("k",e);var t=ft(2,e);if(null===t||pt(t,1,24))return!0;e.hours=24===t?0:t},_t.m=function(e){ht("m",e);var t=ft(2,e);if(null===t||pt(t,0,59))return!0;e.minutes=t},_t.s=function(e){ht("s",e);var t=ft(2,e);if(null===t||pt(t,0,59))return!0;e.seconds=t},_t.S=function(e){var t=ht("S",e),n=e.value.substr(e.valueIdx,t),i=null;if(isNaN(parseInt(n,10))||(i=ce(i=parseFloat("0."+n,10),3),i*=1e3,e.valueIdx+=t),null===i||pt(i,0,999))return!0;e.milliseconds=i},_t.z=function(e,t){var n=ht("z",e)<4,i=gt(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(i)return i},_t.Z=function(e,t){var n=ht("Z",e),i=gt(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(i)return i},_t.x=function(e,t){var n=ht("x",e),i=gt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(i)return i},_t.X=function(e,t){var n=ht("X",e),i=gt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(i)return i},_t.G=function(e,t){var n=Ue(t,"eras",ht("G",e),!1,!0);if(null===bt([n[0],n[1]],e,!0))return!0},_t.e=function(e,t){return yt("e",e,t)},_t.c=function(e,t){return yt("c",e,t)};var St={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}};function wt(e,t){var n=e[e.length-1];n&&"literal"===n.type?n.pattern+=t:e.push({type:"literal",pattern:t})}function xt(e){return"h"===e||"K"===e}var kt=/\{(\d+)(:[^\}]+)?\}/g;function Et(e,t,n){if(t){if(Ze(e))return tt(e,t,n);if(Se(e))return Ce(e,t,n)}return null!=e?e:""}var It={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1611052171,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"},Dt="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",Pt={NoCurrency:"Solution: "+Dt+"#toc-no-currency",NoCurrencyDisplay:"Solution: "+Dt+"#toc-no-currency-display",NoCurrencyRegion:"Solution: "+Dt+"#toc-no-currency-region",NoDateFieldNames:"Solution: "+Dt+"#toc-no-date-filed-names",NoFirstDay:"Solution: "+Dt+"#toc-no-first-day",NoGMTInfo:"Solution: "+Dt+"#toc-no-gmt-info",NoLocale:"Solution: "+Dt+"#toc-no-locale",NoValidCurrency:"Solution: "+Dt+"#toc-no-valid-currency",NoWeekData:"Solution: "+Dt+"#toc-no-week-data"};function Tt(e){var t=e.message,n=Pt[Object.keys(Pt).filter((function(e){return 0===t.indexOf(e)}))[0]];return n?t+" "+n:t}function Ft(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return e.apply(null,t)}catch(e){throw e.message=Tt(e),e}}}var Mt=Ft(z),Nt=Ft((function(e,t){void 0===t&&(t="en");var n=_(t).calendar.dateFields;if(!n)throw g.NoDateFieldNames.error();var i=n[e.type]||{};return i[e.nameType]||i.wide})),At=Ft(te),Bt=Ft((function(e,t,n){return e.replace(kt,(function(e,i,o){return Et(t[parseInt(i,10)],o?o.substring(1):"",n)}))})),Rt=Ft(tt),Vt=Ft(Ce),zt=(Ft((function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++){var i=e[n];if(i.main){var o=Object.keys(i.main)[0],r=i.main[o],a=v[o]=v[o]||{};a.name=a.name||o,a.identity=a.identity||r.identity,R(a),V(o,r)}else if(i.supplemental)if(i.supplemental.weekData)v.supplemental.weekData={firstDay:i.supplemental.weekData.firstDay,weekendStart:i.supplemental.weekData.weekendStart,weekendEnd:i.supplemental.weekData.weekendEnd};else if(i.supplemental.likelySubtags)v.supplemental.likelySubtags=Object.assign(v.supplemental.likelySubtags,i.supplemental.likelySubtags);else if(i.supplemental.currencyData){var s=v.supplemental.currencyData;s.region=Object.assign(s.region||{},i.supplemental.currencyData.region),s.fractions=Object.assign(s.fractions||{},i.supplemental.currencyData.fractions)}}})),Ft((function(e){return y(e).numbers.symbols}))),Lt=Ft((function(e,t,n){if(void 0===n&&(n="en"),!e)return null;if(Ze(e))return e;var i=String(e).trim(),o=Ct(i);if(o)return o;for(var r=_(n),a=t||function(e){for(var t=[],n=e.patterns,i=dt.length,o=0;o<i;o++)t.push(n[dt[o]]);return t.concat(lt)}(r.calendar),s=(a=Array.isArray(a)?a:[a]).length,c=0;c<s;c++)if(o=jt(i,a[c],r))return o;return o})),Ht=Ft((function(e,t,n){if(void 0===t&&(t="en"),void 0===n&&(n={}),!e&&0!==e)return null;if(Se(e))return e;var i,o=_(t),r=o.numbers.symbols,a=e.toString(),s=n||{};if(h(n)&&(he(s={format:n}),a=function(e,t){var n=t.literals,i=e;if(n)for(var o=0;o<n.length;o++)i=i.replace(n[o],"");return i}(a,s),pe(s,o)),("percent"===s.style||a.indexOf(r.percentSign)>-1)&&(a=a.replace(r.percentSign,""),i=!0),we.test(a))return a=parseFloat(a.replace(r.decimal,".")),isNaN(a)?null:a;var c=Ee(a,o,s),u=c.negative,l=c.number,d=(a=String(l).trim()).indexOf("-");if(d>0)return null;var p=d>-1;return p=void 0!==u?u:p,a=a.replace("-","").replace(xe," ").split(r.group.replace(xe," ")).join("").replace(r.decimal,"."),a=parseFloat(a),isNaN(a)?a=null:p&&(a*=-1),a&&i&&(a/=100),a})),Kt=Ft((function(e,t){void 0===t&&(t="en");for(var n=Ke(e,_(t)),i=[],o=qe.lastIndex=0,r=qe.exec(n);r;){var a=r[0];if(o<r.index&&wt(i,n.substring(o,r.index)),a.startsWith('"')||a.startsWith("'"))wt(i,a);else{var s=a[0],c=$e[s],u={type:c,pattern:a};"hour"===c&&(u.hour12=xt(a));var l=St[c];if(l){var d=Se(l.minLength)?l.minLength:l.minLength[s],p=a.length;p>=d&&(u.names={type:l.type,nameType:Ge(p),standAlone:l.standAlone===s})}i.push(u)}o=qe.lastIndex,r=qe.exec(n)}return o<n.length&&wt(i,n.substring(o)),i})),Gt=Ft(Et),Ut=Ft((function(e){var t=y(e);if(t.weekendRange)return t.weekendRange;var n=v.supplemental.weekData;if(!n)throw ne.error();var i=R(t),o=n.weekendStart[i]||n.weekendStart["001"],r=n.weekendEnd[i]||n.weekendEnd["001"];return t.weekendRange={start:J.indexOf(o),end:J.indexOf(r)},t.weekendRange})),Wt=/_/g;function Zt(e){return new qt(e)}var $t=function(){function e(){this.changes=new o.EventEmitter,Object(l.validatePackage)(It)}return e.prototype.notify=function(){this.changes.emit()},e.ngInjectableDef=Object(o["ɵɵdefineInjectable"])({factory:function(){return Zt(Object(o["ɵɵinject"])(o.LOCALE_ID))},token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(o.Injectable)({providedIn:"root",useFactory:Zt,deps:[o.LOCALE_ID]}),Object(i.__metadata)("design:paramtypes",[])],e)}(),qt=function(e){function t(t){var n=e.call(this)||this;return n.localeId=t,n}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"localeId",{get:function(){return this.locale},set:function(e){var t=e.replace(Wt,"-");t!==this.locale&&(this.locale=t,this.notify())},enumerable:!0,configurable:!0}),t.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Bt(e,t,this.localeId)},t.prototype.toString=function(e,t,n){return Gt(e,t,n||this.localeId)},t.prototype.formatDate=function(e,t,n){return Rt(e,t,n||this.localeId)},t.prototype.parseDate=function(e,t,n){return Lt(e,t,n||this.localeId)},t.prototype.parseNumber=function(e,t,n){return Ht(e,n||this.localeId,t)},t.prototype.formatNumber=function(e,t,n){return Vt(e,t,n||this.localeId)},t.prototype.dateFieldName=function(e,t){return Nt(e,t||this.localeId)},t.prototype.dateFormatNames=function(e,t){return Mt(t||this.localeId,e)},t.prototype.splitDateFormat=function(e,t){return Kt(e,t||this.localeId)},t.prototype.numberSymbols=function(e){return zt(e||this.localeId)},t.prototype.firstDay=function(e){return At(e||this.localeId)},t.prototype.weekendRange=function(e){return Ut(e||this.localeId)},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(o.LOCALE_ID)),Object(i.__metadata)("design:paramtypes",[String])],t)}($t),Xt=function(e){return!isNaN(e-parseFloat(e))},Yt=[function(){function e(e){this.intlService=e}return e.prototype.transform=function(e,t,n){return void 0===t&&(t=""),(e=this.normalize(e))?this.intlService.formatDate(e,t,n):e},e.prototype.normalize=function(e){return e&&"string"==typeof e?e=this.intlService.parseDate(e):e&&Xt(e)&&(e=new Date(parseFloat(e))),e},e=Object(i.__decorate)([Object(o.Pipe)({name:"kendoDate"}),Object(i.__metadata)("design:paramtypes",[$t])],e)}(),function(){function e(e){this.intlService=e}return e.prototype.transform=function(e,t,n){return"string"==typeof e&&(e=this.intlService.parseNumber(e)),null!=e?this.intlService.formatNumber(e,t,n):e},e=Object(i.__decorate)([Object(o.Pipe)({name:"kendoNumber"}),Object(i.__metadata)("design:paramtypes",[$t])],e)}()],Jt=(function(){function e(){}e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Yt],exports:[Yt]})],e)}(),n(6)),Qt=n(11),en=function(){};var tn={},nn={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},on={get browser(){return"undefined"==typeof window||tn?tn:tn=function(e){var t,n={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var i in n)if(n.hasOwnProperty(i)){var o=e.match(n[i]);if(o){(t={})[i]=!0,t[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||o[2],10);break}}return t}(window.navigator.userAgent)}}.browser,rn=function(e){var t=Object.keys(nn);t.push("transparent");var n=new RegExp("^("+t.join("|")+")(\\W|$)","i");return rn=function(e){return n.exec(e)},n.exec(e)},an=function(e){function t(){e.call(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){return this},t.prototype.toRGB=function(){return this},t.prototype.toHex=function(){return this.toBytes().toHex()},t.prototype.toBytes=function(){return this},t.prototype.toCss=function(){return"#"+this.toHex()},t.prototype.toCssRgba=function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},t.prototype.toDisplay=function(){return on.msie&&on.version<9?this.toCss():this.toCssRgba()},t.prototype.equals=function(e){return e===this||null!==e&&this.toCssRgba()===hn(e).toCssRgba()},t.prototype.diff=function(e){if(null===e)return NaN;var t=this.toBytes(),n=e.toBytes();return Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2))},t.prototype.clone=function(){var e=this.toBytes();return e===this&&(e=new cn(e.r,e.g,e.b,e.a)),e},t}(en),sn=function(e){function t(t,n,i,o){e.call(this),this.r=t,this.g=n,this.b=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){var e,t,n=this.r,i=this.g,o=this.b,r=Math.min(n,i,o),a=Math.max(n,i,o),s=a-r,c=a;return 0===s?new ln(0,0,c,this.a):(0!==a?(t=s/a,e=n===a?(i-o)/s:i===a?2+(o-n)/s:4+(n-i)/s,(e*=60)<0&&(e+=360)):(t=0,e=-1),new ln(e,t,c,this.a))},t.prototype.toHSL=function(){var e,t,n=this.r,i=this.g,o=this.b,r=Math.max(n,i,o),a=Math.min(n,i,o),s=(r+a)/2;if(r===a)e=t=0;else{var c=r-a;switch(t=s>.5?c/(2-r-a):c/(r+a),r){case n:e=(i-o)/c+(i<o?6:0);break;case i:e=(o-n)/c+2;break;case o:e=(n-i)/c+4}}return new dn(60*e,100*t,100*s,this.a)},t.prototype.toBytes=function(){return new cn(255*this.r,255*this.g,255*this.b,this.a)},t}(an),cn=function(e){function t(t,n,i,o){e.call(this,Math.round(t),Math.round(n),Math.round(i),o)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){return new e(this.r/255,this.g/255,this.b/255,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toHex=function(){return un(this.r,2)+un(this.g,2)+un(this.b,2)},t.prototype.toBytes=function(){return this},t}(sn);function un(e,t,n){void 0===n&&(n="0");for(var i=e.toString(16);t>i.length;)i=n+i;return i}var ln=function(e){function t(t,n,i,o){e.call(this),this.h=t,this.s=n,this.v=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h,o=this.s,r=this.v;if(0===o)e=t=n=r;else{i/=60;var a=Math.floor(i),s=i-a,c=r*(1-o),u=r*(1-o*s),l=r*(1-o*(1-s));switch(a){case 0:e=r,t=l,n=c;break;case 1:e=u,t=r,n=c;break;case 2:e=c,t=r,n=l;break;case 3:e=c,t=u,n=r;break;case 4:e=l,t=c,n=r;break;default:e=r,t=c,n=u}}return new sn(e,t,n,this.a)},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(an),dn=function(e){function t(t,n,i,o){e.call(this),this.h=t,this.s=n,this.l=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h/360,o=this.s/100,r=this.l/100;if(0===o)e=t=n=r;else{var a=r<.5?r*(1+o):r+o-r*o,s=2*r-a;e=pn(s,a,i+1/3),t=pn(s,a,i),n=pn(s,a,i-1/3)}return new sn(e,t,n,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(an);function pn(e,t,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function hn(e,t){var n,i;if(null==e||"none"===e)return null;if(e instanceof an)return e;var o=e.toLowerCase();if(n=rn(o))return(o="transparent"===n[1]?new sn(1,1,1,0):hn(nn[n[1]],t)).match=[n[1]],o;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(o))?i=new cn(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(o))?i=new cn(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(o))?i=new cn(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(o))?i=new cn(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(o))?i=new sn(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(o))&&(i=new sn(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),i)i.match=n;else if(!t)throw new Error("Cannot parse color: "+o);return i}var fn=function(e){function t(n){var i=this;if(e.call(this),1===arguments.length)for(var o=t.formats,r=this.resolveColor(n),a=0;a<o.length;a++){var s=o[a].re,c=o[a].process,u=s.exec(r);if(u){var l=c(u);i.r=l[0],i.g=l[1],i.b=l[2]}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHex=function(){var e=this.padDigit,t=this.r.toString(16),n=this.g.toString(16),i=this.b.toString(16);return"#"+e(t)+e(n)+e(i)},t.prototype.resolveColor=function(e){var n=e||"black";return"#"===n.charAt(0)&&(n=n.substr(1,6)),n=(n=n.replace(/ /g,"")).toLowerCase(),n=t.namedColors[n]||n},t.prototype.normalizeByte=function(e){return e<0||isNaN(e)?0:e>255?255:e},t.prototype.padDigit=function(e){return 1===e.length?"0"+e:e},t.prototype.brightness=function(e){var t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this},t.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},t.prototype.isDark=function(){return this.percBrightness()<180},t.fromBytes=function(e,t,n,i){return new cn(e,t,n,null!=i?i:1)},t.fromRGB=function(e,t,n,i){return new sn(e,t,n,null!=i?i:1)},t.fromHSV=function(e,t,n,i){return new ln(e,t,n,null!=i?i:1)},t.fromHSL=function(e,t,n,i){return new dn(e,t,n,null!=i?i:1)},t}(en);fn.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],fn.namedColors=nn;var bn=fn,mn=function(e){return null!=e},gn=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},vn=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},yn=function(e,t,n){return!mn(e)||isNaN(e)||e<=t?t:e>=n?n:e},_n=function(e){return Math.min(e,20)},On=function(e){return(String(e).split(".")[1]||"").length},jn=function(e,t){return Math.max(On(e),On(t))},Cn=function(e,t){var n=_n(t);return parseFloat(e.toFixed(n))},Sn=function(e,t){var n=jn(e,t);return Cn(e+t,n)},wn=function(e,t){return Sn(e,-t)},xn=function(e,t){var n=On(e)+On(t);return Cn(e*t,n)},kn=function(e,t){if(0===t)return NaN;var n=jn(e,t),i=Math.pow(10,n);return i*e/(i*t)},En=function(e,t){return Math.abs(wn(e,xn(t,Math.floor(kn(e,t)))))},In=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},Dn=function(e,t,n){void 0===n&&(n=!0);var i=e-(n?2*parseFloat(t):0);return Math.floor(i)},Pn=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(wn(t,e)),o=Math.floor(kn(i,n));return Sn(o,1)},Tn=function(e){var t=e.handleWidth,n=e.trackWidth,i=e.min,o=e.max,r=e.reverse,a=e.value,s=Math.floor(t/2),c=n/Math.abs(o-i),u=mn(a)?c*(a-i):i;return r&&(u=n-u),Math.floor(u-s)},Fn=function(e,t,n){var i=t.max,o=t.min,r=t.smallStep,a=t.largeStep;void 0===n&&(n=!1);var s,c=n&&a?xn(r,a):r,u=wn(e,o),l=En(u,c);return s=wn(u,0===l?c:l),Vn(Sn(s,o),o,i)},Mn=function(e,t,n){var i=t.max,o=t.min,r=t.smallStep,a=t.largeStep;void 0===n&&(n=!1);var s=n&&a?xn(r,a):r,c=wn(e,o),u=En(c,s),l=Sn(wn(c,u),s);return Vn(Sn(l,o),o,i)},Nn=function(e){return e.id.indexOf("k-start-handle")>-1},An=function(e,t,n){return n>e?e:n<t?t:n},Bn=function(e,t,n){return n?[An(e,t,n[0]),An(e,t,n[1])]:[t,t]},Rn=function(e){return e},Vn=function(e,t,n){return Math.max(Math.min(e,n),t)},zn=function(e,t,n){var i,o,r=n.min,a=n.max,s=n.vertical,c=n.rtl,u=(i=t.getBoundingClientRect(),o=document.documentElement,{left:i.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||0),top:i.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||0)}),l=(s?e.pageY-u.top:e.pageX-u.left)*((a-r)/(s?t.clientHeight:t.clientWidth)),d=c||s?a-l:r+l,p=On(n.smallStep);return function(e,t){var n=t.smallStep,i=t.min,o=t.max,r=Vn(e,i,o);if(e!==r)return r;var a=Fn(e,t),s=Mn(e,t);return(e-i)%n==0?e:s-e<=(s-a)/2?s:a}(d=Cn(d,p+1),n)},Ln=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},Hn=function(e){return Mn(e.value,e)},Kn=function(e){return Fn(e.value,e)},Gn=function(e){return Mn(e.value,e,!0)},Un=function(e){return Fn(e.value,e,!0)},Wn=function(e){if(o.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},Zn=function(){function e(e,t,n,i){this.props=e,this.wrapper=t,this.track=n,this.renderer=i,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.trackWidth();this.track.style[e]=t+"px"},e.prototype.resizeTicks=function(e,t){var n=this,i=this.props.vertical?"height":"width";t.slice().map((function(e,t){return e.style[i]=n.tickSizes[t]+"px"})),this.props.vertical&&this.adjustPadding(e)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=this.elementSize(this.wrapper),n=Dn(t,this.elementOffset(this.track)),i=In(this.props),o=this.wrapper.parentElement;o.style[e]=n>i?t-(n-i)+"px":t+(i-n)+"px"},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?In(this.props):Dn(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,o=Pn(t,n,i),r=this.trackWidth(),a=r/wn(n,t),s=[],c=0,u=0,l=0;l<o;l++){u=+(u+=0===l||l===o-1?i/2*a:i*a).toFixed(2)-.01;var d=Math.round(u-c);s.push(d),c+=d}return c>=r&&(s[s.length-1]-=1),s},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}(),$n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,o=t.reverse,r=t.vertical?"bottom":"left",a=this.trackWidth(),s=An(n,i,this.props.value);this.handlePosition=Tn({min:i,max:n,reverse:o,value:s,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,r,this.handlePosition+"px")},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical?"height":"width",r=Math.floor(e.offsetWidth/2),a=this.handlePosition+r;i&&(a=this.trackWidth()-a),this.renderer.setStyle(t,o,a+"px")},t}(Zn),qn=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n};function Xn(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)}var Yn=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},Jn={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1616159817,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"},Qn=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoSliderLabelTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),ei=function(){function e(e,t,n,i,r,s){var c=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=r,this.hostElement=s,this.title=Rn,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new a.Subscription,this.ifEnabled=function(e,t){c.isDisabled||e.call(c,t)},Object(l.validatePackage)(Jn),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(r.d,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[u.Keys.ArrowLeft]=t?Hn:Kn,e[u.Keys.ArrowRight]=t?Kn:Hn,e[u.Keys.ArrowDown]=Kn,e[u.Keys.ArrowUp]=Hn,e[u.Keys.PageUp]=Gn,e[u.Keys.PageDown]=Un,e[u.Keys.Home]=function(e){return e.min},e[u.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.prototype.resetStyles=function(e){var t=this;e.forEach((function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"tickPlacement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"smallStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"fixedTickWidth",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider-horizontal"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider-vertical"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"verticalClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"sliderClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.ViewChild)("wrap",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"track",void 0),Object(i.__decorate)([Object(o.ViewChild)("sliderSelection",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"sliderSelection",void 0),Object(i.__decorate)([Object(o.ViewChild)("ticks",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"ticksContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)("ticks",{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"ticks",void 0),Object(i.__decorate)([Object(o.ContentChild)(Qn,{static:!1}),Object(i.__metadata)("design:type",Qn)],e.prototype,"labelTemplate",void 0),e}(),ti=function(e){function t(t,n,i,o,r,a){var s=e.call(this,t,n,i,o,r,a)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=o,s.changeDetector=r,s.hostElement=a,s.focusableId="k-"+Object(u.guid)(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.handleFocus=function(){s.focused=!0,Object(u.hasObservers)(s.onFocus)&&s.ngZone.run((function(){s.onFocus.emit()}))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(u.hasObservers)(s.onBlur)||vn(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.onBlur.emit()}))},s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!Ln(t)&&!Ln(t.parentNode)){var n=zn(e,s.track.nativeElement,s.getProps());s.changeValue(n)}},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,o=s.keyBinding[e.keyCode];if(!s.isDisabled&&o){var r=o(t);s.changeValue(An(n,i,r)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(Fn(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(Mn(s.value,s.getProps()))},s}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),t.prototype.focus=function(){Xn(this.wrapper,"focus")},t.prototype.blur=function(){Xn(this.wrapper,"blur")},t.prototype.ngOnChanges=function(e){var t=this;Object(u.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(Object(s.take)(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;Object(u.isDocumentAvailable)()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,(function(){return e.increaseValue()})),this.setValueChangeInterval(this.decreaseButton.nativeElement,(function(){return e.decreaseValue()}))),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent(!1)})))},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.focus(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(zn(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;gn(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate)}))},t.prototype.sizeComponent=function(e){if(Object(u.isDocumentAvailable)()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,o=this.draghandle.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,o,r,this.hostElement.nativeElement]);var a=this.getProps(),s=new $n(a,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(o),s.positionSelection(o,i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement;e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e}},enumerable:!0,configurable:!0}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=Object(a.fromEvent)(e,"mousedown"),o=Object(a.fromEvent)(e,"mouseup"),r=Object(a.fromEvent)(e,"mouseout"),c=i.pipe(Object(s.filter)((function(e){return 0===e.button&&!n.isDisabled})),Object(s.concatMap)((function(){return Object(a.interval)(150).pipe(Object(s.startWith)(-1),Object(s.takeUntil)(Object(a.merge)(o,r)))}))).subscribe((function(){n.focus(),t()}));n.subscriptions.add(c)}))},t.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:An(this.max,this.min,this.value),vertical:this.vertical}},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"incrementTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrementTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"showButtons",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.ViewChild)("draghandle",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandle",void 0),Object(i.__decorate)([Object(o.ViewChild)("decreaseButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"decreaseButton",void 0),Object(i.__decorate)([Object(o.ViewChild)("increaseButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"increaseButton",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [id]="focusableId"\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [attr.tabindex]="disabled ? undefined : tabIndex"\n [kendoEventsOutsideAngular]="{ focus: handleFocus, blur: handleBlur, click: onWrapClick, keydown: onKeyDown }"\n >\n <a\n #decreaseButton\n *ngIf="showButtons"\n class="k-button k-button-decrease"\n [title]="decrementMessage"\n [attr.aria-label]="decrementMessage"\n >\n <span class="k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical"\n >\n </span>\n </a>\n <a\n *ngIf="showButtons"\n #increaseButton\n class="k-button k-button-increase"\n [title]="incrementMessage"\n [attr.aria-label]="incrementMessage"\n >\n <span class="k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical"\n >\n </span>\n </a>\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(ei),ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,o=t.reverse,r=t.vertical?"bottom":"left",a=this.trackWidth(),s=Nn(e)?Bn(n,i,this.props.value)[0]:Bn(n,i,this.props.value)[1];Nn(e)?(this.startHandlePosition=Tn({min:i,max:n,reverse:o,value:s,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,r,this.startHandlePosition+"px")):(this.endHandlePosition=Tn({min:i,max:n,reverse:o,value:s,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,r,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical,r=o?"height":"width",a=o?"bottom":i?"right":"left",s=Math.floor(e.offsetWidth/2),c=Math.abs(this.endHandlePosition-this.startHandlePosition),u=o?e.style.bottom:e.style.left;this.renderer.setStyle(t,r,c+"px"),this.renderer.setStyle(t,a,i?this.trackWidth()-parseFloat(u)-s+"px":parseFloat(u)+s+"px")},t}(Zn),ii=function(e){function t(t,n,o,r,a,s){var c=e.call(this,t,n,o,r,a,s)||this;return c.localization=t,c.injector=n,c.renderer=o,c.ngZone=r,c.changeDetector=a,c.hostElement=s,c.startHandleId="k-start-handle-"+Object(u.guid)(),c.endHandleId="k-end-handle-"+Object(u.guid)(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=zn(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,o=i[0],r=i[1];t<=o?(n=[t,r],c.activeHandle="startHandle"):o<t&&t<r?t<(o+r)/2?(n=[t,r],c.activeHandle="startHandle"):(n=[o,t],c.activeHandle="endHandle"):t>=r&&(n=[o,t],c.activeHandle="endHandle"),Xn("startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,o=t.min,r=c.keyBinding[e.keyCode];if(!c.isDisabled&&r){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var a=Nn(e.target),s=r(Object(i.__assign)({},t,{value:a?c.value[0]:c.value[1]}));a?s>c.value[1]&&(c.value[1]=s):s<c.value[0]&&(c.value[0]=s);var u=An(n,o,s),l=a?[u,c.value[1]]:[c.value[0],u];c.changeValue(l),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(Object(u.hasObservers)(c.onBlur)||vn(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return Object(i.__extends)(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,Xn(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,Xn("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;Object(u.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&Wn(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(Object(s.take)(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;Object(u.isDocumentAvailable)()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:n};var o=e.pageX<this.lastHandlePosition.x,r=e.pageX>this.lastHandlePosition.x,a=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([zn(e,t.track.nativeElement,t.getProps()),t.value[1]])},c=function(){return t.changeValue([t.value[0],zn(e,t.track.nativeElement,t.getProps())])},u=function(){return t.changeValue([zn(e,t.track.nativeElement,t.getProps()),zn(e,t.track.nativeElement,t.getProps())])},l=Nn(this.draggedHandle),d=this.vertical,p=!d,h=d&&a||(this.reverse?p&&r:p&&o);this.value[0]===this.value[1]?h?l?s():u():l?u():c():l?s():c()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){Wn(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t,n,i=this;this.value&&(t=this.value,n=e,gn(t[0],n[0])&&gn(t[1],n[1]))||this.ngZone.run((function(){i.value=e,i.ngChange(e),i.value&&i.valueChange.emit(e),i.sizeComponent()}))},t.prototype.sizeComponent=function(){if(Object(u.isDocumentAvailable)()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,o=this.draghandleEnd.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,o,r,this.hostElement.nativeElement]);var a=this.getProps(),s=new ni(a,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(o),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var t=this.sliderSelection.nativeElement,n=e.target;e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value}},enumerable:!0,configurable:!0}),t.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:Bn(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===u.Keys.Tab})))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],t.prototype,"value",void 0),Object(i.__decorate)([Object(o.ViewChild)("draghandleStart",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandleStart",void 0),Object(i.__decorate)([Object(o.ViewChild)("draghandleEnd",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoRangeSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(ei),oi=function(){function e(e,t,n,i,r,a){var s=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=r,this.ngZone=a,this.focusableId="k-"+Object(u.guid)(),this.checked=!1,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){s.focused=!0,Object(u.hasObservers)(s.onFocus)&&s.ngZone.run((function(){s.onFocus.emit()}))},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(u.hasObservers)(s.onBlur)||vn(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.onBlur.emit()}))},Object(l.validatePackage)(Jn),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ieClass",{get:function(){return d.a&&d.a.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"switchOnClass",{get:function(){return this.checked},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"switchOffClass",{get:function(){return!this.checked},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(Object(s.skip)(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(r.d,null)},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.focus=function(){this.wrapper&&this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.wrapper&&this.wrapper.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==u.Keys.Space&&t!==u.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run((function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e}},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"onLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"offLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"checked",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-ie"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ieClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-switch"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostClasses",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-switch-on"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"switchOnClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-switch-off"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"switchOffClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoSwitch",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #wrapper\n class="k-switch-container"\n [id]="focusableId"\n role="switch"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ click: clickHandler, keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n <span class="k-switch-handle"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,c.LocalizationService,o.Injector,o.ChangeDetectorRef,o.NgZone])],e)}(),ri=function(){function e(e,t,n,i,r,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=r,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new o.EventEmitter,this.autoSize=!1,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],Object(u.isDocumentAvailable)()&&e.autoSize&&(e.resizeSubscription=Object(a.fromEvent)(window,"resize").pipe(Object(s.debounceTime)(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=Object(a.fromEvent)(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(r.d,null)},e.prototype.ngOnChanges=function(e){var t=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=t.offsetHeight,this.renderer.setStyle(t,"resize","none")):(this.renderer.setStyle(t,"overflow-y","auto"),this.renderer.setStyle(t,"resize","both"),t.style.height=this.initialHeight+"px")),this.resize()},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||Object(u.hasObservers)(this.onValueChange)||Object(u.hasObservers)(this.valueChange))&&this.zone.run((function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()})),this.resize()},e.prototype.handleFocus=function(){var e=this;Object(u.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(Object(u.hasObservers)(this.onBlur)||vn(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"elementClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-autofill"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autofillClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoSize",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=t=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:r.c,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"textarea[kendoTextArea]"}),Object(i.__param)(5,Object(o.Optional)()),Object(i.__param)(5,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone,o.ChangeDetectorRef,o.Injector,Boolean])],e)}(),ai=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof a.Observable||e instanceof o.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}(),si=function(e){return"[object Function]"===Object.prototype.toString.call(e)},ci=function(){function e(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.focused=!1,this.empty=!0,this.invalid=!1,this._subscriptions=[],this.autoFillStarted=!1,this.direction=i?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textareaElementClass",{get:function(){return!!this.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;if(this.formControl||this.kendoInput){var t=new ai(this.kendoInput||this.formControl.valueAccessor,this.formControl),n=function(t){return function(){e.focused=t,e.updateState()}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}));var i=function(){return e.updateState()};if(i(),this.subscribe(t,"onValueChange",i),this.id&&t.focusableId)this.id=t.focusableId;else if(this.id)t.focusableId=this.id;else if(t.focusableId)this.id=t.focusableId;else{var r="_"+Object(u.guid)();t.focusableId=r,this.id=r}}else if(Object(o.isDevMode)())throw new Error("The TextBoxContainer requires a Kendo Input component or a forms-bound component to function properly.")},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._subscriptions=[]},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof o.EventEmitter){var i=e[t].subscribe(n);this._subscriptions.push(i)}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;si(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=si(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox-container"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostClasses",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea-wrapper"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"textareaElementClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-focused"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-invalid"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"invalidClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"floatingLabel",void 0),Object(i.__decorate)([Object(o.ContentChild)(u.KendoInput,{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChild)(ri,{static:!1}),Object(i.__metadata)("design:type",ri)],e.prototype,"textarea",void 0),Object(i.__decorate)([Object(o.ContentChild)(r.d,{static:!1}),Object(i.__metadata)("design:type",r.d)],e.prototype,"formControl",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-textbox-container",template:'\n <ng-content></ng-content>\n <label *ngIf="floatingLabel" [for]="id" class="k-label">{{ floatingLabel }}</label>\n '}),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,Boolean])],e)}(),ui=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClass=!0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),e=t=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoTextBox]",providers:[{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone])],e)}(),li=/[eE][\-+]?([0-9]+)/,di=function(e){return e>=0?Math.floor(e):Math.ceil(e)},pi=function(e){},hi=function(e){return!isNaN(e)&&null!==e};function fi(e,t){var n=t-String(e).length,i=e;if(n>0){var o=new Array(n+1).join("0");i=parseFloat(e+o)}return i}var bi;!function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(bi||(bi={}));var mi,gi=["min","max","step","decimals"],vi={decimals:null,max:null,min:null,step:1},yi=function(){function e(e,t,n,i,r,a,s){var c=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=r,this.changeDetector=a,this.hostElement=s,this.focusableId="k-"+Object(u.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.selectOnFocus=!0,this.value=null,this.valueChange=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.ArrowDirection=bi,this.arrowDirection=bi.None,this.inputValue="",this.minValidateFn=pi,this.maxValidateFn=pi,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this.ngChange=pi,this.ngTouched=pi,this.ngValidatorChange=pi,this.increasePress=function(e){c.arrowPress(bi.Up,e)},this.decreasePress=function(e){c.arrowPress(bi.Down,e)},this.releaseArrow=function(){clearTimeout(c.spinTimeout),c.arrowDirection!==bi.None&&(c.arrowDirection=bi.None,c.changeDetector.detectChanges())},this.handlePaste=function(){c.isPasted=!0},this.handleInput=function(){var e=c.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(c.pressedKey===u.Keys.NumpadDecimal&&(i=c.replaceNumpadDotValue()),c.isPasted&&(i=c.formatInputValue(c.intl.parseNumber(i))),!c.isValid(i))return e.value=c.inputValue,void c.setSelection(t-1,n-1);var o=c.intl.parseNumber(i),r=c.restrictDecimals(o);if(c.autoCorrect){var a=c.limitInputValue(r);r=a.value,t=a.selectionStart,n=a.selectionEnd}o!==r||c.hasTrailingZeros(i)||!c.focused?(c.setInputValue(r),c.setSelection(t,n)):c.inputValue=i,c.isPasted&&(e.value=c.inputValue),c.updateValue(r),c.previousSelection=null,c.isPasted=!1},this.handleDragEnter=function(){c.focused||c.isDisabled||c.setInputValue(c.value,!0)},this.handleMouseDown=function(){c.mouseDown=!0},this.handleFocus=function(){if(!c.focused&&(c.focused=!0,!c.isDisabled)){var e=c.selectOnFocus||!c.mouseDown;c.ngZone.runOutsideAngular((function(){setTimeout((function(){e?c.selectAll():c.selectCaret()}),0)}))}c.mouseDown=!1,Object(u.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.inputValue!==c.elementValue&&c.handleInput(),c.setInputValue(),(Object(u.hasObservers)(c.onBlur)||vn(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.onBlur.emit()}))},this.handleKeyDown=function(e){if(!c.isDisabled){var t;e.keyCode===u.Keys.ArrowDown?t=-1:e.keyCode===u.Keys.ArrowUp&&(t=1),t&&c.step&&(e.preventDefault(),c.addStep(t));var n=c.numericInput.nativeElement;c.previousSelection={end:n.selectionEnd,start:n.selectionStart},c.pressedKey=e.keyCode}},this.handleWheel=function(e){if(c.focused&&!c.isDisabled){e.preventDefault();var t=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t}(e);c.addStep(t)}},Object(l.validatePackage)(Jn),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(r.d,null)},e.prototype.ngOnChanges=function(e){var t,n;Object(u.anyChanged)(gi,e,!1)&&this.parseOptions(gi.filter((function(t){return e[t]}))),this.verifySettings(),Object(u.anyChanged)(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?(n=this.min,function(e){return!mn(n)||!mn(e.value)||e.value>=n?null:{minError:{minValue:n,value:e.value}}}):pi,this.maxValidateFn=this.rangeValidation?(t=this.max,function(e){return!mn(t)||!mn(e.value)||e.value<=t?null:{maxError:{maxValue:t,value:e.value}}}):pi,this.ngValidatorChange()),Object(u.anyChanged)(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Object(u.anyChanged)(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.focus=function(){Xn(this.numericInput,"focus")},e.prototype.blur=function(){Xn(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.numericWrap){var t=this.numericWrap.nativeElement,n=this.numericInput.nativeElement;e?(this.renderer.addClass(t,"k-state-focused"),this.isDisabled||this.renderer.removeClass(n,"k-formatted-value")):(this.renderer.removeClass(t,"k-state-focused"),this.renderer.addClass(n,"k-formatted-value")),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||(d.c||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;gn(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=this.previousSelection,r=o.start,a=o.end;t.value=e=e.substring(0,r)+this.decimalSeparator+e.substring(a),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){var t,n,i,o,r,a;return this.numericRegex||(this.numericRegex=(t={autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator},i=t.autoCorrect,o=t.decimals,r=t.min,"."===(a=t.separator)&&(a="\\"+a),n=0===o?"\\d*":"(?:(?:\\d+("+a+"\\d*)?)|(?:"+a+"\\d*))?",new RegExp("^"+(i&&null!==r&&r>=0?"":"-?")+n+"$"))),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,50)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=Sn(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&Xn(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(hi(this.max)&&e>this.max&&(t=this.max),hi(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=t.value,r=e,a=!1;if(!this.isInRange(e)){var s=o.length-String(this.inputValue).length,c=this.min,u=this.max,l=hi(u),d=hi(c),p=void 0,h=void 0,f=e;if(0===n&&this.inputValue.substr(1)===o)return{selectionEnd:i,selectionStart:n,value:null};if(l&&e>u?e>0?h=!0:p=u:d&&e<c&&(e>0?p=c:h=!0),p){var b=this.tryPadValue(e,p);b&&di(e)!==di(p)&&(f=b,a=!0)}else h&&this.inputValue&&n!==o.length&&(f=parseFloat(o.substr(0,n)+o.substr(n+s)));r=this.limitValue(f),a=(a||r!==f)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:a?String(r).length:i,selectionStart:n,value:r}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,o=fi(e,i),r=fi(e,i+1);return this.isInRange(o)?n=o:this.isInRange(r)&&(n=r),n},e.prototype.isInRange=function(e){return!hi(e)||(!hi(this.min)||this.min<=e)&&(!hi(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,o=String(e);if(t||li.test(o))n=Cn(e,i);else{var r=o.split("."),a=r[1];a&&a.length>i&&(a=a.substr(0,i),n=parseFloat(r[0]+"."+a))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=li.exec(t);return n&&(t=e.toFixed(_n(parseInt(n[1],10)))),t.replace(".",this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&function(e){return void 0!==e}(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(Object(o.isDevMode)()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var r=parseFloat(i),a=!isNaN(r);if(Object(o.isDevMode)()&&!a&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(i)+" was set.");this[n]=a?r:vi[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e,t,n,i=this.numericInput.nativeElement.selectionStart,o=this.elementValue,r=o.substring(0,i);if(this.setInputValue(),r.length){var a=(e=r,t=this.decimalSeparator,n=t+"0123456789-",e.split("").reduce((function(e,t){return n.includes(t)?++e:e}),0)),s=this.adjustSignificantChars(o,a);this.setSelection(s,s)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,o=n[1].length;return i===t?o-1:o}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"decimals",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("numericInput",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"numericInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("numericWrap",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"numericWrap",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-numerictextbox"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"widgetClasses",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoNumericTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:r.c,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:r.b,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <span\n class="k-numeric-wrap"\n [class.k-state-disabled]="disabled"\n [kendoEventsOutsideAngular]="{ mousewheel: handleWheel, DOMMouseScroll: handleWheel }"\n #numericWrap>\n <input\n role="spinbutton"\n class="k-input k-formatted-value"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span class="k-select" *ngIf="spinners" [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }">\n <span\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Up"\n class="k-link k-link-increase"\n >\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Down"\n class="k-link k-link-decrease"\n >\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[$t,o.Renderer2,c.LocalizationService,o.Injector,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],e)}(),_i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(c.ComponentMessages),Oi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:_i,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(_i);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(mi||(mi={}));var ji=function(){function e(e,t,n){void 0===n&&(n=mi.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),Ci=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),Si=function(e){return(e||"").split("")},wi=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof Ci?this.parse(e):this.parse(new Ci(Si(e),Si(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===mi.Literal},e}(),xi=function(e,t){return new wi((function(n){var i=n.next().char,o=e[i];return"\\"===i?(i=n.next().char,new ji(t.literal(i),n)):new ji(o?t.mask(o):t.literal(i),n)}))},ki=function(e){var t=e.prompt,n=e.promptPlaceholder;return new wi((function(e){var i=e.next().char;return new ji(i===t?n:i,e)}))},Ei=function(e){return new wi((function(t){var n=t.next().char;return new ji(e?n:"",t)}))},Ii=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new wi((function(e){return new ji(t,e)}))));var t},Di=function(e){return new wi((function(t){for(var n=new ji([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Pi=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,o=void 0===i?"":i,r=e.promptPlaceholder,a=void 0===r?" ":r,s=e.rules,c=void 0===s?{}:s,u=e.includeLiterals,l=void 0!==u&&u;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=c,this.includeLiterals=l,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return Ii(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(Ii(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(Ii(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var o="",r=i,a=t.split("").slice(0,n),s=t.split("").slice(i);return Ii(this.maskTokens.slice(n,i)).run(e).fold((function(e){o=a.concat(e).concat(s).join("")})),{selection:r,value:o}},e.prototype.maskRemoved=function(e,t,n){var i=this,o="",r=n,a=e.split("").slice(n),s=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return Ii(this.maskTokens.slice(0,c)).run(s,t).fold((function(e){r=i.adjustPosition(e,r),o=e.concat(a).join("")})),{selection:r,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,o="",r=n,a=e.slice(0,n);return Ii(this.unmaskTokens).run(a,t).chain((function(e){r=e.join("").length;var n=t.slice(r);return Ii(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:r,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new wi((function(e){return e.peek().char===t?(e.eat(),new ji(t,e,mi.Literal)):new ji(t,e,mi.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new wi((function(i){for(;!i.eof();){var o=i.peek(),r=o.char,a=o.control;if(r===a&&a===t)return i.eat(),new ji(t,i,mi.Mask);if(e.test(r))return i.eat(),new ji(r,i,mi.Mask);if(r===n)return i.eat(),new ji(t,i,mi.Mask);i.eat_input()}return i.eat(),new ji(t,i,mi.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new wi((function(e){return e.eof()?new ji("",e):(e.peek().char===t&&e.eat(),new ji(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new wi((function(t){for(;!t.eof();){var i=t.peek(),o=i.char,r=i.control;if(o===n&&r===n)return t.eat(),new ji(o,t);if(e.test(o))return t.eat(),new ji(o,t);t.eat_input()}return t.eat(),new ji("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return Ei(n)},mask:function(n){return ki({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return Ei(!1)},mask:function(t){return ki({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;Di(xi(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),Di(xi(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),Di(xi(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),Di(xi(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),Ti=Promise.resolve(null),Fi=function(){function e(e,t,n,i,r,a,s){var c=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=r,this.changeDetector=a,this.focusableId="k-"+Object(u.guid)(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this.handleFocus=function(){c.focused=!0,c.maskOnFocus&&c.emptyMask&&(c.updateInput(c.service.maskRaw(c.value)),c.ngZone.runOutsideAngular((function(){setTimeout((function(){c.setSelection(0,0)}),0)}))),Object(u.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleClick=function(){if(c.focused&&!c.focusClick){c.focusClick=!0;var e=c.input.nativeElement;e.selectionStart===e.selectionEnd&&c.setFocusSelection()}},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.focusClick=!1,c.maskOnFocus&&c.emptyMask&&c.updateInput(c.maskedValue),(Object(u.hasObservers)(c.onBlur)||vn(c.control))&&c.ngZone.run((function(){c.onTouched(),c.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},Object(l.validatePackage)(Jn),this.direction=s?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(r.d,null)},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,o=i[0],r=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var a=this.maskedValue.length-r,s=n.length-a;t=this.service.maskInRange(n.slice(o,s),this.maskedValue,o,r)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),Object(u.isChanged)("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else Object(u.anyChanged)(["promptPlaceholder","includeLiterals"],e)?Ti.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},e.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&Xn(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=mn(e);if(t&&"string"!=typeof e){if(Object(o.isDevMode)())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-maskedtextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"mask",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"rules",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"prompt",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"promptPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"includeLiterals",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskValidation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.HostListener)("paste",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"pasteHandler",null),Object(i.__decorate)([Object(o.HostListener)("input",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoMaskedTextBox",providers:[Pi,{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return t}))},{multi:!0,provide:r.b,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-textbox"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),Object(i.__param)(6,Object(o.Optional)()),Object(i.__param)(6,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[Pi,o.Renderer2,o.ElementRef,o.NgZone,o.Injector,o.ChangeDetectorRef,Boolean])],e)}(),Mi=function(e){this.value=e,this.classes={"k-tick":!0}},Ni=function(){function e(e){this.rtl=e,this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.prototype.createTicks=function(){for(var e,t,n,i,o,r,a,s,c=Pn(this.min,this.max,this.step),u=this.largeStep,l={max:this.max,min:this.min,smallStep:this.step},d=[],p=0;p<c;p++)d.push(new Mi((e=p,n=void 0,i=void 0,o=void 0,r=void 0,a=void 0,s=void 0,n=(t=l).max,i=t.min,o=t.smallStep,r=t.reverse,a=t.vertical,s=Sn(i,xn(e,o)),a||r?Math.abs(wn(s,n)):s))),u&&p%u==0&&(d[p].large=!0,d[p].classes["k-tick-large"]=!0);(this.rtl||this.vertical)&&(d=d.reverse()),d.length>0&&(Object.assign(d[0].classes,this.endTickClasses(!0)),Object.assign(d[d.length-1].classes,this.endTickClasses(!1))),this.ticks=d},e.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},Object(i.__decorate)([Object(o.HostBinding)("class"),Object(i.__metadata)("design:type",String)],e.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"tickTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"labelTemplate",void 0),Object(i.__decorate)([Object(o.ViewChildren)("tickElement"),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"tickElements",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[Boolean])],e)}(),Ai=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Ni,Qn],exports:[Qn,Ni,u.DraggableModule,u.EventsModule,u.ResizeSensorModule],imports:[Jt.CommonModule,u.DraggableModule,u.EventsModule,u.ResizeSensorModule]})],e)}(),Bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandle",void 0),t}(c.ComponentMessages),Ri=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Bi,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Bi),Vi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Bi,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-slider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Bi),zi=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ti,Vi,Ri],exports:[ti,Vi,Qn,Ri],imports:[Jt.CommonModule,Ai]})],e)}(),Li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleStart",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(c.ComponentMessages),Hi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Li,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Li),Ki=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Li,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Li),Gi=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ii,Ki,Hi],exports:[ii,Ki,Hi,Qn],imports:[Jt.CommonModule,Ai]})],e)}(),Ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"on",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"off",void 0),t}(c.ComponentMessages),Wi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Ui,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Ui),Zi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Ui,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-switch-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Ui),$i=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[oi,Zi,Wi],exports:[oi,Zi,Wi],imports:[Jt.CommonModule,u.EventsModule,u.ResizeSensorModule]})],e)}(),qi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:_i,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(_i),Xi=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[qi,yi,Oi],exports:[yi,Oi],imports:[Jt.CommonModule,u.EventsModule]})],e)}(),Yi=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Fi],exports:[Fi],imports:[Jt.CommonModule,u.EventsModule]})],e)}(),Ji=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTextBoxSuffixTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),Qi=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTextBoxPrefixTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),eo=function(){function e(e,t,n,i,r,a){var s=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=r,this.hostElement=a,this.focusableId="k-"+Object(u.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new o.EventEmitter,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputFocus=function(){s.disabled||(s.selectOnFocus&&s.value&&s.ngZone.run((function(){setTimeout((function(){s.selectAll()}))})),Object(u.hasObservers)(s.onFocus)&&(s.isFocused||s.ngZone.run((function(){s.onFocus.emit()}))),Object(u.hasObservers)(s.inputFocus)&&(!s.focusChangedProgrammatically||s.focusChangedProgrammatically&&s.clearButtonClicked)&&s.ngZone.run((function(){s.inputFocus.emit()})),s.ngZone.run((function(){s.isFocused=!0})))},this.handleInputBlur=function(){s.changeDetector.markForCheck(),(Object(u.hasObservers)(s.inputBlur)||vn(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.inputBlur.emit()}))},this.handleInput=function(e){var t=e.target.value;s.updateValue(t)},this.ngChange=function(e){},this.ngTouched=function(){},Object(l.validatePackage)(Jn),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(r.d,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(Yn(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===u.Keys.Tab})))}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?"k-text-success "+this.successIcon:"k-text-success k-icon k-i-check-outline"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?"k-text-error "+this.errorIcon:"k-text-error k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-close-circle"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&Xn(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;gn(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showSuccessIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showErrorIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"successIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"errorIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"clearButtonIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.ContentChild)(Ji,{static:!1}),Object(i.__metadata)("design:type",Ji)],e.prototype,"suffixTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(Qi,{static:!1}),Object(i.__metadata)("design:type",Qi)],e.prototype,"prefixTemplate",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textbox"},{provide:r.c,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input\n class="k-input"\n #input\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"/>\n <span class="k-input-suffix">\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)"\n >\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],e)}(),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clear",void 0),t}(c.ComponentMessages),no=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:to,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(to),io=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:to,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(to),oo=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-input-separator"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}(),ro=[oo,ri],ao=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ro],exports:[ro]})],e)}(),so=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ui,ci,eo,Ji,Qi,no,io],exports:[ui,ci,eo,Ji,Qi,u.EventsModule,no,io,ro],imports:[Jt.CommonModule,u.EventsModule,ao]})],e)}(),co=function(){function e(e,t,n,i,r,s){var c=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=r,this.hostElement=s,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.subscriptions=new a.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){c.changeDetector.markForCheck(),(Object(u.hasObservers)(c.inputBlur)||vn(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.disabled=e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e}(),uo={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},lo=function(e){function t(t,n,i,r,a,s){var c=e.call(this,t,n,i,r,a,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=r,c.injector=a,c.hostElement=s,c.focusableId="k-"+Object(u.guid)(),c.hostClass=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new o.EventEmitter,c.onBlur=new o.EventEmitter,c.valueChange=new o.EventEmitter,c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),Object(u.hasObservers)(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),Object(u.hasObservers)(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},Object(l.validatePackage)(Jn),c.direction=t.rtl?"rtl":"ltr",c}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(Yn(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===u.Keys.Tab})))}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(r.d,null),Object(u.isDocumentAvailable)()&&"auto"===this.resizable&&(this.resizeSubscription=Object(a.fromEvent)(window,"resize").pipe(Object(s.debounceTime)(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(mn(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;gn(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return uo[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-state-focus"):this.renderer.removeClass(t,"k-state-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&Xn(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-flex-col"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowCol",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-flex-row"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowRow",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flow",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"rows",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"cols",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"resizable",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"valueChange",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextArea",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textarea"},{provide:r.c,useExisting:Object(o.forwardRef)((function(){return n})),multi:!0},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],t)}(co),po=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea-suffix"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}(),ho=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[lo,po],exports:[lo,u.EventsModule,po,ro],imports:[Jt.CommonModule,u.EventsModule,ao]})],e)}(),fo=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),bo=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}(),mo=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(mn(e)){if("name"===t)return function(e,t){if(e=e.toLowerCase().trim(),mn(nn[e]))return e;hn(e,t)&&(e=hn(e,t).toHex());var n=Object.keys(nn).find((function(t){return nn[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property shoud be set to 'hex' or 'rgba' ");return n}(e,n);var i=hn(e.trim(),n);if(mn(i))return"hex"===t?i.toCss():i.toCssRgba()}},go=function(e,t){void 0===t&&(t=!0);var n=hn(e,t);return mn(n)?n.toBytes():{}},vo=function(e){var t=yn(e.h,0,359.9),n=yn(e.s,0,1),i=yn(e.v,0,1),o=yn(e.a,0,1);return bn.fromHSV(t,n,i,o).toCssRgba()},yo=function(e){return vo({h:e,s:1,v:1,a:1})};var _o={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}},Oo=0,jo=function(){function e(e,t){var n=this;this.popupService=e,this.hostClasses=!0,this.focusableId="k-colorpicker-"+Oo++,this.view="gradient",this.readonly=!1,this.disabled=!1,this.format="rgba",this.valueChange=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.activeColorClick=new o.EventEmitter,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,clearButton:!1},this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},Object(l.validatePackage)(Jn),this.dynamicRTLSubscription=t.changes.subscribe((function(e){var t=e.rtl;n.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=mo(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return mn(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?"office":"accessible",t=this._paletteSettings.palette,n="string"==typeof t&&_o[t]?_o[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.view="palette"),"gradient"===this.view&&this.gradientSettings.opacity&&(this.format="rgba",this.value=mo(this.value,this.format))},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.handleWrapperClick=function(){this.toggleWithEvents(!this.isOpen),this.focus()},e.prototype.handleActiveColorClick=function(){this.focus();var e=new bo(this.value);this.activeColorClick.emit(e),e.isOpenPrevented()&&!this.isOpen||this.handleWrapperClick()},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){mn(this.palette)&&this.palette.nativeElement.focus(),this.isFocused||(this.isFocused=!0,this.onFocus.emit())},e.prototype.blur=function(){this.wrapper.nativeElement.blur()},e.prototype.handleWrapperBlur=function(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())},e.prototype.reset=function(){mn(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=mn(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e,t){var n=mo(e,this.format),i=n!==this.value;t&&(this.toggleWithEvents(!1),this.focus()),i&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n))},e.prototype.handlePopupBlur=function(e){var t=this.popupRef.popupElement.contains(e.relatedTarget),n=e.relatedTarget===this.wrapper.nativeElement;!this.isFocused||n||t||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){e.keyCode!==u.Keys.ArrowDown&&e.keyCode!==u.Keys.Enter||(e.preventDefault(),this.toggleWithEvents(!0))},e.prototype.handlePopupKeyDown=function(e){e!==u.Keys.Tab&&e!==u.Keys.Escape||(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus())},e.prototype.isEmpty=function(){return!1},e.prototype.toggleWithEvents=function(e){var t=this.isOpen===e;if(!(this.disabled||this.readonly||t)){var n=new fo;e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()||this.toggle(e)}},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.wrapper.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null,this.palette=null)},Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-colorpicker"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"view",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"icon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"iconClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeColorClick",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("palette",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"palette",void 0),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorpicker",providers:[{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <span\n #wrapper\n [ngClass]="{\n \'k-picker-wrap\': true,\n \'k-state-disabled\': this.disabled,\n \'k-state-focused\': this.isFocused\n }"\n role="listbox"\n [attr.aria-expanded]="isOpen"\n [id]="focusableId"\n [attr.tabindex]="tabindex"\n (focus)="handleWrapperFocus()"\n (blur)="handleWrapperBlur()"\n (mousedown)="$event.preventDefault()"\n (keydown)="handleWrapperKeyDown($event)"\n >\n <span *ngIf="!iconStyles" class="k-selected-color" [style.background-color]="value" (click)="handleActiveColorClick()">\n <span class="k-icon k-i-line" *ngIf="!value"></span>\n </span>\n <span *ngIf="iconStyles" class="k-tool-icon" [ngClass]="iconStyles" (click)="handleActiveColorClick()">\n <span class="k-selected-color" [style.background-color]="value"></span>\n </span>\n <span class="k-select" (click)="handleWrapperClick()">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n <kendo-colorgradient\n *ngIf="view === \'gradient\' || view === \'combo\'"\n kendoFocusOnDomReady\n [value]="value"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [clearButton]="gradientSettings.clearButton"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event, false)"\n (keydown)="handlePopupKeyDown($event.keyCode)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette\n #palette\n *ngIf="view === \'palette\' || view === \'combo\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="value"\n (blur)="handlePopupBlur($event)"\n (cellSelection)="handleValueChange($event, true)"\n (mousedown)="$event.preventDefault()"\n (keydown)="handlePopupKeyDown($event.keyCode)"\n >\n </kendo-colorpalette>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[Qt.c,c.LocalizationService])],e)}(),Co=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],mn(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){if(mn(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},e.prototype.getColorAt=function(e){if(mn(e)&&mn(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(mn(e)&&mn(e.row)&&mn(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),So=0,wo=function(){function e(e,t){var n=this;this.service=e,this.id="k-colorpalette-"+So++,this.format="hex",this.tileSize={width:24,height:24},this.selectionChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.cellSelection=new o.EventEmitter,this.hostClasses=!0,this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.dynamicRTLSubscription=t.changes.subscribe((function(e){var t=e.rtl;n.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=mo(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;mn(e)||(e="office"),"string"==typeof e&&mn(_o[e])&&(this.columns=this.columns||_o[e].columns,e=_o[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return mo(e,t.format,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value)}},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value))},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case u.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case u.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case u.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case u.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case u.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.focusedCell=t;var n=mo(e,this.format,!1);this.cellSelection.emit(n),this.value!==n&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n)),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n))}},e.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,mn(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},e.prototype.setRows=function(){mn(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){if(!this.readonly){this.focusedCell=this.service.getNextCell(this.focusedCell,e,t);var n=this.service.getColorAt(this.focusedCell);this.selection!==n&&(this.selection=n,this.selectionChange.emit(n))}},e.prototype.handleEnter=function(){if(mn(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"paletteId",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"columns",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"palette",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"tileSize",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellSelection",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-colorpalette"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostListener)("keydown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleKeydown",null),Object(i.__decorate)([Object(o.HostListener)("blur"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorpalette",providers:[{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},Co,c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <div role="grid">\n <table class="k-palette k-reset" role="presentation">\n <tbody>\n <tr role="row" *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n [class.k-state-selected]="focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n class="k-item"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[Co,c.LocalizationService])],e)}(),xo=0,ko=function(){function e(e,t,n,i,r){var a=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.hostClasses=!0,this.id="k-colorgradient-"+xo++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.valueChange=new o.EventEmitter,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva={},this.format="rgba",this._tabindex=0,this.listeners=[],this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},this.dynamicRTLSubscription=r.changes.subscribe((function(e){var t=e.rtl;a.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=mo(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!(!Object(u.isDocumentAvailable)()||!mn(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alphaSliderValue",{get:function(){if(mn(this.hsva)&&mn(this.hsva.a))return 100*this.hsva.a},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners()},e.prototype.ngOnChanges=function(e){Object(u.isChanged)("value",e)&&!this.isFocused&&this.updateUI()},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.focus=function(){this.disabled||this.host.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!mn(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.prototype.onHandleRelease=function(){this.disabled||this.readonly||this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging")},e.prototype.changePosition=function(e){var t=this;this.disabled||this.readonly||this.ngZone.run((function(){return t.moveDragHandle(e)}))},e.prototype.handleHueSliderChange=function(e){this.handleValueChange(vo(this.hsva)),this.backgroundColor=yo(e),this.setAlphaSliderBackground(this.backgroundColor)},e.prototype.handleAlphaSliderChange=function(e){this.hsva.a=e/100,this.handleValueChange(vo(this.hsva))},e.prototype.handleInputsValueChange=function(e){var t=mo(e,this.format);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,mn(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e){var t=e.clientX-this.gradientRect.left,n=e.clientY-this.gradientRect.top,o=yn(n,0,this.gradientRect.height),r=yn(t,0,this.gradientRect.width);this.setDragHandleElementPosition(o,r),this.hsva.s=r/this.gradientRect.width,this.hsva.v=1-o/this.gradientRect.height,this.handleValueChange(vo(this.hsva)),this.setAlphaSliderBackground(vo(Object(i.__assign)({},this.hsva,{a:1})))},e.prototype.updateUI=function(){if(Object(u.isDocumentAvailable)()){this.hsva=this.value?function(e,t){void 0===t&&(t=!0);var n=hn(e,t);return mn(n)?n.toHSV():{}}(this.value):{h:0,s:0,v:1,a:1};var e=(1-this.hsva.v)*this.gradientRect.height,t=this.hsva.s*this.gradientRect.width;this.setDragHandleElementPosition(e,t),this.backgroundColor=yo(this.hsva.h),this.setAlphaSliderBackground(this.backgroundColor)}},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e))},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.dragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(mn(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){var n,i,o;i=e.host.nativeElement,o=t.relatedTarget,(!i||!o||i!==o&&!i.contains(o))&&((n=e.host)&&n.nativeElement&&qn(n.nativeElement,"ng-untouched"))&&e.ngZone.run((function(){return e.notifyNgTouched()}))}));e.listeners.push(t)}))},Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-flatcolorpicker"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"gradientId",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.ViewChild)("alphaSlider",{static:!1}),Object(i.__metadata)("design:type",ti)],e.prototype,"alphaSlider",void 0),Object(i.__decorate)([Object(o.ViewChild)("gradientWrapper",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"gradientWrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("dragHandle",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"dragHandle",void 0),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorgradient",providers:[{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:u.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <div class="k-hbox k-hsv-wrap">\n <div class="k-hsv-rectangle" [style.background-color]="backgroundColor">\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #dragHandle\n class="k-draghandle"\n >\n </div>\n </div>\n </div>\n <div class="k-hbox k-sliders-wrap {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-bare k-button-icon" *ngIf="clearButton" (click)="reset()">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n class="k-hue-slider"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [smallStep]="5"\n [largeStep]="10"\n [(value)]="hsva.h"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity && format === \'rgba\'"\n #alphaSlider\n class="k-alpha-slider"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput\n [opacity]="opacity"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n'}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2,o.ChangeDetectorRef,c.LocalizationService])],e)}(),Eo=function(){function e(e){this.host=e,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new o.EventEmitter,this.colorInputClass=!0,this.rgba={}}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!Object(u.isDocumentAvailable)()||!mn(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return mn(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){mn(e.value)&&!this.isFocused&&(this.hex=mo(this.value,"hex"),this.rgba=go(this.value),this.rgba.a=mo(this.value,"rgba")?this.rgba.a:1)},e.prototype.handleRgbaValueChange=function(){var e,t,n,i,o,r=(e=this.rgba,t=yn(e.r,0,255),n=yn(e.g,0,255),i=yn(e.b,0,255),o=yn(e.a,0,1),bn.fromBytes(t,n,i,o).toCssRgba());this.rgbaInputValid&&r!==this.value&&(this.value=r,this.rgba=go(this.value),this.hex=mo(r,"hex"),this.valueChange.emit(r))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=mo(e,"rgba");mn(t)&&t!==this.value&&(this.value=t,this.rgba=go(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=go(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=mo(this.value,"hex")},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-colorinputs"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"colorInputClass",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorinput",template:'\n <div class="k-hbox k-gradient-values">\n <input\n #hexInput\n class="k-textbox k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n placeholder="no color"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <kendo-numerictextbox\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n placeholder="R"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()"\n >\n </kendo-numerictextbox>\n <kendo-numerictextbox\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n placeholder="G"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()"\n >\n </kendo-numerictextbox>\n <kendo-numerictextbox\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n placeholder="B"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()"\n >\n </kendo-numerictextbox>\n <kendo-numerictextbox\n *ngIf="opacity"\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n placeholder="A"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()"\n >\n </kendo-numerictextbox>\n </div>\n <div class="k-hbox k-gradient-values">\n <div class="k-hex-value">hex</div>\n <div>r</div>\n <div>g</div>\n <div>b</div>\n <div *ngIf="opacity">a</div>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef])],e)}(),Io=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoFocusOnDomReady]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),Do=[jo,wo,ko],Po=[Eo,Io],To=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Do,Po],exports:[Do],imports:[zi,Xi,Jt.CommonModule,Qt.b,u.DraggableModule]})],e)}(),Fo=function(){function e(){this.kendoClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-checkbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoCheckBox]"})],e)}(),Mo=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Fo],exports:[Fo],imports:[Jt.CommonModule]})],e)}(),No=function(){function e(){this.kendoClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-radio"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoRadioButton]"})],e)}(),Ao=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[No],exports:[No],imports:[Jt.CommonModule]})],e)}(),Bo=0,Ro=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+Bo++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-error"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"roleAttribute",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}(),Vo=0,zo=function(){function e(){this.align="start",this.id="kendo-hint-"+Vo++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-hint"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}(),Lo=function(){function e(e,t,n){var i=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new a.Subscription,this.rtl=!1,Object(l.validatePackage)(Jn),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.prototype.validateFormControl=function(e){if(Object(o.isDevMode)()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},e.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every((function(e){return e.name===n&&t.isRadioControl(e)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof r.e},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&Object(u.isDocumentAvailable)()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map((function(e){return e.nativeElement}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe((function(){return e.updateDescription()}))),this.subscriptions.add(this.hintChildren.changes.subscribe((function(){return e.updateDescription()})))},Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field-error"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"errorClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.ContentChildren)(r.d,{descendants:!0,static:!0}),Object(i.__metadata)("design:type",o.QueryList),Object(i.__metadata)("design:paramtypes",[o.QueryList])],e.prototype,"formControls",null),Object(i.__decorate)([Object(o.ContentChildren)(r.d,{read:o.ElementRef,descendants:!0,static:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"controlElementRefs",void 0),Object(i.__decorate)([Object(o.ContentChild)(u.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChildren)(Ro,{descendants:!0,static:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"errorChildren",void 0),Object(i.__decorate)([Object(o.ContentChildren)(zo,{descendants:!0,static:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"hintChildren",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showHints",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"orientation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showErrors",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.formfield"}]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,c.LocalizationService,o.ElementRef])],e)}(),Ho=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[zo,Ro,Lo],exports:[zo,Ro,Lo],imports:[Jt.CommonModule]})],e)}(),Ko=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({exports:[ho,so,zi,Gi,$i,Xi,Yi,To,Mo,Ao,Ho],imports:[Jt.CommonModule]})],e)}()},function(e,t,n){"use strict";var i=function(e,t){return function(n){return t(e(n))}},o=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},r=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},a=function(){},s=function(e){return e.preventDefault()},c=/touch/;function u(e){return e.type.match(c)?{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 l=function(e){var t=this,n=e.press;void 0===n&&(n=a);var c=e.drag;void 0===c&&(c=a);var l=e.release;void 0===l&&(l=a);var d=e.mouseOnly;void 0===d&&(d=!1),this._pressHandler=i(u,n),this._dragHandler=i(u,c),this._releaseHandler=i(u,l),this._ignoreMouse=!1,this._mouseOnly=d,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||(o(document,"mousemove",t._mousemove),o(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){r(document,"mousemove",t._mousemove),r(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(o(document,"pointermove",t._pointermove),o(document,"pointerup",t._pointerup),o(document,"pointercancel",t._pointerup),o(document,"contextmenu",s),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(r(document,"pointermove",t._pointermove),r(document,"pointerup",t._pointerup),r(document,"pointercancel",t._pointerup),r(document,"contextmenu",s),t._releaseHandler(e))}};l.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},l.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},l.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?o(e,"pointerdown",this._pointerdown):(o(e,"mousedown",this._mousedown),this._mouseOnly||(o(e,"touchstart",this._touchstart),o(e,"touchmove",this._touchmove),o(e,"touchend",this._touchend)))},l.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return r(e,"pointerdown",this._pointerdown),r(document,"pointermove",this._pointermove),r(document,"pointerup",this._pointerup),r(document,"contextmenu",s),void r(document,"pointercancel",this._pointerup);r(e,"mousedown",this._mousedown),this._mouseOnly||(r(e,"touchstart",this._touchstart),r(e,"touchmove",this._touchmove),r(e,"touchend",this._touchend))},l.prototype._usePointers=function(){return!this._mouseOnly&&l.supportPointerEvent()},l.prototype.update=function(e){var t=e.press;void 0===t&&(t=a);var n=e.drag;void 0===n&&(n=a);var o=e.release;void 0===o&&(o=a);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=i(u,t),this._dragHandler=i(u,n),this._releaseHandler=i(u,o),this._mouseOnly=r},l.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},l.default=l,t.a=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoDataPagerTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.PagerTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(t){var n=e.call(this)||this;return n.newPageSize=t,n}return i.__extends(t,e),t}(n(29).PreventableEvent);t.PageSizeChangeEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=n(19),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-datapager-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.CustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"firstPage",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"lastPage",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"previousPage",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"nextPage",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"page",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"pageNumberInputTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"itemsPerPage",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"of",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"items",void 0),t}(n(4).ComponentMessages);t.Messages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(12),a=n(13),s=n(4),c=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return 1===this.currentPage||!this.total},enumerable:!0,configurable:!0}),t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize=i,this.cd.markForCheck()},t=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-datapager-prev-buttons",template:'\n <button\n type="button"\n class="k-link k-pager-nav k-pager-first"\n [class.k-state-disabled]="disabled"\n [title]="textFor(\'firstPage\')"\n [attr.aria-label]="textFor(\'firstPage\')"\n [attr.aria-disabled]="disabled ? true : undefined"\n (click)="currentPage !== 1 ? changePage(0) : false">\n <span class="k-icon k-i-seek-w" [attr.aria-label]="textFor(\'firstPage\')"></span>\n </button>\n <button\n type="button"\n class="k-link k-pager-nav"\n [class.k-state-disabled]="disabled"\n [title]="textFor(\'previousPage\')"\n [attr.aria-label]="textFor(\'previousPage\')"\n [attr.aria-disabled]="disabled ? true : undefined"\n (click)="currentPage !== 1 ? changePage(currentPage-2) : false">\n <span class="k-icon k-i-arrow-w" [attr.aria-label]="textFor(\'previousPage\')"></span>\n </button>\n '}),i.__metadata("design:paramtypes",[s.LocalizationService,r.PagerContextService,o.ChangeDetectorRef])],t)}(a.PagerElementComponent);t.PagerPrevButtonsComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(13),a=n(4),s=n(12),c=n(17),u=n(27),l=function(e){function t(t,n,i){var o=e.call(this,t,i,n)||this;return o.pagerContext=i,o._pageSizes=[],o}return i.__extends(t,e),Object.defineProperty(t.prototype,"pageSizes",{get:function(){return this._pageSizes},set:function(e){var t=this,n=[];e.forEach((function(e){"number"==typeof e?n.push({text:e.toString(),value:e}):n.push(e)})),this.pageSize&&!n.some((function(e){return e.value===t.pageSize}))&&(n=[{text:this.pageSize.toString(),value:this.pageSize}].concat(n)),this._pageSizes=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classes",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.dropDownList.wrapper.nativeElement.setAttribute("aria-label",this.textFor("itemsPerPage"))},t.prototype.pageSizeChange=function(e,t){var n=new c.PageSizeChangeEvent(e);this.pagerContext.changePageSize(n),n.isDefaultPrevented()&&t.writeValue(this.pageSize)},t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize="number"==typeof i?i:this.total,this.cd.markForCheck()},i.__decorate([o.ViewChild("dropdownlist",{static:!0}),i.__metadata("design:type",u.DropDownListComponent)],t.prototype,"dropDownList",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],t.prototype,"pageSizes",null),i.__decorate([o.HostBinding("class.k-pager-sizes"),o.HostBinding("class.k-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"classes",null),t=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-datapager-page-sizes",template:'\n <kendo-dropdownlist\n #dropdownlist\n [data]="pageSizes"\n textField="text"\n valueField="value"\n [valuePrimitive]="true"\n [value]="pageSize"\n (valueChange)="pageSizeChange($event, dropdownlist)"></kendo-dropdownlist>\n {{ textFor(\'itemsPerPage\') }}\n '}),i.__metadata("design:paramtypes",[a.LocalizationService,o.ChangeDetectorRef,s.PagerContextService])],t)}(r.PagerElementComponent);t.PagerPageSizesComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=n(12),s=function(e){function t(t,n,i){var o=e.call(this,t,i,n)||this;return o.pagerContext=i,o.numbersWrapClass=!0,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"buttons",{get:function(){for(var e=[],t=this.start;t<=this.end;t++)e.push(t);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return Math.min(this.start+this.buttonCount-1,this.totalPages)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){var e=this.currentPage,t=this.buttonCount;if(e>t){var n=e%t;return 0===n?e-t+1:e-n+1}return 1},enumerable:!0,configurable:!0}),t.prototype.pageLabel=function(e){var t=this.textFor("page");return t?t+" "+e:e.toString()},t.prototype.onSelectChange=function(e){var t=e.target,n=Number(t.value);Number.isNaN(n)?"previousButtons"===t.value?this.changePage(this.start-2):this.changePage(this.end):this.changePage(n-1)},t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize=i,this.cd.markForCheck()},i.__decorate([o.HostBinding("class.k-pager-numbers-wrap"),i.__metadata("design:type",Boolean)],t.prototype,"numbersWrapClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"buttonCount",void 0),t=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-datapager-numeric-buttons",template:'\n <select\n class="k-dropdown"\n [value]="(currentPage).toString()"\n (change)="onSelectChange($event)">\n <option *ngIf="start > 1"\n class="k-link"\n value="previousButtons"\n [attr.aria-label]="pageLabel(start - 1)">...\n </option>\n <option *ngFor="let num of buttons"\n [value]="num.toString()"\n [attr.aria-label]="pageLabel(num)"\n [attr.aria-current]="currentPage == num ? \'page\' : undefined"\n [ngClass]="{\'k-link\': true, \'k-state-selected\':currentPage == num}">\n {{num}}\n </option>\n <option *ngIf="end < totalPages"\n value="nextButtons"\n class="k-link"\n [attr.aria-label]="pageLabel(end + 1)">...\n </option>\n </select>\n <ul [ngClass]="{\'k-pager-numbers\': true, \'k-reset\': true}">\n <li *ngIf="start > 1">\n <button\n type="button"\n class="k-link"\n [attr.aria-label]="pageLabel(start - 1)"\n (click)="changePage(start - 2)">...</button>\n </li>\n <li *ngFor="let num of buttons">\n <button\n type="button"\n [attr.aria-label]="pageLabel(num)"\n [attr.aria-current]="currentPage == num ? \'page\' : undefined"\n [ngClass]="{\'k-link\': true, \'k-state-selected\':currentPage == num}"\n (click)="changePage(num - 1)">\n {{num}}\n </button>\n </li>\n <li *ngIf="end < totalPages">\n <button\n type="button"\n class="k-link"\n [attr.aria-label]="pageLabel(end + 1)"\n (click)="changePage(end)">...</button>\n </li>\n </ul>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService,o.ChangeDetectorRef,a.PagerContextService])],t)}(n(13).PagerElementComponent);t.PagerNumericButtonsComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(12),a=n(13),s=n(4),c=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.currentPage===this.totalPages||!this.total},enumerable:!0,configurable:!0}),t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize=i,this.cd.markForCheck()},t=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-datapager-next-buttons",template:'\n <button\n type="button"\n class="k-link k-pager-nav"\n [class.k-state-disabled]="disabled"\n [title]="textFor(\'nextPage\')"\n [attr.aria-label]="textFor(\'nextPage\')"\n [attr.aria-disabled]="disabled ? true : undefined"\n (click)="currentPage !== totalPages ? changePage(currentPage) : false">\n <span class="k-icon k-i-arrow-e" [attr.aria-label]="textFor(\'nextPage\')"></span>\n </button>\n <button\n type="button"\n class="k-link k-pager-nav k-pager-last"\n [class.k-state-disabled]="disabled"\n [title]="textFor(\'lastPage\')"\n [attr.aria-label]="textFor(\'lastPage\')"\n [attr.aria-disabled]="disabled ? true : undefined"\n (click)="currentPage !== totalPages ? changePage(totalPages-1) : false">\n <span class="k-icon k-i-seek-e" [attr.aria-label]="textFor(\'lastPage\')"></span>\n </button>\n '}),i.__metadata("design:paramtypes",[s.LocalizationService,r.PagerContextService,o.ChangeDetectorRef])],t)}(a.PagerElementComponent);t.PagerNextButtonsComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(14),r=n(1),a=n(13),s=n(4),c=n(12),u=n(2),l=function(e){function t(t,n,i,o){var r=e.call(this,t,n,o)||this;return r.pagerContext=n,r.zone=i,r.handleKeyDown=function(e){var t=r.numericInput.value||r.current;e.keyCode===u.Keys.Enter&&(e.preventDefault(),t!==r.current&&r.zone.run((function(){r.changePage(t-1)})))},r.handleBlur=function(){var e=r.numericInput.value;e?e!==r.current&&r.zone.run((function(){r.changePage(e-1)})):r.numericInput.writeValue(r.current)},r}return i.__extends(t,e),Object.defineProperty(t.prototype,"current",{get:function(){return this.hasPages?this.currentPage:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPages",{get:function(){return 0!==this.totalPages},enumerable:!0,configurable:!0}),t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize=i,this.cd.markForCheck()},i.__decorate([r.ViewChild(o.NumericTextBoxComponent,{static:!0}),i.__metadata("design:type",o.NumericTextBoxComponent)],t.prototype,"numericInput",void 0),t=i.__decorate([r.Component({selector:"kendo-datapager-input",template:'\n <span [ngClass]="{\'k-pager-input\': true, \'k-label\': true}">\n {{textFor(\'page\')}}\n <kendo-numerictextbox\n [spinners]="false"\n [decimals]="0"\n format="n0"\n [disabled]="!hasPages"\n [value]="current"\n [min]="hasPages ? 1 : 0"\n [max]="totalPages"\n [autoCorrect]="true"\n [title]="textFor(\'pageNumberInputTitle\')"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown,\n focusout: handleBlur\n }">\n </kendo-numerictextbox>\n {{textFor(\'of\')}} {{totalPages}}\n </span>\n '}),i.__metadata("design:paramtypes",[s.LocalizationService,c.PagerContextService,r.NgZone,r.ChangeDetectorRef])],t)}(a.PagerElementComponent);t.PagerInputComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(13),a=n(4),s=n(12),c=function(e){function t(t,n,i){var o=e.call(this,t,i,n)||this;return o.pagerContext=i,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"maxItems",{get:function(){return Math.min(this.currentPage*this.pageSize,this.total)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageText",{get:function(){return this.total?(this.currentPage-1)*this.pageSize+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classes",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize=i,this.cd.markForCheck()},i.__decorate([o.HostBinding("class.k-pager-info"),o.HostBinding("class.k-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"classes",null),t=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-datapager-info",template:"{{currentPageText}} - {{maxItems}} {{textFor('of')}} {{total}} {{textFor('items')}}"}),i.__metadata("design:paramtypes",[a.LocalizationService,o.ChangeDetectorRef,s.PagerContextService])],t)}(r.PagerElementComponent);t.PagerInfoComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(30),r=n(1),a=n(16),s=n(2),c=n(12),u=n(5),l=n(31),d=n(4),p=n(9),h=n(32),f=function(){function e(e,t,n){var i=this;this.pagerContext=e,this.element=t,this.localization=n,this.total=0,this.skip=0,this.buttonCount=10,this.info=!0,this.type="numeric",this.previousNext=!0,this.pageChange=new r.EventEmitter,this.pageSizeChange=new r.EventEmitter,this.pagerWrapClass=!0,this.pagerClass=!0,this.widgetClass=!0,this.widgetRole="navigation",this.subscriptions=new u.Subscription,this._templateContext={},this._pageSizeValues=l.DEFAULT_PAGE_SIZE_VALUES,this.resizeHandler=function(){if(!i.template){var e=i.element.nativeElement,t=e.offsetWidth;t<o.RESPONSIVE_BREAKPOINT_MEDIUM?(e.classList.remove("k-pager-md"),e.classList.add("k-pager-sm")):t>=o.RESPONSIVE_BREAKPOINT_MEDIUM&&t<o.RESPONSIVE_BREAKPOINT_LARGE?(e.classList.add("k-pager-md"),e.classList.remove("k-pager-sm")):(e.classList.remove("k-pager-md"),e.classList.remove("k-pager-sm"))}},p.validatePackage(h.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"pageSizeValues",{get:function(){return this._pageSizeValues},set:function(e){this._pageSizeValues=Array.isArray(e)?e:!!e&&l.DEFAULT_PAGE_SIZE_VALUES},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalPages",{get:function(){return Math.ceil((this.total||0)/this.pageSize)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentPage",{get:function(){return Math.floor((this.skip||0)/this.pageSize)+1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateContext",{get:function(){var e=this._templateContext;return e.totalPages=this.totalPages,e.total=this.total,e.skip=this.skip,e.pageSize=this.pageSize,e.currentPage=this.currentPage,e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pagerContext.pageChange.subscribe(this.changePage.bind(this))),this.subscriptions.add(this.pagerContext.pageSizeChange.subscribe(this.changePageSize.bind(this))),this.subscriptions.add(this.resizeSensor.resize.subscribe((function(){return e.resizeHandler()}))),this.subscriptions.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})))},e.prototype.ngAfterViewInit=function(){this.resizeHandler()},e.prototype.ngOnChanges=function(e){s.anyChanged(["pageSize","skip","total"],e,!1)&&this.pagerContext.notifyChanges({pageSize:this.pageSize,skip:this.skip,total:this.total})},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.changePage=function(e){this.pageChange.emit(e)},e.prototype.changePageSize=function(e){this.pageSizeChange.emit(e),e.isDefaultPrevented()||("all"===e.newPageSize?this.pageChange.emit({skip:0,take:this.total}):this.pageChange.emit({skip:0,take:e.newPageSize}))},e.prototype.onPageSizeChange=function(e){this.pageSizeChange.emit(e),e.isDefaultPrevented()||this.pageChange.emit({skip:this.skip,take:e.newPageSize})},i.__decorate([r.ViewChild(s.ResizeSensorComponent,{static:!0}),i.__metadata("design:type",s.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),i.__decorate([r.ContentChild(a.PagerTemplateDirective,{static:!0}),i.__metadata("design:type",a.PagerTemplateDirective)],e.prototype,"template",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"total",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"pageSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"buttonCount",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"info",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"pageSizeValues",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"previousNext",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"pageChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"pageSizeChange",void 0),i.__decorate([r.HostBinding("class.k-pager-wrap"),i.__metadata("design:type",Boolean)],e.prototype,"pagerWrapClass",void 0),i.__decorate([r.HostBinding("class.k-pager"),i.__metadata("design:type",Boolean)],e.prototype,"pagerClass",void 0),i.__decorate([r.HostBinding("class.k-widget"),i.__metadata("design:type",Boolean)],e.prototype,"widgetClass",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"widgetRole",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=i.__decorate([r.Component({selector:"kendo-datapager",exportAs:"kendoDataPager",providers:[d.LocalizationService,c.PagerContextService],template:'\n <ng-container kendoDataPagerLocalizedMessages\n i18n-firstPage="kendo.pager.firstPage|The label for the first page button in the Pager"\n firstPage="Go to the first page"\n\n i18n-previousPage="kendo.pager.previousPage|The label for the previous page button in the Pager"\n previousPage="Go to the previous page"\n\n i18n-nextPage="kendo.pager.nextPage|The label for the next page button in the Pager"\n nextPage="Go to the next page"\n\n i18n-lastPage="kendo.pager.lastPage|The label for the last page button in the Pager"\n lastPage="Go to the last page"\n\n i18n-page="kendo.pager.page|The label before the current page number in the Pager"\n page="Page"\n\n i18n-of="kendo.pager.of|The label before the total pages number in the Pager"\n of="of"\n\n i18n-pageNumberInputTitle="kendo.pager.pageNumberInputTitle|The label for the pager input in the Pager"\n pageNumberInputTitle="Page Number"\n\n i18n-items="kendo.pager.items|The label after the total pages number in the Pager"\n items="items"\n\n i18n-itemsPerPage="kendo.pager.itemsPerPage|The label for the page size chooser in the Pager"\n itemsPerPage="items per page"\n >\n </ng-container>\n <ng-container\n *ngIf="template?.templateRef"\n [ngTemplateOutlet]="template.templateRef"\n [ngTemplateOutletContext]="templateContext">\n </ng-container>\n <ng-container *ngIf="!template?.templateRef">\n <kendo-datapager-prev-buttons *ngIf="previousNext"></kendo-datapager-prev-buttons>\n <kendo-datapager-numeric-buttons\n *ngIf="type === \'numeric\' && buttonCount > 0"\n [buttonCount]="buttonCount">\n </kendo-datapager-numeric-buttons>\n <kendo-datapager-input *ngIf="type === \'input\'"></kendo-datapager-input>\n <kendo-datapager-next-buttons *ngIf="previousNext"></kendo-datapager-next-buttons>\n <kendo-datapager-info *ngIf=\'info\'></kendo-datapager-info>\n <kendo-datapager-page-sizes *ngIf="pageSizeValues" [pageSizes]="pageSizeValues"></kendo-datapager-page-sizes>\n </ng-container>\n <kendo-resize-sensor></kendo-resize-sensor>\n '}),i.__metadata("design:paramtypes",[c.PagerContextService,r.ElementRef,d.LocalizationService])],e)}();t.PagerComponent=f},function(e,t,n){"use strict";n.r(t),n.d(t,"PopupComponent",(function(){return p.a})),n.d(t,"AUTOCOMPLETE_VALUE_ACCESSOR",(function(){return Gt})),n.d(t,"COMBOBOX_VALUE_ACCESSOR",(function(){return hn})),n.d(t,"TOUCH_ENABLED",(function(){return Wt})),n.d(t,"DataService",(function(){return Ft})),n.d(t,"DisabledItemsService",(function(){return Mt})),n.d(t,"FilterableComponent",(function(){return Vt})),n.d(t,"ListItemDirective",(function(){return zt})),n.d(t,"CustomMessagesComponent",(function(){return Vn})),n.d(t,"LocalizedMessagesDirective",(function(){return Rn})),n.d(t,"Messages",(function(){return Bn})),n.d(t,"NavigationService",(function(){return At})),n.d(t,"SearchBarComponent",(function(){return wt})),n.d(t,"SelectionService",(function(){return Pt})),n.d(t,"NoDataTemplateDirective",(function(){return Bt})),n.d(t,"TagTemplateDirective",(function(){return yn})),n.d(t,"DROPDOWNLIST_VALUE_ACCESSOR",(function(){return mn})),n.d(t,"FilterInputDirective",(function(){return ni})),n.d(t,"AutoCompleteComponent",(function(){return Ut})),n.d(t,"ComboBoxComponent",(function(){return fn})),n.d(t,"DropDownListComponent",(function(){return gn})),n.d(t,"MultiSelectComponent",(function(){return Cn})),n.d(t,"TagListComponent",(function(){return Sn})),n.d(t,"MultiColumnComboBoxComponent",(function(){return Dn})),n.d(t,"ComboBoxColumnComponent",(function(){return kn})),n.d(t,"ColumnCellTemplateDirective",(function(){return wn})),n.d(t,"ColumnHeaderTemplateDirective",(function(){return xn})),n.d(t,"DropDownTreeComponent",(function(){return Fn})),n.d(t,"DropDownTreesFlatBindingDirective",(function(){return Mn})),n.d(t,"DropDownTreesHierarchyBindingDirective",(function(){return Nn})),n.d(t,"DropDownTreesExpandDirective",(function(){return An})),n.d(t,"DropDownTreesModule",(function(){return qn})),n.d(t,"NodeTemplateDirective",(function(){return Pn})),n.d(t,"ItemTemplateDirective",(function(){return xt})),n.d(t,"GroupTemplateDirective",(function(){return It})),n.d(t,"FixedGroupTemplateDirective",(function(){return Dt})),n.d(t,"CustomItemTemplateDirective",(function(){return vn})),n.d(t,"HeaderTemplateDirective",(function(){return kt})),n.d(t,"FooterTemplateDirective",(function(){return Et})),n.d(t,"ValueTemplateDirective",(function(){return bn})),n.d(t,"TemplateContextDirective",(function(){return Un})),n.d(t,"GroupTagTemplateDirective",(function(){return _n})),n.d(t,"SelectableDirective",(function(){return Gn})),n.d(t,"SummaryTagDirective",(function(){return Xn})),n.d(t,"FilterDirective",(function(){return Ln})),n.d(t,"DropDownsModule",(function(){return ci})),n.d(t,"MultiSelectModule",(function(){return si})),n.d(t,"SharedModule",(function(){return Zn})),n.d(t,"AutoCompleteModule",(function(){return Jn})),n.d(t,"ComboBoxModule",(function(){return ti})),n.d(t,"DropDownListModule",(function(){return oi})),n.d(t,"SharedDirectivesModule",(function(){return Kn})),n.d(t,"ListComponent",(function(){return Lt})),n.d(t,"PreventableEvent",(function(){return Rt}));var i,o,r=n(0),a=n(1),s=n(2),c=n(7),u=n(9),l=n(4),d=n(5),p=n(11),h=n(3),f=n(10),b=n(8),m=n(6),g=n(15),v=n(14),y={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1611126394,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(){function e(){this.changes=new a.EventEmitter}return e.prototype.notify=function(){this.changes.emit()},e}(),O=function(){return!1},j=function(){return"none"},C=function(){return!1},S=function(){return!0},w=function(){return!1},x=function(){return!0},k=function(e,t){return t},E=function(){function e(){this.changes=new d.Subject}return e.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},e.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})},e=Object(r.__decorate)([Object(a.Injectable)()],e)}(),I=function(){function e(){this.INDEX_SEPARATOR="_"}return e.prototype.nodeIndex=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),""+t+(t?this.INDEX_SEPARATOR:"")+e},e.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},e.prototype.lastLevelIndex=function(e){void 0===e&&(e="");var t=e.split(this.INDEX_SEPARATOR);return t.length?parseInt(t[t.length-1],10):NaN},e.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length},e=Object(r.__decorate)([Object(a.Injectable)()],e)}(),D=function(){function e(){this.changes=new d.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=Object(r.__decorate)([Object(a.Injectable)()],e)}(),P=/^(?:a|input|select|option|textarea|button|object)$/i,T=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)},F=function(e,t){if(!document.documentElement.contains(e))return null;for(var n=e;null!==n&&1===n.nodeType;){if(T(n,t))return n;n=n.parentElement||n.parentNode}return null},M=function(){},N=function(e){return null!=e},A=function(e){return null==e},B=function(e){return Array.isArray(e)},R=function(e){return Object(s.isDocumentAvailable)()?e.closest?e.closest("li.k-treeview-item"):F(e,"li.k-treeview-item"):null},V=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,o=null!==n&&!i;return P.test(t)&&(o=!e.disabled&&!i),o}return!1},z=function(e){if(!Object(s.isDocumentAvailable)())return null;for(var t=e;t&&!T(t,".k-in:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)t=t.parentNode;return t?T(t,".k-in:not(.k-treeview-load-more-button)"):void 0},L=function(e){return N(F(e,".k-in.k-treeview-load-more-button"))},H=function(e,t){return Boolean(function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}(e,(function(e){return e===t})))},K=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},G=function(e){return e?e.getAttribute("data-treeindex"):""},U=function(e){return(e||{}).index},W=function(e,t){return!N(e)&&!N(t)||N(e)&&N(t)&&e.item.dataItem===t.item.dataItem},Z=function(e){return N(e)?e.item.dataItem:e},$=function(e){return e&&Array.isArray(e)&&0!==e.length},q=function(e,t,n,i,o){var r=n.operator,a=n.ignoreCase;void 0===o&&(o=0);var s="string"==typeof i?i:i[o];return e.reduce((function(e,n){if(("string"==typeof r?Y(s,r,a):r)(n.dataItem,t))e.push(n);else if(n.children&&n.children.length>0){var c=q(n.children,t,{operator:r,ignoreCase:a},i,o+1);c.length>0&&e.push({dataItem:n.dataItem,children:c})}return e}),[])},X={contains:function(e,t){return e.indexOf(t)>=0},doesnotcontain:function(e,t){return-1===e.indexOf(t)},startswith:function(e,t){return 0===e.lastIndexOf(t,0)},doesnotstartwith:function(e,t){return-1===e.lastIndexOf(t,0)},endswith:function(e,t){return e.indexOf(t,e.length-t.length)>=0},doesnotendwith:function(e,t){return e.indexOf(t,e.length-t.length)<0}},Y=function(e,t,n){return function(i,o){return function(e,t){return function(n,i){return t?e(n.toLowerCase(),i.toLowerCase()):e(n,i)}}(X[t],n)(i[e],o)}},J=function(e){return e[e.length-1]},Q=function(e){return e||{}},ee=function(e){return Q(e).children||[]},te=function(){function e(){this.ib=new I,this.nodes=[]}return e.prototype.firstNode=function(){return this.nodes[0]||null},e.prototype.lastNode=function(){var e=this.nodes[this.nodes.length-1];return e?function(e){for(var t=e,n=[].concat(ee(e));n.length;)t=(n=n.concat(ee(J(n)))).shift();return t}(J(this.container(e)))||e:null},e.prototype.closestNode=function(e){var t=Q(this.findNode(e)).prev||this.firstNode();return Q(t).index===e?this.sibling(t,1):t},e.prototype.findNode=function(e){return this.find(e,this.nodes)},e.prototype.findParent=function(e){var t=this.ib.level(e)-1;return this.findNode(this.ib.indexForLevel(e,t))},e.prototype.findChild=function(e){return ee(this.findNode(e))[0]||null},e.prototype.findPrev=function(e){var t=e.index,n=this.findParent(t);if(0===this.ib.lastLevelIndex(t))return n;var i=this.findNode(t),o=this.sibling(i,-1);if(o)for(var r=this.container(o);r.length>0;)o=J(r),r=this.container(o);return o},e.prototype.findNext=function(e){var t=this.container(e);return 0===t.length?this.sibling(e,1):t[0]},e.prototype.registerItem=function(e,t,n,i){void 0===i&&(i=!1);var o=this.ib.level(t),r=this.findParent(t);if(r||1===o){var a={id:e,children:[],index:t,parent:r,disabled:n,loadMoreButton:i};this.insert(a,r)}},e.prototype.unregisterItem=function(e,t){var n=this.find(t,this.nodes);if(n&&n.id===e){var i=this.container(n.parent);i.splice(i.indexOf(n),1)}},e.prototype.childLevel=function(e){var t=e.filter((function(e){return N(e)}));return t&&t.length?this.ib.level(t[0].index):1},e.prototype.container=function(e){return e?e.children:this.nodes},e.prototype.find=function(e,t){var n=this.childLevel(t),i=this.ib.indexForLevel(e,n),o=n===this.ib.level(e),r=t.find((function(e){return e&&e.index===i}));return r?o?r:this.find(e,r.children):null},e.prototype.insert=function(e,t){this.container(t).splice(this.ib.lastLevelIndex(e.index),0,e)},e.prototype.sibling=function(e,t){if(!e)return null;var n=this.findParent(e.index),i=this.container(n);return i[i.indexOf(e)+t]||this.sibling(n,t)||null},e}(),ne=function(){function e(e){var t,n=this;this.localization=e,this.expands=new d.Subject,this.moves=new d.Subject,this.checks=new d.Subject,this.selects=new d.Subject,this.loadMore=new d.Subject,this.navigable=!0,this.actions=((t={})[s.Keys.ArrowUp]=function(){return n.activate(n.model.findPrev(n.focusableItem))},t[s.Keys.ArrowDown]=function(){return n.activate(n.model.findNext(n.focusableItem))},t[s.Keys.ArrowLeft]=function(){return!n.isLoadMoreButton&&n.expand({expand:n.localization.rtl,intercept:n.localization.rtl?n.moveToChild:n.moveToParent})},t[s.Keys.ArrowRight]=function(){return!n.isLoadMoreButton&&n.expand({expand:!n.localization.rtl,intercept:n.localization.rtl?n.moveToParent:n.moveToChild})},t[s.Keys.Home]=function(){return n.activate(n.model.firstNode())},t[s.Keys.End]=function(){return n.activate(n.model.lastNode())},t[s.Keys.Enter]=function(){return n.handleEnter()},t[s.Keys.Space]=function(){return n.handleSpace()},t),this.isFocused=!1,this._model=new te,this.moveToChild=this.moveToChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return U(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstNode()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&this.activeItem.children.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoadMoreButton",{get:function(){return this.activeItem&&this.activeItem.loadMoreButton},enumerable:!0,configurable:!0}),e.prototype.activate=function(e){this.navigable&&e&&!this.isActive(U(e))&&(this.isFocused=!0,this.activeItem=e||this.activeItem,this.notifyMove())},e.prototype.activateParent=function(e){this.activate(this.model.findParent(e))},e.prototype.activateIndex=function(e){e&&this.activate(this.model.findNode(e))},e.prototype.activateClosest=function(e){e&&U(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},e.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstNode(),this.notifyMove())},e.prototype.deactivate=function(){this.navigable&&this.isFocused&&(this.isFocused=!1,this.notifyMove())},e.prototype.checkIndex=function(e){this.isDisabled(e)||this.checks.next(e)},e.prototype.selectIndex=function(e){this.isDisabled(e)||this.selects.next(e)},e.prototype.notifyLoadMore=function(e){N(e)&&this.loadMore.next(e)},e.prototype.isActive=function(e){return!!e&&(this.isFocused&&this.activeIndex===e)},e.prototype.isFocusable=function(e){return U(this.focusableItem)===e},e.prototype.isDisabled=function(e){return this.model.findNode(e).disabled},e.prototype.registerItem=function(e,t,n,i){void 0===i&&(i=!1);var o=this.model.findNode(t);N(o)&&(this.model.unregisterItem(o.id,o.index),this.isActive(t)&&this.deactivate()),this.model.registerItem(e,t,n,i)},e.prototype.unregisterItem=function(e,t){this.isActive(t)&&this.activateParent(t),this.model.unregisterItem(e,t)},e.prototype.move=function(e){if(this.navigable){var t=this.actions[e.keyCode];t&&(t(),e.preventDefault())}},e.prototype.expand=function(e){var t=e.expand,n=e.intercept,i=U(this.activeItem);i&&!n(i)&&this.notifyExpand(t)},e.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(U(this.activeItem))),!0)},e.prototype.moveToChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findChild(U(this.activeItem))),!0)},e.prototype.notifyExpand=function(e){this.expands.next(this.navigationState(e))},e.prototype.notifyMove=function(){this.moves.next(this.navigationState())},e.prototype.navigationState=function(e){return void 0===e&&(e=!1),{expand:e,index:this.activeIndex,isFocused:this.isFocused}},e.prototype.handleEnter=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))},e.prototype.handleSpace=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))},e=Object(r.__decorate)([Object(a.Injectable)(),Object(r.__metadata)("design:paramtypes",[l.LocalizationService])],e)}(),ie=function(){function e(){this.changes=new d.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=Object(r.__decorate)([Object(a.Injectable)()],e)}(),oe=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewNodeTemplate]"}),Object(r.__param)(0,Object(a.Optional)()),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),re=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewLoadMoreButtonTemplate]"}),Object(r.__param)(0,Object(a.Optional)()),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),ae=function(){function e(){}return e=Object(r.__decorate)([Object(a.Injectable)()],e)}(),se=function(){function e(){}return e=Object(r.__decorate)([Object(a.Injectable)()],e)}(),ce=function(){function e(){this.changes=new d.Subject}return e.prototype.isFirstSelected=function(e){return this.firstIndex===e},e.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},e.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},e=Object(r.__decorate)([Object(a.Injectable)()],e)}(),ue=/\d+$/,le=function(){function e(){this.map=new Map}return e.prototype.registerItem=function(e,t){var n={children:[],item:e,parent:this.item(U(t))};this.map.set(e.index,n)},e.prototype.registerChildren=function(e,t){var n=this.item(e);n&&(n.children=t)},e.prototype.unregisterItem=function(e,t){var n=this.item(e);n&&n.item.dataItem===t&&(this.map.delete(e),n.parent&&n.parent.children&&(n.parent.children=n.parent.children.filter((function(e){return e.dataItem!==t}))))},e.prototype.replaceItem=function(e,t,n){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,n),this.addToParent(t,n))},e.prototype.itemLookup=function(e){var t=this.item(e);return t?{children:this.mapChildren(t.children),item:t.item,parent:t.parent}:null},e.prototype.hasItem=function(e){return this.map.has(e)},e.prototype.item=function(e){return this.map.get(e)||null},e.prototype.addToParent=function(e,t){if(t){var n=this.item(t.index),i=parseInt(ue.exec(e.index)[0],10);n.children=n.children||[],n.children.splice(i,0,e)}},e.prototype.mapChildren=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){var n=t.item(e.index),i=n.item,o=n.parent,r=n.children;return{children:t.mapChildren(r),item:i,parent:o}}))},e=Object(r.__decorate)([Object(a.Injectable)()],e)}(),de=[E,I,le,D,ie,ne,ce,_,l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.treeview"},{provide:ae,useExisting:Object(a.forwardRef)((function(){return pe}))},{provide:se,useExisting:Object(a.forwardRef)((function(){return pe}))}],pe=function(){function e(e,t,n,i,o,r,s,c,l,p){var h=this;this.element=e,this.expandService=t,this.navigationService=n,this.nodeChildrenService=i,this.selectionService=o,this.treeViewLookupService=r,this.ngZone=s,this.renderer=c,this.dataChangeNotification=l,this.localization=p,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return h.data},this.childrenLoaded=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.expand=new a.EventEmitter,this.collapse=new a.EventEmitter,this.nodeDragStart=new a.EventEmitter,this.nodeDrag=new a.EventEmitter,this.nodeDrop=new a.EventEmitter,this.nodeDragEnd=new a.EventEmitter,this.addItem=new a.EventEmitter,this.removeItem=new a.EventEmitter,this.checkedChange=new a.EventEmitter,this.selectionChange=new a.EventEmitter,this.filterChange=new a.EventEmitter,this.nodeClick=new a.EventEmitter,this.nodeDblClick=new a.EventEmitter,this.trackBy=k,this.isDisabled=C,this.isVisible=x,this.navigable=!0,this.children=function(){return Object(d.of)([])},this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new d.BehaviorSubject([]),this._animate=!0,this.subscriptions=new d.Subscription,this.domSubscriptions=[],Object(u.validatePackage)(y)}return Object.defineProperty(e.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return!this._animate},set:function(e){this._animate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeTemplateRef",{set:function(e){this.nodeTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonTemplateRef",{set:function(e){this.loadMoreButtonTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data.value},set:function(e){this.dataChangeNotification.notify(),this.data.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||O},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this._isChecked||j},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||S},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||w},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach((function(e){return e()}))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe((function(t){return e.childrenLoaded.emit(t)}))),this.subscriptions.add(this.expandService.changes.subscribe((function(t){var n=t.index,i=t.dataItem;return t.expand?e.expand.emit({index:n,dataItem:i}):e.collapse.emit({index:n,dataItem:i})}))),this.subscriptions.add(this.navigationService.checks.subscribe((function(t){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(t))}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(t){Object(s.hasObservers)(e.selectionChange)&&e.ngZone.run((function(){e.selectionChange.emit(t)}))}))),this.element&&this.ngZone.runOutsideAngular((function(){e.attachDomHandlers()}))},e.prototype.blur=function(){if(Object(s.isDocumentAvailable)()){var e=K(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){this.navigationService.activateIndex(e);var t=K(this.element);t&&t.focus()},e.prototype.itemLookup=function(e){return this.treeViewLookupService.itemLookup(e)},e.prototype.rebindChildren=function(){this.dataChangeNotification.notify()},e.prototype.isDisabledNode=function(e){return this.navigationService.isDisabled(e.item.index)},e.prototype.expandNode=function(e,t){this.expandService.expand(t,e)},e.prototype.collapseNode=function(e,t){this.expandService.collapse(t,e)},e.prototype.getNodePageSize=function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)},e.prototype.setNodePageSize=function(e,t){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,t)},e.prototype.attachDomHandlers=function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))},e.prototype.focusHandler=function(e){var t,n=this;T(e.target,".k-treeview-item")?t=e.target:V(e.target)||(t=R(e.target)),t&&(this.navigationService.activateIndex(G(e.target)),!this.isActive&&Object(s.hasObservers)(this.onFocus)&&this.ngZone.run((function(){n.onFocus.emit()})),this.isActive=!0)},e.prototype.blurHandler=function(e){var t=this;!this.isActive||!T(e.target,".k-treeview-item")||e.relatedTarget&&T(e.relatedTarget,".k-treeview-item")&&H(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,Object(s.hasObservers)(this.onBlur)&&this.ngZone.run((function(){t.onBlur.emit()})))},e.prototype.clickHandler=function(e){var t=this,n=e.target;if(("contextmenu"!==e.type||Object(s.hasObservers)(this.nodeClick))&&("click"!==e.type||Object(s.hasObservers)(this.nodeClick)||Object(s.hasObservers)(this.selectionChange)||L(n))&&("dblclick"!==e.type||Object(s.hasObservers)(this.nodeDblClick))&&!V(n)&&(z(n)||L(n))&&H(n,this.element.nativeElement)){var i=G(R(n));i&&!this.navigationService.isDisabled(i)&&this.ngZone.run((function(){var n=t.treeViewLookupService.itemLookup(i);"click"===e.type&&(t.navigationService.model.findNode(i).loadMoreButton?t.navigationService.notifyLoadMore(i):t.navigationService.selectIndex(i));("dblclick"===e.type?t.nodeDblClick:t.nodeClick).emit({item:n.item,originalEvent:e,type:e.type})}))}},e.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run((function(){t.navigationService.move(e)}))},e.prototype.verifyLoadMoreService=function(){if(Object(a.isDevMode)()&&!N(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")},Object(r.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-treeview"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"classNames",void 0),Object(r.__decorate)([Object(a.HostBinding)("attr.role"),Object(r.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(r.__decorate)([Object(a.HostBinding)("attr.dir"),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"direction",null),Object(r.__decorate)([Object(a.ViewChild)("assetsContainer",{read:a.ViewContainerRef,static:!0}),Object(r.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"assetsContainer",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"filterInputPlaceholder",void 0),Object(r.__decorate)([Object(a.Input)(),Object(a.HostBinding)("@.disabled"),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[Boolean])],e.prototype,"animate",null),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"childrenLoaded",void 0),Object(r.__decorate)([Object(a.Output)("blur"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(r.__decorate)([Object(a.Output)("focus"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"expand",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"collapse",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"nodeDragStart",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"nodeDrag",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"nodeDrop",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"nodeDragEnd",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"addItem",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"removeItem",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"checkedChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"nodeClick",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"nodeDblClick",void 0),Object(r.__decorate)([Object(a.ContentChild)(oe,{static:!0}),Object(r.__metadata)("design:type",oe)],e.prototype,"nodeTemplate",void 0),Object(r.__decorate)([Object(a.Input)("nodeTemplate"),Object(r.__metadata)("design:type",oe),Object(r.__metadata)("design:paramtypes",[oe])],e.prototype,"nodeTemplateRef",null),Object(r.__decorate)([Object(a.ContentChild)(re,{static:!0}),Object(r.__metadata)("design:type",re)],e.prototype,"loadMoreButtonTemplate",void 0),Object(r.__decorate)([Object(a.Input)("loadMoreButtonTemplate"),Object(r.__metadata)("design:type",re),Object(r.__metadata)("design:paramtypes",[re])],e.prototype,"loadMoreButtonTemplateRef",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"trackBy",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"nodes",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"hasChildren",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"isChecked",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"isDisabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"isExpanded",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"isSelected",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"isVisible",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"navigable",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"children",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"filter",void 0),e=Object(r.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:de,selector:"kendo-treeview",template:'\n <kendo-textbox\n #filterInput\n *ngIf="filterable"\n [value]="filter"\n [clearButton]="true"\n (valueChange)="filterChange.emit($event)"\n [placeholder]="filterInputPlaceholder"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class="k-icon k-i-search"></span>\n </ng-template>\n </kendo-textbox>\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplate?.templateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplate?.templateRef"\n [textField]="textField"\n [nodes]="fetchNodes"\n [loadMoreService]="loadMoreService"\n [trackBy]="trackBy"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n '}),Object(r.__metadata)("design:paramtypes",[a.ElementRef,E,ne,ie,ce,le,a.NgZone,a.Renderer2,_,l.LocalizationService])],e)}(),he=function(){function e(e,t,n,i,o,r,a,s){this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=o,this.nodeChildrenService=r,this.dataChangeNotification=a,this.changeDetectorRef=s,this.kGroupClass=!0,this.role="group",this.textField="",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new d.Subscription,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return Object(d.of)([])},this.hasChildren=function(){return!1}}return Object.defineProperty(e.prototype,"moreNodesAvailable",{get:function(){return!!N(this.loadMoreService)&&this.pageSize<this.totalNodesCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return N(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null},set:function(e){this.loadMoreService.setGroupSize(this.parentDataItem,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){if(N(this.pageSize)){var e=this.pageSize>0?this.pageSize:0;return this._data.slice(0,e)}return this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonIndex",{get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalNodesCount",{get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTemplate",{get:function(){return N(this.nodeTemplateRef)},enumerable:!0,configurable:!0}),e.prototype.expandNode=function(e,t,n){n?this.expandService.expand(e,t):this.expandService.collapse(e,t)},e.prototype.checkNode=function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)},e.prototype.nodeIndex=function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)},e.prototype.nodeText=function(e){var t=B(this.textField)?this.textField[0]:this.textField;return Object(b.b)(t)(e)},e.prototype.ngOnDestroy=function(){N(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),N(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(Object(h.filter)((function(t){return t===e.loadMoreButtonIndex}))).subscribe(this.loadMoreNodes.bind(this)))},e.prototype.ngOnChanges=function(e){e.parentIndex&&this.setNodeChildren(this.mapToTreeItem(this.data))},e.prototype.fetchChildren=function(e,t){var n=this;return this.children(e).pipe(Object(h.catchError)((function(){return n.loadingService.notifyLoaded(t),d.EMPTY})),Object(h.tap)((function(){return n.loadingService.notifyLoaded(t)})))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return B(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.loadMoreNodes=function(){N(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()},e.prototype.loadMoreLocalNodes=function(){var e=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(e)},e.prototype.fetchMoreNodes=function(){var e=this;this.loadingMoreNodes||(this.loadingMoreNodes=!0,N(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe(Object(h.finalize)((function(){return e.loadingMoreNodes=!1}))).subscribe((function(t){if(Array.isArray(t)&&t.length>0){var n=e.loadMoreButtonIndex;e.pageSize+=t.length,e.data=e.data.concat(t),e.navigationService.isActive(n)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(n))}})))},e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var t=this;return this.parentIndex?e.map((function(e,n){return{dataItem:e,index:t.nodeIndex(n)}})):[]},e.prototype.emitChildrenLoaded=function(e){if(this.parentIndex){var t=e.filter((function(e){return e.dataItem}));this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},t)}},e.prototype.subscribeToNodesChange=function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe((function(t){e.data=t,e.initialNodesLoaded=!0}))},e.prototype.reselectItemAt=function(e){N(e)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(e))},e.prototype.registerLoadedNodes=function(e){void 0===e&&(e=[]);var t=this.mapToTreeItem(e);this.setNodeChildren(t),this.emitChildrenLoaded(t)},Object(r.__decorate)([Object(a.HostBinding)("class.k-group"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"kGroupClass",void 0),Object(r.__decorate)([Object(a.HostBinding)("attr.role"),Object(r.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"checkboxes",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"expandIcons",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"selectable",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"touchActions",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"trackBy",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"nodes",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"parentDataItem",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"parentIndex",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",a.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",a.TemplateRef)],e.prototype,"loadMoreButtonTemplateRef",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"loadMoreService",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"isChecked",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"isDisabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"isExpanded",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"isVisible",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"isSelected",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"children",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"hasChildren",void 0),e=Object(r.__decorate)([Object(a.Component)({animations:[Object(f.trigger)("toggle",[Object(f.transition)("void => *",[Object(f.style)({height:0}),Object(f.animate)("0.1s ease-in",Object(f.style)({height:"*"}))]),Object(f.transition)("* => void",[Object(f.style)({height:"*"}),Object(f.animate)("0.1s ease-in",Object(f.style)({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index; trackBy: trackBy"\n class="k-item k-treeview-item"\n [class.k-display-none]="!isVisible(node, nodeIndex(index))"\n kendoTreeViewItem\n [attr.aria-setsize]="totalNodesCount"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [checkable]="checkboxes"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="disabled || isDisabled(node, nodeIndex(index))"\n [expandable]="expandIcons && hasChildren(node)"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\n [selectable]="selectable"\n [isSelected]="isSelected(node, nodeIndex(index))"\n [attr.data-treeindex]="nodeIndex(index)"\n >\n <div class="k-mid">\n <span\n class="k-icon"\n [class.k-i-collapse]="isExpanded(node, nodeIndex(index))"\n [class.k-i-expand]="!isExpanded(node, nodeIndex(index))"\n [kendoTreeViewLoading]="nodeIndex(index)"\n (click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"\n *ngIf="expandIcons && hasChildren(node)"\n >\n </span>\n <kendo-checkbox\n *ngIf="checkboxes"\n [node]="node"\n [index]="nodeIndex(index)"\n [isChecked]="isChecked"\n (checkStateChange)="checkNode(nodeIndex(index))"\n tabindex="-1"\n ></kendo-checkbox>\n <span kendoTreeViewItemContent\n [attr.data-treeindex]="nodeIndex(index)"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [initialSelection]="isSelected(node, nodeIndex(index))"\n [isSelected]="isSelected"\n class="k-in"\n [style.touch-action]="touchActions ? \'\' : \'none\'"\n >\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: node,\n index: nodeIndex(index)\n }"\n >\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{nodeText(node)}}\n </ng-container>\n </ng-container>\n </span>\n </div>\n <ul\n *ngIf="isExpanded(node, nodeIndex(index)) && hasChildren(node)"\n kendoTreeViewGroup\n role="group"\n [nodes]="fetchChildren"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [disabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [loadMoreService]="loadMoreService"\n [@toggle]="true"\n [trackBy]="trackBy"\n >\n </ul>\n </li>\n <li\n *ngIf="initialNodesLoaded && moreNodesAvailable"\n class="k-item k-treeview-item"\n [class.k-treeview-load-more-checkboxes-container]="checkboxes"\n kendoTreeViewItem\n [role]="\'button\'"\n [selectable]="false"\n [checkable]="false"\n [expandable]="false"\n [index]="loadMoreButtonIndex"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [attr.data-treeindex]="loadMoreButtonIndex"\n >\n <div class="k-mid">\n <span\n *ngIf="loadingMoreNodes"\n class="k-icon k-i-loading k-i-expand"\n >\n </span>\n <span\n class="k-in k-treeview-load-more-button"\n [attr.data-treeindex]="loadMoreButtonIndex"\n kendoTreeViewItemContent\n [index]="loadMoreButtonIndex"\n >\n <ng-template\n *ngIf="loadMoreButtonTemplateRef"\n [ngTemplateOutlet]="loadMoreButtonTemplateRef"\n [ngTemplateOutletContext]="{\n index: loadMoreButtonIndex\n }"\n >\n </ng-template>\n <ng-container *ngIf="!loadMoreButtonTemplateRef">\n Load more\n </ng-container>\n </span>\n </div>\n </li>\n '}),Object(r.__metadata)("design:paramtypes",[E,D,I,le,ne,ie,_,a.ChangeDetectorRef])],e)}(),fe=function(e){if(!N(e)||0===e.children.length)return[];var t=e.children;return t.forEach((function(e){return t=t.concat(fe(e))})),t},be=function(){function e(e,t){var n=this;this.treeView=e,this.zone=t,this.checkedKeysChange=new a.EventEmitter,this.subscriptions=new d.Subscription,this.checkActions={multiple:function(e){return n.checkMultiple(e)},single:function(e){return n.checkSingle(e)}},this._checkedKeys=[],this.subscriptions.add(this.treeView.checkedChange.subscribe((function(e){return n.check(e)})));var i=[];this.subscriptions.add(this.treeView.childrenLoaded.pipe(Object(h.filter)((function(){return n.options.checkChildren})),Object(h.tap)((function(e){return i.push(e)})),Object(h.switchMap)((function(){return n.zone.onStable.pipe(Object(h.take)(1))}))).subscribe((function(){return n.addCheckedItemsChildren(i)}))),this.treeView.isChecked=this.isItemChecked.bind(this)}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.treeView.isChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkedKeys",{get:function(){return this._checkedKeys},set:function(e){this._checkedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};if(!N(this.checkable)||"string"==typeof this.checkable)return e;var t="boolean"==typeof this.checkable?{enabled:this.checkable}:this.checkable;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},e.prototype.isItemChecked=function(e,t){return this.checkKey?this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))>-1?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var t=this.checkedKeys.filter(function(e){return function(t){return e===t||!!t.split&&t.split("_").reduce((function(t,n){var i=t.key,o=t.result;return e===(i+=n)||o?{result:!0}:{key:i+="_",result:!1}}),{key:"",result:!1}).result}}(e));if(function(e,t){return e.filter((function(e){return e===t})).length>0}(t,e))return"checked";var n=this.options,i=n.mode,o=n.checkParents;return"multiple"===i&&o&&t.length?"indeterminate":"none"},e.prototype.itemKey=function(e){return N(this.checkKey)?"string"==typeof this.checkKey&&N(e.dataItem)?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},e.prototype.check=function(e){var t=this.options,n=t.enabled,i=t.mode,o=this.checkActions[i]||M;n&&o(e)},e.prototype.checkSingle=function(e){var t=this.itemKey(e.item);this.checkedKeys=this.checkedKeys[0]!==t?[t]:[],this.notify()},e.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},e.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe((function(t){if("click"===t.type){var n=e.treeView.itemLookup(t.item.index);e.check(n)}})))},e.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},e.prototype.checkNode=function(e){var t=this;if(N(e.item.dataItem)&&!this.treeView.isDisabledNode(e)){var n=this.itemKey(e.item);if(N(n)){var i=new Set(this.checkedKeys),o=[n];if(this.options.checkChildren){var r=fe(e).filter((function(e){return N(e.item.dataItem)&&!t.treeView.isDisabledNode(e)})).map((function(e){var n=e.item;return t.itemKey(n)}));o.push.apply(o,r)}var a=!i.has(n);o.forEach((function(e){a?i.add(e):i.delete(e)})),this.checkedKeys=Array.from(i)}}},e.prototype.checkParents=function(e){var t=this;if(N(e)){for(var n=new Set(this.checkedKeys),i=e;i;){var o=this.itemKey(i.item);i.children.every((function(e){return n.has(t.itemKey(e))}))?n.add(o):n.delete(o),i=i.parent}this.checkedKeys=Array.from(n)}},e.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},e.prototype.addCheckedItemsChildren=function(e){var t=this;if(N(e)&&0!==e.length){var n=this.checkedKeys.length,i=new Set(this.checkedKeys);e.forEach((function(e){var n=t.itemKey(e.item);i.has(n)&&e.children.forEach((function(e){return N(e.dataItem)&&i.add(t.itemKey(e))}))})),n!==i.size&&(this.checkedKeys=Array.from(i),this.zone.run((function(){return t.notify()})))}},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"isChecked",null),Object(r.__decorate)([Object(a.Input)("checkBy"),Object(r.__metadata)("design:type",Object)],e.prototype,"checkKey",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"checkedKeys",null),Object(r.__decorate)([Object(a.Input)("kendoTreeViewCheckable"),Object(r.__metadata)("design:type",Object)],e.prototype,"checkable",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewCheckable]"}),Object(r.__metadata)("design:paramtypes",[pe,a.NgZone])],e)}(),me=function(){function e(e,t){var n=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))>-1}}return Object.defineProperty(e.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){void 0===e&&(e={});var t=e.disabledKeys;t&&!t.firstChange&&this.cdr.markForCheck()},e.prototype.itemKey=function(e){return this.disableKey?"string"==typeof this.disableKey?e.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(e):void 0:e.index},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"isDisabled",null),Object(r.__decorate)([Object(a.Input)("kendoTreeViewDisable"),Object(r.__metadata)("design:type",Object)],e.prototype,"disableKey",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array)],e.prototype,"disabledKeys",void 0),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewDisable]"}),Object(r.__metadata)("design:paramtypes",[pe,a.ChangeDetectorRef])],e)}(),ge=function(){function e(e){var t=this;this.treeView=e,this.expandedKeysChange=new a.EventEmitter,this.subscriptions=new d.Subscription,this._expandedKeys=[],this.subscriptions.add(Object(d.merge)(this.treeView.expand.pipe(Object(h.map)((function(e){return Object(r.__assign)({expand:!0},e)}))),this.treeView.collapse.pipe(Object(h.map)((function(e){return Object(r.__assign)({expand:!1},e)})))).subscribe(this.toggleExpand.bind(this))),this.treeView.isExpanded=function(e,n){return t.expandedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}return Object.defineProperty(e.prototype,"isExpanded",{set:function(e){this.treeView.isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandedKeys",{get:function(){return this._expandedKeys},set:function(e){this._expandedKeys=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){if(this.expandKey){if("string"==typeof this.expandKey)return e.dataItem[this.expandKey];if("function"==typeof this.expandKey)return this.expandKey(e)}return e.index},e.prototype.toggleExpand=function(e){var t=e.index,n=e.dataItem,i=e.expand,o=this.itemKey({index:t,dataItem:n}),r=this.expandedKeys.indexOf(o),a=!1;r>-1&&!i?(this.expandedKeys.splice(r,1),a=!0):-1===r&&i&&(this.expandedKeys.push(o),a=!0),a&&this.expandedKeysChange.emit(this.expandedKeys)},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"isExpanded",null),Object(r.__decorate)([Object(a.Input)("expandBy"),Object(r.__metadata)("design:type",Object)],e.prototype,"expandKey",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"expandedKeysChange",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"expandedKeys",null),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewExpandable]"}),Object(r.__metadata)("design:paramtypes",[se])],e)}(),ve=function(){function e(e){var t=this;this.treeView=e,this.selectedKeysChange=new a.EventEmitter,this.subscriptions=new d.Subscription,this.selectActions={multiple:function(e){return t.selectMultiple(e)},single:function(e){return t.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,n){return t.selectedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}return Object.defineProperty(e.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{get:function(){return this._selectedKeys},set:function(e){this._selectedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={enabled:!0,mode:"single"};if(!N(this.selection)||"string"==typeof this.selection)return e;var t="boolean"==typeof this.selection?{enabled:this.selection}:this.selection;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){return this.selectKey?"string"==typeof this.selectKey?e.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(e):void 0:e.index},e.prototype.select=function(e){var t=this.options,n=t.enabled,i=t.mode,o=this.selectActions[i]||M;n&&o(e)},e.prototype.selectSingle=function(e){var t=this.itemKey(e);this.selectedKeys[0]!==t&&(this.selectedKeys=[t],this.notify())},e.prototype.selectMultiple=function(e){var t=this.itemKey(e),n=this.selectedKeys.indexOf(t),i=n>-1;N(t)&&(i?this.selectedKeys.splice(n,1):this.selectedKeys.push(t),this.notify())},e.prototype.notify=function(){this.selectedKeysChange.emit(this.selectedKeys.slice())},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"isSelected",null),Object(r.__decorate)([Object(a.Input)("selectBy"),Object(r.__metadata)("design:type",Object)],e.prototype,"selectKey",void 0),Object(r.__decorate)([Object(a.Input)("kendoTreeViewSelectable"),Object(r.__metadata)("design:type",Object)],e.prototype,"selection",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"selectedKeysChange",void 0),Object(r.__decorate)([Object(a.HostBinding)("attr.aria-multiselectable"),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewSelectable]"}),Object(r.__metadata)("design:paramtypes",[pe])],e)}();!function(e){e[e.Add=0]="Add",e[e.InsertTop=1]="InsertTop",e[e.InsertBottom=2]="InsertBottom",e[e.InsertMiddle=3]="InsertMiddle",e[e.Invalid=4]="Invalid"}(i||(i={})),function(e){e[e.Over=0]="Over",e[e.Before=1]="Before",e[e.After=2]="After"}(o||(o={}));var ye,_e,Oe,je=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),Ce=function(e){function t(t,n){var i=e.call(this)||this;return i.isValid=!0,Object.assign(i,t),i.originalEvent=n,i}return Object(r.__extends)(t,e),t.prototype.setValid=function(e){this.isValid=e},t}(je),Se=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return Object(r.__extends)(t,e),t}(je),we=(ye=function(){if(!Object(s.isDocumentAvailable)()||!N(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},Oe=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Oe||(_e=ye.apply(void 0,e),Oe=!0),_e});var xe,ke=function(e,t,n,i,r){if(N(e)&&N(t)&&N(i)&&N(r)){var a=F(t,".k-mid");if(N(a)){var s=function(e){if(!N(e))return null;var t=".k-in:not(.k-treeview-load-more-button)";return T(e,t)?e:e.querySelector(t)}(a),c=H(a,R(e));if(N(s)&&s!==e&&!c){var u=s.getBoundingClientRect(),l=u.height/(z(t)?4:2),d=n-r.top,p=u.top-r.top;return d<p+l?o.Before:d>=p+u.height-l?o.After:o.Over}}}},Ee=function(e,t){if(!N(e)||!N(t))return null;var n=R(t),i=G(n),o=e.itemLookup(i);return N(o)&&N(o.item.dataItem)?o:null},Ie=function(e,t,n){N(e)&&0===t.length&&n.isExpanded(e.item.dataItem,e.item.index)&&n.collapseNode(e.item.dataItem,e.item.index)},De=function(e,t){t.isExpanded(e.item.dataItem,e.item.index)||t.expandNode(e.item.dataItem,e.item.index)},Pe=function(e){return Object(s.isDocumentAvailable)()&&N(document.elementFromPoint)?document.elementFromPoint(e.clientX,e.clientY):e.target},Te=function(e,t,n){if(N(e.loadMoreService)){var i=e.getNodePageSize(t);e.setNodePageSize(n,i)}},Fe=function(e,t){if(N(e.loadMoreService)){var n=e.getNodePageSize(t);e.setNodePageSize(t,n+1)}},Me=function(e,t){if(N(e.loadMoreService)){var n=e.getNodePageSize(t);e.setNodePageSize(t,n-1)}},Ne=function(){function e(e){this.hierarchyBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,n=e.destinationItem,i=e.dropPosition,r=e.destinationTree,a=Object.assign({},Z(t));if(i===o.Over){De(n,r);var s=this.childrenFor(Z(n)),c=N(r.loadMoreService)?r.loadMoreService.getGroupSize(Z(n)):s.length;s.splice(c,0,a),Object(b.d)(this.hierarchyBinding.childrenField)(Z(n),s)}else{var u=this.getParentNodes(n,r),l=i===o.After?1:0;c=u.indexOf(Z(n))+l;u.splice(c,0,a)}var d=i===o.Over?Z(n):Z(n.parent);Fe(r,d),Te(r,Z(t),a)},e.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=this.getParentNodes(t,n),o=i.indexOf(Z(t));i.splice(o,1),Ie(t.parent,i,n),Me(n,Z(t.parent))},e.prototype.getParentNodes=function(e,t){return N(e.parent)?this.childrenFor(Z(e.parent)):t.nodes},e.prototype.childrenFor=function(e){return Object(b.b)(this.hierarchyBinding.childrenField)(e)||[]},e}(),Ae={operator:"contains",ignoreCase:!0},Be=function(){function e(e){this.cdr=e,this.hostClasses=!0,this.posistionStyle="fixed"}return Object.defineProperty(e.prototype,"statusIconClass",{get:function(){switch(this.action){case i.Add:return"k-i-plus";case i.InsertTop:return"k-i-insert-up";case i.InsertBottom:return"k-i-insert-down";case i.InsertMiddle:return"k-i-insert-middle";case i.Invalid:default:return"k-i-cancel"}},enumerable:!0,configurable:!0}),e.prototype.detectChanges=function(){this.cdr.detectChanges()},Object(r.__decorate)([Object(a.HostBinding)("class.k-header"),Object(a.HostBinding)("class.k-drag-clue"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(r.__decorate)([Object(a.HostBinding)("style.position"),Object(r.__metadata)("design:type",String)],e.prototype,"posistionStyle",void 0),e=Object(r.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drag-clue",template:'\n <ng-container *ngIf="!template">\n <span class="k-icon {{statusIconClass}} k-drag-status"></span>\n <span>{{text}}</span>\n </ng-container>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n text: text,\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n </ng-template>\n '}),Object(r.__metadata)("design:paramtypes",[a.ChangeDetectorRef])],e)}(),Re=function(){function e(){}return Object.defineProperty(e.prototype,"componentRef",{get:function(){if(!N(this._componentRef))throw new Error("The `initalize` method must be called before calling other service methods.");return this._componentRef},set:function(e){this._componentRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){N(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)},e.prototype.show=function(){this.element.style.display=""},e.prototype.hide=function(){this.element.style.display="none"},e.prototype.move=function(e,t,n){void 0===n&&(n=0),this.element.style.left=e+n+"px",this.element.style.top=t+n+"px"},e}(),Ve=function(e){function t(t){var n=e.call(this)||this;return n.componentFactoryResolver=t,n}return Object(r.__extends)(t,e),t.prototype.initialize=function(e,t){N(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(Be);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},t.prototype.ngOnDestroy=function(){this.cancelReturnAnimation(),e.prototype.ngOnDestroy.call(this)},t.prototype.move=function(t,n){e.prototype.move.call(this,t,n,10)},t.prototype.animateDragClueToElementPosition=function(e){var t=this;if(N(e)&&N(this.element.animate)){var n=e.getBoundingClientRect(),i=this.element.getBoundingClientRect();this.returnAnimation=this.element.animate([{transform:"translate(0, 0)"},{transform:"translate("+(n.left-i.left)+"px, "+(n.top-i.top)+"px)"}],200),this.returnAnimation.onfinish=function(){return t.hide()}}else this.hide()},t.prototype.cancelReturnAnimation=function(){N(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)},t.prototype.updateDragClueData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&W(t,i.sourceItem)&&W(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},t.prototype.updateText=function(e){e!==this.componentRef.instance.text&&(this.componentRef.instance.text=e,this.componentRef.instance.detectChanges())},t=Object(r.__decorate)([Object(a.Injectable)(),Object(r.__metadata)("design:paramtypes",[a.ComponentFactoryResolver])],t)}(Re),ze=function(){function e(){this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}return Object(r.__decorate)([Object(a.HostBinding)("class.k-drop-hint-container"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(r.__decorate)([Object(a.HostBinding)("style.position"),Object(r.__metadata)("design:type",String)],e.prototype,"position",void 0),Object(r.__decorate)([Object(a.HostBinding)("style.pointer-events"),Object(r.__metadata)("design:type",String)],e.prototype,"pointerEvents",void 0),e=Object(r.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drop-hint",template:'\n <div\n *ngIf="!template"\n class="k-drop-hint k-drop-hint-h"\n >\n <div class=\'k-drop-hint-start\'></div>\n <div class=\'k-drop-hint-line\'></div>\n </div>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n >\n <ng-template>\n '})],e)}(),Le=function(e){function t(t){var n=e.call(this)||this;return n.componentFactoryResolver=t,n}return Object(r.__extends)(t,e),t.prototype.initialize=function(e,t){N(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(ze);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},t=Object(r.__decorate)([Object(a.Injectable)(),Object(r.__metadata)("design:paramtypes",[a.ComponentFactoryResolver])],t)}(Re),He=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewDragClueTemplate]"}),Object(r.__param)(0,Object(a.Optional)()),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Ke=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewDropHintTemplate]"}),Object(r.__param)(0,Object(a.Optional)()),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Ge=function(){function e(e,t,n,i,o){this.element=e,this.zone=t,this.treeview=n,this.dragClueService=i,this.dropHintService=o,this.allowCopy=!1,this.dropZoneTreeViews=[],this.userSelectStyle="none",this.containerOffset={top:0,left:0},this.treeview.touchActions=!1}return e.prototype.ngAfterContentInit=function(){this.initalizeDraggable(),this.dragClueService.initialize(this.treeview.assetsContainer,this.dragClueTemplate&&this.dragClueTemplate.templateRef),this.dropHintService.initialize(this.treeview.assetsContainer,this.dropHintTemplate&&this.dropHintTemplate.templateRef)},e.prototype.ngOnDestroy=function(){this.draggable.destroy()},e.prototype.handlePress=function(e){var t=this,n=e.originalEvent;if(z(n.target)){var i=Pe(n);if(Object(s.hasObservers)(this.treeview.nodeDragStart))if(this.zone.run((function(){return t.notifyDragStart(n,i)})).isDefaultPrevented())return;this.draggedItem=F(n.target,".k-in"),this.dragClueService.cancelReturnAnimation(),this.dragClueService.updateText(this.draggedItem.innerText),this.containerOffset=function(e){if(!e||!we())return{left:0,top:0};for(var t=e.parentElement;t&&"none"===window.getComputedStyle(t).transform;)t=t.parentElement;if(t){var n=t.getBoundingClientRect();return{left:n.left-t.scrollLeft,top:n.top-t.scrollTop}}return{left:0,top:0}}(this.draggedItem)}},e.prototype.handleDrag=function(e){var t=this,n=e.originalEvent,r=e.clientX,a=e.clientY;if(N(this.draggedItem)){var c=Pe(n);Object(s.hasObservers)(this.treeview.nodeDrag)&&this.zone.run((function(){return t.notifyDrag(n,c)}));var u=this.getTargetTreeView(c),l=ke(this.draggedItem,c,a,u,this.containerOffset),d=F(c,".k-mid");this.updateDropHintState(l,d);var p=function(e,t){if(!N(e)||!N(t))return i.Invalid;switch(e){case o.Over:return i.Add;case o.Before:return N(R(t).previousElementSibling)?i.InsertMiddle:i.InsertTop;case o.After:return N(R(t).nextElementSibling)?i.InsertMiddle:i.InsertBottom;default:return i.Invalid}}(l,c),h=Ee(this.treeview,this.draggedItem),f=Ee(u,c);this.updateDragClueState(p,r,a,h,f)}},e.prototype.handleRelease=function(e){var t=this,n=e.originalEvent,i=e.clientY;if(N(this.draggedItem)){var o=Pe(n),r=this.treeview,a=this.getTargetTreeView(o),c=ke(this.draggedItem,o,i,this.getTargetTreeView(o),this.containerOffset),u=Ee(r,this.draggedItem),l=Ee(a,o);N(l)&&N(c)?this.zone.run((function(){return t.notifyDrop({sourceItem:u,destinationItem:l,dropPosition:c,sourceTree:r,destinationTree:a},n)})):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),Object(s.hasObservers)(this.treeview.nodeDragEnd)&&this.zone.run((function(){return t.notifyDragEnd({sourceItem:u,destinationItem:l,originalEvent:n})})),this.dropHintService.hide(),this.draggedItem=null}},e.prototype.updateDropHintState=function(e,t){if(N(t)&&e!==o.Over&&N(e)){var n=t.getBoundingClientRect(),i=e===o.Before?n.top:n.top+n.height;this.dropHintService.move(n.left-this.containerOffset.left,i-this.containerOffset.top),this.dropHintService.show()}else this.dropHintService.hide()},e.prototype.updateDragClueState=function(e,t,n,i,o){this.dragClueService.move(t-this.containerOffset.left,n-this.containerOffset.top),this.dragClueService.updateDragClueData(e,i,o),this.dragClueService.show()},e.prototype.initalizeDraggable=function(){var e=this;this.draggable=new g.a({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))},e.prototype.notifyDragStart=function(e,t){var n=Ee(this.treeview,t),i=new Se({sourceItem:n,originalEvent:e});return this.treeview.nodeDragStart.emit(i),i},e.prototype.notifyDrag=function(e,t){var n={sourceItem:Ee(this.treeview,this.draggedItem),destinationItem:Ee(this.getTargetTreeView(t),t),originalEvent:e};this.treeview.nodeDrag.emit(n)},e.prototype.notifyDrop=function(e,t){var n=new Ce(e,t);e.destinationTree.nodeDrop.emit(n),this.disableAnimationsForNextTick(e.destinationTree),e.sourceTree!==e.destinationTree&&this.disableAnimationsForNextTick(e.sourceTree),!n.isDefaultPrevented()&&n.isValid?(this.dragClueService.hide(),e.destinationTree.addItem.emit(e),t.ctrlKey&&this.allowCopy||e.sourceTree.removeItem.emit(e)):n.isDefaultPrevented()?this.dragClueService.hide():n.isValid||this.dragClueService.animateDragClueToElementPosition(this.draggedItem)},e.prototype.notifyDragEnd=function(e){this.treeview.nodeDragEnd.emit(e)},e.prototype.getTargetTreeView=function(e){var t=this.treeview.element.nativeElement.tagName,n=F(e,t);return[this.treeview].concat(this.dropZoneTreeViews).find((function(e){return N(e)&&e.element.nativeElement===n}))},e.prototype.disableAnimationsForNextTick=function(e){e.animate||(e.animate=!1,this.zone.runOutsideAngular((function(){return setTimeout((function(){return e.animate=!0}))})))},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"allowCopy",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array)],e.prototype,"dropZoneTreeViews",void 0),Object(r.__decorate)([Object(a.ContentChild)(He,{static:!1}),Object(r.__metadata)("design:type",He)],e.prototype,"dragClueTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Ke,{static:!1}),Object(r.__metadata)("design:type",Ke)],e.prototype,"dropHintTemplate",void 0),Object(r.__decorate)([Object(a.HostBinding)("style.user-select"),Object(a.HostBinding)("style.-ms-user-select"),Object(r.__metadata)("design:type",String)],e.prototype,"userSelectStyle",void 0),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewDragAndDrop]",providers:[Ve,Le]}),Object(r.__metadata)("design:paramtypes",[a.ElementRef,a.NgZone,pe,Ve,Le])],e)}(),Ue=function(e,t){return $(e)?e.map((function(e){return{dataItem:e,children:Ue(Object(b.b)(t)(e),t)}})):[]},We=function(){function e(e,t){var n=this;this.treeView=e,this.dragAndDropDirective=t,this.filterData=[],this.visibleNodes=new Set,this._filterSettings=Ae;var i=!N(this.dragAndDropDirective);this.treeView.isVisible=i?function(e){return n.visibleNodes.has(e)}:x}return Object.defineProperty(e.prototype,"childrenField",{get:function(){return this._childrenField},set:function(e){if(!e)throw new Error("'childrenField' cannot be empty");this._childrenField=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{set:function(e){this.filterData=Ue(e,this.childrenField)||[],this.visibleNodes.clear(),this.updateNodesVisibility(this.filterData)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{set:function(e){this.treeView.isVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{set:function(e){this.handleFilterChange(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(e){this._filterSettings=Object(r.__assign)({},Ae,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;N(this.childrenField)&&(this.treeView.children=function(t){return Object(d.of)(Object(b.b)(e.childrenField)(t))},this.treeView.hasChildren=function(t){var n=Object(b.b)(e.childrenField)(t);return Boolean(n&&n.length)},this.treeView.editService=new Ne(this),this.treeView.filterChange.subscribe(this.handleFilterChange.bind(this)),this.treeView.filter&&this.handleFilterChange(this.treeView.filter))},e.prototype.handleFilterChange=function(e){if(this.filterData){var t=e?q(this.filterData,e,this.filterSettings,this.treeView.textField):this.filterData;this.visibleNodes.clear(),this.updateNodesVisibility(t)}},e.prototype.updateNodesVisibility=function(e){var t=this;e.forEach((function(e){t.visibleNodes.add(e.dataItem),e.children&&t.updateNodesVisibility(e.children)}))},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[String])],e.prototype,"childrenField",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"nodes",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"isVisible",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[String])],e.prototype,"filter",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"filterSettings",null),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewHierarchyBinding]"}),Object(r.__param)(1,Object(a.Optional)()),Object(r.__param)(1,Object(a.Host)()),Object(r.__metadata)("design:paramtypes",[ae,Ge])],e)}(),Ze=function(){function e(e,t,n){this.expandService=e,this.loadingService=t,this.cd=n,this._loading=!1}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.loadingService.changes.pipe(Object(h.filter)((function(t){return t===e.index})));this.subscription=this.expandService.changes.pipe(Object(h.filter)((function(t){return t.index===e.index})),Object(h.tap)((function(t){!t.expand&&e.loading&&(e.loading=!1)})),Object(h.filter)((function(e){return e.expand})),Object(h.switchMap)((function(e){return Object(d.of)(e).pipe(Object(h.delay)(100),Object(h.takeUntil)(t))}))).subscribe((function(){return e.loading=!0})),this.subscription.add(t.subscribe((function(){return e.loading=!1})))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},Object(r.__decorate)([Object(a.HostBinding)("class.k-i-loading"),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[Boolean])],e.prototype,"loading",null),Object(r.__decorate)([Object(a.Input)("kendoTreeViewLoading"),Object(r.__metadata)("design:type",String)],e.prototype,"index",void 0),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewLoading]"}),Object(r.__metadata)("design:paramtypes",[E,D,a.ChangeDetectorRef])],e)}(),$e=function(){function e(e){this.flatBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,n=e.destinationItem,i=e.dropPosition,r=e.sourceTree,a=e.destinationTree,s=Object.assign({},Z(t));if(i===o.Over){De(n,a);var c=Object(b.b)(this.flatBinding.idField)(Z(n));Object(b.d)(this.flatBinding.parentIdField)(s,c);var u=this.getLastVisibleChildNodeIndex(a,this.flatBinding.originalData,Z(n))+1;this.flatBinding.originalData.splice(u,0,s)}else{var l=i===o.After?1:0;u=this.flatBinding.originalData.indexOf(Z(n))+l;this.flatBinding.originalData.splice(u,0,s);var d=Object(b.b)(this.flatBinding.parentIdField)(Z(n));Object(b.d)(this.flatBinding.parentIdField)(s,d)}r!==a&&this.addChildNodes(s,r),this.rebindData();var p=i===o.Over?Z(n):Z(n.parent);Fe(a,p),Te(a,Z(t),s)},e.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,o=Z(t),r=this.flatBinding.originalData.indexOf(o);this.flatBinding.originalData.splice(r,1),n!==i&&this.removeChildNodes(o,n),this.rebindData();var a=t.parent?t.parent.children:[];Ie(t.parent,a,n),Me(n,Z(t.parent))},e.prototype.addChildNodes=function(e,t){var n,i=this.fetchAllDescendantNodes(e,t);(n=this.flatBinding.originalData).push.apply(n,i)},e.prototype.removeChildNodes=function(e,t){var n=this;this.fetchAllDescendantNodes(e,t).forEach((function(e){var t=n.flatBinding.originalData.indexOf(e);n.flatBinding.originalData.splice(t,1)}))},e.prototype.fetchAllDescendantNodes=function(e,t){var n=this,i=this.fetchChildNodes(e,t);return i.forEach((function(e){return i=i.concat(n.fetchAllDescendantNodes(e,t)||[])})),i},e.prototype.fetchChildNodes=function(e,t){if(!e)return[];var n=[];return t.children(e).pipe(Object(h.take)(1)).subscribe((function(e){return n=n.concat(e||[])})),n},e.prototype.getLastVisibleChildNodeIndex=function(e,t,n){if(!N(e.loadMoreService)||!e.hasChildren(n))return t.length;var i=e.loadMoreService.getGroupSize(n),o=this.fetchChildNodes(n,e).slice(0,i),r=o[o.length-1];return t.indexOf(r)},e.prototype.rebindData=function(){this.flatBinding.nodes=this.flatBinding.originalData},e}(),qe=function(e,t,n){return t.filter((function(t){return e(t)===n}))},Xe=function(e,t,n,i){return $(e)?e.map((function(e){return{dataItem:e,children:Xe(qe(Object(b.b)(n),t||[],Object(b.b)(i)(e)),t,n,i)}})):[]},Ye=function(){function e(e){var t=this;this.treeView=e,this.originalData=[],this.visibleNodes=new Set,this._filterSettings=Ae,this.treeView.isVisible=function(e){return t.visibleNodes.has(e)}}return Object.defineProperty(e.prototype,"nodes",{set:function(e){if(this.originalData=e||[],n=this.parentIdField,A(n)||0===n.trim().length)this.treeView.nodes=this.originalData.slice(0);else{var t=Object(b.b)(this.parentIdField);this.treeView.nodes=this.originalData.filter(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}}(A,t)),this.filterData=Xe(this.treeView.nodes,this.originalData,this.parentIdField,this.idField),this.visibleNodes.clear(),this.updateNodesVisibility(this.filterData)}var n},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{set:function(e){this.treeView.isVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{set:function(e){this.handleFilterChange(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(e){this._filterSettings=Object(r.__assign)({},Ae,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(N(this.parentIdField)&&N(this.idField)){var t=function(t){return qe(Object(b.b)(e.parentIdField),e.originalData||[],Object(b.b)(e.idField)(t))};this.treeView.hasChildren=function(e){return t(e).length>0},this.treeView.children=function(e){return Object(d.of)(t(e))},this.treeView.editService=new $e(this),this.treeView.filterChange.subscribe(this.handleFilterChange.bind(this)),this.treeView.filter&&this.handleFilterChange(this.treeView.filter)}},e.prototype.ngOnChanges=function(e){Object(s.isChanged)("parentIdField",e,!1)&&(this.nodes=this.originalData)},e.prototype.handleFilterChange=function(e){if(this.filterData){var t=e?q(this.filterData,e,this.filterSettings,this.treeView.textField):this.filterData;this.visibleNodes.clear(),this.updateNodesVisibility(t)}},e.prototype.updateNodesVisibility=function(e){var t=this;e.forEach((function(e){t.visibleNodes.add(e.dataItem),e.children&&t.updateNodesVisibility(e.children)}))},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"nodes",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"parentIdField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"idField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"isVisible",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[String])],e.prototype,"filter",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"filterSettings",null),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewFlatDataBinding]"}),Object(r.__metadata)("design:paramtypes",[ae])],e)}(),Je=function(e,t){return{dataItem:t,index:e}},Qe=0,et=function(){function e(e,t,n,i,o,r,a){this.element=e,this.expandService=t,this.navigationService=n,this.selectionService=i,this.lookupService=o,this.renderer=r,this.ib=a,this.role="treeitem",this.isDisabled=!1,this.ariaChecked="false",this.id=Qe++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isButton",{get:function(){return"button"===this.role},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeItem",{get:function(){return Je(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?Je(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()},e.prototype.ngOnChanges=function(e){var t=e.index,n=e.isDisabled;Object(s.anyChanged)(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),n&&this.setDisabledClass(),this.moveLookupItem(e),this.moveNavigationItem(t),this.disableNavigationItem(n)},e.prototype.ngOnDestroy=function(){this.navigationService.unregisterItem(this.id,this.index),this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((function(e,t){return t.unsubscribe(),e}),[])},e.prototype.subscribe=function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe((function(){e.updateTabIndex(),e.focusItem()})),this.navigationService.expands.pipe(Object(h.filter)((function(t){return t.index===e.index&&!e.isDisabled}))).subscribe((function(t){var n=t.expand;return e.expand(n)}))]},e.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton),this.activateItem()},e.prototype.activateItem=function(){if(!this.isDisabled){var e=this.navigationService,t=this.selectionService,n=this.index;t.setFirstSelected(n,this.isSelected),!e.isActive(n)&&t.isFirstSelected(n)&&e.activateIndex(n)}},e.prototype.expand=function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)},e.prototype.isFocusable=function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)},e.prototype.focusItem=function(){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus()},e.prototype.moveLookupItem=function(e){void 0===e&&(e={});var t=e.dataItem,n=e.index,i=e.parentDataItem,o=e.parentIndex;if((!n||!n.firstChange)&&(t||n||i||o)){var r=(n||{}).previousValue||this.index;this.lookupService.replaceItem(r,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,n=e.firstChange,i=e.previousValue;!n&&N(t)&&N(i)&&(this.navigationService.unregisterItem(this.id,i),this.navigationService.registerItem(this.id,t,this.isDisabled,this.isButton))},e.prototype.disableNavigationItem=function(e){if(e&&!e.firstChange){var t=this.navigationService;this.isDisabled?t.activateClosest(this.index):t.activateFocusable(),t.unregisterItem(this.id,this.index),t.registerItem(this.id,this.index,this.isDisabled,this.isButton)}},e.prototype.setAriaAttributes=function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)},e.prototype.setDisabledClass=function(){this.setClass("k-state-disabled",this.isDisabled)},e.prototype.setClass=function(e,t){var n=t?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,e)},e.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},e.prototype.setAttribute=function(e,t){N(t)?this.renderer.setAttribute(this.element.nativeElement,e,t):this.renderer.removeAttribute(this.element.nativeElement,e)},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"dataItem",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"index",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"parentDataItem",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"parentIndex",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"checkable",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"selectable",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"expandable",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[String])],e.prototype,"isChecked",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"isDisabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewItem]"}),Object(r.__metadata)("design:paramtypes",[a.ElementRef,E,ne,ce,le,a.Renderer2,I])],e)}(),tt=function(){function e(e,t,n,i){var o=this;this.element=e,this.navigationService=t,this.selectionService=n,this.renderer=i,this.initialSelection=!1,this.isSelected=w,this.subscriptions=new d.Subscription,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(Object(h.filter)((function(e){return e===o.index}))).subscribe((function(e){return o.selectionService.select(e,o.dataItem)}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))})))}return e.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.updateFocusClass=function(){this.render(this.navigationService.isActive(this.index),"k-state-focused")},e.prototype.updateSelectionClass=function(e){this.render(e,"k-state-selected")},e.prototype.render=function(e,t){var n=e?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,t)},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"dataItem",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"index",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"initialSelection",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"isSelected",void 0),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewItemContent]"}),Object(r.__metadata)("design:paramtypes",[a.ElementRef,ne,ce,a.Renderer2])],e)}(),nt=[function(){function e(e,t,n){this.element=e,this.renderer=t,this.changeDetector=n,this.id="_"+Object(s.guid)(),this.tabindex=0,this.checkStateChange=new a.EventEmitter,this.checkState="none"}return Object.defineProperty(e.prototype,"classWrapper",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminate",{get:function(){return"indeterminate"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return"checked"===this.checkState},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")},e.prototype.ngDoCheck=function(){this.checkState=this.isChecked(this.node,this.index)},e.prototype.handleChange=function(e){var t=e.target.checked?"checked":"none";this.checkState=t,this.changeDetector.detectChanges(),this.checkStateChange.emit(t)},Object(r.__decorate)([Object(a.HostBinding)("class.k-checkbox-wrapper"),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"classWrapper",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"isChecked",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"node",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"index",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"labelText",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"checkStateChange",void 0),e=Object(r.__decorate)([Object(a.Component)({selector:"kendo-checkbox",template:'\n <input\n class="k-checkbox"\n type="checkbox"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n '}),Object(r.__metadata)("design:paramtypes",[a.ElementRef,a.Renderer2,a.ChangeDetectorRef])],e)}()],it=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({declarations:[nt],exports:[nt]})],e)}(),ot=function(){function e(e){this.treeview=e,this.subscriptions=new d.Subscription,this.subscriptions.add(this.treeview.addItem.subscribe(this.handleAdd.bind(this))),this.subscriptions.add(this.treeview.removeItem.subscribe(this.handleRemove.bind(this)))}return Object.defineProperty(e.prototype,"editService",{set:function(e){this.treeview.editService=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleAdd=function(e){if(!N(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.add(e)},e.prototype.handleRemove=function(e){if(!N(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.remove(e)},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"editService",null),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewDragAndDropEditing]"}),Object(r.__metadata)("design:paramtypes",[pe])],e)}(),rt="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",at=function(){function e(e){this.treeview=e,this.pageSizes=new Map,this.rootLevelId=Object(s.guid)(),this.treeview.loadMoreService={getInitialPageSize:this.getInitalPageSize.bind(this),getGroupSize:this.getGroupSize.bind(this),setGroupSize:this.setGroupSize.bind(this),getTotalNodesCount:this.getTotalNodesCount.bind(this)}}return Object.defineProperty(e.prototype,"loadMoreNodes",{set:function(e){"string"!=typeof e&&(this.treeview.loadMoreService.loadMoreNodes=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.verifySettings()},e.prototype.verifySettings=function(){if(Object(a.isDevMode)()){if(!N(this.pageSize))throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See "+rt+".");var e=this.treeview.loadMoreService.loadMoreNodes;if(N(e)&&"function"!=typeof e)throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See "+rt+".");if(N(e)&&!N(this.totalField))throw new Error("When a function to fetch additional nodes is provided to the `kendoTreeViewLoadMore` directive, the `totalField` and `totalRootNodes` values must also be provided. See "+rt+".")}},e.prototype.getGroupSize=function(e){var t=e||this.rootLevelId;return this.pageSizes.has(t)?this.pageSizes.get(t):this.pageSize},e.prototype.setGroupSize=function(e,t){var n=e||this.rootLevelId,i=t>0?t:0;this.pageSizes.set(n,i)},e.prototype.getTotalNodesCount=function(e,t){return N(e)&&N(this.totalField)?e[this.totalField]:!N(e)&&N(this.totalRootNodes)?this.totalRootNodes:t},e.prototype.getInitalPageSize=function(){return this.pageSize},Object(r.__decorate)([Object(a.Input)("kendoTreeViewLoadMore"),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"loadMoreNodes",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"pageSize",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"totalRootNodes",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"totalField",void 0),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoTreeViewLoadMore]"}),Object(r.__metadata)("design:paramtypes",[pe])],e)}(),st=[pe,he,et,tt,oe,be,me,ge,ve,We,Ze,Ye,Ge,He,Be,Ke,ze,ot,at,re],ct=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({declarations:[st],exports:[st],imports:[m.CommonModule,it,v.InputsModule],entryComponents:[Be,ze]})],e)}(),ut=[pe,oe,be,me,ge,ve,We,Ye,Ge,He,Ke,ot,at,re],lt=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({exports:[ut],imports:[ct]})],e)}(),dt={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1616671682,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"},pt=function(e){return null!=e},ht=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},ft=function(e){return Array.isArray(e)},bt=function(e){return pt(e)&&"object"==typeof e},mt=function(e){return"string"==typeof e&&0===e.length},gt=function(e,t,n){var i=function(e,t){return ft(e)&&e.filter((function(e){return bt(e)&&pt(e[t])}))}(e,n)||[];return(function(e,t,n){return void 0===t&&(t=[]),e.map((function(e){return t.find((function(t){return t[n]===e}))})).filter((function(e){return void 0!==e}))}(e,t,n)||[]).concat(i)},vt=function(e){return ft(e)&&e.every((function(e){return bt(e)}))},yt=function(e,t,n){var i=t.map((function(e){return pt(e)&&pt(e[n])?e[n]:e}));return e.reduce((function(e,t){var o=pt(t)&&pt(t[n])?t[n]:t,r=i.indexOf(o);return-1!==r&&e.push(r),e}),[])},_t=function(e,t,n){if(void 0===n&&(n=!1),pt(e))return n?t&&pt(e[t])?e[t]:e:t?e[t]:e},Ot=function(e,t,n){if(!pt(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},jt=function(e){return e.className.includes("ng-untouched")},Ct=function(e){},St=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)},wt=function(){function e(e,t){this.localization=e,this.valueChange=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onClick=new a.EventEmitter,this.onNavigate=new a.EventEmitter,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=e.rtl?"rtl":"ltr",this.renderer=t}return Object.defineProperty(e.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;return e.direction=n?"rtl":"ltr"}))},e.prototype.ngOnChanges=function(e){var t,n,i;if(this.input&&(e.userInput||e.suggestedText)){t=e.userInput&&e.userInput.previousValue?this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"":this._previousValue;var o=this.input.nativeElement.selectionStart,r=t.length===o;this.writeInputValue(this.suggestedText?(n=this.userInput,i=this.suggestedText,n.concat(i.substr(i.toLowerCase().indexOf(n.toLowerCase())+n.length))):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):r?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(o,o),this._previousValue=this.userInput}},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.writeInputValue=function(e){Object(s.isDocumentAvailable)()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},e.prototype.setInputSelection=function(e,t){if(Object(s.isDocumentAvailable)()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},e.prototype.handleInput=function(e){var t=e.target.value;t!==this.userInput&&(this._previousValue=t,this.valueChange.emit(t))},e.prototype.handleFocus=function(e){this.onFocus.emit(e)},e.prototype.handleBlur=function(e){this.onBlur.emit(e)},e.prototype.handleKeydown=function(e){var t=e.keyCode;[s.Keys.ArrowUp,s.Keys.ArrowDown,s.Keys.ArrowLeft,s.Keys.ArrowRight,s.Keys.Enter,s.Keys.Escape,s.Keys.Delete,s.Keys.Backspace,s.Keys.Home,s.Keys.End].indexOf(t)>-1&&this.onNavigate.emit(e)},e.prototype.focus=function(){Object(s.isDocumentAvailable)()&&this.input.nativeElement.focus()},e.prototype.blur=function(){Object(s.isDocumentAvailable)()&&this.input.nativeElement.blur()},e.prototype.setInputSize=function(){var e=function(e){return e?e.length:0},t=this.input.nativeElement,n=e(this.placeholder),i=e(this.value),o=Math.max(n,i,1);this.renderer.setAttribute(t,"size",o.toString())},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"listId",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"tagListId",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"activeDescendant",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"noDataLabel",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"tabIndex",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"popupOpen",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[String])],e.prototype,"userInput",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"suggestedText",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onClick",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onNavigate",void 0),Object(r.__decorate)([Object(a.ViewChild)("input",{static:!0}),Object(r.__metadata)("design:type",a.ElementRef)],e.prototype,"input",void 0),Object(r.__decorate)([Object(a.HostBinding)("class.k-searchbar"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"searchBarClass",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[String])],e.prototype,"placeholder",null),e=Object(r.__decorate)([Object(a.Component)({selector:"kendo-searchbar",template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="popupOpen"\n [attr.aria-owns]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-label]="noDataLabel"\n />\n '}),Object(r.__metadata)("design:paramtypes",[l.LocalizationService,a.Renderer2])],e)}(),xt=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),kt=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Et=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),It=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Dt=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Pt=function(){function e(){this.onSelect=new a.EventEmitter,this.onChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.total=0,this.selectedIndices=[]}return e.prototype.getTotal=function(){return this.total},e.prototype.isSelected=function(e){return pt(this.selectedIndices.find((function(t){return t===e})))},e.prototype.isFocused=function(e){return e===this.focused},e.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},e.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:pt(e)}))},e.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},e.prototype.unselect=function(e){if(this.isSelected(e)){var t=this.selectedIndices.indexOf(e);this.selectedIndices.splice(t,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}},e.prototype.change=function(e){var t=pt(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})},e.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(e.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!0,configurable:!0}),e=Object(r.__decorate)([Object(a.Injectable)()],e)}();!function(e){e[e.Undefined=0]="Undefined",e[e.Open=1]="Open",e[e.Close=2]="Close",e[e.Enter=3]="Enter",e[e.Tab=4]="Tab",e[e.Esc=5]="Esc",e[e.Delete=6]="Delete",e[e.Backspace=7]="Backspace",e[e.Home=8]="Home",e[e.End=9]="End",e[e.Up=10]="Up",e[e.Down=11]="Down",e[e.Left=12]="Left",e[e.Right=13]="Right"}(xe||(xe={}));var Tt,Ft=function(){function e(){this.grouped=!1,this.groupIndices=[]}return Object.defineProperty(e.prototype,"data",{get:function(){return this.grouped?this._flatData:this._data},set:function(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemsCount",{get:function(){return pt(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter((function(e){return!e.header})):this.data).length:0},enumerable:!0,configurable:!0}),e.prototype.isGrouped=function(e){return pt(e)&&0!==e.length&&pt(e[0])&&(t=e[0],n=["aggregates","field","items","value"],!!pt(t)&&n.every((function(e){return t.hasOwnProperty(e)})));var t,n},e.prototype.getGroupIndices=function(e){for(var t=[],n=0;n<=e.length-1;n++)t[n]=(t[n-1]||0)+e[n].items.length;return t},e.prototype.filter=function(e){var t=[];if(this.isGrouped(this.data))for(var n=0;n<=this.groupIndices.length-1;n++){var i=this.data[n].items.filter(e);i&&(t=t.concat(i))}else t=this.data.filter(e);return t},e.prototype.indexOf=function(e,t){void 0===t&&(t=0);var n=function(t){return t===e};return this.grouped&&(n=function(t){return t.value===e}),this.findIndex(n,t)},e.prototype.findIndex=function(e,t){void 0===t&&(t=0);var n=-1;if(this.grouped){n=(i=this._flatData.filter((function(e){return!e.header&&e.offsetIndex>=t}))).findIndex(e),n=i[n]?i[n].offsetIndex:-1}else{var i,o=(i=this.data.slice(t)).findIndex(e);n=-1!==o?o+t:-1}return n},e.prototype.closestGroup=function(e){for(var t=e;t>=0;t--)if(this._flatData[t].header)return this._flatData[t]},e.prototype.find=function(e){var t=this.findIndex(e);return this.itemAt(t)},e.prototype.flatIndex=function(e){if(0===this.itemsCount)return-1;if(!this.grouped)return e;var t=this._flatData.find((function(t){return!t.header&&t.offsetIndex===e}));return t?t.index:-1},e.prototype.itemAt=function(e){var t;if(0===this.itemsCount)return t;if(this.grouped){var n=this._flatData.find((function(t){return!t.header&&t.offsetIndex===e}));n&&(t=n.value)}else t=this.data[e];return t},e.prototype.groupAt=function(e){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find((function(t){return t.header&&t.index===e}))},e.prototype.groupField=function(){if(0!==this.itemsCount&&this.isGrouped)return this._data[0].field},e.prototype.itemGroup=function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var t=this.groupField();return t?e[t]:void 0}},e.prototype.flatten=function(e,t,n,i){void 0===t&&(t=void 0),void 0===n&&(n=0),void 0===i&&(i=0);var o=[];pt(t)&&o.push({header:!0,index:i+n,offsetIndex:i,value:t});for(var r=0;r<e.length;r++){var a=[];e[r].items?(a=this.flatten(e[r].items,e[r].value,n,r),n+=e[r].items.length):a.push({header:!1,index:i+n+r+1,offsetIndex:n+r,value:e[r]}),o=o.concat(a)}return o},e=Object(r.__decorate)([Object(a.Injectable)()],e)}(),Mt=function(){function e(e){this.dataService=e,this.itemDisabled=null}return e.prototype.isIndexDisabled=function(e){if(this.itemDisabled){var t=this.dataService.itemAt(e);if(pt(t))return this.itemDisabled({dataItem:t,index:e});if(pt(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}},e.prototype.isItemDisabled=function(e){if(this.itemDisabled){var t=this.dataService.indexOf(e);if(-1!==t)return this.itemDisabled({dataItem:e,index:t});if(pt(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}},e=Object(r.__decorate)([Object(a.Injectable)(),Object(r.__metadata)("design:paramtypes",[Ft])],e)}(),Nt=function(e,t){this.index=e,this.originalEvent=t},At=function(){function e(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.enter=new a.EventEmitter,this.tab=new a.EventEmitter,this.esc=new a.EventEmitter,this.up=new a.EventEmitter,this.right=new a.EventEmitter,this.down=new a.EventEmitter,this.left=new a.EventEmitter,this.delete=new a.EventEmitter,this.backspace=new a.EventEmitter,this.home=new a.EventEmitter,this.end=new a.EventEmitter}return e.prototype.process=function(e){var t,n=e.originalEvent.keyCode,i=e.originalEvent.altKey,o=xe.Undefined;i&&n===s.Keys.ArrowDown?o=xe.Open:i&&n===s.Keys.ArrowUp?o=xe.Close:n===s.Keys.Enter?o=xe.Enter:n===s.Keys.Escape?o=xe.Esc:n===s.Keys.Tab?o=xe.Tab:n===s.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=xe.Up):n===s.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=xe.Left):n===s.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=xe.Down):n===s.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=xe.Right):n===s.Keys.Home?(t=this.isDisabled(0)?e.current:0,o=xe.Home):n===s.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,o=xe.End):n===s.Keys.Delete?o=xe.Delete:n===s.Keys.Backspace&&(o=xe.Backspace);var r=new Nt(t,e.originalEvent);return o!==xe.Undefined&&this[xe[o].toLowerCase()].emit(r),o},e.prototype.next=function(e){var t=e.current,n=e.start,i=e.end,o=e.step,r=pt(t)?this.clampIndex(t+o,n,i):n,a=this.firstFocusableIndex(r,n,i,o);if(pt(a))return a;if(this.selectionService.isSelected(t)&&t>=n)return t;var s=-1*o;return this.firstFocusableIndex(r,n,i,s)},e.prototype.clampIndex=function(e,t,n){return!pt(e)||e<t?t:e>n?n:e},e.prototype.firstFocusableIndex=function(e,t,n,i){for(;t<=e&&e<=n;){if(!this.isDisabled(e))return e;e+=i}},e.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},e=Object(r.__decorate)([Object(a.Injectable)(),Object(r.__metadata)("design:paramtypes",[Mt,Pt])],e)}(),Bt=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Rt=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),Vt=function(){},zt=function(){function e(e){this.element=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:'"li[role=option], li[role=group]"'}),Object(r.__metadata)("design:paramtypes",[a.ElementRef])],e)}(),Lt=function(){function e(e,t,n,i,o,r,s){var c=this;this.dataService=e,this.wrapper=t,this.selectionService=n,this.disabledItemsService=i,this.cdr=o,this.zone=r,this.renderer=s,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.listClass="k-list k-reset",this.onClick=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.listResize=new a.EventEmitter,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this.selectSubscription=Object(d.merge)(this.selectionService.onSelect.pipe(Object(h.map)((function(e){return e.indices[0]}))),this.selectionService.onFocus).pipe(Object(h.switchMap)((function(e){return c.zone.onStable.pipe(Object(h.take)(1),Object(h.map)((function(){return e})))}))).subscribe(this.scrollToItem.bind(this))}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){Object(s.isChanged)("data",e,!1)&&this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange())},e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.scrollSubscription=Object(d.fromEvent)(e.content.nativeElement,"scroll").pipe(Object(h.auditTime)(100),Object(h.tap)(e.prefetchData.bind(e)),Object(h.tap)(e.findCurrentGroup.bind(e))).subscribe((function(){e.lastScrollTop=e.content.nativeElement.scrollTop}))}))},e.prototype.ngAfterViewChecked=function(){if(this.virtual&&this.positionItems(),this.items&&this.scrollToFocused){this.scrollToFocused=!1;var e=this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused;this.scrollToItem(e)}this.dataService.grouped&&this.findCurrentGroup()},e.prototype.ngOnDestroy=function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},e.prototype.firstVisibleItem=function(){var e=this,t=this.content.nativeElement,n=t.getBoundingClientRect(),i=Array.prototype.slice.call(t.querySelectorAll(".k-state-disabled"));i.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","auto")}));var o=document.elementFromPoint(n.left+1,n.top+1);return i.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","none")})),function(e,t){for(var n=e;null!==n&&1===n.nodeType;){if(St(n,t))return n;n=n.parentElement||n.parentNode}return null}(o,"li")},e.prototype.findCurrentGroup=function(){if(this.dataService.grouped){var e=this.firstVisibleItem();if(e){var t=void 0;"group"===e.getAttribute("role")?(t=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(t).value):(t=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(t)))}else this.currentGroup=void 0;this.cdr.detectChanges()}else this.currentGroup=void 0},e.prototype.prefetchData=function(){if(this.virtual){var e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),t=this.content.nativeElement.scrollTop,n=Math.trunc(t/this.virtual.itemHeight),i=t>this.lastScrollTop,o=n+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,r=this.pageSize-(this.lastLoaded-this.startFrom),a=this.lastLoaded-this.pageSize+e>=n-r;i&&o&&this.changePage(n),!i&&a&&this.changePage(n-this.pageSize+e+1)}},e.prototype.changePage=function(e){var t=this;this.zone.run((function(){var n=t.pageSize+e;n>t.virtual.total&&(e--,n=t.virtual.total),e<0&&(e=0),t.startFrom=e,t.lastLoaded=n,t.pageChange.emit({skip:e,take:t.pageSize})}))},e.prototype.index=function(e,t){return e>0?this.dataService.groupIndices[e-1]+t:t},e.prototype.getText=function(e){return _t(e,this.textField)},e.prototype.getValue=function(e){return _t(e,this.valueField)},e.prototype.isDisabled=function(e){return pt(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},e.prototype.scrollToItem=function(e){var t=e;this.dataService.grouped&&(t=this.dataService.flatIndex(e),t+=this.firstGroupHeaderInTargetedPage(t)?-1:0);if(this.virtual&&t>-1)this.scrollToIndex(t);else{var n=this.items.toArray();pt(n[t])&&-1!==t&&this.scroll(n[t].element)}},e.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,n=t.scrollTop,i=e*this.virtual.itemHeight,o=this.virtual.itemHeight,r=t.clientHeight,a=i+o;n>i?n=i:a>n+r&&(n=a-r),t.scrollTop=n},e.prototype.scroll=function(e){if(e){var t=e.nativeElement,n=this.content.nativeElement,i=t.offsetTop,o=t.offsetHeight,r=n.scrollTop,a=n.clientHeight,s=i+o;r>i?r=i:s>r+a&&(r=s-a),n.scrollTop=r}},e.prototype.hasScrollbar=function(){return!!(pt(this.items)&&this.items.length&&pt(this.list)&&pt(this.content))&&(pt(this.virtual)||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)},e.prototype.positionItems=function(){var e=this;this.items.forEach((function(t,n){var i=(n+e.startFrom)*e.virtual.itemHeight;e.renderer.setStyle(t.element.nativeElement,"transform","translateY("+i+"px")}))},e.prototype.firstGroupHeaderInTargetedPage=function(e){return!pt(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array)],e.prototype,"selected",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"focused",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"height",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",xt)],e.prototype,"template",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",It)],e.prototype,"groupTemplate",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Dt)],e.prototype,"fixedGroupTemplate",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"show",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"optionPrefix",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"multipleSelection",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"virtual",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"listClass",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onClick",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"listResize",void 0),Object(r.__decorate)([Object(a.ViewChildren)(zt),Object(r.__metadata)("design:type",a.QueryList)],e.prototype,"items",void 0),Object(r.__decorate)([Object(a.ViewChild)("content",{static:!0}),Object(r.__metadata)("design:type",a.ElementRef)],e.prototype,"content",void 0),Object(r.__decorate)([Object(a.ViewChild)("list",{static:!0}),Object(r.__metadata)("design:type",a.ElementRef)],e.prototype,"list",void 0),e=Object(r.__decorate)([Object(a.Component)({selector:"kendo-list",template:'\n <div *ngIf="dataService.grouped"\n class=\'k-outer-group-header k-first\'\n [ngClass]="{\'k-virtual-item\': virtual}"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><strong>{{ currentGroup }}</strong> </ng-template>\n </div>\n <div #content\n [ngClass]="{ \'k-virtual-content\': virtual, \'k-list-scroller\': !virtual }"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [ngClass]="{ \'k-virtual-list\': virtual }"\n [attr.id]="id"\n [attr.aria-hidden]="!show">\n <ng-template *ngIf="!dataService.grouped && show" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="itemIndex + startFrom"\n [multipleSelection]="multipleSelection"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem)"\n [attr.tabIndex]="-1"\n class="k-item"\n [ngClass]="{ \'k-virtual-item\': virtual, \'k-state-disabled\': isDisabled(itemIndex) }">\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ getText(dataItem) }}</ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n class=\'k-outer-group-header\'\n [ngClass]="{ \'k-virtual-item\': virtual }"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate"><strong> {{ dataItem.value }}</strong> </ng-template>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n class="k-item"\n [ngClass]="{ \'k-virtual-item\': virtual, \'k-state-disabled\': isDisabled(dataItem.offsetIndex) }">\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ getText(dataItem.value) }}</ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n '}),Object(r.__metadata)("design:paramtypes",[Ft,a.ElementRef,Pt,Mt,a.ChangeDetectorRef,a.NgZone,a.Renderer2])],e)}(),Ht={pageSize:50,itemHeight:28},Kt=function(e,t){var n=Object.assign({},Ht,t);return!0===e?n:e?Object(r.__assign)({pageSize:Ht.pageSize},e):null},Gt={multi:!0,provide:c.c,useExisting:Object(a.forwardRef)((function(){return Ut}))},Ut=function(){function e(e,t,n,i,o,r,s,c,l,p){this.localization=e,this.dataService=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=r,this._zone=s,this.cdr=c,this.renderer=l,this.highlightFirst=!0,this.focusableId="k-"+ht(),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new a.EventEmitter,this.filterChange=new a.EventEmitter,this.open=new a.EventEmitter,this.opened=new a.EventEmitter,this.close=new a.EventEmitter,this.closed=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.widgetClasses=!0,this.listBoxId=ht(),this.optionPrefix=ht(),this.onChangeCallback=Ct,this.onTouchedCallback=Ct,this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new d.Subject,this._isFocused=!1,Object(u.validatePackage)(dt),this.direction=e.rtl?"rtl":"ltr",this.wrapper=p.nativeElement,this.data=[],this.subscribeEvents(),this.selectionService.resetSelection([-1])}var t;return t=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=0;Object(s.isDocumentAvailable)()&&(e=this.wrapper.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return pt(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"suggestion",{get:function(){if(this.text&&this.suggestedText){var e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0}this.suggestedText=void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=pt(e)?e:!t._open;t._toggle(n)}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!pt(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+_t(e,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=_t(this.dataService.itemAt(0),this.valueField))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Kt(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()})),this.setMessages()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})},e.prototype.reset=function(){this.value=""},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.focusItemAt=function(e){var t=e>=0&&e<this.data.length;pt(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.verifySettings=function(e){if(Object(a.isDevMode)()&&pt(e)&&"string"!=typeof e)throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/")},e.prototype.search=function(e,t){var n;void 0===t&&(t=0),n=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(n)?n+1<this.dataService.itemsCount?this.search(e,n+1):this.selectionService.focus(-1):(this.selectionService.focus(n),this.suggest&&(this.suggestedText=_t(this.dataService.itemAt(n),this.valueField)))},e.prototype.navigate=function(e){this.isOpen&&this.selectionService.focus(e)},e.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;if(!(this.disabled||this.readonly||isNaN(t))){var n=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e});n!==xe.Undefined&&n!==xe.Backspace&&n!==xe.Delete&&n!==xe.Home&&n!==xe.End&&n!==xe.Left&&n!==xe.Right&&(n===xe.Enter&&this.isOpen||n!==xe.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(e){var t,n=this.selectionService.focused;if(this.isOpen&&e.originalEvent.preventDefault(),n>=0)t=_t(this.dataService.itemAt(n),this.valueField);else{var i=this.suggest&&this.suggestedText&&this.data.length&&_t(this.dataService.itemAt(0),this.valueField,!0).toLowerCase()===this.searchbar.value.toLowerCase();t=this.isOpen&&i?this.suggestedText:this.searchbar.value}this.change(t)},e.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null},e.prototype.searchBarChange=function(e){var t=pt(this.text)?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.togglePopup(e.length>0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)},e.prototype.handleFocus=function(){var e=this;this.isFocused=!0,Object(s.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e,t,n=this,i=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0,-1!==i?(e=this.dataService.itemAt(i),t=_t(e,this.valueField,!0)||""):t=this.searchbar.value;var o=t===this.searchbar.value,r=t.toLowerCase()===this.searchbar.value.toLowerCase();!o&&r&&this.selectionService.resetSelection([]),this.isFocused=!1;var a=this.value!==this.text;Object(s.hasObservers)(this.onBlur)||Object(s.hasObservers)(this.close)||jt(this.wrapper)||a?this._zone.run((function(){a&&n.change(n.searchbar.value),n.onBlur.emit(),n.onTouchedCallback(),n.togglePopup(!1)})):this.togglePopup(!1)},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.change=function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)},e.prototype.subscribeEvents=function(){var e=this;Object(s.isDocumentAvailable)()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe((function(t){var n=e.value!==t;e.value=t,e.text=t,n&&e.emitChange(t)})),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=Object(d.merge)(this.navigationService.up,this.navigationService.down).subscribe((function(t){return e.navigate(t.index)})),this.closeSubscription=this.navigationService.close.subscribe((function(){return e.togglePopup(!1)})),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))},e.prototype.unsubscribeEvents=function(){Object(s.isDocumentAvailable)()&&(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe())},e.prototype.handleItemChange=function(e){var t=e.indices.length?e.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),pt(t)){var n=_t(this.dataService.itemAt(t),this.valueField);this.change(n)}},e.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&t>=0)&&(this.suggestedText=_t(this.dataService.itemAt(t),this.valueField))},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:i,anchorAlign:n});var o=this.popupRef.popupElement,r=this.width,a=r.min,s=r.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=a,o.style.width=s,o.style.height=this.height,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.togglePopup(!1)}))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new Rt;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.findIndexPredicate=function(e){var t=this;return this.dataService.grouped?function(n){var i=_t(n.value,t.valueField);return(i=pt(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(n){var i=_t(n,t.valueField);return(i=pt(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}},e.prototype.setMessages=function(){var e=this;this._zone.runOutsideAngular((function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout((function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()}))}))},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"highlightFirst",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"data",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"suggest",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(r.__decorate)([Object(a.Input)("tabIndex"),Object(r.__metadata)("design:type",Number),Object(r.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"opened",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"closed",void 0),Object(r.__decorate)([Object(a.Output)("focus"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(r.__decorate)([Object(a.Output)("blur"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(r.__decorate)([Object(a.ContentChild)(xt,{static:!1}),Object(r.__metadata)("design:type",xt)],e.prototype,"template",void 0),Object(r.__decorate)([Object(a.ContentChild)(kt,{static:!1}),Object(r.__metadata)("design:type",kt)],e.prototype,"headerTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Et,{static:!1}),Object(r.__metadata)("design:type",Et)],e.prototype,"footerTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Bt,{static:!1}),Object(r.__metadata)("design:type",Bt)],e.prototype,"noDataTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(It,{static:!1}),Object(r.__metadata)("design:type",It)],e.prototype,"groupTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Dt,{static:!1}),Object(r.__metadata)("design:type",Dt)],e.prototype,"fixedGroupTemplate",void 0),Object(r.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(r.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(r.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!0}),Object(r.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(r.__decorate)([Object(a.ViewChild)(wt,{static:!0}),Object(r.__metadata)("design:type",wt)],e.prototype,"searchbar",void 0),Object(r.__decorate)([Object(a.ViewChild)("optionsList",{static:!1}),Object(r.__metadata)("design:type",Lt)],e.prototype,"optionsList",void 0),Object(r.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-autocomplete"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(r.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"isDisabled",null),Object(r.__decorate)([Object(a.HostBinding)("attr.dir"),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),e=t=Object(r.__decorate)([Object(a.Component)({exportAs:"kendoAutoComplete",providers:[Gt,Ft,Pt,At,Mt,l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:Vt,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:s.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-autocomplete",template:'\n <ng-container kendoAutoCompleteLocalizedMessages\n i18n-noDataText="kendo.autocomplete.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.autocomplete.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span *ngIf="!loading && !readonly && (clearButton && text?.length)" class="k-icon k-clear-value k-i-close" [attr.title]="clearTitle" role="button" tabindex="-1" (click)="clearValue($event)" (mousedown)="$event.preventDefault()">\n</span>\n <span *ngIf="loading" class="k-icon k-i-loading"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(r.__metadata)("design:paramtypes",[l.LocalizationService,Ft,p.c,Pt,At,Mt,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.ElementRef])],e)}(),Wt=new a.InjectionToken("dropdowns-touch-enabled"),Zt="Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",$t="Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",qt="Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",Xt="Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data",Yt="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",Jt="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",Qt="Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data",en="Expected virtual.itemHeight of type number.",tn="Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/",nn="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration",on="defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem",rn="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",an="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",sn="Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-bind-to-arrays-of-complex-data",cn="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values",un="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values",ln="Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem",dn="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding",pn="Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth",hn={multi:!0,provide:c.c,useExisting:Object(a.forwardRef)((function(){return fn}))},fn=function(){function e(e,t,n,i,o,r,s,c,l,p,f){this.localization=e,this.popupService=t,this.selectionService=n,this.navigationService=i,this.disabledItemsService=o,this.dataService=r,this.zone=s,this.cdr=c,this.renderer=l,this.hostElement=p,this.touchEnabled=f,this.selected=[],this.focusableId="k-"+ht(),this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(Object(h.map)((function(e){return e})))},this.placeholder="",this.listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new a.EventEmitter,this.selectionChange=new a.EventEmitter,this.filterChange=new a.EventEmitter,this.open=new a.EventEmitter,this.opened=new a.EventEmitter,this.close=new a.EventEmitter,this.closed=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=ht(),this.optionPrefix=ht(),this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=function(e){return e.preventDefault()},this.customValueSubject=new d.Subject,this.valueSubject=new d.Subject,this.clearValueSubject=new d.Subject,this.subs=new d.Subscription,Object(u.validatePackage)(dt),this.direction=e.rtl?"rtl":"ltr",this.data=[]}var t;return t=e,Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(e){this._text=pt(e)?e.toString():""},enumerable:!0,configurable:!0}),e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!pt(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(e?_t(e,this.valueField):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){if(this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering){var t=this.text.length>0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=t}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=_t(this.dataService.itemAt(0),this.textField))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return pt(this._valuePrimitive)?this._valuePrimitive:!pt(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Kt(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearable",{get:function(){return this.clearButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupWidth",{get:function(){var e=0;Object(s.isDocumentAvailable)()&&(e=this.wrapper.nativeElement.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupHeight",{get:function(){var e=this.popupSettings.height;return pt(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.setMessages()},e.prototype.createValueStream=function(){var e=this,t=this.valueSubject.pipe(Object(h.filter)((function(t){var n=e.prop(e.valueField,e.valuePrimitive),i=e.prop(e.textField,e.valuePrimitive),o=n(e.value),r=n(t),a=i(t);return!(!pt(e.value)&&!pt(r))&&(pt(a)&&(a=a.toString()),o!==r||e.text!==a||(e.clearFilter(),!1))})),Object(h.map)((function(t){var n=e.prop(e.valueField,e.valuePrimitive),i=e.prop(e.textField,e.valuePrimitive),o=n(t);return{dataItem:t,text:i(t),value:e.valuePrimitive?o:t}}))),n=Object(h.partition)((function(){return e.allowCustom}))(this.customValueSubject.pipe(Object(h.throttleTime)(300))),i=n[0].pipe(Object(h.tap)((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),Object(h.filter)((function(){var t=e.prop(e.valueField,e.valuePrimitive),n=e.text!==t(e.value);return e.loading=n,e.disabled=n,n||e.clearFilter(),n})),this.valueNormalizer,Object(h.map)((function(t){return{custom:!0,dataItem:t,text:e.text,value:t}}))),o=n[1].pipe(Object(h.map)((function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}}))),r=this.clearValueSubject.pipe(Object(h.map)((function(){return{dataItem:void 0,text:void 0,value:void 0}})));this.valueSubscription&&this.valueSubscription.unsubscribe();var a=Object(d.merge)(t,i,o,r);this.valueSubscription=a.pipe(Object(h.catchError)((function(){var t=void 0!==e.prop(e.valueField,e.valuePrimitive)(e.dataItem);return e.dataItem=void 0,e.value=void 0,e.text=void 0,e.loading=!1,e.disabled=!1,t&&e.selectionChange.emit(void 0),e.emitValueChange(),e.createValueStream(),Object(d.of)(null)}))).subscribe((function(t){var n=e.prop(e.valueField,e.valuePrimitive),i=n(e.dataItem)!==n(t.dataItem);if(e.dataItem=t.dataItem,e.value=t.value,e.text=t.text,e.loading=!1,e.disabled=!1,e.clearFilter(),t.custom&&(e.selectionService.focused=-1),i){var o=t.custom?void 0:e.dataItem;e.selectionChange.emit(o)}e.emitValueChange()}))},e.prototype.attachStreams=function(){var e=this;Object(s.isDocumentAvailable)()&&(this.subs.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()}))),this.subs.add(Object(d.merge)(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(Object(h.filter)((function(e){return pt(e.index)}))).subscribe((function(t){return e.navigate(t.index)}))),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe((function(){return e.togglePopup(!1)}))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(Object(h.tap)((function(t){e.isOpen&&t.originalEvent.preventDefault()}))).subscribe(this.handleEnter.bind(this))),this.subs.add(Object(d.merge)(this.selectionService.onChange,this.selectionService.onSelect.pipe(Object(h.filter)((function(t){return!e.isOpen})))).pipe(Object(h.tap)((function(t){e._filtering=!1,e.togglePopup(!1)})),Object(h.map)((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){e.change(t)}))),this.subs.add(this.selectionService.onSelect.pipe(Object(h.filter)((function(t){return e.isOpen})),Object(h.tap)((function(t){return e._filtering=!1})),Object(h.map)((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){var n=e.prop(e.valueField,e.valuePrimitive),i=n(t)!==n(e.dataItem);e.updateState({dataItem:t}),i&&e.selectionChange.emit(t)}))))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),clearTimeout(this.messagesTimeout),this.subs.unsubscribe(),pt(this.valueSubscription)&&this.valueSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(s.isChanged)("valueNormalizer",e)&&this.createValueStream(),Object(s.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.focusItemAt=function(e){var t=e>=0&&e<this.data.length;pt(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=pt(e)?e:!t._open;t._toggle(n),t.cdr.markForCheck()}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.value=void 0,this.clearState(),this.resetSelection()},e.prototype.isEmpty=function(){var e=!pt(this.text)||mt(this.text),t=!pt(this.value)||mt(this.value);return e&&t},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1},e.prototype.writeValue=function(e){this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){if(this.isOpen){var e=this.popupRef.popupElement,t=this.popupWidth,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},e.prototype.verifySettings=function(){if(Object(a.isDevMode)()){if(!0===this.valuePrimitive&&pt(this.value)&&"object"==typeof this.value)throw new Error(Jt);if(!1===this.valuePrimitive&&pt(this.value)&&"object"!=typeof this.value)throw new Error(Yt);if(!pt(this.valueField)!=!pt(this.textField))throw new Error(Qt);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(en)}},e.prototype.setState=function(){if(!this._filtering){var e=this.value,t=this.valueField,n=this.valuePrimitive,i=this.findDataItem({primitive:n,valueField:t,value:e});pt(i.index)&&-1!==i.index?(this.updateState({dataItem:i.dataItem,confirm:!0}),this.resetSelection(i.index)):pt(e)&&this.allowCustom?(this.updateState({dataItem:e}),this.resetSelection(-1)):this._previousDataItem&&this.value?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection(-1))}},e.prototype.updateState=function(e){var t=e.dataItem,n=e.confirm,i=void 0!==n&&n;this.dataItem=t,this.text=this.prop(this.textField,this.valuePrimitive)(t),i&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!pt(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e},e.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.findIndexPredicate=function(e){var t=this;return this.dataService.grouped?function(n){var i=t.prop(t.textField,t.valuePrimitive)(n.value);return(i=pt(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(n){var i=t.prop(t.textField,t.valuePrimitive)(n);return(i=pt(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}},e.prototype.prop=function(e,t){return function(n){return pt(n)?t?e&&bt(n)?n[e]:n:n[e]:null}},e.prototype.findDataItem=function(e){var t,n=e.primitive,i=e.valueField,o=e.value,r={dataItem:null,index:-1},a=this.prop(i,n);t=this.dataService.grouped?function(e){return a(e.value)===a(o)}:function(e){return a(e)===a(o)};var s=this.dataService.findIndex(t);return r.dataItem=this.dataService.itemAt(s),r.index=s,r},e.prototype.search=function(e,t){var n;void 0===t&&(t=0),n=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(n)?n+1<this.dataService.itemsCount?this.search(e,n+1):this.selectionService.focus(-1):(this.selectionService.focus(n),this.suggest&&(this.suggestedText=_t(this.dataService.itemAt(n),this.textField)))},e.prototype.getSuggestion=function(){var e=!!this.selectionService.selected.length,t=this.suggest&&!this.backspacePressed&&this.suggestedText&&this.text;if(!e&&t&&this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()))return this.suggestedText;this.suggestedText=void 0},e.prototype.navigate=function(e){0!==this.dataService.itemsCount&&(this.text=this.prop(this.textField,this.valuePrimitive)(this.dataService.itemAt(e)),this.selectionService.select(e))},e.prototype.handleNavigate=function(e){var t=pt(this.selectionService.selected[0]),n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused,i=0;if(!this.disabled&&!this.readonly&&e.keyCode!==s.Keys.Home&&e.keyCode!==s.Keys.End){t||(e.keyCode===s.Keys.ArrowDown?i=-1:e.keyCode===s.Keys.ArrowUp&&(i=1));var o=this.navigationService.process({current:i+n,max:this.dataService.itemsCount-1,min:0,originalEvent:e});o!==xe.Undefined&&o!==xe.Left&&o!==xe.Right&&o!==xe.Backspace&&o!==xe.Delete&&(o===xe.Enter&&this.isOpen||o!==xe.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(){var e=this.text,t=this.selectionService.focused,n=pt(t)&&-1!==t,i=_t(this._previousDataItem,this.textField,this.valuePrimitive)||"",o=_t(this.dataService.itemAt(t),this.textField),r=e!==i;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&r&&(e===o||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(n?this.selectionService.change(t):r&&this.change(e,!0))},e.prototype.handleBlur=function(){var e=this;this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1;var t=this.prop(this.valueField,this.valuePrimitive),n=t(this.dataItem)!==t(this.value),i=this.searchbar.value,o=this.prop(this.textField,this.valuePrimitive),r=i!==(o(this.dataItem)||""),a=n||r;a||Object(s.hasObservers)(this.onBlur)||Object(s.hasObservers)(this.close)||jt(this.hostElement.nativeElement)?this.zone.run((function(){a&&(pt(e.focusedItemText)&&e.focusedItemText.toLowerCase()===i.toLowerCase()||n?e.selectionService.change(e.selectionService.focused):e.change(i,!0));e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)})):this.togglePopup(!1)},e.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.selected.length>0||(this.suggestedText=null,this.selectionService.focused=-1)},e.prototype.handleNavigationOpen=function(){this.restoreItemFocus(),this.togglePopup(!0)},e.prototype.searchBarChange=function(e){var t=this.text?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==e?(this.filterText=e,this.filterChange.emit(e)):this.search(e)},e.prototype.handleFocus=function(){var e=this;this.isFocused=!0,Object(s.hasObservers)(this.onFocus)&&this.zone.run((function(){return e.onFocus.emit()}))},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.change=function(e,t){void 0===t&&(t=!1),t?this.customValueSubject.next(e):this.valueSubject.next(e)},e.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem},e.prototype.selectClick=function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)},Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),e.prototype.preventEventDefault=function(e){e.preventDefault()},Object.defineProperty(e.prototype,"focusedItemText",{get:function(){var e=this.selectionService.focused;if(!pt(e)||-1===e)return null;var t=_t(this.dataService.itemAt(e),this.textField);return pt(t)?t.toString():""},enumerable:!0,configurable:!0}),e.prototype.restoreItemFocus=function(){!(pt(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))},e.prototype.useSuggestion=function(){if(!this.suggest||!pt(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),t=this.prop(this.textField,this.valuePrimitive)(e);return!!pt(t)&&this.searchbar.value.toLowerCase()===t.toLowerCase()},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:n,popupAlign:i});var o=this.popupRef.popupElement,r=this.popupWidth,a=r.min,s=r.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=a,o.style.width=s,o.style.height=this.popupHeight,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.togglePopup(!1)}))},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new Rt;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))},e.prototype.setMessages=function(){var e=this;this.zone.runOutsideAngular((function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout((function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()}))}))},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"allowCustom",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"data",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"valueNormalizer",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"iconClass",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"suggest",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(r.__decorate)([Object(a.Input)("tabIndex"),Object(r.__metadata)("design:type",Number),Object(r.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"opened",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"closed",void 0),Object(r.__decorate)([Object(a.Output)("focus"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(r.__decorate)([Object(a.Output)("blur"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(r.__decorate)([Object(a.ContentChild)(xt,{static:!1}),Object(r.__metadata)("design:type",xt)],e.prototype,"template",void 0),Object(r.__decorate)([Object(a.ContentChild)(kt,{static:!1}),Object(r.__metadata)("design:type",kt)],e.prototype,"headerTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Et,{static:!1}),Object(r.__metadata)("design:type",Et)],e.prototype,"footerTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Bt,{static:!1}),Object(r.__metadata)("design:type",Bt)],e.prototype,"noDataTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(It,{static:!1}),Object(r.__metadata)("design:type",It)],e.prototype,"groupTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Dt,{static:!1}),Object(r.__metadata)("design:type",Dt)],e.prototype,"fixedGroupTemplate",void 0),Object(r.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(r.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(r.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!0}),Object(r.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(r.__decorate)([Object(a.ViewChild)(wt,{static:!0}),Object(r.__metadata)("design:type",wt)],e.prototype,"searchbar",void 0),Object(r.__decorate)([Object(a.ViewChild)("optionsList",{static:!1}),Object(r.__metadata)("design:type",Lt)],e.prototype,"optionsList",void 0),Object(r.__decorate)([Object(a.ViewChild)("wrapper",{static:!0}),Object(r.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(r.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-combobox"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(r.__decorate)([Object(a.HostBinding)("class.k-combobox-clearable"),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"clearable",null),Object(r.__decorate)([Object(a.HostBinding)("attr.dir"),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),e=t=Object(r.__decorate)([Object(a.Component)({exportAs:"kendoComboBox",providers:[hn,Ft,Pt,At,Mt,l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.combobox"},{provide:Vt,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:s.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-combobox",template:'\n <ng-container kendoComboBoxLocalizedMessages\n i18n-noDataText="kendo.combobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.combobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span #wrapper unselectable="on"\n class="k-dropdown-wrap"\n [ngClass]="{\'k-state-disabled\': disabled }"\n >\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-icon k-clear-value k-i-close"\n aria-hidden="true"\n [attr.title]="clearTitle"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n <span\n aria-hidden="true"\n unselectable="on"\n class="k-select"\n (click)="selectClick()"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon" [ngClass]="buttonClasses">\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n </span>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(r.__param)(10,Object(a.Optional)()),Object(r.__param)(10,Object(a.Inject)(Wt)),Object(r.__metadata)("design:paramtypes",[l.LocalizationService,p.c,Pt,At,Mt,Ft,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.ElementRef,Boolean])],e)}(),bn=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownListValueTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),mn={multi:!0,provide:c.c,useExisting:Object(a.forwardRef)((function(){return gn}))},gn=function(){function e(e,t,n,i,o,r,s,c,l,p,h){this.localization=e,this.popupService=t,this.selectionService=n,this.navigationService=i,this.disabledItemsService=o,this.dataService=r,this._zone=s,this.renderer=c,this.hostElement=l,this.cdr=p,this.touchEnabled=h,this.focusableId="k-"+ht(),this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new a.EventEmitter,this.filterChange=new a.EventEmitter,this.selectionChange=new a.EventEmitter,this.open=new a.EventEmitter,this.opened=new a.EventEmitter,this.close=new a.EventEmitter,this.closed=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.widgetClasses=!0,this.groupIndices=[],this.listBoxId=ht(),this.optionPrefix=ht(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.word="",this.last="",this.filterFocused=new a.EventEmitter,this.filterBlurred=new a.EventEmitter,this.wrapperFocused=new a.EventEmitter,this.wrapperBlurred=new a.EventEmitter,this.selectionSubscription=new d.Subscription,this._open=!1,this._popupSettings={animate:!0},Object(u.validatePackage)(dt),this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=Object(s.isDocumentAvailable)()?this.wrapper.nativeElement.offsetWidth:0,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return pt(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetTabIndex",{get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaOwns",{get:function(){if(this.isOpen)return this.listBoxId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActivedescendant",{get:function(){if(pt(this.dataItem))return this.optionPrefix+"-"+_t(this.dataItem,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){pt(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Kt(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return pt(this._valuePrimitive)?this._valuePrimitive:!pt(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.blurComponent=function(){this.wrapperBlurred.emit()},e.prototype.blurFilterInput=function(){this.filterBlurred.emit()},e.prototype.focusComponent=function(){var e=this;this.wrapperFocused.emit(),this.isFocused||(this.isFocused=!0,Object(s.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})))},e.prototype.keydown=function(e){var t=pt(this.defaultItem)?-1:0,n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(t):this.selectionService.focused,i=0;if(!this.disabled&&!this.readonly){var o=e.keyCode===s.Keys.Home||e.keyCode===s.Keys.End;if(!(this.filterable&&this.isFocused&&this.isOpen)||!o){var r=pt(this.selectionService.selected[0]),a=pt(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);r&&!a||(e.keyCode===s.Keys.ArrowDown||e.keyCode===s.Keys.ArrowRight?i=-1:e.keyCode!==s.Keys.ArrowUp&&e.keyCode!==s.Keys.ArrowLeft||(i=1));var c=e,u=this.navigationService.process({current:n+i,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:c}),l=u===xe.Left||u===xe.Right;u===xe.Undefined||u===xe.Tab||u===xe.Backspace||u===xe.Delete||l&&this.filterable||u===xe.Enter||c.preventDefault()}}},e.prototype.keypress=function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)},e.prototype.click=function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.assignAriaDescribedBy()},e.prototype.isEmpty=function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)},e.prototype.onFilterFocus=function(){this.filterFocused.emit()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(s.isChanged)("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),Object(s.anyChanged)(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.focusItemAt=function(e){var t=(pt(this.defaultItem)?-1:0)<=e&&e<this.data.length;pt(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=pt(e)?e:!t._open;t._toggle(n)}))},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new Rt;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||(!e&&this.filterable&&this.isFocused&&this.focus(),this._toggle(e)))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.value=void 0},e.prototype.writeValue=function(e){this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabledDefaultItem",{get:function(){return this.disabledItemsService.isItemDisabled(this.defaultItem)},enumerable:!0,configurable:!0}),e.prototype.getText=function(){return this.text},e.prototype.getDefaultItemText=function(){return _t(this.defaultItem,this.textField)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:n,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:i,popupClass:this.listContainerClasses,positionMode:"absolute"});var o=this.popupRef.popupElement,r=this.width,a=r.min,s=r.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=a,o.style.width=s,o.style.height=this.height,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.filterable||this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.togglePopup(!1)}))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.updateState=function(e){var t=e.dataItem,n=e.confirm,i=void 0!==n&&n;this.dataItem=t,this.text=this.prop(this.textField,this.valuePrimitive)(t),i&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!pt(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e},e.prototype.onSelectionChange=function(e){var t=e.dataItem;this.updateState({dataItem:t}),this.selectionChange.emit(t),this.assignAriaDescribedBy()},e.prototype.subscribeEvents=function(){var e=this;Object(s.isDocumentAvailable)()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(Object(h.filter)((function(t){return e.isOpen})),Object(h.map)(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(Object(d.merge)(this.selectionService.onSelect.pipe(Object(h.filter)((function(t){return!e.isOpen}))),this.selectionService.onChange).pipe(Object(h.map)(this.itemFromEvent.bind(this)),Object(h.tap)((function(t){return e.togglePopup(!1)}))).subscribe((function(t){var n=t.dataItem,i=t.value;t.newSelection&&e.onSelectionChange({dataItem:n});var o=!pt(n)&&e._previousDataItem,r=i!==e.prop(e.valueField,e.valuePrimitive)(e.value);o?(e.updateState({dataItem:e._previousDataItem}),e.resetSelection()):r&&(e.value=e.valuePrimitive?i:n,e._previousDataItem=n,e.emitChange(e.value)),e.clearFilter()}))),this.navigationSubscription=Object(d.merge)(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(Object(h.skipWhile)((function(){return e.filterable}))),this.navigationService.right.pipe(Object(h.skipWhile)((function(){return e.filterable}))),this.navigationService.home,this.navigationService.end).pipe(Object(h.filter)((function(e){return!isNaN(e.index)}))).subscribe((function(t){return e.selectionService.select(t.index)})),this.openSubscription=this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.closeSubscription=this.navigationService.close.subscribe((function(){e.togglePopup(!1),e.focus()})),this.enterSubscription=this.navigationService.enter.pipe(Object(h.tap)((function(e){return e.originalEvent.preventDefault()}))).subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.filterBlurredSubscription=this.filterBlurred.pipe(Object(h.concatMap)((function(){return Object(d.interval)(10).pipe(Object(h.take)(1),Object(h.takeUntil)(e.wrapperFocused))}))).subscribe((function(){e.wrapperBlurred.emit()})),this._zone.runOutsideAngular((function(){e.componentBlurredSubscription=Object(d.merge)(e.wrapperBlurred.pipe(Object(h.concatMap)((function(){return Object(d.interval)(10).pipe(Object(h.take)(1),Object(h.takeUntil)(e.filterFocused))}))),e.navigationService.tab).pipe(Object(h.tap)((function(t){return t instanceof Nt&&e.focus()})),Object(h.filter)((function(){return e.isFocused}))).subscribe((function(){return e.componentBlur()}))})))},e.prototype.unsubscribeEvents=function(){Object(s.isDocumentAvailable)()&&(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())},e.prototype.itemFromEvent=function(e){var t=e.indices[0],n=this.dataService.itemAt(t);n=pt(n)?n:this.currentOrDefault(t);var i=this.prop(this.valueField,this.valuePrimitive)(n);return{dataItem:n,index:t,newSelection:e.newSelection,value:i}},e.prototype.currentOrDefault=function(e){return pt(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem},e.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.handleEnter=function(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)},e.prototype.handleEscape=function(){pt(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()},e.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))},e.prototype.verifySettings=function(){if(Object(a.isDevMode)()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(on);if(!0===this.valuePrimitive&&pt(this.value)&&"object"==typeof this.value)throw new Error(an);if(!1===this.valuePrimitive&&pt(this.value)&&"object"!=typeof this.value)throw new Error(rn);if(!pt(this.valueField)!=!pt(this.textField))throw new Error(sn)}},e.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=this.prop(this.valueField,this.valuePrimitive),n=pt(this.selectionService.selected[0])&&t(this.value)!==t(this.dataService.itemAt(this.selectionService.selected[0]));n||Object(s.hasObservers)(this.close)||Object(s.hasObservers)(this.onBlur)||Object(s.hasObservers)(this.filterChange)||jt(this.hostElement.nativeElement)?this._zone.run((function(){n&&e.selectionService.change(e.selectionService.selected[0]),e.togglePopup(!1),e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()})):this.togglePopup(!1)},e.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},e.prototype.onKeyPress=function(e){if(0!==e.which&&e.keyCode!==s.Keys.Enter){var t=String.fromCharCode(e.charCode||e.keyCode);this.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),this.word+=t,this.last=t,this.search()}},e.prototype.search=function(){var e=this;clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout((function(){e.word=""}),this.delay),this.selectNext())},e.prototype.selectNext=function(){var e,t,n,i=this,o=this.dataService.filter((function(e){return pt(e)&&!e.header&&!i.disabledItemsService.isItemDisabled(e)})).map((function(e){return i.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:i.dataService.indexOf(e)}})),r=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(this.word,this.last),a=o.length,s=!isNaN(this.selectionService.selected[0]),c=s?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(n={item:this.defaultItem,itemIndex:-1},a+=1,c+=1),o=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))}(o,c+=r&&s?1:0,n),t=0;t<a;t++){e=_t(o[t].item,this.textField);var u=Boolean(r&&Ot(e,this.last,this.ignoreCase)),l=Boolean(Ot(e,this.word,this.ignoreCase));if(u||l){t=o[t].itemIndex;break}}t!==a&&this.navigate(t)},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.navigate=function(e){this.selectionService.select(e)},e.prototype.prop=function(e,t){return function(n){return pt(n)?t?e&&bt(n)?n[e]:n:n[e]:null}},e.prototype.findDataItem=function(e){var t,n=e.primitive,i=e.valueField,o=e.value,r={dataItem:null,index:-1},a=this.prop(i,n);t=this.dataService.grouped?function(e){return a(e.value)===a(o)}:function(e){return a(e)===a(o)};var s=this.dataService.findIndex(t);return r.dataItem=this.dataService.itemAt(s),r.index=s,r},e.prototype.setState=function(){var e=this.value,t=this.valueField,n=this.textField,i=this.valuePrimitive;if(this.defaultItem){var o=this.prop(t,i)(this.defaultItem),r=this.prop(t,i)(e);if(!pt(e)||r===o)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}var a=this.findDataItem({primitive:i,valueField:t,value:e}),s=!(i&&n);a.dataItem?(this.updateState({dataItem:a.dataItem,confirm:!0}),this.resetSelection(a.index)):pt(e)&&s?(this.updateState({dataItem:e}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())},e.prototype.handleFilter=function(e){this.filterChange.emit(e.target.value)},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.setMessages=function(){var e=this;this._zone.runOutsideAngular((function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout((function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()}))}))},e.prototype.assignAriaDescribedBy=function(){var e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=ht();var t=(this.valueLabelId+" "+e).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"iconClass",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"data",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"defaultItem",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"ignoreCase",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"delay",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(r.__decorate)([Object(a.Input)("tabIndex"),Object(r.__metadata)("design:type",Number),Object(r.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"opened",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"closed",void 0),Object(r.__decorate)([Object(a.Output)("focus"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(r.__decorate)([Object(a.Output)("blur"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(r.__decorate)([Object(a.ContentChild)(xt,{static:!1}),Object(r.__metadata)("design:type",xt)],e.prototype,"itemTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(It,{static:!1}),Object(r.__metadata)("design:type",It)],e.prototype,"groupTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Dt,{static:!1}),Object(r.__metadata)("design:type",Dt)],e.prototype,"fixedGroupTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(bn,{static:!1}),Object(r.__metadata)("design:type",bn)],e.prototype,"valueTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(kt,{static:!1}),Object(r.__metadata)("design:type",kt)],e.prototype,"headerTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Et,{static:!1}),Object(r.__metadata)("design:type",Et)],e.prototype,"footerTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Bt,{static:!1}),Object(r.__metadata)("design:type",Bt)],e.prototype,"noDataTemplate",void 0),Object(r.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(r.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(r.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!0}),Object(r.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(r.__decorate)([Object(a.ViewChild)("wrapper",{static:!0}),Object(r.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(r.__decorate)([Object(a.ViewChild)("optionsList",{static:!1}),Object(r.__metadata)("design:type",Lt)],e.prototype,"optionsList",void 0),Object(r.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-dropdown"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(r.__decorate)([Object(a.HostBinding)("attr.dir"),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),e=t=Object(r.__decorate)([Object(a.Component)({exportAs:"kendoDropDownList",providers:[mn,Ft,Pt,At,Mt,l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:Vt,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:s.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-dropdownlist",template:'\n <ng-container kendoDropDownListLocalizedMessages\n i18n-noDataText="kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n >\n </ng-container>\n <span #wrapper unselectable="on"\n role="listbox"\n [id]="focusableId"\n [ngClass]="{\n \'k-dropdown-wrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n [attr.dir]="direction"\n [attr.readonly]="readonly"\n [attr.tabindex]="widgetTabIndex"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n (keydown)="keydown($event)"\n (keypress)="keypress($event)"\n (click)="click($event)"\n [kendoEventsOutsideAngular]="{\n focus: focusComponent,\n blur: blurComponent\n }"\n [scope]="this"\n >\n <span class="k-input" unselectable="on" [id]="valueLabelId">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate">{{ getText() }}</ng-template>\n </span>\n <span class="k-select" unselectable="on">\n <span\n class="k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n >\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <span class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <input\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-textbox"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n <span class="k-icon k-i-search" unselectable="on"></span>\n </span>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div class="k-list-optionlabel" [ngClass]="{ \'k-state-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div class="k-list-optionlabel" [ngClass]="{ \'k-state-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n </span>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(r.__param)(10,Object(a.Optional)()),Object(r.__param)(10,Object(a.Inject)(Wt)),Object(r.__metadata)("design:paramtypes",[l.LocalizationService,p.c,Pt,At,Mt,Ft,a.NgZone,a.Renderer2,a.ElementRef,a.ChangeDetectorRef,Boolean])],e)}(),vn=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoMultiSelectCustomItemTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),yn=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoMultiSelectTagTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),_n=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoMultiSelectGroupTagTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),On=function(e){function t(t){var n=e.call(this)||this;return n.dataItem=t,n}return Object(r.__extends)(t,e),t}(Rt),jn={multi:!0,provide:c.c,useExisting:Object(a.forwardRef)((function(){return Cn}))},Cn=function(){function e(e,t,n,i,o,r,s,c,l,p,f,b){var m=this;this.localization=e,this.popupService=t,this.dataService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=r,this.cdr=s,this.differs=c,this.renderer=l,this.hostElement=p,this._zone=f,this.touchEnabled=b,this.listBoxId=ht(),this.tagListId=ht(),this.tagPrefix="tag-"+ht(),this.optionPrefix="option-"+ht(),this.focusedTagIndex=void 0,this.focusableId="k-"+ht(),this.autoClose=!0,this.tabindex=0,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.listHeight=200,this.clearButton=!0,this.tagMapper=function(e){return e||[]},this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(Object(h.map)((function(e){var t=function(t){return"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},n=m.value.find(t);if(n)return n;var i=m.dataService.find(t);return i||e})))},this.filterChange=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.open=new a.EventEmitter,this.opened=new a.EventEmitter,this.close=new a.EventEmitter,this.closed=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.removeTag=new a.EventEmitter,this.widgetClasses=!0,this.initialized=!1,this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new d.Subject,this.observableSubscriptions=new d.Subscription,Object(u.validatePackage)(dt),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents()}var t;return t=e,e.prototype.focusItemAt=function(e){var t=(this.allowCustom?-1:0)<=0&&e<this.data.length;pt(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.onSearchBarFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(s.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})))},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.onSearchBarBlur=function(){var e=this;this.isFocused&&(this.isFocused=!1,Object(s.hasObservers)(this.onBlur)||Object(s.hasObservers)(this.filterChange)||Object(s.hasObservers)(this.close)||jt(this.hostElement.nativeElement)?this._zone.run((function(){e.closePopup(),e.isOpen&&e.allowCustom||e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()})):(this.allowCustom||this.clearFilter(),this.closePopup()))},e.prototype.wrapperMousedown=function(e){var t=this.searchbar.input.nativeElement;if(0===e.button){if(this.isFocused&&this.isOpen&&e.target===t)return;(!this.touchEnabled||this.touchEnabled&&"SPAN"!==e.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),e.preventDefault()}},e.prototype.onMouseDown=function(e){e.preventDefault()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],!this.differ&&this.value&&(this.differ=this.differs.find(this.value).create()),this.valueChangeDetected=!0,this.initialized&&this.setState(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this.selectedDataItems.length?"":this._placeholder},set:function(e){this._placeholder=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Kt(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return pt(this._valuePrimitive)?this._valuePrimitive:!pt(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e=0;Object(s.isDocumentAvailable)()&&(e=this.wrapper.nativeElement.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return pt(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDescendant",{get:function(){var e,t,n=this.focusedTagIndex,i=this.selectionService.focused;if(pt(n)&&!this.isOpen)t=this.tags[n],e=this.tagPrefix;else{if(!pt(i)||-1===i||!this.isOpen)return null;t=this.dataService.itemAt(i),e=this.optionPrefix}return e+"-"+this.prop(this.valueField,this.valuePrimitive)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),e.prototype.verifySettings=function(){if(Object(a.isDevMode)()&&0!==this.value.length){if(!ft(this.value))throw new Error(Zt);if(!0===this.valuePrimitive&&vt(this.value))throw new Error(qt);if(!1===this.valuePrimitive&&!vt(this.value))throw new Error($t);if(!pt(this.valueField)!=!pt(this.textField))throw new Error(Xt)}},e.prototype.change=function(e){if((pt(e.added)||pt(e.removed))&&(-1===e.added||-1===e.removed))this.addCustomValue(this.text);else{if(pt(e.added)){var t=this.dataService.itemAt(e.added),n=this.valuePrimitive&&pt(t)&&pt(t[this.valueField])?t[this.valueField]:t;this.value=this.value.concat([n])}if(pt(e.removed)){var i=this.dataService.itemAt(e.removed),o=this.prop(this.valueField,this.valuePrimitive);this.value=this.value.filter((function(e){return o(e)!==o(i)})),this.selectionService.focused=e.removed,this.cdr.detectChanges()}this.emitValueChange()}},e.prototype.setState=function(e){var t=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=yt(this.value,n,this.valueField);if(this.selectionService.resetSelection(i),this.isOpen&&void 0===this.selectionService.focused&&(this.dataService.itemsCount>0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(vt(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=gt(e,n,this.valueField)),this.selectedDataItems.length<e.length){var o=this.prop(this.valueField,this.valuePrimitive);this.selectedDataItems=e.map((function(e){var n=t.selectedDataItems.find((function(t){return o(t)===o(e)}));return pt(n)?n:t.resolveDataItemFromTags(e)})).filter((function(e){return pt(e)}))}this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},e.prototype.handleFilter=function(e){this.text=e,e&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.clearFilter=function(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()},e.prototype.handleNavigate=function(e){var t=this.text&&e.keyCode!==s.Keys.ArrowDown&&e.keyCode!==s.Keys.ArrowUp,n=this.text&&e.keyCode===s.Keys.Enter||e.keyCode===s.Keys.Escape;if(!this.text&&e.keyCode===s.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!(this.disabled||t&&!n)){var i=e,o=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,r=this.navigationService.process({current:o,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:i});r!==xe.Undefined&&(r===xe.Enter&&this.isOpen||r!==xe.Enter)&&e.preventDefault()}},e.prototype.handleRemoveTag=function(e){var t=new On(e);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(t),t.isDefaultPrevented()||(e instanceof Array?this.removeGroupTag(e):this.removeSingleTag(e),this.cdr.detectChanges()))},e.prototype.clearAll=function(e){e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter(),this.reset(),this.emitValueChange()},e.prototype.addCustomValue=function(e){this.customValueSubject.next(e)},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.ngDoCheck=function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1},e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.setState(this.value),this.initialized=!0},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(s.isChanged)("valueNormalizer",e)&&this.createCustomValueStream(),Object(s.anyChanged)(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)},e.prototype.ngAfterViewInit=function(){this.searchbar.setInputSize()},e.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=pt(e)?e:!t._open;t._toggle(n),t.cdr.markForCheck()}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.text="",this.value=[]},e.prototype.writeValue=function(e){this.value=e||[]},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onTagMapperChange=function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},e.prototype.prop=function(e,t){return function(n){return pt(n)?t?e&&bt(n)?n[e]:n:n[e]:null}},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),e.prototype.subscribeEvents=function(){var e=this;if(Object(s.isDocumentAvailable)()){var t=function(){return e.isOpen},n=function(){return!e.isOpen},i=function(){return!e.isOpen&&void 0!==e.focusedTagIndex};[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(Object(h.filter)(t)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe(Object(h.filter)(t)).subscribe((function(t){return e.handleUp(t.index)})),this.navigationService.home.pipe(Object(h.filter)((function(){return n}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Object(h.filter)((function(){return n}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Object(h.filter)(i)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Object(h.filter)(i)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe((function(t){return e.handleDownKey(t.index)}))].forEach((function(t){return e.observableSubscriptions.add(t)}))}},e.prototype.unsubscribeEvents=function(){Object(s.isDocumentAvailable)()&&(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe())},e.prototype.removeGroupTag=function(e){var t=this.prop(this.valueField,this.valuePrimitive),n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=new Set(e.map((function(e){return t(e)})));this.value=this.value.filter((function(e){return!i.has(t(e))})),this.emitValueChange()},e.prototype.removeSingleTag=function(e){var t=this.prop(this.valueField,this.valuePrimitive),n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=yt([e],n,this.valueField)[0];if(isNaN(i)){this.value=this.value.filter((function(n){return t(n)!==t(e)})),this.emitValueChange()}else this.selectionService.unselect(i),this.selectionService.focused=i,this.togglePopup(!1)},e.prototype.createCustomValueStream=function(){var e=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(Object(h.tap)((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),this.valueNormalizer,Object(h.catchError)((function(){return e.loading=!1,e.disabled=!1,e.autoClose&&e.togglePopup(!1),!e.autoClose&&e.filterable||e.clearFilter(),e.nextTick((function(){e.searchbar.focus()})),e.createCustomValueStream(),Object(d.of)(null)}))).subscribe((function(t){if(e.loading=!1,e.disabled=!1,pt(t)){var n=e.valuePrimitive?_t(t,e.valueField):t,i=e.dataService.indexOf(n),o=-1===i;-1===e.value.indexOf(n)?(e.tags=e.tagMapper(e.selectedDataItems.concat([t])),o?e.value=e.value.concat([n]):e.selectionService.add(i)):!o&&e.selectionService.isSelected(i)?(e.selectionService.unselect(i),e.selectionService.focused=i):e.value=e.value.filter((function(t){return _t(t,e.valueField)!==n})),e.emitValueChange()}e.autoClose&&e.togglePopup(!1),!e.autoClose&&e.filterable||e.clearFilter(),e.nextTick((function(){e.searchbar.focus()}))}))},e.prototype.handleItemChange=function(e){this.change(e),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()},e.prototype.handleEnter=function(e){var t=this.selectionService,n=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==n?(t.isSelected(n)?(t.unselect(n),t.focused=n):t.add(n),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)},e.prototype.handleClose=function(){this.closePopup(),this.searchbar.focus()},e.prototype.handleEnd=function(){this.focusedTagIndex=this.tags.length-1},e.prototype.handleHome=function(){this.focusedTagIndex=0},e.prototype.handleUp=function(e){this.selectionService.focused=e},e.prototype.handleBackspace=function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag(this.tags[this.tags.length-1]),this.searchbar.focus())},e.prototype.handleDelete=function(){this.handleRemoveTag(this.tags[this.focusedTagIndex]),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},e.prototype.handleLeftKey=function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},e.prototype.handleDownKey=function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()},e.prototype.handleRightKey=function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e&&this.focusedTagIndex++},e.prototype.findIndex=function(e,t){var n,i=this;void 0===t&&(t=0),e=e.toLowerCase();var o=this.dataService.findIndex((function(t){return n=i.dataService.grouped?i.prop(i.textField,i.valuePrimitive)(t.value):i.prop(i.textField,i.valuePrimitive)(t),n=pt(n)?n.toString().toLowerCase():"",e&&n.startsWith(e)}),t);return this.disabledItemsService.isIndexDisabled(o)?o+1>this.dataService.itemsCount?-1:this.findIndex(e,o+1):o},e.prototype.searchTextAndFocus=function(e){var t=this.findIndex(e);this.selectionService.focused=t},e.prototype.closePopup=function(){this.togglePopup(!1),this.focusedTagIndex=void 0},e.prototype.openPopup=function(){this.togglePopup(!0),this.focusedTagIndex=void 0},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},e.prototype.triggerPopupEvents=function(e){var t=new Rt;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:n,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:i,popupClass:this.listContainerClasses,positionMode:"absolute"});var o=this.popupRef.popupElement,r=this.width,a=r.min,s=r.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=a,o.style.width=s,o.style.height=this.height,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.togglePopup(!1)}))},e.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)},e.prototype.resolveDataItemFromTags=function(e){if(this.tags&&this.tags.length&&pt(e)){var t=this.tags.reduce((function(e,t){var n=ft(t)?t:[t];return e.push.apply(e,n),e}),[]),n=this.prop(this.valueField,this.valuePrimitive);return t.find((function(t){return n(t)===n(e)}))}},e.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){var n=e+1;return n<t?this.firstFocusableIndex(n):void 0}return e},e.prototype.nextTick=function(e){var t=this;this._zone.runOutsideAngular((function(){setTimeout((function(){return t._zone.run(e)}))}))},e.prototype.setMessages=function(){var e=this;this._zone.runOutsideAngular((function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout((function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()}))}))},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"autoClose",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"value",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(r.__decorate)([Object(a.Input)("tabIndex"),Object(r.__metadata)("design:type",Number),Object(r.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[String])],e.prototype,"placeholder",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"tagMapper",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"allowCustom",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"valueNormalizer",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"opened",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"closed",void 0),Object(r.__decorate)([Object(a.Output)("focus"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(r.__decorate)([Object(a.Output)("blur"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"removeTag",void 0),Object(r.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(r.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(r.__decorate)([Object(a.ViewChild)(wt,{static:!0}),Object(r.__metadata)("design:type",wt)],e.prototype,"searchbar",void 0),Object(r.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!0}),Object(r.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(r.__decorate)([Object(a.ViewChild)("wrapper",{static:!0}),Object(r.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(r.__decorate)([Object(a.ViewChild)("optionsList",{static:!1}),Object(r.__metadata)("design:type",Lt)],e.prototype,"optionsList",void 0),Object(r.__decorate)([Object(a.ContentChild)(xt,{static:!1}),Object(r.__metadata)("design:type",xt)],e.prototype,"template",void 0),Object(r.__decorate)([Object(a.ContentChild)(vn,{static:!1}),Object(r.__metadata)("design:type",vn)],e.prototype,"customItemTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(It,{static:!1}),Object(r.__metadata)("design:type",It)],e.prototype,"groupTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Dt,{static:!1}),Object(r.__metadata)("design:type",Dt)],e.prototype,"fixedGroupTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(kt,{static:!1}),Object(r.__metadata)("design:type",kt)],e.prototype,"headerTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Et,{static:!1}),Object(r.__metadata)("design:type",Et)],e.prototype,"footerTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(yn,{static:!1}),Object(r.__metadata)("design:type",yn)],e.prototype,"tagTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(_n,{static:!1}),Object(r.__metadata)("design:type",_n)],e.prototype,"groupTagTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Bt,{static:!1}),Object(r.__metadata)("design:type",Bt)],e.prototype,"noDataTemplate",void 0),Object(r.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-multiselect"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(r.__decorate)([Object(a.HostBinding)("attr.dir"),Object(r.__metadata)("design:type",String),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),Object(r.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(r.__decorate)([Object(a.Component)({exportAs:"kendoMultiSelect",providers:[jn,Ft,Pt,At,Mt,l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:Vt,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:s.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-multiselect",template:'\n <ng-container kendoMultiSelectLocalizedMessages\n i18n-noDataText="kendo.multiselect.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.combobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <div class="k-multiselect-wrap k-floatwrap"\n #wrapper\n (mousedown)="wrapperMousedown($event)"\n >\n <kendo-taglist\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n (removeTag)="handleRemoveTag($event)"\n >\n </kendo-taglist>\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'listbox\'"\n [tagListId]="tagListId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-icon k-clear-value k-i-close"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n </div>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div class="k-list" *ngIf="allowCustom && text">\n <div class="k-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(r.__param)(11,Object(a.Optional)()),Object(r.__param)(11,Object(a.Inject)(Wt)),Object(r.__metadata)("design:paramtypes",[l.LocalizationService,p.c,Ft,Pt,At,Mt,a.ChangeDetectorRef,a.KeyValueDiffers,a.Renderer2,a.ElementRef,a.NgZone,Boolean])],e)}(),Sn=function(){function e(){this.removeTag=new a.EventEmitter}return e.prototype.tagProp=function(e,t){return t&&bt(e)?e[t]:e},e.prototype.deleteTag=function(e,t){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit(t)},e.prototype.itemId=function(e){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField)},e.prototype.isGroupTag=function(e){return e instanceof Array},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array)],e.prototype,"tags",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"focused",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",yn)],e.prototype,"template",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",_n)],e.prototype,"groupTemplate",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"tagPrefix",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"removeTag",void 0),e=Object(r.__decorate)([Object(a.Component)({selector:"kendo-taglist",template:'\n <ul [attr.id]="id" class="k-reset">\n <li role="option" *ngFor="let tag of tags; let i = index;" aria-selected="true" [attr.aria-setsize]="tags?.length"\n class="k-button" [ngClass]="{ \'k-state-focused\': i === focused }" [attr.id]="itemId(tag)"\n >\n <ng-template *ngIf="isGroupTag(tag); then groupTag else singleTag"></ng-template>\n <ng-template #groupTag>\n <span>\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ tag.length }} {{ tag.length === 1 ? \'item\' : \'items\' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span>\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: tag\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ tagProp(tag, textField) }}</ng-template>\n </span>\n </ng-template>\n\n <span aria-label="delete" [attr.aria-hidden]="i !== focused" class="k-select">\n <span class="k-icon k-i-close" (mousedown)="deleteTag($event, tag)">\n </span>\n </span>\n </li>\n </ul>\n '})],e)}(),wn=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),xn=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),kn=function(){function e(){this.hidden=!1,this.matchesMedia=!0}return Object(r.__decorate)([Object(a.ContentChild)(wn,{static:!1}),Object(r.__metadata)("design:type",wn)],e.prototype,"cellTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(xn,{static:!1}),Object(r.__metadata)("design:type",xn)],e.prototype,"headerTemplate",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"field",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"width",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"hidden",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"style",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"headerStyle",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"class",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"headerClass",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"media",void 0),e=Object(r.__decorate)([Object(a.Component)({selector:"kendo-combobox-column",template:""})],e)}(),En=function(){if(isNaN(Tt)){var e=document.createElement("div");e.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),Tt=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return Tt},In=function(e){if(!function(e){return!(!pt(e)||0===e.length)&&e.toArray().every((function(e){return!isNaN(e.width)&&e.width>0}))}(e))return null;var t=En()+2;return e.reduce((function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e}),t)},Dn=function(e){function t(t,n,i,o,r,a,s,c,u,l,d){var p=e.call(this,t,n,i,o,r,a,s,c,u,l,d)||this;return p.hostClasses=!0,p.removeWindowResizeListener=Ct,p.defaultVirtualItemHeight=36,p.defaultVirtualPageSize=30,p}var n;return Object(r.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"header",{set:function(e){this.updateHeaderPadding(e&&e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupWidth",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=e+"px",n=this.popupSettings.width||In(this.columns)||e;return{min:t,max:isNaN(n)?n:n+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-popup","k-reset","k-group","k-dropdowngrid-popup","k-popup-flush","k-state-border-up"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.removeWindowResizeListener()},t.prototype.updateHeaderPadding=function(e){if(pt(e)){var t=this.localization.rtl?"padding-left":"padding-right";this.optionsList.hasScrollbar()&&En()>0?this.renderer.setStyle(e,t,En()+"px"):this.renderer.removeStyle(e,t)}},t.prototype.verifySettings=function(){if(Object(a.isDevMode)()){if(pt(this.data)&&this.data.length>0&&this.data.some((function(e){return!bt(e)})))throw new Error(tn);if(!pt(this.valueField)||!pt(this.textField))throw new Error(nn);e.prototype.verifySettings.call(this)}},t.prototype.addWindowResizeListener=function(){var e=this;Object(s.isDocumentAvailable)()&&this.zone.runOutsideAngular((function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))}))},t.prototype.updateColumnsMediaState=function(){var e=this;pt(this.columns)&&Object(s.isDocumentAvailable)()&&this.columns.forEach((function(t){var n=!t.media||window.matchMedia(t.media).matches;t.matchesMedia!==n&&(t.matchesMedia=n,e.isOpen&&e.zone.run((function(){return e.popupRef.popupElement.style.width=e.popupWidth.max})))}))},Object(r.__decorate)([Object(a.HostBinding)("class.k-dropdowngrid"),Object(r.__metadata)("design:type",Boolean)],t.prototype,"hostClasses",void 0),Object(r.__decorate)([Object(a.ContentChildren)(kn),Object(r.__metadata)("design:type",a.QueryList)],t.prototype,"columns",void 0),Object(r.__decorate)([Object(a.ViewChild)("header",{static:!1}),Object(r.__metadata)("design:type",a.ElementRef),Object(r.__metadata)("design:paramtypes",[a.ElementRef])],t.prototype,"header",null),t=n=Object(r.__decorate)([Object(a.Component)({providers:[Pt,Ft,At,Mt,l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:c.c,useExisting:Object(a.forwardRef)((function(){return n}))},{provide:s.KendoInput,useExisting:Object(a.forwardRef)((function(){return n}))},{provide:Vt,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-multicolumncombobox",template:'\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText="kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multicolumncombobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span\n #wrapper\n unselectable="on"\n class="k-dropdown-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-icon k-clear-value k-i-close"\n aria-hidden="true"\n [attr.title]="clearTitle"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n\n <span\n aria-hidden="true"\n unselectable="on"\n class="k-select"\n (click)="selectClick()"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span\n class="k-icon"\n [ngClass]="buttonClasses"\n >\n </span>\n </span>\n </span>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-grid-header"\n >\n <div class="k-grid-header-wrap">\n <table role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <tbody>\n <tr>\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-header"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-cell"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ dataItem[column.field] }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [listClass]="\'k-reset k-grid-list\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-nodata"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-footer">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </div>\n </ng-container>\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n '}),Object(r.__param)(10,Object(a.Inject)(Wt)),Object(r.__metadata)("design:paramtypes",[l.LocalizationService,p.c,Pt,At,Mt,Ft,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.ElementRef,Boolean])],t)}(fn),Pn=function(){function e(e){this.templateRef=e}return e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownTreeNodeTemplate]"}),Object(r.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Tn={animate:!0},Fn=function(){function e(e,t,n,i,o,r,c){this.popupService=e,this.navigationService=t,this.renderer=n,this.hostElement=i,this._zone=o,this.cdr=r,this.localization=c,this.hostClasses=!0,this.open=new a.EventEmitter,this.opened=new a.EventEmitter,this.close=new a.EventEmitter,this.closed=new a.EventEmitter,this.nodeExpand=new a.EventEmitter,this.nodeCollapse=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.clearButton=!0,this.hasChildren=function(){return!1},this.fetchChildren=function(){return Object(d.of)([])},this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=function(){return!1},this.focusableId="k-"+Object(s.guid)(),this.selectedKeys=[],this.filterable=!1,this.filterChange=new a.EventEmitter,this.valueLabelId="k-"+Object(s.guid)(),this._popupSettings=Tn,this._tabindex=0,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=Ct,this.onChangeCallback=Ct,this.direction=c.rtl?"rtl":"ltr",this.subscribeEvents()}var t;return t=e,Object.defineProperty(e.prototype,"clearable",{get:function(){return this.clearButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeview",{set:function(e){e&&this.isFocused&&(e.focus(),e.animate=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},Tn,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataItem",{get:function(){return this._dataItem?this._dataItem:this.value},set:function(e){this._dataItem=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return pt(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return pt(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.markForCheck()})))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){Object(s.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.isEmpty=function(){return!this.text&&!this.placeholder},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup()))},e.prototype.handleFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(s.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this,n=e&&e.relatedTarget;this.hostElement.nativeElement.contains(n)||this.isOpen&&this.popupRef.popupElement.contains(n)||(this.isFocused=!1,Object(s.hasObservers)(this.onBlur)||jt(this.hostElement.nativeElement)?this._zone.run((function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()})):this.togglePopup(!1))},e.prototype.handleKeydown=function(e){if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})}},e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=pt(e)?e:!pt(t.popupRef);t.destroyPopup(),n&&t.createPopup()}))},Object.defineProperty(e.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),e.prototype.onSelectionChange=function(e){var t=e.dataItem,n=e.index;this.valueDepth=n.split("_").length-1;var i=this.getField(this.valueField,t),o=this.valuePrimitive?Object(b.b)(i)(t):t;o!==this.value&&(this.dataItem=t,this.value=o,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()},e.prototype.messageFor=function(e){return this.localization.get(e)},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.value=void 0,this.dataItem=void 0,this.clearState(),this.valueChange.emit(void 0),this.emitValueChange()},Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.preventEventDefault=function(e){e.preventDefault()},e.prototype.writeValue=function(e){!pt(e)&&pt(this.value)&&(this.dataItem=null),this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.verifySettings=function(){if(Object(a.isDevMode)()){if(!0===this.valuePrimitive&&pt(this.value)&&"object"==typeof this.value)throw new Error(cn);if(!0===this.valuePrimitive&&pt(this.value)&&"object"!=typeof this.dataItem)throw new Error(ln);if(!1===this.valuePrimitive&&pt(this.value)&&"object"!=typeof this.value)throw new Error(un);if(!pt(this.valueField)||!pt(this.textField))throw new Error(dn);if((ft(this.valueField)||ft(this.textField))&&pt(this.value)&&!pt(this.valueDepth))throw new Error(pn)}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.getText=function(e,t){if(pt(t)&&pt(e)){var n=this.getField(e,t);return Object(b.b)(n)(t)}return null},e.prototype.getField=function(e,t){var n=e.length-1;return"string"==typeof e?e:pt(this.valueDepth)?n<this.valueDepth?e[n]:e[this.valueDepth]:e.find((function(e){return e in t}))},e.prototype.triggerPopupEvents=function(e){var t=new Rt;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:n,content:this.popupTemplate,popupAlign:i,positionMode:"absolute",popupClass:this.popupContainerClasses});var o=this.popupRef.popupElement,r=this.width,a=r.min,s=r.max;o.style.minWidth=a,o.style.width=s,o.style.height=this.height,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()}))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},e.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},e.prototype.setState=function(){if(pt(this.dataItem)&&pt(this.valueField)){this.text=this.getText(this.textField,this.dataItem);var e=this.getField(this.valueField,this.dataItem);this.selectBy=e,this.selectedKeys=[Object(b.b)(e)(this.dataItem)]}else this.clearState();this.cdr.markForCheck()},e.prototype.clearState=function(){this.text=void 0,this.valueDepth=void 0,this.selectedKeys=[]},e.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.navigationService.close.subscribe((function(){e.togglePopup(!1),e.focus()})),this.navigationService.enter.pipe(Object(h.tap)((function(e){return e.originalEvent.preventDefault()}))).subscribe((function(){return e.togglePopup(!0)})),this.navigationService.esc.subscribe((function(){return e.handleEscape()})),this.navigationService.tab.subscribe((function(){return e.focus()})))},e.prototype.unsubscribeEvents=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.assignAriaDescribedBy=function(){var e=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",t=(this.valueLabelId+" "+e.trim()).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)},Object(r.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-dropdowntree"),Object(a.HostBinding)("class.k-dropdowntree-clearable"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(r.__decorate)([Object(a.HostBinding)("attr.dir"),Object(r.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(r.__decorate)([Object(a.HostBinding)("class.k-dropdowntree-clearable"),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"clearable",null),Object(r.__decorate)([Object(a.ContentChild)(Bt,{static:!1}),Object(r.__metadata)("design:type",Bt)],e.prototype,"noDataTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(kt,{static:!1}),Object(r.__metadata)("design:type",kt)],e.prototype,"headerTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Et,{static:!1}),Object(r.__metadata)("design:type",Et)],e.prototype,"footerTemplate",void 0),Object(r.__decorate)([Object(a.ContentChild)(Pn,{static:!1}),Object(r.__metadata)("design:type",Pn)],e.prototype,"nodeTemplate",void 0),Object(r.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!0}),Object(r.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(r.__decorate)([Object(a.ViewChild)("wrapper",{static:!0}),Object(r.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(r.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(r.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(r.__decorate)([Object(a.ViewChild)("treeview",{static:!1}),Object(r.__metadata)("design:type",pe),Object(r.__metadata)("design:paramtypes",[pe])],e.prototype,"treeview",null),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"opened",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"closed",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"nodeExpand",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"nodeCollapse",void 0),Object(r.__decorate)([Object(a.Output)("focus"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(r.__decorate)([Object(a.Output)("blur"),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(r.__decorate)([Object(a.Output)(),Object(r.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"valueField",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"valueDepth",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"hasChildren",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"fetchChildren",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"dataItem",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Number),Object(r.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"itemDisabled",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Function)],e.prototype,"isNodeExpanded",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),e=t=Object(r.__decorate)([Object(a.Component)({exportAs:"kendoDropDownTree",providers:[Ft,Pt,At,Mt,l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:c.c,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:s.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:ae,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:se,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-dropdowntree",template:'\n <ng-container kendoDropDownTreeLocalizedMessages\n i18n-noDataText="kendo.dropdowntree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.dropdowntree.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span\n #wrapper\n [ngClass]="{\n \'k-dropdown-wrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n [attr.id]="focusableId"\n role="listbox"\n aria-haspopup="tree"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.tabindex]="tabindex"\n [attr.dir]="direction"\n (click)="handleClick()"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n [attr.id]="valueLabelId"\n class="k-input"\n >\n {{ text || placeholder }}\n </span>\n <span\n *ngIf="!loading && !readonly && clearButton && text?.length"\n class="k-icon k-clear-value k-i-close"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n <span class="k-select" aria-hidden="true">\n <span class="k-icon k-i-arrow-60-down"></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n [(selectedKeys)]="selectedKeys"\n [selectBy]="selectBy"\n [textField]="textField"\n kendoTreeViewSelectable\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n (focusout)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n (selectionChange)="onSelectionChange($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',changeDetection:a.ChangeDetectionStrategy.OnPush}),Object(r.__metadata)("design:paramtypes",[p.c,At,a.Renderer2,a.ElementRef,a.NgZone,a.ChangeDetectorRef,l.LocalizationService])],e)}(),Mn=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),Object(r.__decorate)([Object(a.Input)("kendoDropDownTreeFlatBinding"),Object(r.__metadata)("design:type",Array)],t.prototype,"nodes",void 0),Object(r.__decorate)([Object(a.Input)("valueField"),Object(r.__metadata)("design:type",String)],t.prototype,"idField",void 0),t=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownTreeFlatBinding]"}),Object(r.__metadata)("design:paramtypes",[ae])],t)}(Ye),Nn=function(e){function t(t){var n=e.call(this,t)||this;return n.dropDownTree=t,n}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.dropDownTree.nodes=e},enumerable:!0,configurable:!0}),Object(r.__decorate)([Object(a.Input)("kendoDropDownTreeHierarchyBinding"),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],t.prototype,"data",null),t=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownTreeHierarchyBinding]"}),Object(r.__metadata)("design:paramtypes",[ae])],t)}(We),An=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),Object(r.__decorate)([Object(a.Input)("isNodeExpanded"),Object(r.__metadata)("design:type",Function)],t.prototype,"isExpanded",void 0),t=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownTreeExpandable]"}),Object(r.__metadata)("design:paramtypes",[se])],t)}(ge),Bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],t.prototype,"noDataText",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",String)],t.prototype,"clearTitle",void 0),t}(l.ComponentMessages),Rn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(r.__extends)(t,e),n=t,t=n=Object(r.__decorate)([Object(a.Directive)({providers:[{provide:Bn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages]\n "}),Object(r.__metadata)("design:paramtypes",[l.LocalizationService])],t)}(Bn),Vn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(r.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(r.__decorate)([Object(a.Component)({providers:[{provide:Bn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages",template:""}),Object(r.__metadata)("design:paramtypes",[l.LocalizationService])],t)}(Bn),zn={caseSensitive:!1,operator:"startsWith"},Ln=function(){function e(e){this.component=e,this.filterable=!0,this._data=[],this.filterSettings=zn}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){pt(e.rawSettings)&&(this.filterSettings=this.normalizeFilterSettings(this.rawSettings))},e.prototype.ngOnInit=function(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))},e.prototype.ngOnDestroy=function(){pt(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},e.prototype.handleFilterChange=function(e){var t=this;this.component.data=this.data.filter((function(n){return t.matchesAnyField(n,e)}))},e.prototype.matchesAnyField=function(e,t){var n=this,i=this.normalizeValue(t),o=this.filterSettings.fields;return 0===o.length?this.checkItem(e,i):o.some((function(t){return n.checkItem(_t(e,t),i)}))},e.prototype.checkItem=function(e,t){return e=this.normalizeValue(e),"contains"===this.filterSettings.operator?-1!==e.indexOf(t):0===e.indexOf(t)},e.prototype.normalizeValue=function(e){var t=pt(e)?e.toString():"";return this.filterSettings.caseSensitive?t:t.toLowerCase()},e.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?ft(e)&&e.length>0?e:[this.component.textField||this.component.valueField]:[]},e.prototype.normalizeFilterSettings=function(e){var t=pt(e)&&"object"==typeof e?e.fields:[];return Object.assign({},zn,e,{fields:this.getFilterFields(t)})},Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Array),Object(r.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(r.__decorate)([Object(a.Input)("kendoDropDownFilter"),Object(r.__metadata)("design:type",Object)],e.prototype,"rawSettings",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownFilter]"}),Object(r.__metadata)("design:paramtypes",[Vt])],e)}(),Hn=[kt,Et,xt,It,Dt,Bt,Rn,Vn,Ln],Kn=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({declarations:[Hn],exports:[Hn]})],e)}(),Gn=function(){function e(e){this.multipleSelection=!1,this.selectionService=e}return Object.defineProperty(e.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedClassName",{get:function(){return this.selectionService.isSelected(this.index)},enumerable:!0,configurable:!0}),e.prototype.onClick=function(e){e.stopPropagation(),this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index)},Object(r.__decorate)([Object(a.HostBinding)("attr.index"),Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"index",void 0),Object(r.__decorate)([Object(a.HostBinding)("style.height.px"),Object(a.HostBinding)("style.minHeight.px"),Object(a.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"height",void 0),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"multipleSelection",void 0),Object(r.__decorate)([Object(a.HostBinding)("class.k-state-focused"),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"focusedClassName",null),Object(r.__decorate)([Object(a.HostBinding)("class.k-state-selected"),Object(r.__metadata)("design:type",Boolean),Object(r.__metadata)("design:paramtypes",[])],e.prototype,"selectedClassName",null),Object(r.__decorate)([Object(a.HostListener)("click",["$event"]),Object(r.__metadata)("design:type",Function),Object(r.__metadata)("design:paramtypes",[Object]),Object(r.__metadata)("design:returntype",void 0)],e.prototype,"onClick",null),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoDropDownsSelectable]"}),Object(r.__metadata)("design:paramtypes",[Pt])],e)}(),Un=function(){function e(e){this.viewContainerRef=e}return Object.defineProperty(e.prototype,"templateContext",{set:function(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))},enumerable:!0,configurable:!0}),Object(r.__decorate)([Object(a.Input)(),Object(r.__metadata)("design:type",Object),Object(r.__metadata)("design:paramtypes",[Object])],e.prototype,"templateContext",null),e=Object(r.__decorate)([Object(a.Directive)({selector:"[templateContext]"}),Object(r.__metadata)("design:paramtypes",[a.ViewContainerRef])],e)}(),Wn=[Lt,zt,Gn,wt,Un],Zn=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({declarations:[Wn],exports:[Wn,m.CommonModule,c.a,p.b,s.ResizeSensorModule,Kn,s.EventsModule],imports:[m.CommonModule,c.a,p.b,s.ResizeSensorModule,Kn,s.EventsModule]})],e)}(),$n=[Fn,Mn,Nn,An,Pn],qn=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({declarations:[$n],exports:[$n],imports:[Zn,lt]})],e)}(),Xn=function(){function e(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){pt(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},e.prototype.createTagMapper=function(){var e=function(e,t){void 0===t&&(t=0);var n=Number(e);return isNaN(n)?t:n}(this.showAfter);this.multiSelectComponent.tagMapper=function(t){if(t.length>e){var n=void 0;return(n=t.slice(0,e)).push(t.slice(e,t.length)),n}return t}},Object(r.__decorate)([Object(a.Input)("kendoMultiSelectSummaryTag"),Object(r.__metadata)("design:type",Object)],e.prototype,"showAfter",void 0),e=Object(r.__decorate)([Object(a.Directive)({selector:"[kendoMultiSelectSummaryTag]"}),Object(r.__metadata)("design:paramtypes",[Cn])],e)}(),Yn=[Ut],Jn=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({declarations:[Yn],exports:[Yn,Kn],imports:[Zn]})],e)}(),Qn=[fn,Dn,kn,xn,wn],ei=b.e,ti=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({declarations:[Qn],exports:[Qn,Kn],imports:[Zn],providers:[{provide:Wt,useValue:ei}]})],e)}(),ni=function(){function e(e,t){this.element=e,this.zone=t}return e.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick((function(){return e.element.nativeElement.focus()}))},e.prototype.nextTick=function(e){this.zone.runOutsideAngular((function(){return setTimeout(e)}))},Object(r.__decorate)([Object(a.Input)("filterInput"),Object(r.__metadata)("design:type",Boolean)],e.prototype,"focused",void 0),e=Object(r.__decorate)([Object(a.Directive)({selector:"[filterInput]"}),Object(r.__metadata)("design:paramtypes",[a.ElementRef,a.NgZone])],e)}(),ii=[gn,bn,ni],oi=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({declarations:[ii],exports:[ii,Kn],imports:[Zn]})],e)}(),ri=[Cn,Sn,yn,_n,Xn,vn],ai=b.e,si=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({declarations:[ri],exports:[ri,Kn],imports:[Zn],providers:[{provide:Wt,useValue:ai}]})],e)}(),ci=function(){function e(){}return e=Object(r.__decorate)([Object(a.NgModule)({exports:[Jn,ti,oi,si,qn]})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17);t.PageSizeChangeEvent=i.PageSizeChangeEvent;var o=n(18);t.CustomMessagesComponent=o.CustomMessagesComponent;var r=n(20);t.PagerPrevButtonsComponent=r.PagerPrevButtonsComponent;var a=n(21);t.PagerPageSizesComponent=a.PagerPageSizesComponent;var s=n(16);t.PagerTemplateDirective=s.PagerTemplateDirective;var c=n(22);t.PagerNumericButtonsComponent=c.PagerNumericButtonsComponent;var u=n(23);t.PagerNextButtonsComponent=u.PagerNextButtonsComponent;var l=n(24);t.PagerInputComponent=l.PagerInputComponent;var d=n(25);t.PagerInfoComponent=d.PagerInfoComponent;var p=n(26);t.PagerComponent=p.PagerComponent;var h=n(33);t.PagerModule=h.PagerModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RESPONSIVE_BREAKPOINT_MEDIUM=600,t.RESPONSIVE_BREAKPOINT_LARGE=768},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PAGE_SIZE_VALUES=[5,10,20]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-pager",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1617786416,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(0),o=n(4),r=n(1),a=n(6),s=n(14),c=n(27),u=n(26),l=n(20),d=n(23),p=n(22),h=n(24),f=n(25),b=n(21),m=n(16),g=n(2),v=n(34),y=n(18),_=n(2),O=[a.CommonModule,s.NumericTextBoxModule,c.DropDownListModule,g.EventsModule,_.ResizeSensorModule],j=[u.PagerComponent,l.PagerPrevButtonsComponent,d.PagerNextButtonsComponent,p.PagerNumericButtonsComponent,h.PagerInputComponent,f.PagerInfoComponent,b.PagerPageSizesComponent,m.PagerTemplateDirective,v.LocalizedMessagesDirective,y.CustomMessagesComponent],C=[{provide:o.L10N_PREFIX,useValue:"kendo.pager"}],S=function(){function e(){}return e.exports=function(){return[u.PagerComponent,l.PagerPrevButtonsComponent,d.PagerNextButtonsComponent,p.PagerNumericButtonsComponent,h.PagerInputComponent,f.PagerInfoComponent,b.PagerPageSizesComponent,m.PagerTemplateDirective]},e=i.__decorate([r.NgModule({declarations:[j],exports:[j],imports:O.slice(),providers:[C]})],e)}();t.PagerModule=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=n(19),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoDataPagerLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.LocalizedMessagesDirective=s}])}));
|
|
150
|
+
*/!function(){function e(){}var t;t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Jt,useValue:e.warnOnNgModelWithFormControl}]}},e=t=Object(i.__decorate)([Object(o.NgModule)({declarations:[xn],providers:[kn,et],exports:[wn,xn]})],e)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"e",(function(){return j}));var i=function(){return"undefined"!=typeof window},o={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},r={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},a={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},s={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},c=function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},l=i()&&window.navigator?window.navigator.userAgent:null,d=l?function(e){var t=null,n=[];for(var i in a)if(a.hasOwnProperty(i)&&(n=e.match(a[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t}(l):null,u=l?function(e){var t,n=[];for(var i in o)if(o.hasOwnProperty(i)){if(!(n=e.match(o[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;var a={};return a.device=i,a.browser=c(e,s,"default"),a.name=c(i,r),a[a.name]=!0,a.majorVersion=n[2],a.minorVersion=n[3]?n[3].replace("_","."):".0",t=a.minorVersion.replace(".","").substr(0,2),a.flatVersion=a.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),a.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,a.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||a.cordova,a}return null}(l):null,p=i()&&"ontouchstart"in window,h=d&&!d.chrome&&window.MSPointerEvent,f=d&&!d.chrome&&window.PointerEvent,b=u&&(p||h||f),m=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function g(e){var t=[];return e.replace(m,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),t}var v={};function y(e){if(v[e])return v[e];var t=g(e);return v[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},v[e]}v[void 0]=function(e){return e};var _={undefined:function(e){return e}},O=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function j(e){if(_[e])return _[e];var t=g(e);return _[e]=function(e,n,i){for(var o=e,r=t.length-1,a=0;a<r&&o;a++)o=o[t[a]]=o[t[a]]||O(t[a+1],i);o[t[r]]=n},_[e]}},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return l})),n.d(t,"validatePackage",(function(){return d}));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 a=function(e,t){var n=r[e-=0];if(void 0===a.eVebMg){a.JsjtEd=function(e){for(var t=function(e){for(var t,n,i=String(e).replace(/=+$/,""),o="",r=0,a=0;n=i.charAt(a++);~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)},a.rqrXoU={},a.eVebMg=!0}var i=a.rqrXoU[e];return void 0===i?(n=a.JsjtEd(n),a.rqrXoU[e]=n):n=i,n},s={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},c=new Map;function l(e){}function d(e){if(c[a("0x14")](e[a("0x4")])){if(a("0x35")==a("0x35"))return c[a("0x36")](e[a("0x4")])}var t,n=e[a("0x1")]?" v"+e[a("0x1")]:"",i=e[a("0x4")]+n,o=JSON[a("0x9")](s[a("0x34")]),r=!o[a("0x26")]&&!o[a("0x38")],l=o[a("0x26")]&&typeof KendoLicensing===a("0x2b"),d=function(e,t){var n=e[a("0x8")];if(!n||!n[a("0x2d")]){if(a("0x11")==a("0x11"))return null}var i=new Set(t);return n[a("0x2a")]((function(e){if(a("0xa")!==a("0x18"))return i[a("0x14")](e[a("0x39")])}))}(o,e[a("0x2")]);if(r||l)if(a("0x29")!=a("0x29")){}else t={type:0,packageName:i,docsUrl:e[a("0x27")]};else if(a("0xf")===a("0x24")){}else if(d){if(a("0x12")!=a("0x12")){}else if(d[a("0x37")]<e[a("0x1c")])if(a("0x21")===a("0x32")){}else t={type:2,packageName:i,publishDate:u(e[a("0x1c")]),expiryDate:u(d[a("0x37")]),docsUrl:e[a("0x27")]}}else if(a("0x6")!=a("0x6")){}else t={type:1,packageName:i,docsUrl:e[a("0x27")]};if(t&&typeof console===a("0x30"))if(a("0x5")===a("0x3")){}else{var p=a("0x1b")+e[a("0xe")],h=typeof console[a("0x7")]===a("0x33");if(h)if(a("0xc")!=a("0xc")){}else console[a("0x7")](p);else if(a("0x17")!=a("0x17")){}else console[a("0x1e")](p);if(console[a("0x1e")](function(e){var t=a("0x28")+e[a("0x16")]+"\n";if(2===e[a("0x3a")])if(a("0x20")!=a("0x20")){}else t+=a("0x25")+e[a("0x15")][a("0x2c")]()+a("0xb")+e[a("0x1c")][a("0x2c")]()+".\n";else if(0===e[a("0x3a")])if(a("0x13")!==a("0x10"))t+=a("0xd");else{}else if(1===e[a("0x3a")])if(a("0x2e")===a("0x23")){}else t+=a("0x1d");return t+=a("0x31")+e[a("0x1a")]+a("0x22")}(t)),h)if(a("0x1f")!==a("0x19"))console[a("0x2f")]();else{}}var f=!t;return c[a("0x0")](e[a("0x4")],f),f}function u(e){return new Date(1e3*e)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return se})),n.d(t,"a",(function(){return re})),n.d(t,"b",(function(){return le}));var i=n(0),o=n(1),r="bottom",a="center",s="middle",c="left",l="right",d="top",u=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,c=e.margin;void 0===c&&(c={});var d=n.horizontal,u=n.vertical,p=o.horizontal,h=o.vertical,f=c.horizontal||0,b=c.vertical||0,m=t.top,g=t.left;return u===r&&(m+=t.height),u!==a&&u!==s||(m+=Math.round(t.height/2)),h===r&&(m-=i.height,b*=-1),h!==a&&h!==s||(m-=Math.round(i.height/2),b*=-1),d===l&&(g+=t.width),d!==a&&d!==s||(g+=Math.round(t.width/2)),p===l&&(g-=i.width,f*=-1),p!==a&&p!==s||(g-=Math.round(i.width/2),f*=-1),{top:m+b,left:g+f}};function p(e){return e.ownerDocument||e.document||e}var h=function(e){return p(e).defaultView},f=function(e){return p(e).documentElement},b=0;function m(){if(!b&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),b=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return b}function g(e){var t=h(e),n=f(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=m()),i}var v=function(e){if(!e.getBoundingClientRect){var t=g(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}},y=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||f(e)},_=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}},O=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function j(e){var t=f(e),n=h(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var C=function(e){return e===(e.ownerDocument||{}).body?j(e):{x:e.scrollLeft,y:e.scrollTop}};var S=function(e,t){var n=h(e),i=n.getComputedStyle(e),o=_(e),r=t||y(e),a=e.ownerDocument,s=r!==a.body&&r!==a.documentElement,c={top:0,left:0};if("fixed"!==i.position&&s){var l=n.getComputedStyle(r);(c=_(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}},x=function(e,t){return e?C(e):function(e){var t=y(e);return t?C(t):{x:0,y:0}}(t)};var w="fit",k="flip",I=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},E=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,r=e.anchorAlignPoint,l=e.elementAlignPoint,u=0,p=2*e.margin;if(l!==r&&!(l===a||l===s)&&!(r===a||r===s)){var h=r===d||r===c;t<0&&h?t+(u=n+i+p)+n>o&&(u=0):t>=0&&!h&&(t+n>o&&(u+=-(i+n+p)),t+u<0&&(u=0))}return u},D=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var c=i.top,l=i.left,d=i.height,u=i.width,p=a.height,h=a.width,f=s.horizontal||0,b=s.vertical||0,m=0,g=0,v=r.horizontal===k,y=r.vertical===k;r.vertical===w&&(g+=I(c,d,p)),r.horizontal===w&&(m+=I(l,u,h)),y&&(g+=E({margin:b,offset:c,size:d,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),v&&(m+=E({margin:f,offset:l,size:u,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var _=v&&0!==m,O=y&&0!==g;return{flipped:_||O,flip:{horizontal:_,vertical:O},offset:{left:m,top:g}}},T=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},P=function(e,t){for(var n,i,o=O(e),r=t;r&&(n=T(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i};var F=n(2),M=n(5),A=n(4),N=n(11),B=n(9),R=n(6),V=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},z=function(){return"undefined"!=typeof window},L=/auto|scroll/,H=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var K,G,U,W=(K=function(){if(!Object(F.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},U=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U||(G=K.apply(void 0,e),U=!0),G}),Z=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},$=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],q=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.align=function(e){return u(e)},e.prototype.boundingOffset=function(e){return v(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return $.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return z()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?_(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,r=i.top,a=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var s=_(n);return n.style.left=o,n.style.top=r,n.offsetHeight,n.style.transition=a,s},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?function(e,t,n){void 0===n&&(n=1);var i=t?y(t):null,o=S(e,i),r=o.top,a=o.left,s=o.height,c=o.width,l=x(i,e),d=l.x,u=l.y,p=e.ownerDocument,h=i===p.body||i===p.documentElement?1:n;return{top:r+u*h,left:a+d*h,height:s,width:c}}(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return D(e)},e.prototype.scrollPosition=function(e){return j(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(F.isDocumentAvailable)()||!z())return t;for(var n=e.parentElement;n;)(L.test(H(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?_(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||!W())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 g(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(F.isDocumentAvailable)()||!z())return null;var n=P(e,t);if(!n)return null;var i=[e].concat(O(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}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(F.isDocumentAvailable)()&&z()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),X=new o.InjectionToken("Popup Document Scale"),Y=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,s=e.positionMode,c=this.scale||1,l="fixed"===s||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,c):this.relativeRect(t,n,a,c),d=Z(this._dom.offset(n),c);return this._dom.align({anchorAlign:i,anchorRect:l,elementAlign:o,elementRect:d,margin:r})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),r=V(this._dom.offset(e),n),a=2*i,s=this._dom.stackingElementScroll(t);1!==i&&s&&(s.x/=a,s.y/=a);var c=this._dom.stackingElementOffset(t);return 1!==i&&c&&(c.left/=a,c.top/=a),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(Z(r,i),c),s),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=V(this._dom.position(e,t,i),n);return Z(o,i)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(X)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[q,Number])],e)}(),J=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,s=e.margin,c=this._dom,l=this.scale||1,d=c.offsetAtPoint(i,n),u=Z(d,l),p=Z(c.offset(t),l),h=V(p,n),f=e.viewPort||c.windowViewPort(i);f.width=f.width/l,f.height=f.height/l;var b=c.restrictToView({anchorAlign:o,anchorRect:h,collisions:a,elementAlign:r,elementRect:u,margin:s,viewPort:f}),m=c.addOffset(n,b.offset);return{flip:b.flip,flipped:b.flipped,offset:m}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(X)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[q,Number])],e)}(),Q=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(F.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(M.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(A.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[q,o.NgZone])],e)}(),ee=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(F.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 Object(M.fromEvent)(e,"scroll").pipe(Object(A.auditTime)(1e3/60))}));t.subscription=M.merge.apply(void 0,o).subscribe((function(o){var r=o.target,a=i.filter((function(e){return e===r})).length>0,s=r===document,c=r===window;(a||s||c)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom)&&(!(1<n.top-i.bottom)&&(!(1<n.left-i.right)&&!(1<i.left-n.right)))},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[q,o.NgZone])],e)}(),te={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)"}}}},ne=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=te[i];if(r){var a=r(this.getDirection(n,t));this.playStates(e,a,t)}else if(Object(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,r=this.animationBuilder.build([Object(N.style)(t.start),Object(N.animate)(o+"ms ease-in",Object(N.style)(t.end))]),a=this.player=r.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=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[N.AnimationBuilder])],e)}(),ie={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635939378,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"},oe={left:-1e4,top:0},re=function(){function e(e,t,n,i,r,a,s,c,l){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=r,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=oe,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,Object(B.validatePackage)(ie),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=oe,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.reposition(),this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(M.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(F.isDocumentAvailable)()){var t,n,i,o,r,a,s=this.position(),c=s.flip,l=s.offset;(!this.currentOffset||(t=this.currentOffset,n=l,i=t.left,o=t.top,r=n.left,a=n.top,Math.abs(i-r)>=1||Math.abs(o-a)>=1))&&(this.currentOffset=l,Object(F.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:l,flip:c})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,c),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(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()},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)(F.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",F.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendo-popup",providers:[Y,ne,q,J,Q,ee],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,Y,q,J,Q,ee,ne,o.Renderer2,o.NgZone])],e)}(),ae=new o.InjectionToken("Popup Container"),se=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 a=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=a)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:a,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(re,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=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(3,Object(o.Inject)(ae)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}(),ce=[re],le=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ce],entryComponents:[ce],exports:[ce],imports:[R.CommonModule,F.ResizeSensorModule],providers:[se]})],e)}()},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=function(){function e(){this.changes=new i.Subject,this.pageChange=new i.Subject,this.pageSizeChange=new i.Subject}return Object.defineProperty(e.prototype,"currentPage",{get:function(){return this.skip/this.pageSize},enumerable:!0,configurable:!0}),e.prototype.notifyChanges=function(e){this.total=e.total,this.pageSize=e.pageSize,this.skip=e.skip,this.changes.next(e)},e.prototype.changePage=function(e){this.pageChange.next({skip:e*this.pageSize,take:this.pageSize})},e.prototype.changePageSize=function(e){this.pageSizeChange.next(e)},e.prototype.nextPage=function(){var e=this.currentPage+1;e*this.pageSize<=this.total&&this.changePage(e)},e.prototype.prevPage=function(){var e=this.currentPage-1;e*this.pageSize>=0&&this.changePage(e)},e}();t.PagerContextService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){this.localization=e,this.pagerContext=t,this.cd=n,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize}return Object.defineProperty(e.prototype,"currentPage",{get:function(){return Math.floor((this.skip||0)/this.pageSize)+1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalPages",{get:function(){return Math.ceil((this.total||0)/this.pageSize)},enumerable:!0,configurable:!0}),e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.changePage=function(e){return this.pagerContext.changePage(e),!1},e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe((function(){return e.cd.markForCheck()})))},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e}();t.PagerElementComponent=i},function(e,t,n){"use strict";n.r(t),n.d(t,"CheckBoxModule",(function(){return Wo})),n.d(t,"ColorInputComponent",(function(){return ko})),n.d(t,"ContrastValidationComponent",(function(){return zo})),n.d(t,"ContrastComponent",(function(){return Lo})),n.d(t,"FocusOnDomReadyDirective",(function(){return Vo})),n.d(t,"ColorGradientLocalizationService",(function(){return wo})),n.d(t,"ColorPaletteLocalizationService",(function(){return Fo})),n.d(t,"ColorPickerLocalizationService",(function(){return xo})),n.d(t,"ColorPickerCustomMessagesComponent",(function(){return Bo})),n.d(t,"ColorPickerMessages",(function(){return No})),n.d(t,"ColorPaletteService",(function(){return Po})),n.d(t,"MaskingService",(function(){return Pi})),n.d(t,"NumericTextBoxMessages",(function(){return Oi})),n.d(t,"RadioButtonModule",(function(){return $o})),n.d(t,"RangeSliderCustomMessagesComponent",(function(){return Gi})),n.d(t,"RangeSliderMessages",(function(){return Hi})),n.d(t,"SHARED_DIRECTIVES",(function(){return ao})),n.d(t,"SliderCustomMessagesComponent",(function(){return zi})),n.d(t,"SliderMessages",(function(){return Ri})),n.d(t,"SliderBase",(function(){return ti})),n.d(t,"SlidersCommonModule",(function(){return Bi})),n.d(t,"SwitchCustomMessagesComponent",(function(){return $i})),n.d(t,"Messages",(function(){return Wi})),n.d(t,"TextFieldsBase",(function(){return lo})),n.d(t,"TextBoxCustomMessagesComponent",(function(){return io})),n.d(t,"TextBoxMessages",(function(){return no})),n.d(t,"SliderComponent",(function(){return ni})),n.d(t,"RangeSliderComponent",(function(){return oi})),n.d(t,"LabelTemplateDirective",(function(){return ei})),n.d(t,"SwitchComponent",(function(){return ri})),n.d(t,"TextBoxContainerComponent",(function(){return li})),n.d(t,"TextBoxDirective",(function(){return di})),n.d(t,"TextAreaDirective",(function(){return ai})),n.d(t,"NumericTextBoxComponent",(function(){return _i})),n.d(t,"NumericTextBoxCustomMessagesComponent",(function(){return ji})),n.d(t,"MaskedTextBoxComponent",(function(){return Mi})),n.d(t,"InputsModule",(function(){return tr})),n.d(t,"SliderTicksComponent",(function(){return Ni})),n.d(t,"SliderModule",(function(){return Li})),n.d(t,"RangeSliderModule",(function(){return Ui})),n.d(t,"SwitchModule",(function(){return qi})),n.d(t,"NumericTextBoxModule",(function(){return Yi})),n.d(t,"MaskedTextBoxModule",(function(){return Ji})),n.d(t,"TextBoxModule",(function(){return co})),n.d(t,"TextAreaModule",(function(){return fo})),n.d(t,"ColorPickerComponent",(function(){return To})),n.d(t,"ColorPaletteComponent",(function(){return Ao})),n.d(t,"ColorGradientComponent",(function(){return Eo})),n.d(t,"ColorPickerModule",(function(){return Go})),n.d(t,"ActiveColorClickEvent",(function(){return mo})),n.d(t,"CheckBoxDirective",(function(){return Uo})),n.d(t,"RadioButtonDirective",(function(){return Zo})),n.d(t,"HintComponent",(function(){return Jo})),n.d(t,"ErrorComponent",(function(){return Xo})),n.d(t,"FormFieldComponent",(function(){return Qo})),n.d(t,"FormFieldModule",(function(){return er})),n.d(t,"TextBoxComponent",(function(){return to})),n.d(t,"TextBoxPrefixTemplateDirective",(function(){return eo})),n.d(t,"TextBoxSuffixTemplateDirective",(function(){return Qi})),n.d(t,"TextAreaComponent",(function(){return po})),n.d(t,"TextAreaSuffixComponent",(function(){return ho})),n.d(t,"InputSeparatorComponent",(function(){return ro})),n.d(t,"SharedModule",(function(){return so})),n.d(t,"LocalizedColorPickerMessagesDirective",(function(){return Ro})),n.d(t,"LocalizedNumericTextBoxMessagesDirective",(function(){return Xi})),n.d(t,"LocalizedTextBoxMessagesDirective",(function(){return oo})),n.d(t,"LocalizedSliderMessagesDirective",(function(){return Vi})),n.d(t,"LocalizedRangeSliderMessagesDirective",(function(){return Ki})),n.d(t,"LocalizedSwitchMessagesDirective",(function(){return Zi}));var i=n(0),o=n(1),r=n(7),a=n(5),s=n(4),c=n(3),l=n(2),d=n(9),u=n(8),p={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function h(e){return"string"==typeof e}var f=/\{(\d+)}?\}/g,b=function(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n};b.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=m(e),i=this.message.replace(f,(function(e,t){return n[parseInt(t,10)]}));return this.name+": "+i},b.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var m=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},g=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new b({name:n,message:e[n]}),t}),{})}({NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."});var v=p;function y(e){return h(e)?_(e):e}function _(e){if(v[e])return v[e];if(v.supplemental.likelySubtags){var t=e.split("-"),n=t[0],i=t.slice(1),o=function(e,t){for(var n=v.supplemental.likelySubtags,i=0;i<t.length;i++){var o=n[e+"-"+t[i]];if(o)return o}if(n[e])return n[e]}(n,i),r=o?function(e,t){var n=e.split("-"),i=n[0],o=n[1],r=n[2];return v[e]||-1!==t.indexOf(r)&&v[i+"-"+r]||-1!==t.indexOf(o)&&v[i+"-"+o]||v[i]}(o,i):null;if(r)return r}throw g.NoLocale.error(e)}var O=/([#,0.]+)/g,j=/¤/g;function C(e){return O.lastIndex=0,e.replace(j,"$").replace(O,"n").split(";")}function S(e){return O.lastIndex=0,O.exec(e.split(";")[0])[0].split(".")[0].split(",").slice(1).map((function(e){return e.length})).reverse()}function x(e,t){for(var n in t)n.startsWith("unitPattern")&&(e[n]=t[n].replace("{0}","n").replace("{1}","$"))}function w(e,t){var n=v[e],i=n.numbers=n.numbers||{};for(var o in i.symbols=i.symbols||{},t)if("symbols-numberSystem-latn"===o)Object.assign(i.symbols,t[o]);else if(o.includes("Formats-numberSystem-latn")){var r=o.substr(0,o.indexOf("Formats-numberSystem-latn")),a=t[o].standard;i[r]={patterns:C(a)},"currency"===r?(i[r].groupSize=S((t["decimalFormats-numberSystem-latn"]||t[o]).standard),x(i[r],t[o]),i.accounting={patterns:C(t[o].accounting),groupSize:i[r].groupSize}):i[r].groupSize=S(a)}else"currencies"===o&&(i.currencies=t[o])}var k={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},I=/y+/g,E=[["dateFormats","short"]],D={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function T(e){for(var t=[],n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var o=e[n[i]];t.push(o)}return t}function P(e,t){var n={};for(var i in e){var o=n[i]={};for(var r in e[i]){var a=e[i][r];o[r]=t?a:T(a)}}return n}function F(e,t){var n=v[e].calendar;n.days=P(t.days),n.months=P(t.months),n.quarters=P(t.quarters),n.dayPeriods=P(t.dayPeriods,!0),n.eras=function(e){var t={},n=t.format={},i={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(var o in e){n[i[o]]=e[o]}return t}(t.eras)}function M(e,t){var n=v[e].calendar,i={};for(var o in t){var r=o.split("-"),a=r[0],s=r[1];void 0===s&&(s="wide");var c=i[a]||{},l=t[o].displayName;l&&(c[s]=l,i[a]=c)}n.dateFields=i}function A(e,t){for(var n=[],i=0;i<e.length;i++){for(var o=e[i],r=t,a=0;a<o.length;a++)r=r[o[a]];n.push(r)}return n.join(" ")}function N(e,t){var n=v[e].calendar,i=n.patterns={};for(var o in i.d=A(E,t).replace(I,"y"),D)i[o]=A(D[o],t);for(var r in k)i[r]=k[r];var a=t.dateTimeFormats;n.dateTimeFormats={full:a.full,long:a.long,medium:a.medium,short:a.short,availableFormats:a.availableFormats},n.timeFormats=t.timeFormats,n.dateFormats=t.dateFormats}function B(e,t){var n=v[e].calendar=v[e].calendar||{};for(var i in t)"timeZoneNames"===i?(n.gmtFormat=t[i].gmtFormat,n.gmtZeroFormat=t[i].gmtZeroFormat):"calendars"===i&&t[i].gregorian?(N(e,t[i].gregorian),F(e,t[i].gregorian)):"fields"===i&&M(e,t.fields)}function R(e){if(e.territory)return e.territory;var t,n=e.name,i=e.identity;return t=i&&i.territory?i.territory:function(e,t){var n=v.supplemental.likelySubtags,i=e.split("-");if(n){var o=n[e]||n[i[0]];o&&(i=o.split("-"))}if(t)for(var r=i.length-1;r>=1;r--){var a=i[r];a!==t.variant&&a!==t.script||i.splice(r,1)}var s=i.length;if(s>1)return i[s-1].toUpperCase()}(n,i),e.territory=t,t}function V(e,t){for(var n in t)"numbers"===n?w(e,t[n]):"dates"===n&&B(e,t[n])}function z(e,t){var n,i=t.type,o=t.nameType,r=t.standAlone,a=t.lower,s=r?"stand-alone":"format",c=(a?"lower-":"")+o,l=y(e).calendar[i][s],d=l[c];return!d&&a&&(d=l[c]=(n=l[o],Array.isArray(n)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}(n):function(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t}(n))),d}function L(e){var t=e.split("-"),n=parseInt(t[0],10),i=parseInt(t[1],10)-1,o=parseInt(t[2],10);return new Date(n,i,o)}var H=g.NoCurrency,K=g.NoCurrencyDisplay,G=g.NoSupplementalCurrency,U=g.NoCurrencyRegion,W=g.NoValidCurrency,Z={"001":"USD",150:"EUR"};function $(e,t,n){var i=y(e).numbers.currencies;if(i){var o=i[t];if(o)return o;if(n)throw K.error()}else if(n)throw H.error()}function q(e,t){return t.length-e.length}function X(e,t){if(void 0===t&&(t=!0),Z[e])return Z[e];var n=v.supplemental.currencyData;if(n){var i=n.region[e];if(i)return function(e){for(var t,n,i,o,r=0;r<e.length;r++){var a=e[r],s=Object.keys(a)[0],c=a[s];if("XXX"!==s&&"false"!==c._tender&&c._from)if(c._to){if(!i){var l=L(c._from),d=L(c._to);(!n||n.to<d||n.from<l)&&(t=s,n={from:l,to:d})}}else{var u=L(c._from);(!o||o<u)&&(i=s,o=u)}}return i||t}(i);if(t)throw U.error(e)}else if(t)throw G.error()}function Y(e,t){var n=y(e),i=n.numbers;if(!i.localeCurrency){var o=X(R(n),t);if(!o&&t)throw W.error(n.name);i.localeCurrency=o}return i.localeCurrency}var J=["sun","mon","tue","wed","thu","fri","sat"],Q=g.NoWeekData,ee=g.NoFirstDay;function te(e){var t=y(e);if(!isNaN(t.firstDay))return t.firstDay;var n=v.supplemental.weekData;if(!n)throw Q.error();var i=n.firstDay[R(t)]||n.firstDay["001"];if(!i)throw ee.error();return t.firstDay=J.indexOf(i),t.firstDay}var ne=g.NoWeekData;function ie(e){return 1/e==-1/0}function oe(e,t){return void 0===t&&(t={}),t.currency||(t.currency=Y(e,!0)),function(e,t){var n=t.value,i=t.currency,o=t.currencyDisplay;if(void 0===o&&(o="symbol"),"code"===o)return i;var r=$(e,i,!0);return"symbol"===o?r["symbol-alt-narrow"]||r.symbol:void 0===typeof n||1!==n?r["displayName-count-other"]:r["displayName-count-one"]}(e,t)}function re(e,t,n,i,o){var r=o.numbers.symbols,a=e.indexOf(r.decimal),s=i.groupSize.slice(),c=s.shift(),l=-1!==a?a:n+1,d=e.substring(t,l),u=e,p=d.length;if(p>=c){for(var h=p,f=[];h>-1;){var b=d.substring(h-c,h);b&&f.push(b),h-=c;var m=s.shift();if(0===(c=void 0!==m?m:c)){(b=d.substring(0,h))&&f.push(b);break}}d=f.reverse().join(r.group),u=e.substring(0,t)+d+e.substring(l)}return u}function ae(e){return"currency"===e||"accounting"===e}function se(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var i=t-String(e).length,o=e;if(i>0){var r=new Array(i+1).join("0");o=n?e+r:r+e}return o}function ce(e,t){var n=e,i=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+i:i)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-i:-i))).toFixed(Math.min(i,20))}var le=/0+$/;function de(e){var t,n=e.minimumFractionDigits,i=e.maximumFractionDigits,o=e.style,r=ae(o);return r&&(t=function(e){var t=2,n=2,i=((v.supplemental.currencyData||{}).fractions||{})[e];return i&&i._digits&&(n=t=parseInt(i._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:n}}(e.currency)),void 0===n&&(n=r?t.minimumFractionDigits:0),void 0===i&&(i="percent"===o?Math.max(n,0):r?Math.max(n,t.maximumFractionDigits):Math.max(n,3)),{minimumFractionDigits:n,maximumFractionDigits:i}}var ue=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g;function pe(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style="percent",e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf("$")&&(e.style="currency",e.symbol=oe(t))}function he(e){var t=e.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){var n=e.literals=[];e.format=t.replace(ue,(function(e){var t=e.charAt(0).replace("\\",""),i=e.slice(1).replace(t,"");return n.push(i),"__??__"}))}}var fe=/(\.(?:[0-9]*[1-9])?)0+$/g,be=/\.$/,me=/\,/g;function ge(e){var t,n,i,o=e.number,r=e.format,a=r.indexOf(".");if(-1!==a){var s=r.lastIndexOf("0")-a,c=r.lastIndexOf("#")-a,l=s>-1,d=c>-1,u=o.toString().split("e"),p=(u=(u=u[1]?ce(o,Math.abs(u[1])):u[0]).split(".")[1]||"").length,h=-1;l||d?l&&s>c?p=s:c>s&&(d&&p>c?p=c:l&&p<s&&(p=s),h=l?s:0):(e.format=r.substring(0,a)+r.substring(a+1),a=-1,p=0),p>-1&&(o=ce(o,p),h>-1&&(t=o,i=0===(n=h)?fe:new RegExp("(\\.[0-9]{"+n+"}[1-9]*)0+$","g"),o=t.replace(i,"$1").replace(be,"")))}else o=ce(o);e.negative&&-1*o>=0&&!e.negativeZero&&(e.negative=!1),e.number=o,e.decimalIndex=a}function ve(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function ye(e,t){var n=e.number;return-1!==e.start&&(n=function(e,t){var n=e;if(t)for(var i=t.length,o=0;o<i;o++)n=n.replace("__??__",t[o]);return n}(n=function(e,t,n){var i=e;if("currency"===t||"percent"===t){i="";for(var o=0,r=e.length;o<r;o++){var a=e.charAt(o);i+="$"===a||"%"===a?n:a}}return i}(n=function(e,t){var n=e.start,i=e.end,o=e.negative,r=e.negativeZero,a=e.format,s=e.decimalIndex,c=e.lastZeroIndex,l=e.hasNegativeFormat,d=e.hasGroup,u=e.number,p=u.toString().split("."),h=a.length,f=p[0],b=p[1]||"",m=f.length,g="";u=a.substring(0,n),!o&&!r||l||(u+="-");for(var v=n;v<h;v++){var y=a.charAt(v);if(-1===s){if(i-v<m){u+=f;break}}else if(-1!==c&&c<v&&(g=""),s-v<=m&&s-v>-1&&(u+=f,v=s),s===v){u+=(b?t.numbers.symbols.decimal:"")+b,v+=i-s+1;continue}"0"===y?(u+=y,g=y):"#"===y&&(u+=g)}return d&&(u=re(u,n+(o&&!l?1:0),Math.max(i,m+n),t.numbers.decimal,t)),i>=n&&(u+=a.substring(i+1)),u}(e,t),e.style,e.symbol),e.literals)),n}function _e(e,t,n){var i={negative:e<0,number:Math.abs(e),negativeZero:ie(e),format:t};return function(e){var t=e.number,n=e.format;if(n=n.split(";"),(e.negative||e.negativeZero)&&n[1])n=n[1],e.hasNegativeFormat=!0;else if(0===t){var i=n[2];n=i||n[0],i&&function(e){return-1===e.indexOf("#")&&-1===e.indexOf("0")}(i)&&(e.constant=i)}else n=n[0];e.format=n}(i),i.constant?i.constant:(he(i),pe(i,n),function(e){e.hasGroup=e.format.indexOf(",")>-1,e.hasGroup&&(e.format=e.format.replace(me,""))}(i),ge(i),function(e){var t=e.format,n=t.indexOf("#"),i=t.indexOf("0"),o=ve(n,i,!0),r=ve(n=t.lastIndexOf("#"),i=t.lastIndexOf("0"));o===t.length&&(r=o),e.start=o,e.end=r,e.lastZeroIndex=i}(i),ye(i,n))}var Oe=/^(n|c|p|e|a)(\d*)$/i;function je(e){return h(e)?function(e){var t=Oe.exec(e);if(t){var n={style:"decimal"},i=t[1].toLowerCase();return"c"===i?n.style="currency":"a"===i?n.style="accounting":"p"===i?n.style="percent":"e"===i&&(n.style="scientific"),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}(e):e}function Ce(e,t,n){if(void 0===t&&(t="n"),void 0===n&&(n="en"),null==e)return"";if(!isFinite(e))return String(e);var i,o=_(n),r=je(t);if(r){var a=r.style||"decimal";i=function(e,t,n){var i=n.numbers.symbols,o=t.style,r=ae(o);if("scientific"===o)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(".",i.decimal);var a,s=e;r&&(t.value=s,a=oe(n,t)),"percent"===o&&(s*=100,a=i.percentSign);var c=de(t),l=c.minimumFractionDigits,d=(s=ce(s,c.maximumFractionDigits))<0,u=ie(e),p=s.split("."),h=p[0],f=se(p[1]?p[1].replace(le,""):"",l,!0);d&&(h=h.substring(1)),t.minimumIntegerDigits&&(h=se(h,t.minimumIntegerDigits));var b,m=!1!==t.useGrouping?re(h,0,h.length,t,n):h;if(f&&(m+=i.decimal+f),r&&"name"===t.currencyDisplay)b=function(e,t){var n=e.numbers.currency,i=1!==t?n["unitPattern-count-other"]:n["unitPattern-count-one"];return t<0&&(i=i.replace("n","-n")),i}(n,e);else{var g=t.patterns;b=d||u?g[1]||"-"+g[0]:g[0]}return"n"!==b||d?function(e,t,n){for(var i="",o=0,r=t.length;o<r;o++){var a=t.charAt(o);i+="n"===a?e:"$"===a||"%"===a?n:a}return i}(m,b,a):m}(e,Object.assign({},o.numbers[a],r),o)}else i=_e(e,t,o);return i}function Se(e){return"number"==typeof e}var xe=/[eE][\-+]?[0-9]+/,we=/\u00A0/g;function ke(e,t){if(t.length>1){var n=(t[1]||"").replace("$","").split("n");if(e.indexOf(n[0])>-1&&e.indexOf(n[1])>-1)return e.replace(n[0],"").replace(n[1],"")}}function Ie(e,t,n){var i,o=je(n)||{},r=ae(o.style),a=e,s=o.currency||Y(t,r);if(s){var c=function(e,t,n){void 0===n&&(n=!0);var i=$(e,t,n);if(i){if(!i.displays){var o=[t];for(var r in i)o.push(i[r]);o.sort(q),i.displays=o}return i.displays}}(t,s,r);if(c)for(var l=0;l<c.length;l++){var d=c[l];if(a.includes(d)){a=a.replace(d,""),r=!0;break}}if(r){var u=ke(a,t.numbers.currency.patterns)||ke(a,t.numbers.accounting.patterns);u&&(i=!0,a=u)}}return{number:a,negative:i}}var Ee=/\{(\d+)}/g;function De(e){var t=arguments;return e.replace(Ee,(function(e,n){return t[parseInt(n,10)+1]}))}var Te=[2,1,5,3,4],Pe={};Pe[(-2).toString()]=8,Pe[(-1).toString()]=6,Pe[2..toString()]=6,Pe[1..toString()]=3;var Fe={numeric:1,"2-digit":2,short:3,long:4,narrow:5},Me=/[hHmsSzZoOvVxX]/;var Ae=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],Ne={e:"c",E:"c",M:"L",Q:"q"},Be={},Re={};function Ve(e){return Be[e]||(Be[e]=new RegExp(e+"+")),Be[e]}function ze(e){for(var t=[],n=e.charAt(0),i=n,o=1;o<e.length;o++){var r=e.charAt(o);r===i?n+=r:(t.push(n),n=i=r)}return t.push(n),t}function Le(e,t){var n,i,o=e.length,r=-Number.MAX_VALUE;for(var a in t){for(var s=[],c=a.replace("v","z"),l=0,d=0;d<o;d++){var u=e[d],p=(Ve(u[0]).exec(c)||[])[0];if(p){if(c=c.replace(p,""),p.length!==u.length){var h=Math.max(Math.min(Te[p.length]-Te[u.length],2),-2);l-=Pe[h]}}else l-=120;if(s.push(p),l<r)break}c.length&&(l-=20*ze(c).length),l>r&&(r=l,n=s,i=t[a])}i=i.replace("v","z");for(var f=0;f<o;f++){var b=n[f];if(b&&b!==e[f]){var m=n[f][0];i=i.replace(Ve(m),e[f]),Ne[m]&&(i=i.replace(Ve(Ne[m]),e[f]))}}return i}function He(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(Re[t.name]&&Re[t.name][e])return Re[t.name][e];var i,o=e.search(Me);if(o>0){var r=e.substr(0,o),a=e.substr(o);i=De(t.calendar.dateTimeFormats.short,n[a]||Le(ze(a),n),n[r]||Le(ze(r),n))}else i=Le(ze(e),n);return function(e,t,n){Re[n]||(Re[n]={}),Re[n][e]=t}(e,i,t.name),i}function Ke(e,t){var n,i=t.calendar;if(h(e))n=i.patterns[e]?i.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var o=e.skeleton;o||(e.datetime?n=De(i.dateTimeFormats[e.datetime],i.timeFormats[e.datetime],i.dateFormats[e.datetime]):e.date?n=i.dateFormats[e.date]:e.time?n=i.timeFormats[e.time]:o=function(e){for(var t=[],n=0;n<Ae.length;n++){var i=Ae[n],o=e[i.key];if(o){var r=i.specifier||i.getSpecifier(e);t.push(r.repeat(Fe[o]))}}return t.join("")}(e)),o&&(n=He(o,t))}return n||(n=i.patterns.d),n}function Ge(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function Ue(e,t,n,i,o){return z(e,{type:t,nameType:Ge(n),standAlone:i,lower:o})}function We(e){return"function"==typeof e}function Ze(e){return Boolean(e)&&We(e.getTime)&&We(e.getMonth)}var $e={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},qe=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function Xe(e,t,n,i){return t<=2?se(e+1,t):Ue(n,"months",t,i)[e]}function Ye(e,t,n,i){var o=Math.floor(e.getMonth()/3);return t<3?o+1:Ue(n,"quarters",t,i)[o]}function Je(e,t,n){var i=n.shortHours,o=n.optionalMinutes,r=n.separator,a=n.localizedName,s=n.zZeroOffset,c=e.getTimezoneOffset()/60;if(0===c&&s)return"Z";var l=c<=0?"+":"-",d=Math.abs(c).toString().split("."),u=d[1]||0,p=l+(i?d[0]:se(d[0],2));(!u&&o||(p+=(r?":":"")+se(u,2)),a)&&(p=De(0===c?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,p));return p}function Qe(e,t,n,i){var o,r,a;return t<3?(r=e.getDay(),a=te(n),o=(r<a?7-a+r:r-a)+1):o=Ue(n,"days",t,i)[e.getDay()],o}var et={};function tt(e,t,n){if(void 0===n&&(n="en"),!Ze(e))return null==e?"":e;var i=_(n);return Ke(t,i).replace(qe,(function(t){var n=t.length;return t.includes("'")||t.includes('"')?t.slice(1,n-1):et[t[0]](e,n,i)}))}function nt(e,t,n){var i=e.getTimezoneOffset(),o=new Date(e.getTime()+6e4*(t-n)),r=o.getTimezoneOffset();return new Date(o.getTime()+6e4*(r-i))}et.d=function(e,t){return se(e.getDate(),t)},et.E=function(e,t,n){return Ue(n,"days",t)[e.getDay()]},et.M=function(e,t,n){return Xe(e.getMonth(),t,n,!1)},et.L=function(e,t,n){return Xe(e.getMonth(),t,n,!0)},et.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),se(n,t)},et.h=function(e,t){return se(e.getHours()%12||12,t)},et.H=function(e,t){return se(e.getHours(),t)},et.k=function(e,t){return se(e.getHours()||24,t)},et.K=function(e,t){return se(e.getHours()%12,t)},et.m=function(e,t){return se(e.getMinutes(),t)},et.s=function(e,t){return se(e.getSeconds(),t)},et.S=function(e,t){var n=e.getMilliseconds();return 0!==n?se(String(n/1e3).split(".")[1].substr(0,t),t,!0):se("",t)},et.a=function(e,t,n){return Ue(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},et.z=function(e,t,n){return Je(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},et.Z=function(e,t,n){return Je(e,n,{separator:t>3,localizedName:4===t,zZeroOffset:5===t})},et.x=function(e,t,n){return Je(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},et.X=function(e,t,n){return Je(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},et.G=function(e,t,n){var i=e.getFullYear()>=0?1:0;return Ue(n,"eras",t)[i]},et.e=Qe,et.c=function(e,t,n){return Qe(e,t,n,!0)},et.q=function(e,t,n){return Ye(e,t,n,!0)},et.Q=Ye;var it=/([+|\-]\d{1,2})(:?)(\d{2})?/,ot=/^\/Date\((.*?)\)\/$/,rt=/[+-]\d*/,at={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},st=/\d+/,ct=/^ */,lt=/ *$/,dt=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],ut=["G","g","F","Y","y","M","m","D","d","y","T","t"];function pt(e,t,n){return!(e>=t&&e<=n)}function ht(e,t){for(var n=t.format,i=t.idx,o=0;n[i]===e;)o++,i++;return o>0&&(i-=1),t.idx=i,o}function ft(e,t){var n=e?at[e]||new RegExp("^\\d{1,"+e+"}"):st,i=t.value.substr(t.valueIdx,e).match(n);return i?(i=i[0],t.valueIdx+=i.length,parseInt(i,10)):null}function bt(e,t,n){for(var i,o,r,a=0,s=e.length,c=0,l=0;a<s;a++)o=(i=e[a]).length,r=t.value.substr(t.valueIdx,o),n&&(r=r.toLowerCase()),r===i&&o>c&&(c=o,l=a);return c?(t.valueIdx+=c,l+1):null}function mt(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function gt(e,t,n){var i=n.shortHours,o=n.noSeparator,r=n.optionalMinutes,a=n.localizedName,s=n.zLiteral;if(e.UTC=!0,s&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(a&&!bt(function(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw g.NoGMTInfo.error();return[t.replace("{0}","").toLowerCase(),n.replace("{0}","").toLowerCase()]}(t.calendar),e,!0))return!0;var c=it.exec(e.value.substr(e.valueIdx,6));if(!c)return!a;var l=c[1],d=c[3],u=parseInt(l,10),p=c[2],h=parseInt(d,10);return!!(isNaN(u)||!i&&3!==l.length||!r&&isNaN(h)||o&&p)||(isNaN(h)&&(h=null),!!(pt(u,-12,13)||h&&pt(h,0,59))||(e.valueIdx+=c[0].length,e.hoursOffset=u,void(e.minutesOffset=h)))}function vt(e,t,n){var i=ht(e,t),o=Ue(n,"months",i,"L"===e,!0),r=i<3?ft(2,t):bt(o,t,!0);if(null===r||pt(r,1,12))return!0;t.month=r-1}function yt(e,t,n){var i=ht(e,t),o=Ue(n,"days",i,"c"===e,!0),r=i<3?ft(1,t):bt(o,t,!0);if(!r&&0!==r||pt(r,1,7))return!0}var _t={};function Ot(e,t){return""+ct.exec(t)[0]+e+lt.exec(t)[0]}function jt(e,t,n){for(var i=Ke(t,n).split(""),o={format:i,idx:0,value:Ot(e,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},r=i.length,a=!1;o.idx<r;o.idx++){var s=i[o.idx];if(a)"'"===s&&(a=!1),mt(o);else if(_t[s]){if(_t[s](o,n))return null}else if("'"===s)a=!0,mt(o);else if(!mt(o))return null}return o.valueIdx<e.length?null:function(e){var t,n=e.year,i=e.month,o=e.day,r=e.hours,a=e.minutes,s=e.seconds,c=e.milliseconds,l=e.pmHour,d=e.UTC,u=e.hoursOffset,p=e.minutesOffset,h=null!==r||null!==a||s||null,f=new Date;return null===n&&null===i&&null===o&&h?(n=f.getFullYear(),i=f.getMonth(),o=f.getDate()):(null===n&&(n=f.getFullYear()),null===o&&(o=1)),l&&r<12&&(r+=12),d?(u&&(r+=-u),p&&(a+=-p*(u<0?-1:1)),t=new Date(Date.UTC(n,i,o,r,a,s,c))):function(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}(t=new Date(n,i,o,r,a,s,c),r),n<100&&t.setFullYear(n),t.getDate()!==o&&void 0===d?null:t}(o)||null}function Ct(e){if(e&&0===e.indexOf("/D")){var t=ot.exec(e);if(t){t=t[1];var n=rt.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(i=n[0],o="-"===i.substr(0,1)?-1:1,r=i.substring(1),n=o*(r=60*parseInt(r.substr(0,2),10)+parseInt(r.substring(2),10)),t=nt(t,t.getTimezoneOffset(),0),t=nt(t,0,-1*n)),t}}var i,o,r}_t.d=function(e){ht("d",e);var t=ft(2,e);if(null===t||pt(t,1,31))return!0;null===e.day&&(e.day=t)},_t.E=function(e,t){if(null===bt(Ue(t,"days",ht("E",e),!1,!0),e,!0))return!0},_t.M=function(e,t){return vt("M",e,t)},_t.L=function(e,t){return vt("L",e,t)},_t.y=function(e){var t=ht("y",e),n=ft(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var i=(new Date).getFullYear();(n=i-i%100+n)>2029&&(n-=100)}e.year=n},_t.h=function(e){ht("h",e);var t=ft(2,e);if(12===t&&(t=0),null===t||pt(t,0,11))return!0;e.hours=t},_t.K=function(e){ht("K",e);var t=ft(2,e);if(null===t||pt(t,0,11))return!0;e.hours=t},_t.a=function(e,t){var n=Ue(t,"dayPeriods",ht("a",e),!1,!0),i=bt([n.pm],e,!0);if(!i&&!bt([n.am],e,!0))return!0;e.pmHour=i},_t.H=function(e){ht("H",e);var t=ft(2,e);if(null===t||pt(t,0,23))return!0;e.hours=t},_t.k=function(e){ht("k",e);var t=ft(2,e);if(null===t||pt(t,1,24))return!0;e.hours=24===t?0:t},_t.m=function(e){ht("m",e);var t=ft(2,e);if(null===t||pt(t,0,59))return!0;e.minutes=t},_t.s=function(e){ht("s",e);var t=ft(2,e);if(null===t||pt(t,0,59))return!0;e.seconds=t},_t.S=function(e){var t=ht("S",e),n=e.value.substr(e.valueIdx,t),i=null;if(isNaN(parseInt(n,10))||(i=ce(i=parseFloat("0."+n,10),3),i*=1e3,e.valueIdx+=t),null===i||pt(i,0,999))return!0;e.milliseconds=i},_t.z=function(e,t){var n=ht("z",e)<4,i=gt(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(i)return i},_t.Z=function(e,t){var n=ht("Z",e),i=gt(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(i)return i},_t.x=function(e,t){var n=ht("x",e),i=gt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(i)return i},_t.X=function(e,t){var n=ht("X",e),i=gt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(i)return i},_t.G=function(e,t){var n=Ue(t,"eras",ht("G",e),!1,!0);if(null===bt([n[0],n[1]],e,!0))return!0},_t.e=function(e,t){return yt("e",e,t)},_t.c=function(e,t){return yt("c",e,t)};var St={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}};function xt(e,t){var n=e[e.length-1];n&&"literal"===n.type?n.pattern+=t:e.push({type:"literal",pattern:t})}function wt(e){return"h"===e||"K"===e}var kt=/\{(\d+)(:[^\}]+)?\}/g;function It(e,t,n){if(t){if(Ze(e))return tt(e,t,n);if(Se(e))return Ce(e,t,n)}return null!=e?e:""}var Et={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635938345,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"},Dt="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",Tt={NoCurrency:"Solution: "+Dt+"#toc-no-currency",NoCurrencyDisplay:"Solution: "+Dt+"#toc-no-currency-display",NoCurrencyRegion:"Solution: "+Dt+"#toc-no-currency-region",NoDateFieldNames:"Solution: "+Dt+"#toc-no-date-filed-names",NoFirstDay:"Solution: "+Dt+"#toc-no-first-day",NoGMTInfo:"Solution: "+Dt+"#toc-no-gmt-info",NoLocale:"Solution: "+Dt+"#toc-no-locale",NoValidCurrency:"Solution: "+Dt+"#toc-no-valid-currency",NoWeekData:"Solution: "+Dt+"#toc-no-week-data"};function Pt(e){var t=e.message,n=Tt[Object.keys(Tt).filter((function(e){return 0===t.indexOf(e)}))[0]];return n?t+" "+n:t}function Ft(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return e.apply(null,t)}catch(e){throw e.message=Pt(e),e}}}var Mt=Ft(z),At=Ft((function(e,t){void 0===t&&(t="en");var n=_(t).calendar.dateFields;if(!n)throw g.NoDateFieldNames.error();var i=n[e.type]||{};return i[e.nameType]||i.wide})),Nt=Ft(te),Bt=Ft((function(e,t,n){return e.replace(kt,(function(e,i,o){return It(t[parseInt(i,10)],o?o.substring(1):"",n)}))})),Rt=Ft(tt),Vt=Ft(Ce),zt=(Ft((function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++){var i=e[n];if(i.main){var o=Object.keys(i.main)[0],r=i.main[o],a=v[o]=v[o]||{};a.name=a.name||o,a.identity=a.identity||r.identity,R(a),V(o,r)}else if(i.supplemental)if(i.supplemental.weekData)v.supplemental.weekData={firstDay:i.supplemental.weekData.firstDay,weekendStart:i.supplemental.weekData.weekendStart,weekendEnd:i.supplemental.weekData.weekendEnd};else if(i.supplemental.likelySubtags)v.supplemental.likelySubtags=Object.assign(v.supplemental.likelySubtags,i.supplemental.likelySubtags);else if(i.supplemental.currencyData){var s=v.supplemental.currencyData;s.region=Object.assign(s.region||{},i.supplemental.currencyData.region),s.fractions=Object.assign(s.fractions||{},i.supplemental.currencyData.fractions)}}})),Ft((function(e){return y(e).numbers.symbols}))),Lt=Ft((function(e,t,n){if(void 0===n&&(n="en"),!e)return null;if(Ze(e))return e;var i=String(e).trim(),o=Ct(i);if(o)return o;for(var r=_(n),a=t||function(e){for(var t=[],n=e.patterns,i=ut.length,o=0;o<i;o++)t.push(n[ut[o]]);return t.concat(dt)}(r.calendar),s=(a=Array.isArray(a)?a:[a]).length,c=0;c<s;c++)if(o=jt(i,a[c],r))return o;return o})),Ht=Ft((function(e,t,n){if(void 0===t&&(t="en"),void 0===n&&(n={}),!e&&0!==e)return null;if(Se(e))return e;var i,o=_(t),r=o.numbers.symbols,a=e.toString(),s=n||{};if(h(n)&&(he(s={format:n}),a=function(e,t){var n=t.literals,i=e;if(n)for(var o=0;o<n.length;o++)i=i.replace(n[o],"");return i}(a,s),pe(s,o)),("percent"===s.style||a.indexOf(r.percentSign)>-1)&&(a=a.replace(r.percentSign,""),i=!0),xe.test(a))return a=parseFloat(a.replace(r.decimal,".")),isNaN(a)?null:a;var c=Ie(a,o,s),l=c.negative,d=c.number,u=(a=String(d).trim()).indexOf("-");if(u>0)return null;var p=u>-1;return p=void 0!==l?l:p,a=a.replace("-","").replace(we," ").split(r.group.replace(we," ")).join("").replace(r.decimal,"."),a=parseFloat(a),isNaN(a)?a=null:p&&(a*=-1),a&&i&&(a/=100),a})),Kt=Ft((function(e,t){void 0===t&&(t="en");for(var n=Ke(e,_(t)),i=[],o=qe.lastIndex=0,r=qe.exec(n);r;){var a=r[0];if(o<r.index&&xt(i,n.substring(o,r.index)),a.startsWith('"')||a.startsWith("'"))xt(i,a);else{var s=a[0],c=$e[s],l={type:c,pattern:a};"hour"===c&&(l.hour12=wt(a));var d=St[c];if(d){var u=Se(d.minLength)?d.minLength:d.minLength[s],p=a.length;p>=u&&(l.names={type:d.type,nameType:Ge(p),standAlone:d.standAlone===s})}i.push(l)}o=qe.lastIndex,r=qe.exec(n)}return o<n.length&&xt(i,n.substring(o)),i})),Gt=Ft(It),Ut=Ft((function(e){var t=y(e);if(t.weekendRange)return t.weekendRange;var n=v.supplemental.weekData;if(!n)throw ne.error();var i=R(t),o=n.weekendStart[i]||n.weekendStart["001"],r=n.weekendEnd[i]||n.weekendEnd["001"];return t.weekendRange={start:J.indexOf(o),end:J.indexOf(r)},t.weekendRange})),Wt=/_/g;function Zt(e){return new qt(e)}var $t=function(){function e(){this.changes=new o.EventEmitter,Object(d.validatePackage)(Et)}return e.prototype.notify=function(){this.changes.emit()},e.ngInjectableDef=Object(o["ɵɵdefineInjectable"])({factory:function(){return Zt(Object(o["ɵɵinject"])(o.LOCALE_ID))},token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(o.Injectable)({providedIn:"root",useFactory:Zt,deps:[o.LOCALE_ID]}),Object(i.__metadata)("design:paramtypes",[])],e)}(),qt=function(e){function t(t){var n=e.call(this)||this;return n.localeId=t,n}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"localeId",{get:function(){return this.locale},set:function(e){var t=e.replace(Wt,"-");t!==this.locale&&(this.locale=t,this.notify())},enumerable:!0,configurable:!0}),t.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Bt(e,t,this.localeId)},t.prototype.toString=function(e,t,n){return Gt(e,t,n||this.localeId)},t.prototype.formatDate=function(e,t,n){return Rt(e,t,n||this.localeId)},t.prototype.parseDate=function(e,t,n){return Lt(e,t,n||this.localeId)},t.prototype.parseNumber=function(e,t,n){return Ht(e,n||this.localeId,t)},t.prototype.formatNumber=function(e,t,n){return Vt(e,t,n||this.localeId)},t.prototype.dateFieldName=function(e,t){return At(e,t||this.localeId)},t.prototype.dateFormatNames=function(e,t){return Mt(t||this.localeId,e)},t.prototype.splitDateFormat=function(e,t){return Kt(e,t||this.localeId)},t.prototype.numberSymbols=function(e){return zt(e||this.localeId)},t.prototype.firstDay=function(e){return Nt(e||this.localeId)},t.prototype.weekendRange=function(e){return Ut(e||this.localeId)},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(o.LOCALE_ID)),Object(i.__metadata)("design:paramtypes",[String])],t)}($t),Xt=function(e){return!isNaN(e-parseFloat(e))},Yt=[function(){function e(e){this.intlService=e}return e.prototype.transform=function(e,t,n){return void 0===t&&(t=""),(e=this.normalize(e))?this.intlService.formatDate(e,t,n):e},e.prototype.normalize=function(e){return e&&"string"==typeof e?e=this.intlService.parseDate(e):e&&Xt(e)&&(e=new Date(parseFloat(e))),e},e=Object(i.__decorate)([Object(o.Pipe)({name:"kendoDate"}),Object(i.__metadata)("design:paramtypes",[$t])],e)}(),function(){function e(e){this.intlService=e}return e.prototype.transform=function(e,t,n){return"string"==typeof e&&(e=this.intlService.parseNumber(e)),null!=e?this.intlService.formatNumber(e,t,n):e},e=Object(i.__decorate)([Object(o.Pipe)({name:"kendoNumber"}),Object(i.__metadata)("design:paramtypes",[$t])],e)}()],Jt=(function(){function e(){}e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Yt],exports:[Yt]})],e)}(),n(6)),Qt=n(10),en=function(){};var tn={},nn={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},on={get browser(){return"undefined"==typeof window||tn?tn:tn=function(e){var t,n={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var i in n)if(n.hasOwnProperty(i)){var o=e.match(n[i]);if(o){(t={})[i]=!0,t[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||o[2],10);break}}return t}(window.navigator.userAgent)}}.browser,rn=function(e){var t=Object.keys(nn);t.push("transparent");var n=new RegExp("^("+t.join("|")+")(\\W|$)","i");return rn=function(e){return n.exec(e)},n.exec(e)},an=function(e){function t(){e.call(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){return this},t.prototype.toRGB=function(){return this},t.prototype.toHex=function(e){return this.toBytes().toHex(e)},t.prototype.toBytes=function(){return this},t.prototype.toCss=function(e){return"#"+this.toHex(e)},t.prototype.toCssRgba=function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},t.prototype.toDisplay=function(){return on.msie&&on.version<9?this.toCss():this.toCssRgba()},t.prototype.equals=function(e){return e===this||null!==e&&this.toCssRgba()===fn(e).toCssRgba()},t.prototype.diff=function(e){if(null===e)return NaN;var t=this.toBytes(),n=e.toBytes();return Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2))},t.prototype.clone=function(){var e=this.toBytes();return e===this&&(e=new cn(e.r,e.g,e.b,e.a)),e},t}(en),sn=function(e){function t(t,n,i,o){e.call(this),this.r=t,this.g=n,this.b=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){var e,t,n=this.r,i=this.g,o=this.b,r=Math.min(n,i,o),a=Math.max(n,i,o),s=a-r,c=a;return 0===s?new dn(0,0,c,this.a):(0!==a?(t=s/a,e=n===a?(i-o)/s:i===a?2+(o-n)/s:4+(n-i)/s,(e*=60)<0&&(e+=360)):(t=0,e=-1),new dn(e,t,c,this.a))},t.prototype.toHSL=function(){var e,t,n=this.r,i=this.g,o=this.b,r=Math.max(n,i,o),a=Math.min(n,i,o),s=(r+a)/2;if(r===a)e=t=0;else{var c=r-a;switch(t=s>.5?c/(2-r-a):c/(r+a),r){case n:e=(i-o)/c+(i<o?6:0);break;case i:e=(o-n)/c+2;break;case o:e=(n-i)/c+4}}return new un(60*e,100*t,100*s,this.a)},t.prototype.toBytes=function(){return new cn(255*this.r,255*this.g,255*this.b,this.a)},t}(an),cn=function(e){function t(t,n,i,o){e.call(this,Math.round(t),Math.round(n),Math.round(i),o)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){return new e(this.r/255,this.g/255,this.b/255,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toHex=function(e){var t=ln(this.r,2)+ln(this.g,2)+ln(this.b,2);return e&&e.alpha&&(t+=ln(Math.round(255*this.a),2)),t},t.prototype.toBytes=function(){return this},t}(sn);function ln(e,t,n){void 0===n&&(n="0");for(var i=e.toString(16);t>i.length;)i=n+i;return i}var dn=function(e){function t(t,n,i,o){e.call(this),this.h=t,this.s=n,this.v=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h,o=this.s,r=this.v;if(0===o)e=t=n=r;else{i/=60;var a=Math.floor(i),s=i-a,c=r*(1-o),l=r*(1-o*s),d=r*(1-o*(1-s));switch(a){case 0:e=r,t=d,n=c;break;case 1:e=l,t=r,n=c;break;case 2:e=c,t=r,n=d;break;case 3:e=c,t=l,n=r;break;case 4:e=d,t=c,n=r;break;default:e=r,t=c,n=l}}return new sn(e,t,n,this.a)},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(an),un=function(e){function t(t,n,i,o){e.call(this),this.h=t,this.s=n,this.l=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h/360,o=this.s/100,r=this.l/100;if(0===o)e=t=n=r;else{var a=r<.5?r*(1+o):r+o-r*o,s=2*r-a;e=pn(s,a,i+1/3),t=pn(s,a,i),n=pn(s,a,i-1/3)}return new sn(e,t,n,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(an);function pn(e,t,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function hn(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function fn(e,t){var n,i;if(null==e||"none"===e)return null;if(e instanceof an)return e;var o=e.toLowerCase();if(n=rn(o))return(o="transparent"===n[1]?new sn(1,1,1,0):fn(nn[n[1]],t)).match=[n[1]],o;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(o))?i=new cn(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(o))?i=new cn(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(o))?i=new cn(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),hn(n[4]+n[4])):(n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(o))?i=new cn(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),hn(n[4])):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(o))?i=new cn(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(o))?i=new cn(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(o))?i=new sn(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(o))&&(i=new sn(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),i)i.match=n;else if(!t)throw new Error("Cannot parse color: "+o);return i}var bn=function(e){function t(n){var i=this;if(e.call(this),1===arguments.length)for(var o=t.formats,r=this.resolveColor(n),a=0;a<o.length;a++){var s=o[a].re,c=o[a].process,l=s.exec(r);if(l){var d=c(l);i.r=d[0],i.g=d[1],i.b=d[2]}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHex=function(){var e=this.padDigit,t=this.r.toString(16),n=this.g.toString(16),i=this.b.toString(16);return"#"+e(t)+e(n)+e(i)},t.prototype.resolveColor=function(e){var n=e||"black";return"#"===n.charAt(0)&&(n=n.substr(1,6)),n=(n=n.replace(/ /g,"")).toLowerCase(),n=t.namedColors[n]||n},t.prototype.normalizeByte=function(e){return e<0||isNaN(e)?0:e>255?255:e},t.prototype.padDigit=function(e){return 1===e.length?"0"+e:e},t.prototype.brightness=function(e){var t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this},t.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},t.prototype.isDark=function(){return this.percBrightness()<180},t.fromBytes=function(e,t,n,i){return new cn(e,t,n,null!=i?i:1)},t.fromRGB=function(e,t,n,i){return new sn(e,t,n,null!=i?i:1)},t.fromHSV=function(e,t,n,i){return new dn(e,t,n,null!=i?i:1)},t.fromHSL=function(e,t,n,i){return new un(e,t,n,null!=i?i:1)},t}(en);bn.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],bn.namedColors=nn;var mn=bn,gn=function(e){return null!=e},vn=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},yn=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},_n=function(e,t,n){return!gn(e)||isNaN(e)||e<=t?t:e>=n?n:e},On=function(e){return Math.min(e,20)},jn=function(e){return(String(e).split(".")[1]||"").length},Cn=function(e,t){return Math.max(jn(e),jn(t))},Sn=function(e,t){var n=On(t);return parseFloat(e.toFixed(n))},xn=function(e,t){var n=Cn(e,t);return Sn(e+t,n)},wn=function(e,t){return xn(e,-t)},kn=function(e,t){var n=jn(e)+jn(t);return Sn(e*t,n)},In=function(e,t){if(0===t)return NaN;var n=Cn(e,t),i=Math.pow(10,n);return i*e/(i*t)},En=function(e,t){return Math.abs(wn(e,kn(t,Math.floor(In(e,t)))))},Dn=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},Tn=function(e,t,n){void 0===n&&(n=!0);var i=e-(n?2*parseFloat(t):0);return Math.floor(i)},Pn=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(wn(t,e)),o=Math.floor(In(i,n));return xn(o,1)},Fn=function(e){var t=e.handleWidth,n=e.trackWidth,i=e.min,o=e.max,r=e.reverse,a=e.value,s=Math.floor(t/2),c=n/Math.abs(o-i),l=gn(a)?c*(a-i):i;return r&&(l=n-l),Math.floor(l-s)},Mn=function(e,t,n){var i=t.max,o=t.min,r=t.smallStep,a=t.largeStep;void 0===n&&(n=!1);var s,c=n&&a?kn(r,a):r,l=wn(e,o),d=En(l,c);return s=wn(l,0===d?c:d),zn(xn(s,o),o,i)},An=function(e,t,n){var i=t.max,o=t.min,r=t.smallStep,a=t.largeStep;void 0===n&&(n=!1);var s=n&&a?kn(r,a):r,c=wn(e,o),l=En(c,s),d=xn(wn(c,l),s);return zn(xn(d,o),o,i)},Nn=function(e){return e.id.indexOf("k-start-handle")>-1},Bn=function(e,t,n){return n>e?e:n<t?t:n},Rn=function(e,t,n){return n?[Bn(e,t,n[0]),Bn(e,t,n[1])]:[t,t]},Vn=function(e){return e},zn=function(e,t,n){return Math.max(Math.min(e,n),t)},Ln=function(e,t,n){var i,o,r=n.min,a=n.max,s=n.vertical,c=n.rtl,l=(i=t.getBoundingClientRect(),o=document.documentElement,{left:i.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||0),top:i.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||0)}),d=(s?e.pageY-l.top:e.pageX-l.left)*((a-r)/(s?t.clientHeight:t.clientWidth)),u=c||s?a-d:r+d,p=jn(n.smallStep);return function(e,t){var n=t.smallStep,i=t.min,o=t.max,r=zn(e,i,o);if(e!==r)return r;var a=Mn(e,t),s=An(e,t);return(e-i)%n==0?e:s-e<=(s-a)/2?s:a}(u=Sn(u,p+1),n)},Hn=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},Kn=function(e){return An(e.value,e)},Gn=function(e){return Mn(e.value,e)},Un=function(e){return An(e.value,e,!0)},Wn=function(e){return Mn(e.value,e,!0)},Zn=function(e){if(o.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},$n=function(){function e(e,t,n,i){this.props=e,this.wrapper=t,this.track=n,this.renderer=i,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.trackWidth();this.track.style[e]=t+"px"},e.prototype.resizeTicks=function(e,t){var n=this,i=this.props.vertical?"height":"width";t.slice().map((function(e,t){return e.style[i]=n.tickSizes[t]+"px"})),this.props.vertical&&this.adjustPadding(e)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=this.elementSize(this.wrapper),n=Tn(t,this.elementOffset(this.track)),i=Dn(this.props),o=this.wrapper.parentElement;o.style[e]=n>i?t-(n-i)+"px":t+(i-n)+"px"},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?Dn(this.props):Tn(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,o=Pn(t,n,i),r=this.trackWidth(),a=r/wn(n,t),s=[],c=0,l=0,d=0;d<o;d++){l=+(l+=0===d||d===o-1?i/2*a:i*a).toFixed(2)-.01;var u=Math.round(l-c);s.push(u),c+=u}return c>=r&&(s[s.length-1]-=1),s},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}(),qn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,o=t.reverse,r=t.vertical?"bottom":"left",a=this.trackWidth(),s=Bn(n,i,this.props.value);this.handlePosition=Fn({min:i,max:n,reverse:o,value:s,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,r,this.handlePosition+"px")},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical?"height":"width",r=Math.floor(e.offsetWidth/2),a=this.handlePosition+r;i&&(a=this.trackWidth()-a),this.renderer.setStyle(t,o,a+"px")},t}($n),Xn=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n};function Yn(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)}var Jn=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},Qn={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635407992,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"},ei=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoSliderLabelTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),ti=function(){function e(e,t,n,i,r,s){var c=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=r,this.hostElement=s,this.title=Vn,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new a.Subscription,this.ifEnabled=function(e,t){c.isDisabled||e.call(c,t)},Object(d.validatePackage)(Qn),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(r.d,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[l.Keys.ArrowLeft]=t?Kn:Gn,e[l.Keys.ArrowRight]=t?Gn:Kn,e[l.Keys.ArrowDown]=Gn,e[l.Keys.ArrowUp]=Kn,e[l.Keys.PageUp]=Un,e[l.Keys.PageDown]=Wn,e[l.Keys.Home]=function(e){return e.min},e[l.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.prototype.resetStyles=function(e){var t=this;e.forEach((function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"tickPlacement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"smallStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"fixedTickWidth",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider-horizontal"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider-vertical"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"verticalClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"sliderClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.ViewChild)("wrap",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"track",void 0),Object(i.__decorate)([Object(o.ViewChild)("sliderSelection",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"sliderSelection",void 0),Object(i.__decorate)([Object(o.ViewChild)("ticks",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"ticksContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)("ticks",{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"ticks",void 0),Object(i.__decorate)([Object(o.ContentChild)(ei,{static:!1}),Object(i.__metadata)("design:type",ei)],e.prototype,"labelTemplate",void 0),e}(),ni=function(e){function t(t,n,i,o,r,a){var s=e.call(this,t,n,i,o,r,a)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=o,s.changeDetector=r,s.hostElement=a,s.focusableId="k-"+Object(l.guid)(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.focusChangedProgrammatically=!1,s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!Hn(t)&&!Hn(t.parentNode)){var n=Ln(e,s.track.nativeElement,s.getProps());s.changeValue(n)}Yn(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,o=s.keyBinding[e.keyCode];if(!s.isDisabled&&o){var r=o(t);s.changeValue(Bn(n,i,r)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(Mn(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(An(s.value,s.getProps()))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(l.hasObservers)(s.onBlur)||yn(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.focusChangedProgrammatically||s.onBlur.emit()}))},s}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return gn(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,Yn(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,Yn(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnChanges=function(e){var t=this;Object(l.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(Object(s.take)(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;Object(l.isDocumentAvailable)()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,(function(){return e.increaseValue()})),this.setValueChangeInterval(this.decreaseButton.nativeElement,(function(){return e.decreaseValue()}))),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent(!1)})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(Ln(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;vn(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()}))},t.prototype.sizeComponent=function(e){if(Object(l.isDocumentAvailable)()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,o=this.draghandle.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,o,r,this.hostElement.nativeElement]);var a=this.getProps(),s=new qn(a,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(o),s.positionSelection(o,i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement;e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e}},enumerable:!0,configurable:!0}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=Object(a.fromEvent)(e,"mousedown"),o=Object(a.fromEvent)(e,"mouseup"),r=Object(a.fromEvent)(e,"mouseout"),c=i.pipe(Object(s.filter)((function(e){return 0===e.button&&!n.isDisabled})),Object(s.concatMap)((function(){return Object(a.interval)(150).pipe(Object(s.startWith)(-1),Object(s.takeUntil)(Object(a.merge)(o,r)))}))).subscribe((function(){n.isFocused||Yn(n.draghandle,"focus"),t()}));n.subscriptions.add(c)}))},t.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:Bn(this.max,this.min,this.value),vertical:this.vertical}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandle.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===l.Keys.Tab})))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"incrementTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrementTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"showButtons",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.ViewChild)("draghandle",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandle",void 0),Object(i.__decorate)([Object(o.ViewChild)("decreaseButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"decreaseButton",void 0),Object(i.__decorate)([Object(o.ViewChild)("increaseButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"increaseButton",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <span\n #decreaseButton\n *ngIf="showButtons"\n class="k-button k-button-decrease"\n [title]="decrementMessage"\n role="presentation"\n >\n <span class="k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical"\n >\n </span>\n </span>\n <span\n *ngIf="showButtons"\n #increaseButton\n class="k-button k-button-increase"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.aria-label]="currentValue"\n >\n <span class="k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical"\n >\n </span>\n </span>\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(ti),ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,o=t.reverse,r=t.vertical?"bottom":"left",a=this.trackWidth(),s=Nn(e)?Rn(n,i,this.props.value)[0]:Rn(n,i,this.props.value)[1];Nn(e)?(this.startHandlePosition=Fn({min:i,max:n,reverse:o,value:s,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,r,this.startHandlePosition+"px")):(this.endHandlePosition=Fn({min:i,max:n,reverse:o,value:s,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,r,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical,r=o?"height":"width",a=o?"bottom":i?"right":"left",s=Math.floor(e.offsetWidth/2),c=Math.abs(this.endHandlePosition-this.startHandlePosition),l=o?e.style.bottom:e.style.left;this.renderer.setStyle(t,r,c+"px"),this.renderer.setStyle(t,a,i?this.trackWidth()-parseFloat(l)-s+"px":parseFloat(l)+s+"px")},t}($n),oi=function(e){function t(t,n,o,r,a,s){var c=e.call(this,t,n,o,r,a,s)||this;return c.localization=t,c.injector=n,c.renderer=o,c.ngZone=r,c.changeDetector=a,c.hostElement=s,c.startHandleId="k-start-handle-"+Object(l.guid)(),c.endHandleId="k-end-handle-"+Object(l.guid)(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=Ln(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,o=i[0],r=i[1];t<=o?(n=[t,r],c.activeHandle="startHandle"):o<t&&t<r?t<(o+r)/2?(n=[t,r],c.activeHandle="startHandle"):(n=[o,t],c.activeHandle="endHandle"):t>=r&&(n=[o,t],c.activeHandle="endHandle"),Yn("startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,o=t.min,r=c.keyBinding[e.keyCode];if(!c.isDisabled&&r){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var a=Nn(e.target),s=r(Object(i.__assign)({},t,{value:a?c.value[0]:c.value[1]}));a?s>c.value[1]&&(c.value[1]=s):s<c.value[0]&&(c.value[0]=s);var l=Bn(n,o,s),d=a?[l,c.value[1]]:[c.value[0],l];c.changeValue(d),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(Object(l.hasObservers)(c.onBlur)||yn(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return Object(i.__extends)(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,Yn(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,Yn("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;Object(l.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&Zn(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(Object(s.take)(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;Object(l.isDocumentAvailable)()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:n};var o=e.pageX<this.lastHandlePosition.x,r=e.pageX>this.lastHandlePosition.x,a=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([Ln(e,t.track.nativeElement,t.getProps()),t.value[1]])},c=function(){return t.changeValue([t.value[0],Ln(e,t.track.nativeElement,t.getProps())])},l=function(){return t.changeValue([Ln(e,t.track.nativeElement,t.getProps()),Ln(e,t.track.nativeElement,t.getProps())])},d=Nn(this.draggedHandle),u=this.vertical,p=!u,h=u&&a||(this.reverse?p&&r:p&&o);this.value[0]===this.value[1]?h?d?s():l():d?l():c():d?s():c()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){Zn(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t,n,i=this;this.value&&(t=this.value,n=e,vn(t[0],n[0])&&vn(t[1],n[1]))||this.ngZone.run((function(){i.value=e,i.ngChange(e),i.value&&i.valueChange.emit(e),i.sizeComponent()}))},t.prototype.sizeComponent=function(){if(Object(l.isDocumentAvailable)()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,o=this.draghandleEnd.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,o,r,this.hostElement.nativeElement]);var a=this.getProps(),s=new ii(a,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(o),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var t=this.sliderSelection.nativeElement,n=e.target;e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value}},enumerable:!0,configurable:!0}),t.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:Rn(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===l.Keys.Tab})))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],t.prototype,"value",void 0),Object(i.__decorate)([Object(o.ViewChild)("draghandleStart",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandleStart",void 0),Object(i.__decorate)([Object(o.ViewChild)("draghandleEnd",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoRangeSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(ti),ri=function(){function e(e,t,n,i,r,a){var s=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=r,this.ngZone=a,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.hostClasses=!0,this.initialized=!1,this._checked=!1,this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){s.focused=!0,Object(l.hasObservers)(s.onFocus)&&s.ngZone.run((function(){s.onFocus.emit()}))},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(l.hasObservers)(s.onBlur)||yn(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.onBlur.emit()}))},Object(d.validatePackage)(Qn),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ieClass",{get:function(){return u.a&&u.a.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(Object(s.skip)(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(r.d,null),this.ngZone.onStable.pipe(Object(s.take)(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.focus=function(){this.wrapper&&this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.wrapper&&this.wrapper.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==l.Keys.Space&&t!==l.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run((function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.setHostClasses=function(e){e?(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-off"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-on")):(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-on"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-off"))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"onLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"offLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"checked",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-ie"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ieClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-switch"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoSwitch",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #wrapper\n class="k-switch-container"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ click: clickHandler, keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n <span class="k-switch-handle" [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,c.LocalizationService,o.Injector,o.ChangeDetectorRef,o.NgZone])],e)}(),ai=function(){function e(e,t,n,i,r,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=r,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new o.EventEmitter,this.autoSize=!1,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],Object(l.isDocumentAvailable)()&&e.autoSize&&(e.resizeSubscription=Object(a.fromEvent)(window,"resize").pipe(Object(s.debounceTime)(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=Object(a.fromEvent)(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(r.d,null)},e.prototype.ngOnChanges=function(e){var t=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=t.offsetHeight,this.renderer.setStyle(t,"resize","none")):(this.renderer.setStyle(t,"overflow-y","auto"),this.renderer.setStyle(t,"resize","both"),t.style.height=this.initialHeight+"px")),this.resize()},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||Object(l.hasObservers)(this.onValueChange)||Object(l.hasObservers)(this.valueChange))&&this.zone.run((function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()})),this.resize()},e.prototype.handleFocus=function(){var e=this;Object(l.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(Object(l.hasObservers)(this.onBlur)||yn(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"elementClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-autofill"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autofillClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoSize",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=t=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:r.c,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"textarea[kendoTextArea]"}),Object(i.__param)(5,Object(o.Optional)()),Object(i.__param)(5,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone,o.ChangeDetectorRef,o.Injector,Boolean])],e)}(),si=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof a.Observable||e instanceof o.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}(),ci=function(e){return"[object Function]"===Object.prototype.toString.call(e)},li=function(){function e(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.focused=!1,this.empty=!0,this.invalid=!1,this._subscriptions=[],this.autoFillStarted=!1,this.direction=i?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textareaElementClass",{get:function(){return!!this.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;if(this.formControl||this.kendoInput){var t=new si(this.kendoInput||this.formControl.valueAccessor,this.formControl),n=function(t){return function(){e.focused=t,e.updateState()}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}));var i=function(){return e.updateState()};if(i(),this.subscribe(t,"onValueChange",i),this.id&&t.focusableId)this.id=t.focusableId;else if(this.id)t.focusableId=this.id;else if(t.focusableId)this.id=t.focusableId;else{var r="_"+Object(l.guid)();t.focusableId=r,this.id=r}}else if(Object(o.isDevMode)())throw new Error("The TextBoxContainer requires a Kendo Input component or a forms-bound component to function properly.")},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._subscriptions=[]},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof o.EventEmitter){var i=e[t].subscribe(n);this._subscriptions.push(i)}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;ci(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=ci(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox-container"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostClasses",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea-wrapper"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"textareaElementClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-focused"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-invalid"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"invalidClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"floatingLabel",void 0),Object(i.__decorate)([Object(o.ContentChild)(l.KendoInput,{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChild)(ai,{static:!1}),Object(i.__metadata)("design:type",ai)],e.prototype,"textarea",void 0),Object(i.__decorate)([Object(o.ContentChild)(r.d,{static:!1}),Object(i.__metadata)("design:type",r.d)],e.prototype,"formControl",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-textbox-container",template:'\n <ng-content></ng-content>\n <label *ngIf="floatingLabel" [for]="id" class="k-label">{{ floatingLabel }}</label>\n '}),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,Boolean])],e)}(),di=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClass=!0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),e=t=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoTextBox]",providers:[{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone])],e)}(),ui=/[eE][\-+]?([0-9]+)/,pi=function(e){return e>=0?Math.floor(e):Math.ceil(e)},hi=function(e){},fi=function(e){return!isNaN(e)&&null!==e};function bi(e,t){var n=t-String(e).length,i=e;if(n>0){var o=new Array(n+1).join("0");i=parseFloat(e+o)}return i}var mi;!function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(mi||(mi={}));var gi,vi=["min","max","step","decimals"],yi={decimals:null,max:null,min:null,step:1},_i=function(){function e(e,t,n,i,r,a,s){var c=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=r,this.changeDetector=a,this.hostElement=s,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.ArrowDirection=mi,this.arrowDirection=mi.None,this.inputValue="",this.minValidateFn=hi,this.maxValidateFn=hi,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this.ngChange=hi,this.ngTouched=hi,this.ngValidatorChange=hi,this.increasePress=function(e){c.arrowPress(mi.Up,e)},this.decreasePress=function(e){c.arrowPress(mi.Down,e)},this.releaseArrow=function(){clearTimeout(c.spinTimeout),c.arrowDirection!==mi.None&&(c.arrowDirection=mi.None,c.changeDetector.detectChanges())},this.handlePaste=function(){c.isPasted=!0},this.handleInput=function(){var e=c.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(c.pressedKey===l.Keys.NumpadDecimal&&(i=c.replaceNumpadDotValue()),c.isPasted&&(i=c.formatInputValue(c.intl.parseNumber(i))),!c.isValid(i))return e.value=c.inputValue,void c.setSelection(t-1,n-1);var o=c.intl.parseNumber(i),r=c.restrictDecimals(o);if(c.autoCorrect){var a=c.limitInputValue(r);r=a.value,t=a.selectionStart,n=a.selectionEnd}o!==r||c.hasTrailingZeros(i)||!c.focused?(c.setInputValue(r),c.setSelection(t,n)):c.inputValue=i,c.isPasted&&(e.value=c.inputValue),c.updateValue(r),c.previousSelection=null,c.isPasted=!1},this.handleDragEnter=function(){c.focused||c.isDisabled||c.setInputValue(c.value,!0)},this.handleMouseDown=function(){c.mouseDown=!0},this.handleFocus=function(){if(!c.focused&&(c.focused=!0,!c.isDisabled)){var e=c.selectOnFocus||!c.mouseDown;c.ngZone.runOutsideAngular((function(){setTimeout((function(){e?c.selectAll():c.selectCaret()}),0)}))}c.mouseDown=!1,Object(l.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.inputValue!==c.elementValue&&c.handleInput(),c.setInputValue(),(Object(l.hasObservers)(c.onBlur)||yn(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.onBlur.emit()}))},this.handleKeyDown=function(e){if(!c.isDisabled){var t;e.keyCode===l.Keys.ArrowDown?t=-1:e.keyCode===l.Keys.ArrowUp&&(t=1),t&&c.step&&(e.preventDefault(),c.addStep(t));var n=c.numericInput.nativeElement;c.previousSelection={end:n.selectionEnd,start:n.selectionStart},c.pressedKey=e.keyCode}},this.handleWheel=function(e){if(c.focused&&!c.isDisabled&&c.changeValueOnScroll){e.preventDefault();var t=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t}(e);c.addStep(t)}},Object(d.validatePackage)(Qn),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(r.d,null)},e.prototype.ngOnChanges=function(e){var t,n;Object(l.anyChanged)(vi,e,!1)&&this.parseOptions(vi.filter((function(t){return e[t]}))),this.verifySettings(),Object(l.anyChanged)(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?(n=this.min,function(e){return!gn(n)||!gn(e.value)||e.value>=n?null:{minError:{minValue:n,value:e.value}}}):hi,this.maxValidateFn=this.rangeValidation?(t=this.max,function(e){return!gn(t)||!gn(e.value)||e.value<=t?null:{maxError:{maxValue:t,value:e.value}}}):hi,this.ngValidatorChange()),Object(l.anyChanged)(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Object(l.anyChanged)(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.focus=function(){Yn(this.numericInput,"focus")},e.prototype.blur=function(){Yn(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.numericWrap){var t=this.numericWrap.nativeElement,n=this.numericInput.nativeElement;e?(this.renderer.addClass(t,"k-state-focused"),this.isDisabled||this.renderer.removeClass(n,"k-formatted-value")):(this.renderer.removeClass(t,"k-state-focused"),this.renderer.addClass(n,"k-formatted-value")),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){var n,i,o;(t.preventDefault(),this.isDisabled||(n=t,i=n.button&&2===n.button,o=n.which&&3===n.which,i||o))||(u.c||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;vn(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=this.previousSelection,r=o.start,a=o.end;t.value=e=e.substring(0,r)+this.decimalSeparator+e.substring(a),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){var t,n,i,o,r,a;return this.numericRegex||(this.numericRegex=(t={autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator},i=t.autoCorrect,o=t.decimals,r=t.min,"."===(a=t.separator)&&(a="\\"+a),n=0===o?"\\d*":"(?:(?:\\d+("+a+"\\d*)?)|(?:"+a+"\\d*))?",new RegExp("^"+(i&&null!==r&&r>=0?"":"-?")+n+"$"))),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,50)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=xn(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&Yn(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(fi(this.max)&&e>this.max&&(t=this.max),fi(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=t.value,r=e,a=!1;if(!this.isInRange(e)){var s=o.length-String(this.inputValue).length,c=this.min,l=this.max,d=fi(l),u=fi(c),p=void 0,h=void 0,f=e;if(0===n&&this.inputValue.substr(1)===o)return{selectionEnd:i,selectionStart:n,value:null};if(d&&e>l?e>0?h=!0:p=l:u&&e<c&&(e>0?p=c:h=!0),p){var b=this.tryPadValue(e,p);b&&pi(e)!==pi(p)&&(f=b,a=!0)}else h&&this.inputValue&&n!==o.length&&(f=parseFloat(o.substr(0,n)+o.substr(n+s)));r=this.limitValue(f),a=(a||r!==f)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:a?String(r).length:i,selectionStart:n,value:r}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,o=bi(e,i),r=bi(e,i+1);return this.isInRange(o)?n=o:this.isInRange(r)&&(n=r),n},e.prototype.isInRange=function(e){return!fi(e)||(!fi(this.min)||this.min<=e)&&(!fi(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,o=String(e);if(t||ui.test(o))n=Sn(e,i);else{var r=o.split("."),a=r[1];a&&a.length>i&&(a=a.substr(0,i),n=parseFloat(r[0]+"."+a))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=ui.exec(t);return n&&(t=e.toFixed(On(parseInt(n[1],10)))),t.replace(".",this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&function(e){return void 0!==e}(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(Object(o.isDevMode)()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var r=parseFloat(i),a=!isNaN(r);if(Object(o.isDevMode)()&&!a&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(i)+" was set.");this[n]=a?r:yi[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e,t,n,i=this.numericInput.nativeElement.selectionStart,o=this.elementValue,r=o.substring(0,i);if(this.setInputValue(),r.length){var a=(e=r,t=this.decimalSeparator,n=t+"0123456789-",e.split("").reduce((function(e,t){return n.includes(t)?++e:e}),0)),s=this.adjustSignificantChars(o,a);this.setSelection(s,s)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,o=n[1].length;return i===t?o-1:o}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"decimals",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("numericInput",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"numericInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("numericWrap",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"numericWrap",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-numerictextbox"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"widgetClasses",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoNumericTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:r.c,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:r.b,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <span\n class="k-numeric-wrap"\n [class.k-state-disabled]="disabled"\n [kendoEventsOutsideAngular]="{ mousewheel: handleWheel, DOMMouseScroll: handleWheel }"\n #numericWrap>\n <input\n role="spinbutton"\n class="k-input k-formatted-value"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span class="k-select" *ngIf="spinners" [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }">\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Up"\n class="k-link k-link-increase"\n >\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Down"\n class="k-link k-link-decrease"\n >\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[$t,o.Renderer2,c.LocalizationService,o.Injector,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],e)}(),Oi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(c.ComponentMessages),ji=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Oi,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Oi);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(gi||(gi={}));var Ci=function(){function e(e,t,n){void 0===n&&(n=gi.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),Si=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),xi=function(e){return(e||"").split("")},wi=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof Si?this.parse(e):this.parse(new Si(xi(e),xi(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===gi.Literal},e}(),ki=function(e,t){return new wi((function(n){var i=n.next().char,o=e[i];return"\\"===i?(i=n.next().char,new Ci(t.literal(i),n)):new Ci(o?t.mask(o):t.literal(i),n)}))},Ii=function(e){var t=e.prompt,n=e.promptPlaceholder;return new wi((function(e){var i=e.next().char;return new Ci(i===t?n:i,e)}))},Ei=function(e){return new wi((function(t){var n=t.next().char;return new Ci(e?n:"",t)}))},Di=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new wi((function(e){return new Ci(t,e)}))));var t},Ti=function(e){return new wi((function(t){for(var n=new Ci([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Pi=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,o=void 0===i?"":i,r=e.promptPlaceholder,a=void 0===r?" ":r,s=e.rules,c=void 0===s?{}:s,l=e.includeLiterals,d=void 0!==l&&l;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=c,this.includeLiterals=d,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return Di(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(Di(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(Di(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var o="",r=i,a=t.split("").slice(0,n),s=t.split("").slice(i);return Di(this.maskTokens.slice(n,i)).run(e).fold((function(e){o=a.concat(e).concat(s).join("")})),{selection:r,value:o}},e.prototype.maskRemoved=function(e,t,n){var i=this,o="",r=n,a=e.split("").slice(n),s=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return Di(this.maskTokens.slice(0,c)).run(s,t).fold((function(e){r=i.adjustPosition(e,r),o=e.concat(a).join("")})),{selection:r,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,o="",r=n,a=e.slice(0,n);return Di(this.unmaskTokens).run(a,t).chain((function(e){r=e.join("").length;var n=t.slice(r);return Di(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:r,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new wi((function(e){return e.peek().char===t?(e.eat(),new Ci(t,e,gi.Literal)):new Ci(t,e,gi.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new wi((function(i){for(;!i.eof();){var o=i.peek(),r=o.char,a=o.control;if(r===a&&a===t)return i.eat(),new Ci(t,i,gi.Mask);if(e.test(r))return i.eat(),new Ci(r,i,gi.Mask);if(r===n)return i.eat(),new Ci(t,i,gi.Mask);i.eat_input()}return i.eat(),new Ci(t,i,gi.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new wi((function(e){return e.eof()?new Ci("",e):(e.peek().char===t&&e.eat(),new Ci(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new wi((function(t){for(;!t.eof();){var i=t.peek(),o=i.char,r=i.control;if(o===n&&r===n)return t.eat(),new Ci(o,t);if(e.test(o))return t.eat(),new Ci(o,t);t.eat_input()}return t.eat(),new Ci("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return Ei(n)},mask:function(n){return Ii({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return Ei(!1)},mask:function(t){return Ii({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;Ti(ki(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),Ti(ki(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),Ti(ki(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),Ti(ki(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),Fi=Promise.resolve(null),Mi=function(){function e(e,t,n,i,r,a,s){var c=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=r,this.changeDetector=a,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this.handleFocus=function(){c.focused=!0,c.maskOnFocus&&c.emptyMask&&(c.updateInput(c.service.maskRaw(c.value)),c.ngZone.runOutsideAngular((function(){setTimeout((function(){c.setSelection(0,0)}),0)}))),Object(l.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleClick=function(){if(c.focused&&!c.focusClick){c.focusClick=!0;var e=c.input.nativeElement;e.selectionStart===e.selectionEnd&&c.setFocusSelection()}},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.focusClick=!1,c.maskOnFocus&&c.emptyMask&&c.updateInput(c.maskedValue),(Object(l.hasObservers)(c.onBlur)||yn(c.control))&&c.ngZone.run((function(){c.onTouched(),c.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},Object(d.validatePackage)(Qn),this.direction=s?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(r.d,null)},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,o=i[0],r=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var a=this.maskedValue.length-r,s=n.length-a;t=this.service.maskInRange(n.slice(o,s),this.maskedValue,o,r)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),Object(l.isChanged)("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else Object(l.anyChanged)(["promptPlaceholder","includeLiterals"],e)?Fi.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},e.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&Yn(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=gn(e);if(t&&"string"!=typeof e){if(Object(o.isDevMode)())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-maskedtextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"mask",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"rules",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"prompt",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"promptPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"includeLiterals",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskValidation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.HostListener)("paste",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"pasteHandler",null),Object(i.__decorate)([Object(o.HostListener)("input",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoMaskedTextBox",providers:[Pi,{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return t}))},{multi:!0,provide:r.b,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-textbox"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),Object(i.__param)(6,Object(o.Optional)()),Object(i.__param)(6,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[Pi,o.Renderer2,o.ElementRef,o.NgZone,o.Injector,o.ChangeDetectorRef,Boolean])],e)}(),Ai=function(e){this.value=e,this.classes={"k-tick":!0}},Ni=function(){function e(e){this.rtl=e,this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.prototype.createTicks=function(){for(var e,t,n,i,o,r,a,s,c=Pn(this.min,this.max,this.step),l=this.largeStep,d={max:this.max,min:this.min,smallStep:this.step},u=[],p=0;p<c;p++)u.push(new Ai((e=p,n=void 0,i=void 0,o=void 0,r=void 0,a=void 0,s=void 0,n=(t=d).max,i=t.min,o=t.smallStep,r=t.reverse,a=t.vertical,s=xn(i,kn(e,o)),a||r?Math.abs(wn(s,n)):s))),l&&p%l==0&&(u[p].large=!0,u[p].classes["k-tick-large"]=!0);(this.rtl||this.vertical)&&(u=u.reverse()),u.length>0&&(Object.assign(u[0].classes,this.endTickClasses(!0)),Object.assign(u[u.length-1].classes,this.endTickClasses(!1))),this.ticks=u},e.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},Object(i.__decorate)([Object(o.HostBinding)("class"),Object(i.__metadata)("design:type",String)],e.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"tickTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"labelTemplate",void 0),Object(i.__decorate)([Object(o.ViewChildren)("tickElement"),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"tickElements",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[Boolean])],e)}(),Bi=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Ni,ei],exports:[ei,Ni,l.DraggableModule,l.EventsModule,l.ResizeSensorModule],imports:[Jt.CommonModule,l.DraggableModule,l.EventsModule,l.ResizeSensorModule]})],e)}(),Ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandle",void 0),t}(c.ComponentMessages),Vi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Ri,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Ri),zi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Ri,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-slider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Ri),Li=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ni,zi,Vi],exports:[ni,zi,ei,Vi],imports:[Jt.CommonModule,Bi]})],e)}(),Hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleStart",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(c.ComponentMessages),Ki=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Hi,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Hi),Gi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Hi,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Hi),Ui=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[oi,Gi,Ki],exports:[oi,Gi,Ki,ei],imports:[Jt.CommonModule,Bi]})],e)}(),Wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"on",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"off",void 0),t}(c.ComponentMessages),Zi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Wi,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Wi),$i=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Wi,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-switch-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Wi),qi=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ri,$i,Zi],exports:[ri,$i,Zi],imports:[Jt.CommonModule,l.EventsModule,l.ResizeSensorModule]})],e)}(),Xi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Oi,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Oi),Yi=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Xi,_i,ji],exports:[_i,ji],imports:[Jt.CommonModule,l.EventsModule]})],e)}(),Ji=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Mi],exports:[Mi],imports:[Jt.CommonModule,l.EventsModule]})],e)}(),Qi=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTextBoxSuffixTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),eo=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTextBoxPrefixTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),to=function(){function e(e,t,n,i,r,a){var s=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=r,this.hostElement=a,this.focusableId="k-"+Object(l.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new o.EventEmitter,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputFocus=function(){s.disabled||(s.selectOnFocus&&s.value&&s.ngZone.run((function(){setTimeout((function(){s.selectAll()}))})),Object(l.hasObservers)(s.onFocus)&&(s.isFocused||s.ngZone.run((function(){s.onFocus.emit()}))),Object(l.hasObservers)(s.inputFocus)&&(!s.focusChangedProgrammatically||s.focusChangedProgrammatically&&s.clearButtonClicked)&&s.ngZone.run((function(){s.inputFocus.emit()})),s.ngZone.run((function(){s.isFocused=!0})))},this.handleInputBlur=function(){s.changeDetector.markForCheck(),(Object(l.hasObservers)(s.inputBlur)||yn(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.inputBlur.emit()}))},this.handleInput=function(e){var t=e.target.value;s.updateValue(t)},this.ngChange=function(e){},this.ngTouched=function(){},Object(d.validatePackage)(Qn),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(r.d,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(Jn(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===l.Keys.Tab})))}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?"k-text-success "+this.successIcon:"k-text-success k-icon k-i-check-outline"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?"k-text-error "+this.errorIcon:"k-text-error k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-close-circle"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&Yn(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;vn(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showSuccessIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showErrorIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"successIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"errorIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"clearButtonIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.ContentChild)(Qi,{static:!1}),Object(i.__metadata)("design:type",Qi)],e.prototype,"suffixTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(eo,{static:!1}),Object(i.__metadata)("design:type",eo)],e.prototype,"prefixTemplate",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textbox"},{provide:r.c,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input\n class="k-input"\n #input\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"/>\n <span class="k-input-suffix">\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)"\n >\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],e)}(),no=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clear",void 0),t}(c.ComponentMessages),io=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:no,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(no),oo=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:no,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(no),ro=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-input-separator"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}(),ao=[ro,ai],so=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ao],exports:[ao]})],e)}(),co=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[di,li,to,Qi,eo,io,oo],exports:[di,li,to,Qi,eo,l.EventsModule,io,oo,ao],imports:[Jt.CommonModule,l.EventsModule,so]})],e)}(),lo=function(){function e(e,t,n,i,r,s){var c=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=r,this.hostElement=s,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.subscriptions=new a.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){c.changeDetector.markForCheck(),(Object(l.hasObservers)(c.inputBlur)||yn(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e}(),uo={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},po=function(e){function t(t,n,i,r,a,s){var c=e.call(this,t,n,i,r,a,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=r,c.injector=a,c.hostElement=s,c.focusableId="k-"+Object(l.guid)(),c.hostClass=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new o.EventEmitter,c.onBlur=new o.EventEmitter,c.valueChange=new o.EventEmitter,c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),Object(l.hasObservers)(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),Object(l.hasObservers)(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},Object(d.validatePackage)(Qn),c.direction=t.rtl?"rtl":"ltr",c}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(Jn(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===l.Keys.Tab})))}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(r.d,null),Object(l.isDocumentAvailable)()&&"auto"===this.resizable&&(this.resizeSubscription=Object(a.fromEvent)(window,"resize").pipe(Object(s.debounceTime)(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(gn(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;vn(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return uo[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-state-focus"):this.renderer.removeClass(t,"k-state-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&Yn(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-flex-col"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowCol",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-flex-row"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowRow",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flow",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"rows",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"cols",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"resizable",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"valueChange",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextArea",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textarea"},{provide:r.c,useExisting:Object(o.forwardRef)((function(){return n})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],t)}(lo),ho=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea-suffix"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}(),fo=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[po,ho],exports:[po,l.EventsModule,ho,ao],imports:[Jt.CommonModule,l.EventsModule,so]})],e)}(),bo=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),mo=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}(),go=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(gn(e)){if("name"===t)return function(e,t){if(e=e.toLowerCase().trim(),gn(nn[e]))return e;fn(e,t)&&(e=fn(e,t).toHex());var n=Object.keys(nn).find((function(t){return nn[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property shoud be set to 'hex' or 'rgba' ");return n}(e,n);var i=fn(e.trim(),n);if(gn(i))return"hex"===t?i.toCss():i.toCssRgba()}},vo=function(e,t){void 0===t&&(t=!0);var n=fn(e,t);return gn(n)?n.toBytes():{}},yo=function(e){var t=_n(e.h,0,359.9),n=_n(e.s,0,1),i=_n(e.v,0,1),o=_n(e.a,0,1);return mn.fromHSV(t,n,i,o).toCssRgba()},_o=function(e){return yo({h:e,s:1,v:1,a:1})};var Oo=function(e,t){var n=_n(e.r,0,255),i=_n(e.g,0,255),o=_n(e.b,0,255),r=_n(e.a,0,1),a=_n(t.r,0,255),s=_n(t.g,0,255),c=_n(t.b,0,255);return{r:Math.round((1-r)*a+r*n),g:Math.round((1-r)*s+r*i),b:Math.round((1-r)*c+r*o)}},jo=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},Co=function(e,t){return n=jo(Oo(e,t)),i=jo(Oo(t,{r:0,g:0,b:0,a:1})),(Math.max(n,i)+.05)/(Math.min(n,i)+.05);var n,i},So={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}},xo=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(i.__param)(0,Object(o.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean])],t)}(c.LocalizationService),wo=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.colorPickerLocalization=o,r}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(o.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(c.RTL)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(xo)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,xo])],t)}(c.LocalizationService),ko=function(){function e(e,t,n){this.localization=e,this.host=t,this.renderer=n,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new o.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new a.Subscription}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!Object(l.isDocumentAvailable)()||!gn(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return gn(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){gn(e.value)&&!this.isFocused&&(this.hex=go(this.value,"hex"),this.rgba=vo(this.value),this.rgba.a=go(this.value,"rgba")?this.rgba.a:1)},e.prototype.handleRgbaValueChange=function(){var e,t,n,i,o,r=(e=this.rgba,t=_n(e.r,0,255),n=_n(e.g,0,255),i=_n(e.b,0,255),o=_n(e.a,0,1),mn.fromBytes(t,n,i,o).toCssRgba());this.rgbaInputValid&&r!==this.value&&(this.value=r,this.rgba=vo(this.value),this.hex=go(r,"hex"),this.valueChange.emit(r))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=go(e,"rgba");gn(t)&&t!==this.value&&(this.value=t,this.rgba=vo(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=vo(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=go(this.value,"hex")},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},e.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",(function(){return e.toggleFormatView()})))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formatView",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-colorgradient-inputs"),Object(o.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"colorInputClass",void 0),Object(i.__decorate)([Object(o.ViewChild)("opacityInput",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"opacityInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("toggleFormatButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button class="k-colorgradient-toggle-mode k-button k-icon-button k-flat" #toggleFormatButton>\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <input *ngIf="formatView === \'hex\'"\n #hexInput\n class="k-textbox k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n [placeholder]="textFor(\'hexInputPlaceholder\')"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [placeholder]="textFor(\'redInputPlaceholder\')"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [placeholder]="textFor(\'greenInputPlaceholder\')"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [placeholder]="textFor(\'blueInputPlaceholder\')"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [placeholder]="textFor(\'alphaInputPlaceholder\')"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.ElementRef,o.Renderer2])],e)}(),Io=0,Eo=function(){function e(e,t,n,i,r){var s=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=r,this.hostClasses=!0,this.id="k-colorgradient-"+Io++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.valueChange=new o.EventEmitter,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva={},this.format="rgba",this._tabindex=0,this.listeners=[],this.updateValues=new a.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},this.dynamicRTLSubscription=r.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=go(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!(!Object(l.isDocumentAvailable)()||!gn(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alphaSliderValue",{get:function(){if(gn(this.hsva)&&gn(this.hsva.a))return 100*this.hsva.a},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastToolVisible",{get:function(){return"string"==typeof this.contrastTool&&""!==this.contrastTool},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},e.prototype.ngOnChanges=function(e){Object(l.isChanged)("value",e)&&!this.isFocused&&this.updateUI(),Object(l.isChanged)("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},e.prototype.focus=function(){this.disabled||this.host.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!gn(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(yo(this.hsva)))},e.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var i=0,o=0;switch(e.key){case"ArrowRight":i=5;break;case"ArrowLeft":i=-5;break;case"ArrowUp":o=-5;break;case"ArrowDown":o=5}var r=parseInt(n.style.top,10)+o,a=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",a+"px"),this.ngZone.run((function(){return t.moveDragHandle(a,r)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=e.clientX-this.gradientRect.left,i=e.clientY-this.gradientRect.top;this.ngZone.run((function(){return t.moveDragHandle(n,i)}))}},e.prototype.handleHueSliderChange=function(e){this.handleValueChange(yo(this.hsva)),this.backgroundColor=_o(e),this.setAlphaSliderBackground(this.backgroundColor)},e.prototype.handleAlphaSliderChange=function(e){this.hsva.a=e/100,this.handleValueChange(yo(this.hsva))},e.prototype.handleInputsValueChange=function(e){var t=go(e,this.format);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,gn(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(e.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=go(this.value,this.format);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e,t){var n=_n(t,0,this.gradientRect.height),o=_n(e,0,this.gradientRect.width);this.setDragHandleElementPosition(n,o),this.hsva.s=o/this.gradientRect.width,this.hsva.v=1-n/this.gradientRect.height,this.updateValues.next(yo(this.hsva)),this.setAlphaSliderBackground(yo(Object(i.__assign)({},this.hsva,{a:1})))},e.prototype.updateUI=function(){if(Object(l.isDocumentAvailable)()){this.hsva=this.value?function(e,t){void 0===t&&(t=!0);var n=fn(e,t);return gn(n)?n.toHSV():{}}(this.value):{h:0,s:0,v:1,a:1};var e=(1-this.hsva.v)*this.gradientRect.height,t=this.hsva.s*this.gradientRect.width;this.setDragHandleElementPosition(e,t),this.backgroundColor=_o(this.hsva.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(gn(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.prototype.setHostElementAriaLabel=function(){var e=go(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){var n,i,o;i=e.host.nativeElement,o=t.relatedTarget,(!i||!o||i!==o&&!i.contains(o))&&((n=e.host)&&n.nativeElement&&Xn(n.nativeElement,"ng-untouched"))&&e.ngZone.run((function(){return e.notifyNgTouched()}))})),n=e.renderer.listen(e.gradientDragHandle.nativeElement,"keydown",(function(t){e.onKeyboardAction(t)})),i=e.renderer.listen(e.gradientDragHandle.nativeElement,"keyup",(function(){e.renderer.removeClass(e.gradientWrapper.nativeElement,"k-dragging"),e.readonly||e.disabled||e.ngZone.run((function(){return e.handleValueChange(yo(e.hsva))}))})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),r=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,o,r)}))},e.prototype.subscribeChanges=function(){var e=this;this.changeRequestsSubscription=this.updateValues.pipe(Object(s.throttleTime)(this.delay)).subscribe((function(t){e.handleValueChange(t)}))},e.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},Object(i.__decorate)([Object(o.HostBinding)("class.k-colorgradient"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"gradientId",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"delay",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"contrastTool",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.ViewChild)("gradientDragHandle",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"gradientDragHandle",void 0),Object(i.__decorate)([Object(o.ViewChild)("inputs",{static:!1}),Object(i.__metadata)("design:type",ko)],e.prototype,"inputs",void 0),Object(i.__decorate)([Object(o.ViewChild)("alphaSlider",{static:!1}),Object(i.__metadata)("design:type",ni)],e.prototype,"alphaSlider",void 0),Object(i.__decorate)([Object(o.ViewChild)("gradientWrapper",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"gradientWrapper",void 0),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorgradient",providers:[{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},wo,{provide:c.LocalizationService,useExisting:wo},{provide:c.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-hexInputPlaceholder="kendo.colorgradient.hexInputPlaceholder|The placeholder for the HEX color input."\n hexInputPlaceholder="HEX Color"\n i18n-redInputPlaceholder="kendo.colorgradient.redInputPlaceholder|The placeholder for the red color input."\n redInputPlaceholder="Red"\n i18n-greenInputPlaceholder="kendo.colorgradient.greenInputPlaceholder|The placeholder for the green color input."\n greenInputPlaceholder="Green"\n i18n-blueInputPlaceholder="kendo.colorgradient.blueInputPlaceholder|The placeholder for the blue color input."\n blueInputPlaceholder="Blue"\n i18n-alphaInputPlaceholder="kendo.colorgradient.alphaInputPlaceholder|The placeholder for the alpha input."\n alphaInputPlaceholder="Alpha"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" [style.background]="backgroundColor">\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-flat k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [smallStep]="5"\n [largeStep]="10"\n [(value)]="hsva.h"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity && format === \'rgba\'"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox" *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-align-self-end {\n height: 140px;\n }\n "]}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2,o.ChangeDetectorRef,c.LocalizationService])],e)}(),Do=0,To=function(){function e(e,t,n,i){var r=this;this.popupService=e,this.cdr=t,this.localizationService=n,this.ngZone=i,this.hostClasses=!0,this.focusableId="k-colorpicker-"+Do++,this.view="gradient",this.readonly=!1,this.disabled=!1,this.format="rgba",this.valueChange=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.activeColorClick=new o.EventEmitter,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,clearButton:!1,delay:0},this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},Object(d.validatePackage)(Qn),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;r.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=go(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return gn(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?"office":"accessible",t=this._paletteSettings.palette,n="string"==typeof t&&So[t]?So[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.view="palette"),"gradient"===this.view&&this.gradientSettings.opacity&&(this.format="rgba",this.value=go(this.value,this.format))},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.handleWrapperClick=function(){this.toggleWithEvents(!this.isOpen),this.focus()},e.prototype.handleActiveColorClick=function(){this.focus();var e=new mo(this.value);this.activeColorClick.emit(e),e.isOpenPrevented()&&!this.isOpen||this.handleWrapperClick()},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){gn(this.palette)&&this.palette.nativeElement.focus(),this.isFocused||(this.isFocused=!0,this.onFocus.emit())},e.prototype.blur=function(){this.wrapper.nativeElement.blur()},e.prototype.handleWrapperBlur=function(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())},e.prototype.reset=function(){gn(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=gn(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e,t){var n=go(e,this.format),i=n!==this.value;t&&(this.toggleWithEvents(!1),this.focus()),i&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n))},e.prototype.handlePopupBlur=function(e){var t=this.popupRef.popupElement.contains(e.relatedTarget),n=e.relatedTarget===this.wrapper.nativeElement;!this.isFocused||n||t||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){e.keyCode!==l.Keys.ArrowDown&&e.keyCode!==l.Keys.Enter||(e.preventDefault(),this.toggleWithEvents(!0))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===l.Keys.Escape&&(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus()),e.keyCode===l.Keys.Tab){var t=this.colorGradient?this.colorGradient.gradientDragHandle.nativeElement:this.palette.nativeElement,n=this.palette?this.palette.nativeElement:this.colorGradient.inputs.opacityInput.nativeElement.childNodes[1].children[0];if(e.shiftKey){if(e.target===t)return e.preventDefault(),void n.focus()}else if(e.target===n)return e.preventDefault(),void t.focus()}},e.prototype.isEmpty=function(){return!1},e.prototype.toggleWithEvents=function(e){var t=this,n=this.isOpen===e;if(!(this.disabled||this.readonly||n)){var i=new bo;e?this.open.emit(i):this.close.emit(i),i.isDefaultPrevented()||this.toggle(e),e&&this.ngZone.runOutsideAngular((function(){setTimeout((function(){t.colorGradient&&t.colorGradient.gradientDragHandle.nativeElement.focus()}))}))}},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.wrapper.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null,this.palette=null)},Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-colorpicker"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"view",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"icon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"iconClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeColorClick",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("palette",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"palette",void 0),Object(i.__decorate)([Object(o.ViewChild)("colorGradient",{static:!1}),Object(i.__metadata)("design:type",Eo)],e.prototype,"colorGradient",void 0),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorpicker",providers:[{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},xo,{provide:c.LocalizationService,useExisting:xo},{provide:c.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorGradient="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradient="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-hexInputPlaceholder="kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input."\n hexInputPlaceholder="HEX Color"\n i18n-redInputPlaceholder="kendo.colorpicker.redInputPlaceholder|The placeholder for the red color input."\n redInputPlaceholder="Red"\n i18n-greenInputPlaceholder="kendo.colorpicker.greenInputPlaceholder|The placeholder for the green color input."\n greenInputPlaceholder="Green"\n i18n-blueInputPlaceholder="kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input."\n blueInputPlaceholder="Blue"\n i18n-alphaInputPlaceholder="kendo.colorpicker.alphaInputPlaceholder|The placeholder for the alpha input."\n alphaInputPlaceholder="Alpha">\n </ng-container>\n <span\n #wrapper\n [ngClass]="{\n \'k-picker-wrap\': true,\n \'k-state-disabled\': this.disabled,\n \'k-state-focused\': this.isFocused\n }"\n role="listbox"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.aria-disabled]="disabled"\n [attr.aria-label]="value"\n [id]="focusableId"\n [attr.tabindex]="tabindex"\n (focus)="handleWrapperFocus()"\n (blur)="handleWrapperBlur()"\n (mousedown)="$event.preventDefault()"\n (keydown)="handleWrapperKeyDown($event)"\n >\n <span *ngIf="!iconStyles" class="k-selected-color" [style.background-color]="value" (click)="handleActiveColorClick()">\n <span class="k-icon k-i-line" *ngIf="!value"></span>\n </span>\n <span *ngIf="iconStyles" class="k-tool-icon" [ngClass]="iconStyles" (click)="handleActiveColorClick()">\n <span class="k-selected-color" [style.background-color]="value"></span>\n </span>\n <span class="k-select" (click)="handleWrapperClick()">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n <kendo-colorgradient #colorGradient\n *ngIf="view === \'gradient\' || view === \'combo\'"\n [value]="value"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [clearButton]="gradientSettings.clearButton"\n [delay]="gradientSettings.delay"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event, false)"\n (keydown)="handlePopupKeyDown($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette\n #palette\n *ngIf="view === \'palette\' || view === \'combo\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="value"\n (blur)="handlePopupBlur($event)"\n (cellSelection)="handleValueChange($event, true)"\n (mousedown)="$event.preventDefault()"\n (keydown)="handlePopupKeyDown($event)"\n >\n </kendo-colorpalette>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[Qt.c,o.ChangeDetectorRef,c.LocalizationService,o.NgZone])],e)}(),Po=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],gn(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){if(gn(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},e.prototype.getColorAt=function(e){if(gn(e)&&gn(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(gn(e)&&gn(e.row)&&gn(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),Fo=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.colorPickerLocalization=o,r}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(o.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(c.RTL)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(xo)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,xo])],t)}(c.LocalizationService),Mo=0,Ao=function(){function e(e,t,n,i,r){var a=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=r,this.id="k-colorpalette-"+Mo++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.cellSelection=new o.EventEmitter,this.hostClasses=!0,this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.dynamicRTLSubscription=r.changes.subscribe((function(e){var t=e.rtl;a.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=go(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;gn(e)||(e="office"),"string"==typeof e&&gn(So[e])&&(this.columns=this.columns||So[e].columns,e=So[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return go(e,t.format,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value)}},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value),this.setHostElementAriaLabel())},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case l.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case l.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case l.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case l.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case l.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0;var n=go(e,this.format,!1);this.cellSelection.emit(n),this.value!==n&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n),this.setHostElementAriaLabel()),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId=this.selectedCell.row+"-"+this.selectedCell.col)}},e.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,gn(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},e.prototype.setRows=function(){gn(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},e.prototype.setHostElementAriaLabel=function(){var e=go(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},e.prototype.handleEnter=function(){if(gn(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"paletteId",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"columns",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"palette",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"tileSize",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellSelection",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-colorpalette"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(o.HostListener)("keydown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleKeydown",null),Object(i.__decorate)([Object(o.HostListener)("blur"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorpalette",providers:[{multi:!0,provide:r.c,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},Po,Fo,{provide:c.LocalizationService,useExisting:Fo},{provide:c.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="rowIndex + \'-\' + colIndex"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,Po,o.ChangeDetectorRef,o.Renderer2,c.LocalizationService])],e)}(),No=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientNoColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hueSliderHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"opacitySliderHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"redInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"passContrast",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"failContrast",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"contrastRatio",void 0),t}(c.ComponentMessages),Bo=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:No,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(No),Ro=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:No,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(No),Vo=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoFocusOnDomReady]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),zo=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastText",{get:function(){return this.type+": "+this.ratio.toFixed(1)},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"type",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"ratio",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"pass",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),Lo=function(){function e(e){this.localization=e,this.aaRatio=4.5,this.aaaRatio=7}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioMessage",{get:function(){return this.localization.get("contrastRatio")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=this.aaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=this.aaaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return Co(vo(this.value),vo(this.ratio))},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"ratio",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioMessage}}: {{formatedRatio}}</span>\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </div>\n <div kendoContrastValidation\n type="AA"\n [ratio]="aaaRatio"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [ratio]="aaaRatio"\n [pass]="satisfiesAAACondition">\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),Ho=[To,Ao,Eo,Ro,Bo],Ko=[ko,Vo,Lo,zo],Go=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Ho,Ko],exports:[Ho],imports:[Li,Yi,Jt.CommonModule,Qt.b,l.DraggableModule]})],e)}(),Uo=function(){function e(){this.kendoClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-checkbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoCheckBox]"})],e)}(),Wo=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Uo],exports:[Uo],imports:[Jt.CommonModule]})],e)}(),Zo=function(){function e(){this.kendoClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-radio"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoRadioButton]"})],e)}(),$o=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Zo],exports:[Zo],imports:[Jt.CommonModule]})],e)}(),qo=0,Xo=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+qo++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-error"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"roleAttribute",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}(),Yo=0,Jo=function(){function e(){this.align="start",this.id="kendo-hint-"+Yo++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-hint"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}(),Qo=function(){function e(e,t,n){var i=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new a.Subscription,this.rtl=!1,Object(d.validatePackage)(Qn),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.prototype.validateFormControl=function(e){if(Object(o.isDevMode)()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},e.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every((function(e){return e.name===n&&t.isRadioControl(e)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof r.e},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&Object(l.isDocumentAvailable)()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map((function(e){return e.nativeElement}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe((function(){return e.updateDescription()}))),this.subscriptions.add(this.hintChildren.changes.subscribe((function(){return e.updateDescription()})))},Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field-error"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"errorClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.ContentChildren)(r.d,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList),Object(i.__metadata)("design:paramtypes",[o.QueryList])],e.prototype,"formControls",null),Object(i.__decorate)([Object(o.ContentChildren)(r.d,{read:o.ElementRef,descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"controlElementRefs",void 0),Object(i.__decorate)([Object(o.ContentChild)(l.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChildren)(Xo,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"errorChildren",void 0),Object(i.__decorate)([Object(o.ContentChildren)(Jo,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"hintChildren",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showHints",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"orientation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showErrors",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.formfield"}]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,c.LocalizationService,o.ElementRef])],e)}(),er=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Jo,Xo,Qo],exports:[Jo,Xo,Qo],imports:[Jt.CommonModule]})],e)}(),tr=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({exports:[fo,co,Li,Ui,qi,Yi,Ji,Go,Wo,$o,er],imports:[Jt.CommonModule]})],e)}()},function(e,t,n){"use strict";var i=function(e,t){return function(n){return t(e(n))}},o=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},r=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},a=function(){},s=function(e){return e.preventDefault()},c=/touch/;function l(e){return e.type.match(c)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var d=function(e){var t=this,n=e.press;void 0===n&&(n=a);var c=e.drag;void 0===c&&(c=a);var d=e.release;void 0===d&&(d=a);var u=e.mouseOnly;void 0===u&&(u=!1),this._pressHandler=i(l,n),this._dragHandler=i(l,c),this._releaseHandler=i(l,d),this._ignoreMouse=!1,this._mouseOnly=u,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(o(t.document,"mousemove",t._mousemove),o(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){r(t.document,"mousemove",t._mousemove),r(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(o(t.document,"pointermove",t._pointermove),o(t.document,"pointerup",t._pointerup),o(t.document,"pointercancel",t._pointerup),o(t.document,"contextmenu",s),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(r(t.document,"pointermove",t._pointermove),r(t.document,"pointerup",t._pointerup),r(t.document,"pointercancel",t._pointerup),r(t.document,"contextmenu",s),t._releaseHandler(e))}},u={document:{configurable:!0}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},u.document.get=function(){return this._element?this._element.ownerDocument:document},d.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?o(e,"pointerdown",this._pointerdown):(o(e,"mousedown",this._mousedown),this._mouseOnly||(o(e,"touchstart",this._touchstart),o(e,"touchmove",this._touchmove),o(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return r(e,"pointerdown",this._pointerdown),r(this.document,"pointermove",this._pointermove),r(this.document,"pointerup",this._pointerup),r(this.document,"contextmenu",s),void r(this.document,"pointercancel",this._pointerup);r(e,"mousedown",this._mousedown),this._mouseOnly||(r(e,"touchstart",this._touchstart),r(e,"touchmove",this._touchmove),r(e,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.update=function(e){var t=e.press;void 0===t&&(t=a);var n=e.drag;void 0===n&&(n=a);var o=e.release;void 0===o&&(o=a);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=i(l,t),this._dragHandler=i(l,n),this._releaseHandler=i(l,o),this._mouseOnly=r},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(d.prototype,u),d.default=d,t.a=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoDataPagerTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.PagerTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(t){var n=e.call(this)||this;return n.newPageSize=t,n}return i.__extends(t,e),t}(n(29).PreventableEvent);t.PageSizeChangeEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(19),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-datapager-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.CustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"firstPage",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"lastPage",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"previousPage",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"nextPage",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"page",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"pageNumberInputTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"itemsPerPage",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"of",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"items",void 0),t}(n(3).ComponentMessages);t.Messages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(12),a=n(13),s=n(3),c=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return 1===this.currentPage||!this.total},enumerable:!0,configurable:!0}),t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize=i,this.cd.markForCheck()},t=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-datapager-prev-buttons",template:'\n <button\n type="button"\n class="k-link k-pager-nav k-pager-first"\n [class.k-state-disabled]="disabled"\n [title]="textFor(\'firstPage\')"\n [attr.aria-label]="textFor(\'firstPage\')"\n [attr.aria-disabled]="disabled ? true : undefined"\n (click)="currentPage !== 1 ? changePage(0) : false">\n <span class="k-icon k-i-seek-w" [attr.aria-label]="textFor(\'firstPage\')"></span>\n </button>\n <button\n type="button"\n class="k-link k-pager-nav"\n [class.k-state-disabled]="disabled"\n [title]="textFor(\'previousPage\')"\n [attr.aria-label]="textFor(\'previousPage\')"\n [attr.aria-disabled]="disabled ? true : undefined"\n (click)="currentPage !== 1 ? changePage(currentPage-2) : false">\n <span class="k-icon k-i-arrow-w" [attr.aria-label]="textFor(\'previousPage\')"></span>\n </button>\n '}),i.__metadata("design:paramtypes",[s.LocalizationService,r.PagerContextService,o.ChangeDetectorRef])],t)}(a.PagerElementComponent);t.PagerPrevButtonsComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(13),a=n(3),s=n(12),c=n(17),l=n(27),d=function(e){function t(t,n,i){var o=e.call(this,t,i,n)||this;return o.pagerContext=i,o._pageSizes=[],o}return i.__extends(t,e),Object.defineProperty(t.prototype,"pageSizes",{get:function(){return this._pageSizes},set:function(e){var t=this,n=[];e.forEach((function(e){"number"==typeof e?n.push({text:e.toString(),value:e}):n.push(e)})),this.pageSize&&!n.some((function(e){return e.value===t.pageSize}))&&(n=[{text:this.pageSize.toString(),value:this.pageSize}].concat(n)),this._pageSizes=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classes",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.dropDownList.wrapper.nativeElement.setAttribute("aria-label",this.textFor("itemsPerPage"))},t.prototype.pageSizeChange=function(e,t){var n=new c.PageSizeChangeEvent(e);this.pagerContext.changePageSize(n),n.isDefaultPrevented()&&t.writeValue(this.pageSize)},t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize="number"==typeof i?i:this.total,this.cd.markForCheck()},i.__decorate([o.ViewChild("dropdownlist",{static:!0}),i.__metadata("design:type",l.DropDownListComponent)],t.prototype,"dropDownList",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],t.prototype,"pageSizes",null),i.__decorate([o.HostBinding("class.k-pager-sizes"),o.HostBinding("class.k-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"classes",null),t=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-datapager-page-sizes",template:'\n <kendo-dropdownlist\n #dropdownlist\n [data]="pageSizes"\n textField="text"\n valueField="value"\n [valuePrimitive]="true"\n [value]="pageSize"\n (valueChange)="pageSizeChange($event, dropdownlist)"></kendo-dropdownlist>\n {{ textFor(\'itemsPerPage\') }}\n '}),i.__metadata("design:paramtypes",[a.LocalizationService,o.ChangeDetectorRef,s.PagerContextService])],t)}(r.PagerElementComponent);t.PagerPageSizesComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(12),s=function(e){function t(t,n,i){var o=e.call(this,t,i,n)||this;return o.pagerContext=i,o.numbersWrapClass=!0,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"buttons",{get:function(){for(var e=[],t=this.start;t<=this.end;t++)e.push(t);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return Math.min(this.start+this.buttonCount-1,this.totalPages)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){var e=this.currentPage,t=this.buttonCount;if(e>t){var n=e%t;return 0===n?e-t+1:e-n+1}return 1},enumerable:!0,configurable:!0}),t.prototype.pageLabel=function(e){var t=this.textFor("page");return t?t+" "+e:e.toString()},t.prototype.onSelectChange=function(e){var t=e.target,n=Number(t.value);Number.isNaN(n)?"previousButtons"===t.value?this.changePage(this.start-2):this.changePage(this.end):this.changePage(n-1)},t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize=i,this.cd.markForCheck()},i.__decorate([o.HostBinding("class.k-pager-numbers-wrap"),i.__metadata("design:type",Boolean)],t.prototype,"numbersWrapClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"buttonCount",void 0),t=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-datapager-numeric-buttons",template:'\n <select\n class="k-dropdown"\n [value]="(currentPage).toString()"\n (change)="onSelectChange($event)">\n <option *ngIf="start > 1"\n class="k-link"\n value="previousButtons"\n [attr.aria-label]="pageLabel(start - 1)">...\n </option>\n <option *ngFor="let num of buttons"\n [value]="num.toString()"\n [attr.aria-label]="pageLabel(num)"\n [attr.aria-current]="currentPage == num ? \'page\' : undefined"\n [ngClass]="{\'k-link\': true, \'k-state-selected\':currentPage == num}">\n {{num}}\n </option>\n <option *ngIf="end < totalPages"\n value="nextButtons"\n class="k-link"\n [attr.aria-label]="pageLabel(end + 1)">...\n </option>\n </select>\n <ul [ngClass]="{\'k-pager-numbers\': true, \'k-reset\': true}">\n <li *ngIf="start > 1">\n <button\n type="button"\n class="k-link"\n [attr.aria-label]="pageLabel(start - 1)"\n (click)="changePage(start - 2)">...</button>\n </li>\n <li *ngFor="let num of buttons">\n <button\n type="button"\n [attr.aria-label]="pageLabel(num)"\n [attr.aria-current]="currentPage == num ? \'page\' : undefined"\n [ngClass]="{\'k-link\': true, \'k-state-selected\':currentPage == num}"\n (click)="changePage(num - 1)">\n {{num}}\n </button>\n </li>\n <li *ngIf="end < totalPages">\n <button\n type="button"\n class="k-link"\n [attr.aria-label]="pageLabel(end + 1)"\n (click)="changePage(end)">...</button>\n </li>\n </ul>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService,o.ChangeDetectorRef,a.PagerContextService])],t)}(n(13).PagerElementComponent);t.PagerNumericButtonsComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(12),a=n(13),s=n(3),c=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.currentPage===this.totalPages||!this.total},enumerable:!0,configurable:!0}),t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize=i,this.cd.markForCheck()},t=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-datapager-next-buttons",template:'\n <button\n type="button"\n class="k-link k-pager-nav"\n [class.k-state-disabled]="disabled"\n [title]="textFor(\'nextPage\')"\n [attr.aria-label]="textFor(\'nextPage\')"\n [attr.aria-disabled]="disabled ? true : undefined"\n (click)="currentPage !== totalPages ? changePage(currentPage) : false">\n <span class="k-icon k-i-arrow-e" [attr.aria-label]="textFor(\'nextPage\')"></span>\n </button>\n <button\n type="button"\n class="k-link k-pager-nav k-pager-last"\n [class.k-state-disabled]="disabled"\n [title]="textFor(\'lastPage\')"\n [attr.aria-label]="textFor(\'lastPage\')"\n [attr.aria-disabled]="disabled ? true : undefined"\n (click)="currentPage !== totalPages ? changePage(totalPages-1) : false">\n <span class="k-icon k-i-seek-e" [attr.aria-label]="textFor(\'lastPage\')"></span>\n </button>\n '}),i.__metadata("design:paramtypes",[s.LocalizationService,r.PagerContextService,o.ChangeDetectorRef])],t)}(a.PagerElementComponent);t.PagerNextButtonsComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(14),r=n(1),a=n(13),s=n(3),c=n(12),l=n(2),d=function(e){function t(t,n,i,o){var r=e.call(this,t,n,o)||this;return r.pagerContext=n,r.zone=i,r.handleKeyDown=function(e){var t=r.numericInput.value||r.current;e.keyCode===l.Keys.Enter&&(e.preventDefault(),t!==r.current&&r.zone.run((function(){r.changePage(t-1)})))},r.handleBlur=function(){var e=r.numericInput.value;e?e!==r.current&&r.zone.run((function(){r.changePage(e-1)})):r.numericInput.writeValue(r.current)},r}return i.__extends(t,e),Object.defineProperty(t.prototype,"current",{get:function(){return this.hasPages?this.currentPage:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPages",{get:function(){return 0!==this.totalPages},enumerable:!0,configurable:!0}),t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize=i,this.cd.markForCheck()},i.__decorate([r.ViewChild(o.NumericTextBoxComponent,{static:!0}),i.__metadata("design:type",o.NumericTextBoxComponent)],t.prototype,"numericInput",void 0),t=i.__decorate([r.Component({selector:"kendo-datapager-input",template:'\n <span [ngClass]="{\'k-pager-input\': true, \'k-label\': true}">\n {{textFor(\'page\')}}\n <kendo-numerictextbox\n [spinners]="false"\n [decimals]="0"\n format="n0"\n [disabled]="!hasPages"\n [value]="current"\n [min]="hasPages ? 1 : 0"\n [max]="totalPages"\n [autoCorrect]="true"\n [title]="textFor(\'pageNumberInputTitle\')"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown,\n focusout: handleBlur\n }">\n </kendo-numerictextbox>\n {{textFor(\'of\')}} {{totalPages}}\n </span>\n '}),i.__metadata("design:paramtypes",[s.LocalizationService,c.PagerContextService,r.NgZone,r.ChangeDetectorRef])],t)}(a.PagerElementComponent);t.PagerInputComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(13),a=n(3),s=n(12),c=function(e){function t(t,n,i){var o=e.call(this,t,i,n)||this;return o.pagerContext=i,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"maxItems",{get:function(){return Math.min(this.currentPage*this.pageSize,this.total)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageText",{get:function(){return this.total?(this.currentPage-1)*this.pageSize+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classes",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.onChanges=function(e){var t=e.total,n=e.skip,i=e.pageSize;this.total=t,this.skip=n,this.pageSize=i,this.cd.markForCheck()},i.__decorate([o.HostBinding("class.k-pager-info"),o.HostBinding("class.k-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"classes",null),t=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-datapager-info",template:"{{currentPageText}} - {{maxItems}} {{textFor('of')}} {{total}} {{textFor('items')}}"}),i.__metadata("design:paramtypes",[a.LocalizationService,o.ChangeDetectorRef,s.PagerContextService])],t)}(r.PagerElementComponent);t.PagerInfoComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(30),r=n(1),a=n(16),s=n(2),c=n(12),l=n(5),d=n(31),u=n(3),p=n(9),h=n(32),f=function(){function e(e,t,n){var i=this;this.pagerContext=e,this.element=t,this.localization=n,this.total=0,this.skip=0,this.buttonCount=10,this.info=!0,this.type="numeric",this.previousNext=!0,this.pageChange=new r.EventEmitter,this.pageSizeChange=new r.EventEmitter,this.pagerWrapClass=!0,this.pagerClass=!0,this.widgetClass=!0,this.widgetRole="navigation",this.subscriptions=new l.Subscription,this._templateContext={},this._pageSizeValues=d.DEFAULT_PAGE_SIZE_VALUES,this.resizeHandler=function(){if(!i.template){var e=i.element.nativeElement,t=e.offsetWidth;t<o.RESPONSIVE_BREAKPOINT_MEDIUM?(e.classList.remove("k-pager-md"),e.classList.add("k-pager-sm")):t>=o.RESPONSIVE_BREAKPOINT_MEDIUM&&t<o.RESPONSIVE_BREAKPOINT_LARGE?(e.classList.add("k-pager-md"),e.classList.remove("k-pager-sm")):(e.classList.remove("k-pager-md"),e.classList.remove("k-pager-sm"))}},p.validatePackage(h.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"pageSizeValues",{get:function(){return this._pageSizeValues},set:function(e){this._pageSizeValues=Array.isArray(e)?e:!!e&&d.DEFAULT_PAGE_SIZE_VALUES},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalPages",{get:function(){return Math.ceil((this.total||0)/this.pageSize)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentPage",{get:function(){return Math.floor((this.skip||0)/this.pageSize)+1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateContext",{get:function(){var e=this._templateContext;return e.totalPages=this.totalPages,e.total=this.total,e.skip=this.skip,e.pageSize=this.pageSize,e.currentPage=this.currentPage,e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pagerContext.pageChange.subscribe(this.changePage.bind(this))),this.subscriptions.add(this.pagerContext.pageSizeChange.subscribe(this.changePageSize.bind(this))),this.subscriptions.add(this.resizeSensor.resize.subscribe((function(){return e.resizeHandler()}))),this.subscriptions.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})))},e.prototype.ngAfterViewInit=function(){this.resizeHandler()},e.prototype.ngOnChanges=function(e){s.anyChanged(["pageSize","skip","total"],e,!1)&&this.pagerContext.notifyChanges({pageSize:this.pageSize,skip:this.skip,total:this.total})},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.changePage=function(e){this.pageChange.emit(e)},e.prototype.changePageSize=function(e){this.pageSizeChange.emit(e),e.isDefaultPrevented()||("all"===e.newPageSize?this.pageChange.emit({skip:0,take:this.total}):this.pageChange.emit({skip:0,take:e.newPageSize}))},e.prototype.onPageSizeChange=function(e){this.pageSizeChange.emit(e),e.isDefaultPrevented()||this.pageChange.emit({skip:this.skip,take:e.newPageSize})},i.__decorate([r.ViewChild(s.ResizeSensorComponent,{static:!0}),i.__metadata("design:type",s.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),i.__decorate([r.ContentChild(a.PagerTemplateDirective,{static:!0}),i.__metadata("design:type",a.PagerTemplateDirective)],e.prototype,"template",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"total",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"pageSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"buttonCount",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"info",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"pageSizeValues",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"previousNext",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"pageChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"pageSizeChange",void 0),i.__decorate([r.HostBinding("class.k-pager-wrap"),i.__metadata("design:type",Boolean)],e.prototype,"pagerWrapClass",void 0),i.__decorate([r.HostBinding("class.k-pager"),i.__metadata("design:type",Boolean)],e.prototype,"pagerClass",void 0),i.__decorate([r.HostBinding("class.k-widget"),i.__metadata("design:type",Boolean)],e.prototype,"widgetClass",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"widgetRole",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=i.__decorate([r.Component({selector:"kendo-datapager",exportAs:"kendoDataPager",providers:[u.LocalizationService,c.PagerContextService],template:'\n <ng-container kendoDataPagerLocalizedMessages\n i18n-firstPage="kendo.pager.firstPage|The label for the first page button in the Pager"\n firstPage="Go to the first page"\n\n i18n-previousPage="kendo.pager.previousPage|The label for the previous page button in the Pager"\n previousPage="Go to the previous page"\n\n i18n-nextPage="kendo.pager.nextPage|The label for the next page button in the Pager"\n nextPage="Go to the next page"\n\n i18n-lastPage="kendo.pager.lastPage|The label for the last page button in the Pager"\n lastPage="Go to the last page"\n\n i18n-page="kendo.pager.page|The label before the current page number in the Pager"\n page="Page"\n\n i18n-of="kendo.pager.of|The label before the total pages number in the Pager"\n of="of"\n\n i18n-pageNumberInputTitle="kendo.pager.pageNumberInputTitle|The label for the pager input in the Pager"\n pageNumberInputTitle="Page Number"\n\n i18n-items="kendo.pager.items|The label after the total pages number in the Pager"\n items="items"\n\n i18n-itemsPerPage="kendo.pager.itemsPerPage|The label for the page size chooser in the Pager"\n itemsPerPage="items per page"\n >\n </ng-container>\n <ng-container\n *ngIf="template?.templateRef"\n [ngTemplateOutlet]="template.templateRef"\n [ngTemplateOutletContext]="templateContext">\n </ng-container>\n <ng-container *ngIf="!template?.templateRef">\n <kendo-datapager-prev-buttons *ngIf="previousNext"></kendo-datapager-prev-buttons>\n <kendo-datapager-numeric-buttons\n *ngIf="type === \'numeric\' && buttonCount > 0"\n [buttonCount]="buttonCount">\n </kendo-datapager-numeric-buttons>\n <kendo-datapager-input *ngIf="type === \'input\'"></kendo-datapager-input>\n <kendo-datapager-next-buttons *ngIf="previousNext"></kendo-datapager-next-buttons>\n <kendo-datapager-info *ngIf=\'info\'></kendo-datapager-info>\n <kendo-datapager-page-sizes *ngIf="pageSizeValues" [pageSizes]="pageSizeValues"></kendo-datapager-page-sizes>\n </ng-container>\n <kendo-resize-sensor></kendo-resize-sensor>\n '}),i.__metadata("design:paramtypes",[c.PagerContextService,r.ElementRef,u.LocalizationService])],e)}();t.PagerComponent=f},function(e,t,n){"use strict";n.r(t),n.d(t,"PopupComponent",(function(){return f.a})),n.d(t,"AUTOCOMPLETE_VALUE_ACCESSOR",(function(){return fn})),n.d(t,"COMBOBOX_VALUE_ACCESSOR",(function(){return Kn})),n.d(t,"TOUCH_ENABLED",(function(){return hn})),n.d(t,"DataService",(function(){return tn})),n.d(t,"DisabledItemsService",(function(){return nn})),n.d(t,"FilterInputDirective",(function(){return Ti})),n.d(t,"FilterableComponent",(function(){return cn})),n.d(t,"ListItemDirective",(function(){return ln})),n.d(t,"CustomMessagesComponent",(function(){return Ii})),n.d(t,"LocalizedMessagesDirective",(function(){return ki})),n.d(t,"Messages",(function(){return wi})),n.d(t,"NavigationService",(function(){return rn})),n.d(t,"SearchBarComponent",(function(){return Zt})),n.d(t,"SelectionService",(function(){return Qt})),n.d(t,"TagListComponent",(function(){return xi})),n.d(t,"NoDataTemplateDirective",(function(){return an})),n.d(t,"TagTemplateDirective",(function(){return qn})),n.d(t,"DROPDOWNLIST_VALUE_ACCESSOR",(function(){return Wn})),n.d(t,"CheckDirective",(function(){return Ni})),n.d(t,"MultiSelectTreeSummaryTagDirective",(function(){return Vi})),n.d(t,"AutoCompleteComponent",(function(){return bn})),n.d(t,"ComboBoxComponent",(function(){return Gn})),n.d(t,"DropDownListComponent",(function(){return Zn})),n.d(t,"MultiSelectComponent",(function(){return Qn})),n.d(t,"MultiColumnComboBoxComponent",(function(){return ri})),n.d(t,"ComboBoxColumnComponent",(function(){return ni})),n.d(t,"ColumnCellTemplateDirective",(function(){return ei})),n.d(t,"ColumnHeaderTemplateDirective",(function(){return ti})),n.d(t,"DropDownTreeComponent",(function(){return pi})),n.d(t,"MultiSelectTreeComponent",(function(){return yi})),n.d(t,"DropDownTreeFlatBindingDirective",(function(){return _i})),n.d(t,"DropDownTreeHierarchyBindingDirective",(function(){return Oi})),n.d(t,"MultiSelectTreeFlatBindingDirective",(function(){return ji})),n.d(t,"MultiSelectTreeHierarchyBindingDirective",(function(){return Ci})),n.d(t,"DropDownTreesExpandDirective",(function(){return Si})),n.d(t,"DropDownTreesModule",(function(){return Li})),n.d(t,"NodeTemplateDirective",(function(){return ai})),n.d(t,"ItemTemplateDirective",(function(){return $t})),n.d(t,"GroupTemplateDirective",(function(){return Yt})),n.d(t,"FixedGroupTemplateDirective",(function(){return Jt})),n.d(t,"CustomItemTemplateDirective",(function(){return $n})),n.d(t,"HeaderTemplateDirective",(function(){return qt})),n.d(t,"FooterTemplateDirective",(function(){return Xt})),n.d(t,"ValueTemplateDirective",(function(){return Un})),n.d(t,"TemplateContextDirective",(function(){return Ai})),n.d(t,"GroupTagTemplateDirective",(function(){return Xn})),n.d(t,"SelectableDirective",(function(){return Mi})),n.d(t,"SummaryTagDirective",(function(){return Hi})),n.d(t,"FilterDirective",(function(){return Di})),n.d(t,"DropDownsModule",(function(){return Qi})),n.d(t,"MultiSelectModule",(function(){return Ji})),n.d(t,"SharedModule",(function(){return Ri})),n.d(t,"AutoCompleteModule",(function(){return Gi})),n.d(t,"ComboBoxModule",(function(){return Zi})),n.d(t,"DropDownListModule",(function(){return qi})),n.d(t,"SharedDirectivesModule",(function(){return Fi})),n.d(t,"ListComponent",(function(){return dn})),n.d(t,"PreventableEvent",(function(){return sn})),n.d(t,"RemoveTagEvent",(function(){return Yn}));var i,o,r,a=n(0),s=n(1),c=n(2),l=n(7),d=n(9),u=n(8),p=n(3),h=n(5),f=n(10),b=n(4),m=n(11),g=n(6),v=n(15),y=n(14),_={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1631260544,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"},O=function(){function e(){this.changes=new s.EventEmitter}return e.prototype.notify=function(){this.changes.emit()},e}(),j=function(){return!1},C=function(){return"none"},S=function(){return!1},x=function(){return!0},w=function(){return!1},k=function(){return!0},I=function(e,t){return t},E=function(){function e(){this.changes=new h.Subject}return e.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},e.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})},e=Object(a.__decorate)([Object(s.Injectable)()],e)}(),D=function(){function e(){this.INDEX_SEPARATOR="_"}return e.prototype.nodeIndex=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),""+t+(t?this.INDEX_SEPARATOR:"")+e},e.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},e.prototype.lastLevelIndex=function(e){void 0===e&&(e="");var t=e.split(this.INDEX_SEPARATOR);return t.length?parseInt(t[t.length-1],10):NaN},e.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length},e=Object(a.__decorate)([Object(s.Injectable)()],e)}(),T=function(){function e(){this.changes=new h.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=Object(a.__decorate)([Object(s.Injectable)()],e)}(),P=/^(?:a|input|select|option|textarea|button|object)$/i,F=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)},M=function(e,t){if(!document.documentElement.contains(e))return null;for(var n=e;null!==n&&1===n.nodeType;){if(F(n,t))return n;n=n.parentElement||n.parentNode}return null},A=function(){},N=function(e){return null!=e},B=function(e){return null==e},R=function(e){return Array.isArray(e)},V=function(e){return"boolean"==typeof e},z=function(e){return Object(c.isDocumentAvailable)()?e.closest?e.closest("li.k-treeview-item"):M(e,"li.k-treeview-item"):null},L=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,o=null!==n&&!i;return P.test(t)&&(o=!e.disabled&&!i),o}return!1},H=function(e){if(!Object(c.isDocumentAvailable)())return null;for(var t=e;t&&!F(t,".k-in:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)t=t.parentNode;return t?F(t,".k-in:not(.k-treeview-load-more-button)"):void 0},K=function(e){return N(M(e,".k-in.k-treeview-load-more-button"))},G=function(e,t){return Boolean(function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}(e,(function(e){return e===t})))},U=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},W=function(e){return e?e.getAttribute("data-treeindex"):""},Z=function(e){return(e||{}).index},$=function(e,t){return!N(e)&&!N(t)||N(e)&&N(t)&&e.item.dataItem===t.item.dataItem},q=function(e){return N(e)?e.item.dataItem:e},X=function(e){return e&&Array.isArray(e)&&0!==e.length},Y=function(e,t,n,i,o){var r=n.operator,a=n.ignoreCase,s=n.mode;void 0===o&&(o=0);var c="string"==typeof i?i:i[o];e.forEach((function(e){var n=("string"==typeof r?te(c,r,a):r)(e.dataItem,t);e.isMatch=n,e.visible=n,e.containsMatches=!1,n&&J(e.parent),e.children&&e.children.length>0&&("strict"!==s&&n?Q(e.children):Y(e.children,t,{operator:r,ignoreCase:a,mode:s},i,o+1))}))},J=function(e){N(e)&&(e.containsMatches=!0,e.visible=!0,N(e.parent)&&!e.parent.containsMatches&&J(e.parent))},Q=function(e){e.forEach((function(e){e.visible=!0,e.children&&Q(e.children)}))},ee={contains:function(e,t){return e.indexOf(t)>=0},doesnotcontain:function(e,t){return-1===e.indexOf(t)},startswith:function(e,t){return 0===e.lastIndexOf(t,0)},doesnotstartwith:function(e,t){return-1===e.lastIndexOf(t,0)},endswith:function(e,t){return e.indexOf(t,e.length-t.length)>=0},doesnotendwith:function(e,t){return e.indexOf(t,e.length-t.length)<0}},te=function(e,t,n){return function(i,o){return function(e,t){return function(n,i){return t?e(n.toLowerCase(),i.toLowerCase()):e(n,i)}}(ee[t],n)(Object(u.b)(e)(i),o)}},ne=function(e,t){return[e,t].filter((function(e){return N(e)})).join("_")},ie=function(e,t){if(!N(e)||0===e.children.length)return[];var n=e.children;return N(t)&&(n=n.filter(t)),n.forEach((function(e){return n=n.concat(ie(e,t))})),n},oe=function(e,t){if(e.length!==t.length)return!1;var n=new Set(t);return e.every((function(e){return n.has(e)}))},re=function(e){return e||{}},ae=function(e){return re(e).children||[]},se=function(e){if(!Array.isArray(e)||0===e.length)return null;for(var t=e.length-1;t>=0;t-=1){var n=e[t];if(n.visible)return n}return null},ce=function(){function e(){this.ib=new D,this.nodes=[]}return e.prototype.firstVisibleNode=function(){return(this.nodes||[]).find((function(e){return e.visible}))},e.prototype.lastVisibleNode=function(){for(var e=se(this.nodes);N(e)&&ae(e).length>0;){var t=ae(e),n=se(t);if(!N(n))return e;e=n}return e},e.prototype.closestNode=function(e){var t=re(this.findNode(e)).prev||this.firstVisibleNode();return re(t).index===e?this.visibleSibling(t,1):t},e.prototype.firstFocusableNode=function(){return this.nodes.find((function(e){return!e.disabled&&e.visible}))},e.prototype.findNode=function(e){return this.find(e,this.nodes)},e.prototype.findParent=function(e){var t=this.ib.level(e)-1;return this.findNode(this.ib.indexForLevel(e,t))},e.prototype.findVisibleChild=function(e){var t=this.findNode(e);return ae(t).find((function(e){return e.visible}))},e.prototype.findVisiblePrev=function(e){var t=e.index,n=this.findParent(t),i=this.ib.lastLevelIndex(t),o=this.container(n).slice(0,i).every((function(e){return!e.visible}));if(0===i||o)return n;var r=this.findNode(t),a=this.visibleSibling(r,-1);if(a)for(var s=this.container(a);s.length>0&&s.some((function(e){return e.visible}));)a=se(s),s=this.container(a);return a},e.prototype.findVisibleNext=function(e){var t=this.container(e),n=t.some((function(e){return e.visible}));return 0!==t.length&&n?t.find((function(e){return e.visible})):this.visibleSibling(e,1)},e.prototype.registerItem=function(e,t,n,i,o){void 0===i&&(i=!1),void 0===o&&(o=!0);var r=this.ib.level(t),a=this.findParent(t);if(a||1===r){var s={id:e,children:[],index:t,parent:a,disabled:n,loadMoreButton:i,visible:o};this.insert(s,a)}},e.prototype.unregisterItem=function(e,t){var n=this.find(t,this.nodes);if(n&&n.id===e){var i=this.container(n.parent);i.splice(i.indexOf(n),1)}},e.prototype.childLevel=function(e){var t=e.filter((function(e){return N(e)}));return t&&t.length?this.ib.level(t[0].index):1},e.prototype.container=function(e){return e?e.children:this.nodes},e.prototype.find=function(e,t){var n=this.childLevel(t),i=this.ib.indexForLevel(e,n),o=n===this.ib.level(e),r=t.find((function(e){return e&&e.index===i}));return r?o?r:this.find(e,r.children):null},e.prototype.insert=function(e,t){this.container(t).splice(this.ib.lastLevelIndex(e.index),0,e)},e.prototype.visibleSibling=function(e,t){if(!e)return null;for(var n=this.findParent(e.index),i=this.container(n),o=i.indexOf(e)+t,r=i[o];N(r);){if(r.visible)return r;r=i[o+=t]}return this.visibleSibling(n,t)},e}(),le=function(){function e(e){var t,n=this;this.localization=e,this.expands=new h.Subject,this.moves=new h.Subject,this.checks=new h.Subject,this.selects=new h.Subject,this.loadMore=new h.Subject,this.navigable=!0,this.actions=((t={})[c.Keys.ArrowUp]=function(){return n.activate(n.model.findVisiblePrev(n.focusableItem))},t[c.Keys.ArrowDown]=function(){return n.activate(n.model.findVisibleNext(n.focusableItem))},t[c.Keys.ArrowLeft]=function(){return!n.isLoadMoreButton&&n.expand({expand:n.localization.rtl,intercept:n.localization.rtl?n.moveToFirstVisibleChild:n.moveToParent})},t[c.Keys.ArrowRight]=function(){return!n.isLoadMoreButton&&n.expand({expand:!n.localization.rtl,intercept:n.localization.rtl?n.moveToParent:n.moveToFirstVisibleChild})},t[c.Keys.Home]=function(){return n.activate(n.model.firstVisibleNode())},t[c.Keys.End]=function(){return n.activate(n.model.lastVisibleNode())},t[c.Keys.Enter]=function(){return n.handleEnter()},t[c.Keys.Space]=function(){return n.handleSpace()},t),this.isFocused=!1,this._model=new ce,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return Z(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&this.activeItem.children.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoadMoreButton",{get:function(){return this.activeItem&&this.activeItem.loadMoreButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstFocusableNode()},enumerable:!0,configurable:!0}),e.prototype.activate=function(e){this.navigable&&e&&!this.isActive(Z(e))&&(this.isFocused=!0,this.activeItem=e||this.activeItem,this.notifyMove())},e.prototype.activateParent=function(e){this.activate(this.model.findParent(e))},e.prototype.activateIndex=function(e){e&&this.activate(this.model.findNode(e))},e.prototype.activateClosest=function(e){e&&Z(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},e.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())},e.prototype.deactivate=function(){this.navigable&&this.isFocused&&(this.isFocused=!1,this.notifyMove())},e.prototype.checkIndex=function(e){this.isDisabled(e)||this.checks.next(e)},e.prototype.selectIndex=function(e){this.isDisabled(e)||this.selects.next(e)},e.prototype.notifyLoadMore=function(e){N(e)&&this.loadMore.next(e)},e.prototype.isActive=function(e){return!!e&&(this.isFocused&&this.activeIndex===e)},e.prototype.isFocusable=function(e){return Z(this.focusableItem)===e},e.prototype.isDisabled=function(e){return this.model.findNode(e).disabled},e.prototype.registerItem=function(e,t,n,i,o){void 0===i&&(i=!1),void 0===o&&(o=!0);var r=this.model.findNode(t);N(r)&&(this.model.unregisterItem(r.id,r.index),this.isActive(t)&&this.deactivate()),this.model.registerItem(e,t,n,i,o)},e.prototype.unregisterItem=function(e,t){this.isActive(t)&&this.activateParent(t),this.model.unregisterItem(e,t)},e.prototype.move=function(e){if(this.navigable){var t=this.actions[e.keyCode];t&&(t(),e.preventDefault())}},e.prototype.expand=function(e){var t=e.expand,n=e.intercept,i=Z(this.activeItem);i&&!n(i)&&this.notifyExpand(t)},e.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(Z(this.activeItem))),!0)},e.prototype.moveToFirstVisibleChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(Z(this.activeItem))),!0)},e.prototype.notifyExpand=function(e){this.expands.next(this.navigationState(e))},e.prototype.notifyMove=function(){this.moves.next(this.navigationState())},e.prototype.navigationState=function(e){return void 0===e&&(e=!1),{expand:e,index:this.activeIndex,isFocused:this.isFocused}},e.prototype.handleEnter=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))},e.prototype.handleSpace=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))},e=Object(a.__decorate)([Object(s.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.LocalizationService])],e)}(),de=function(){function e(){this.changes=new h.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=Object(a.__decorate)([Object(s.Injectable)()],e)}(),ue=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewNodeTemplate]"}),Object(a.__param)(0,Object(s.Optional)()),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),pe=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewLoadMoreButtonTemplate]"}),Object(a.__param)(0,Object(s.Optional)()),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),he=function(){function e(){}return e=Object(a.__decorate)([Object(s.Injectable)()],e)}(),fe=function(){function e(){}return e=Object(a.__decorate)([Object(s.Injectable)()],e)}(),be=function(){function e(){this.changes=new h.Subject}return e.prototype.isFirstSelected=function(e){return this.firstIndex===e},e.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},e.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},e=Object(a.__decorate)([Object(s.Injectable)()],e)}(),me=/\d+$/,ge=function(){function e(){this.map=new Map}return e.prototype.reset=function(){this.map.clear()},e.prototype.registerItem=function(e,t){var n={children:[],item:e,parent:this.item(Z(t))};this.map.set(e.index,n)},e.prototype.registerChildren=function(e,t){var n=this.item(e);n&&(n.children=t)},e.prototype.unregisterItem=function(e,t){var n=this.item(e);n&&n.item.dataItem===t&&(this.map.delete(e),n.parent&&n.parent.children&&(n.parent.children=n.parent.children.filter((function(e){return e.dataItem!==t}))))},e.prototype.replaceItem=function(e,t,n){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,n),this.addToParent(t,n))},e.prototype.itemLookup=function(e){var t=this.item(e);return t?{children:this.mapChildren(t.children),item:t.item,parent:t.parent}:null},e.prototype.hasItem=function(e){return this.map.has(e)},e.prototype.item=function(e){return this.map.get(e)||null},e.prototype.addToParent=function(e,t){if(t){var n=this.item(t.index),i=parseInt(me.exec(e.index)[0],10);n.children=n.children||[],n.children.splice(i,0,e)}},e.prototype.mapChildren=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){var n=t.item(e.index),i=n.item,o=n.parent,r=n.children;return{children:t.mapChildren(r),item:i,parent:o}}))},e=Object(a.__decorate)([Object(s.Injectable)()],e)}(),ve=[E,D,ge,T,de,le,be,O,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.treeview"},{provide:he,useExisting:Object(s.forwardRef)((function(){return ye}))},{provide:fe,useExisting:Object(s.forwardRef)((function(){return ye}))}],ye=function(){function e(e,t,n,i,o,r,a,c,l,u,p){var f=this;this.element=e,this.changeDetectorRef=t,this.expandService=n,this.navigationService=i,this.nodeChildrenService=o,this.selectionService=r,this.treeViewLookupService=a,this.ngZone=c,this.renderer=l,this.dataChangeNotification=u,this.localization=p,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return f.data},this.childrenLoaded=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.expand=new s.EventEmitter,this.collapse=new s.EventEmitter,this.nodeDragStart=new s.EventEmitter,this.nodeDrag=new s.EventEmitter,this.filterStateChange=new s.EventEmitter,this.nodeDrop=new s.EventEmitter,this.nodeDragEnd=new s.EventEmitter,this.addItem=new s.EventEmitter,this.removeItem=new s.EventEmitter,this.checkedChange=new s.EventEmitter,this.selectionChange=new s.EventEmitter,this.filterChange=new s.EventEmitter,this.nodeClick=new s.EventEmitter,this.nodeDblClick=new s.EventEmitter,this.trackBy=I,this.isDisabled=S,this.isVisible=k,this.navigable=!0,this.children=function(){return Object(h.of)([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new h.BehaviorSubject([]),this._animate=!0,this.subscriptions=new h.Subscription,this.domSubscriptions=[],Object(d.validatePackage)(_)}return Object.defineProperty(e.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return!this._animate},set:function(e){this._animate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeTemplateRef",{set:function(e){this.nodeTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonTemplateRef",{set:function(e){this.loadMoreButtonTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||j},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this._isChecked||C},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||x},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||w},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable),Object(c.anyChanged)(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach((function(e){return e()}))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe((function(t){return e.childrenLoaded.emit(t)}))),this.subscriptions.add(this.expandService.changes.subscribe((function(t){var n=t.index,i=t.dataItem;return t.expand?e.expand.emit({index:n,dataItem:i}):e.collapse.emit({index:n,dataItem:i})}))),this.subscriptions.add(this.navigationService.checks.subscribe((function(t){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(t))}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(t){Object(c.hasObservers)(e.selectionChange)&&e.ngZone.run((function(){e.selectionChange.emit(t)}))}))),this.element&&this.ngZone.runOutsideAngular((function(){e.attachDomHandlers()}))},e.prototype.blur=function(){if(Object(c.isDocumentAvailable)()){var e=U(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){var t=e||Z(this.navigationService.focusableItem);this.navigationService.activateIndex(t);var n=U(this.element);n&&n.focus()},e.prototype.itemLookup=function(e){return this.treeViewLookupService.itemLookup(e)},e.prototype.rebindChildren=function(){this.dataChangeNotification.notify()},e.prototype.expandNode=function(e,t){this.expandService.expand(t,e)},e.prototype.collapseNode=function(e,t){this.expandService.collapse(t,e)},e.prototype.getNodePageSize=function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)},e.prototype.setNodePageSize=function(e,t){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,t)},e.prototype.preloadChildNodes=function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)},e.prototype.attachDomHandlers=function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))},e.prototype.focusHandler=function(e){var t,n=this;F(e.target,".k-treeview-item")?t=e.target:L(e.target)||(t=z(e.target)),t&&(this.navigationService.activateIndex(W(e.target)),!this.isActive&&Object(c.hasObservers)(this.onFocus)&&this.ngZone.run((function(){n.onFocus.emit()})),this.isActive=!0)},e.prototype.blurHandler=function(e){var t=this;!this.isActive||!F(e.target,".k-treeview-item")||e.relatedTarget&&F(e.relatedTarget,".k-treeview-item")&&G(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,Object(c.hasObservers)(this.onBlur)&&this.ngZone.run((function(){t.onBlur.emit()})))},e.prototype.clickHandler=function(e){var t=this,n=e.target;if(("contextmenu"!==e.type||Object(c.hasObservers)(this.nodeClick))&&("click"!==e.type||Object(c.hasObservers)(this.nodeClick)||Object(c.hasObservers)(this.selectionChange)||K(n))&&("dblclick"!==e.type||Object(c.hasObservers)(this.nodeDblClick))&&!L(n)&&(H(n)||K(n))&&G(n,this.element.nativeElement)){var i=W(z(n));i&&!this.navigationService.isDisabled(i)&&this.ngZone.run((function(){var n=t.treeViewLookupService.itemLookup(i);if("click"===e.type){if(t.navigationService.model.findNode(i).loadMoreButton)return void t.navigationService.notifyLoadMore(i);t.navigationService.selectIndex(i)}("dblclick"===e.type?t.nodeDblClick:t.nodeClick).emit({item:n.item,originalEvent:e,type:e.type})}))}},e.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run((function(){t.navigationService.move(e)}))},e.prototype.verifyLoadMoreService=function(){if(Object(s.isDevMode)()&&!N(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")},e.prototype.registerLookupItems=function(e,t){var n=this;if(void 0===t&&(t=null),N(e)&&0!==e.length){var i=Z(t),o=e.map((function(e,t){return function(e,t,n){return N(e)?{dataItem:e,index:ne(n,t)}:null}(e,t,i)}));N(t)&&this.treeViewLookupService.registerChildren(i,o),o.forEach((function(e){n.treeViewLookupService.registerItem(e,t),n.hasChildren(e.dataItem)&&n.children(e.dataItem).subscribe((function(t){return n.registerLookupItems(t,e)}))}))}},Object(a.__decorate)([Object(s.HostBinding)("class.k-widget"),Object(s.HostBinding)("class.k-treeview"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"classNames",void 0),Object(a.__decorate)([Object(s.HostBinding)("attr.role"),Object(a.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(a.__decorate)([Object(s.HostBinding)("attr.dir"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"direction",null),Object(a.__decorate)([Object(s.ViewChild)("assetsContainer",{read:s.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",s.ViewContainerRef)],e.prototype,"assetsContainer",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"filterInputPlaceholder",void 0),Object(a.__decorate)([Object(s.Input)(),Object(s.HostBinding)("@.disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"animate",null),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"childrenLoaded",void 0),Object(a.__decorate)([Object(s.Output)("blur"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(s.Output)("focus"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"expand",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"collapse",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"nodeDragStart",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"nodeDrag",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"filterStateChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"nodeDrop",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"nodeDragEnd",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"addItem",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"removeItem",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"checkedChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"selectionChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"filterChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"nodeClick",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"nodeDblClick",void 0),Object(a.__decorate)([Object(s.ContentChild)(ue,{static:!0}),Object(a.__metadata)("design:type",ue)],e.prototype,"nodeTemplate",void 0),Object(a.__decorate)([Object(s.Input)("nodeTemplate"),Object(a.__metadata)("design:type",ue),Object(a.__metadata)("design:paramtypes",[ue])],e.prototype,"nodeTemplateRef",null),Object(a.__decorate)([Object(s.ContentChild)(pe,{static:!0}),Object(a.__metadata)("design:type",pe)],e.prototype,"loadMoreButtonTemplate",void 0),Object(a.__decorate)([Object(s.Input)("loadMoreButtonTemplate"),Object(a.__metadata)("design:type",pe),Object(a.__metadata)("design:paramtypes",[pe])],e.prototype,"loadMoreButtonTemplateRef",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"trackBy",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"nodes",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"hasChildren",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"isChecked",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isDisabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"isExpanded",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"isSelected",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isVisible",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"navigable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"children",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"filter",void 0),e=Object(a.__decorate)([Object(s.Component)({changeDetection:s.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:ve,selector:"kendo-treeview",template:'\n <kendo-textbox\n #filterInput\n *ngIf="filterable"\n [value]="filter"\n [clearButton]="true"\n (valueChange)="filterChange.emit($event)"\n [placeholder]="filterInputPlaceholder"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class="k-icon k-i-search"></span>\n </ng-template>\n </kendo-textbox>\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplate?.templateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplate?.templateRef"\n [textField]="textField"\n [nodes]="fetchNodes"\n [loadMoreService]="loadMoreService"\n [trackBy]="trackBy"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n '}),Object(a.__metadata)("design:paramtypes",[s.ElementRef,s.ChangeDetectorRef,E,le,de,be,ge,s.NgZone,s.Renderer2,O,p.LocalizationService])],e)}(),_e=function(){function e(e,t,n,i,o,r,a,s){this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=o,this.nodeChildrenService=r,this.dataChangeNotification=a,this.changeDetectorRef=s,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new h.Subscription,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return Object(h.of)([])},this.hasChildren=function(){return!1}}return Object.defineProperty(e.prototype,"moreNodesAvailable",{get:function(){return!(!N(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return N(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null},set:function(e){this.loadMoreService.setGroupSize(this.parentDataItem,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){if(N(this.pageSize)){var e=this.pageSize>0?this.pageSize:0;return this._data.slice(0,e)}return this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonIndex",{get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalNodesCount",{get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTemplate",{get:function(){return N(this.nodeTemplateRef)},enumerable:!0,configurable:!0}),e.prototype.expandNode=function(e,t,n){n?this.expandService.expand(e,t):this.expandService.collapse(e,t)},e.prototype.checkNode=function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)},e.prototype.nodeIndex=function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)},e.prototype.nodeText=function(e){var t=R(this.textField)?this.textField[0]:this.textField;return Object(u.b)(t)(e)},e.prototype.ngOnDestroy=function(){N(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),N(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(Object(b.filter)((function(t){return t===e.loadMoreButtonIndex}))).subscribe(this.loadMoreNodes.bind(this)))},e.prototype.ngOnChanges=function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))},e.prototype.fetchChildren=function(e,t){var n=this;return this.children(e).pipe(Object(b.catchError)((function(){return n.loadingService.notifyLoaded(t),h.EMPTY})),Object(b.tap)((function(){return n.loadingService.notifyLoaded(t)})))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return R(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.loadMoreNodes=function(){N(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()},e.prototype.loadMoreLocalNodes=function(){var e=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(e)},e.prototype.fetchMoreNodes=function(){var e=this;this.loadingMoreNodes||(this.loadingMoreNodes=!0,N(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe(Object(b.finalize)((function(){return e.loadingMoreNodes=!1}))).subscribe((function(t){if(Array.isArray(t)&&t.length>0){var n=e.loadMoreButtonIndex;e.pageSize+=t.length,e.data=e.data.concat(t),e.navigationService.isActive(n)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(n))}})))},e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var t=this;return this.parentIndex?e.map((function(e,n){return{dataItem:e,index:t.nodeIndex(n)}})):[]},e.prototype.emitChildrenLoaded=function(e){if(this.parentIndex){var t=e.filter((function(e){return e.dataItem}));this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},t)}},e.prototype.subscribeToNodesChange=function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe((function(t){e.data=t,e.initialNodesLoaded=!0}))},e.prototype.reselectItemAt=function(e){N(e)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(e))},e.prototype.registerLoadedNodes=function(e){void 0===e&&(e=[]);var t=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(t),this.emitChildrenLoaded(t)},Object(a.__decorate)([Object(s.HostBinding)("class.k-group"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"kGroupClass",void 0),Object(a.__decorate)([Object(s.HostBinding)("attr.role"),Object(a.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"checkboxes",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"expandIcons",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"selectable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"touchActions",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"trackBy",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"nodes",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"parentDataItem",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"parentIndex",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",s.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",s.TemplateRef)],e.prototype,"loadMoreButtonTemplateRef",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"loadMoreService",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isChecked",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isDisabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isExpanded",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isVisible",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isSelected",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"children",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"hasChildren",void 0),e=Object(a.__decorate)([Object(s.Component)({animations:[Object(m.trigger)("toggle",[Object(m.transition)("void => *",[Object(m.style)({height:0}),Object(m.animate)("0.1s ease-in",Object(m.style)({height:"*"}))]),Object(m.transition)("* => void",[Object(m.style)({height:"*"}),Object(m.animate)("0.1s ease-in",Object(m.style)({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index; trackBy: trackBy"\n class="k-item k-treeview-item"\n [class.k-display-none]="!isVisible(node, nodeIndex(index))"\n kendoTreeViewItem\n [attr.aria-setsize]="totalNodesCount"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [loadOnDemand]="loadOnDemand"\n [checkable]="checkboxes"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isVisible]="isVisible(node, nodeIndex(index))"\n [expandable]="expandIcons && hasChildren(node)"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\n [selectable]="selectable"\n [isSelected]="isSelected(node, nodeIndex(index))"\n [attr.data-treeindex]="nodeIndex(index)"\n >\n <div class="k-mid">\n <span\n class="k-icon"\n [class.k-i-collapse]="isExpanded(node, nodeIndex(index))"\n [class.k-i-expand]="!isExpanded(node, nodeIndex(index))"\n [kendoTreeViewLoading]="nodeIndex(index)"\n (click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"\n *ngIf="expandIcons && hasChildren(node)"\n >\n </span>\n <kendo-checkbox\n *ngIf="checkboxes"\n [node]="node"\n [index]="nodeIndex(index)"\n [isChecked]="isChecked"\n (checkStateChange)="checkNode(nodeIndex(index))"\n tabindex="-1"\n ></kendo-checkbox>\n <span kendoTreeViewItemContent\n [attr.data-treeindex]="nodeIndex(index)"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [initialSelection]="isSelected(node, nodeIndex(index))"\n [isSelected]="isSelected"\n class="k-in"\n [style.touch-action]="touchActions ? \'\' : \'none\'"\n >\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: node,\n index: nodeIndex(index)\n }"\n >\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{nodeText(node)}}\n </ng-container>\n </ng-container>\n </span>\n </div>\n <ul\n *ngIf="isExpanded(node, nodeIndex(index)) && hasChildren(node)"\n kendoTreeViewGroup\n role="group"\n [nodes]="fetchChildren"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [disabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [loadMoreService]="loadMoreService"\n [@toggle]="true"\n [trackBy]="trackBy"\n >\n </ul>\n </li>\n <li\n *ngIf="initialNodesLoaded && moreNodesAvailable"\n class="k-item k-treeview-item"\n [class.k-treeview-load-more-checkboxes-container]="checkboxes"\n kendoTreeViewItem\n role="button"\n [selectable]="false"\n [checkable]="false"\n [expandable]="false"\n [index]="loadMoreButtonIndex"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [attr.data-treeindex]="loadMoreButtonIndex"\n >\n <div class="k-mid">\n <span\n *ngIf="loadingMoreNodes"\n class="k-icon k-i-loading k-i-expand"\n >\n </span>\n <span\n class="k-in k-treeview-load-more-button"\n [attr.data-treeindex]="loadMoreButtonIndex"\n kendoTreeViewItemContent\n [index]="loadMoreButtonIndex"\n >\n <ng-template\n *ngIf="loadMoreButtonTemplateRef"\n [ngTemplateOutlet]="loadMoreButtonTemplateRef"\n [ngTemplateOutletContext]="{\n index: loadMoreButtonIndex\n }"\n >\n </ng-template>\n <ng-container *ngIf="!loadMoreButtonTemplateRef">\n Load more\n </ng-container>\n </span>\n </div>\n </li>\n '}),Object(a.__metadata)("design:paramtypes",[E,T,D,ge,le,de,O,s.ChangeDetectorRef])],e)}(),Oe=function(){function e(e,t){var n=this;this.treeView=e,this.zone=t,this.checkedKeysChange=new s.EventEmitter,this.subscriptions=new h.Subscription,this.checkActions={multiple:function(e){return n.checkMultiple(e)},single:function(e){return n.checkSingle(e)}},this._checkedKeys=[],this.subscriptions.add(this.treeView.checkedChange.subscribe((function(e){return n.check(e)})));var i=[];this.subscriptions.add(this.treeView.childrenLoaded.pipe(Object(b.filter)((function(){return n.options.checkChildren&&n.treeView.loadOnDemand})),Object(b.tap)((function(e){return i.push(e)})),Object(b.switchMap)((function(){return n.zone.onStable.pipe(Object(b.take)(1))}))).subscribe((function(){return n.addCheckedItemsChildren(i)}))),this.treeView.isChecked=this.isItemChecked.bind(this)}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.treeView.isChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkedKeys",{get:function(){return this._checkedKeys},set:function(e){this._checkedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};if(!N(this.checkable)||"string"==typeof this.checkable)return e;var t=V(this.checkable)?{enabled:this.checkable}:this.checkable;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},e.prototype.isItemChecked=function(e,t){return this.checkKey?this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))>-1?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var t=this.checkedKeys.filter(function(e){return function(t){return e===t||!!t.split&&t.split("_").reduce((function(t,n){var i=t.key,o=t.result;return e===(i+=n)||o?{result:!0}:{key:i+="_",result:!1}}),{key:"",result:!1}).result}}(e));if(function(e,t){return e.filter((function(e){return e===t})).length>0}(t,e))return"checked";var n=this.options,i=n.mode,o=n.checkParents;return"multiple"===i&&o&&t.length?"indeterminate":"none"},e.prototype.itemKey=function(e){return N(this.checkKey)?"string"==typeof this.checkKey&&N(e.dataItem)?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},e.prototype.check=function(e){var t=this.options,n=t.enabled,i=t.mode,o=this.checkActions[i]||A;n&&o(e)},e.prototype.checkSingle=function(e){var t=this.itemKey(e.item);this.checkedKeys=this.checkedKeys[0]!==t?[t]:[],this.notify()},e.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},e.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe((function(t){if("click"===t.type){var n=e.treeView.itemLookup(t.item.index);e.check(n)}})))},e.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},e.prototype.checkNode=function(e){var t=this;if(N(e.item.dataItem)&&!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var n=this.itemKey(e.item);if(N(n)){var i=new Set(this.checkedKeys),o=[n];if(this.options.checkChildren){var r=ie(e,(function(e){var n=e.item;return t.treeView.isVisible(n.dataItem,n.index)&&!t.treeView.isDisabled(n.dataItem,n.index)})).map((function(e){var n=e.item;return t.itemKey(n)}));o.push.apply(o,r)}var a=!i.has(n);o.forEach((function(e){a?i.add(e):i.delete(e)})),this.checkedKeys=Array.from(i)}}},e.prototype.checkParents=function(e){var t=this;if(N(e)){for(var n=new Set(this.checkedKeys),i=e;i;){var o=this.itemKey(i.item);i.children.every((function(e){return n.has(t.itemKey(e))}))?n.add(o):n.delete(o),i=i.parent}this.checkedKeys=Array.from(n)}},e.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},e.prototype.addCheckedItemsChildren=function(e){var t=this;if(N(e)&&0!==e.length){var n=this.checkedKeys.length,i=new Set(this.checkedKeys);e.forEach((function(e){var n=t.itemKey(e.item);i.has(n)&&e.children.forEach((function(n){t.treeView.isDisabled(e.item.dataItem,e.item.index)||t.treeView.isDisabled(n.dataItem,n.index)||i.add(t.itemKey(n))}))})),n!==i.size&&(this.checkedKeys=Array.from(i),this.zone.run((function(){return t.notify()})))}},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"isChecked",null),Object(a.__decorate)([Object(s.Input)("checkBy"),Object(a.__metadata)("design:type",Object)],e.prototype,"checkKey",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"checkedKeys",null),Object(a.__decorate)([Object(s.Input)("kendoTreeViewCheckable"),Object(a.__metadata)("design:type",Object)],e.prototype,"checkable",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewCheckable]"}),Object(a.__metadata)("design:paramtypes",[ye,s.NgZone])],e)}(),je=function(){function e(e,t){var n=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))>-1}}return Object.defineProperty(e.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){void 0===e&&(e={});var t=e.disabledKeys;t&&!t.firstChange&&this.cdr.markForCheck()},e.prototype.itemKey=function(e){return this.disableKey?"string"==typeof this.disableKey?e.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(e):void 0:e.index},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"isDisabled",null),Object(a.__decorate)([Object(s.Input)("kendoTreeViewDisable"),Object(a.__metadata)("design:type",Object)],e.prototype,"disableKey",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"disabledKeys",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewDisable]"}),Object(a.__metadata)("design:paramtypes",[ye,s.ChangeDetectorRef])],e)}(),Ce={maxAutoExpandResults:-1,expandMatches:!1,expandedOnClear:"none"},Se=function(){function e(e){var t=this;this.component=e,this.expandOnFilter=!1,this.expandedKeysChange=new s.EventEmitter,this.subscriptions=new h.Subscription,this._expandedKeys=[],this.originalExpandedKeys=[],this.isFiltered=!1,this.updateExpandedNodes=function(e,n,i){(n.containsMatches||n.isMatch&&i&&X(n.children))&&e.push(t.itemKey({dataItem:n.dataItem,index:n.index})),X(n.children)&&n.children.forEach((function(n){t.updateExpandedNodes(e,n,i)}))},this.getEveryExpandKey=function(e,n){X(n.children)&&e.push(t.itemKey({dataItem:n.dataItem,index:n.index})),X(n.children)&&n.children.forEach((function(n){t.getEveryExpandKey(e,n)}))},this.subscriptions.add(Object(h.merge)(this.component.expand.pipe(Object(b.map)((function(e){return Object(a.__assign)({expand:!0},e)}))),this.component.collapse.pipe(Object(b.map)((function(e){return Object(a.__assign)({expand:!1},e)})))).subscribe(this.toggleExpand.bind(this))),this.component.filterStateChange&&this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this))),this.component.isExpanded=function(e,n){return t.expandedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}return Object.defineProperty(e.prototype,"isExpanded",{set:function(e){this.component.isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterExpandSettings",{get:function(){var e=V(this.expandOnFilter)?{enabled:this.expandOnFilter}:Object(a.__assign)({},this.expandOnFilter,{enabled:!0});return Object.assign({},Ce,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandedKeys",{get:function(){return this._expandedKeys},set:function(e){this._expandedKeys=Array.from(new Set(e))},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){if(this.expandKey){if("string"==typeof this.expandKey)return e.dataItem[this.expandKey];if("function"==typeof this.expandKey)return this.expandKey(e)}return e.index},e.prototype.toggleExpand=function(e){var t=e.index,n=e.dataItem,i=e.expand,o=this.itemKey({index:t,dataItem:n}),r=this.expandedKeys.indexOf(o),a=!1;r>-1&&!i?(this.expandedKeys.splice(r,1),a=!0):-1===r&&i&&(this.expandedKeys.push(o),a=!0),a&&this.expandedKeysChange.emit(this.expandedKeys)},e.prototype.handleAutoExpand=function(e){var t=this,n=e.nodes,i=e.matchCount,o=e.term;if(this.filterExpandSettings.enabled){var r=this.filterExpandSettings,a=r.maxAutoExpandResults,s=r.expandMatches,c=r.expandedOnClear;if(this.isFiltered||(this.originalExpandedKeys=this.expandedKeys.slice()),this.isFiltered&&!o||-1!==a&&i>a){switch(c){case"initial":oe(this.expandedKeys,this.originalExpandedKeys)||(this.expandedKeys=this.originalExpandedKeys,this.expandedKeysChange.emit(this.expandedKeys));break;case"all":this.expandedKeys=n.reduce((function(e,n){return t.getEveryExpandKey(e,n),e}),[]),this.expandedKeysChange.emit(this.expandedKeys);break;case"unchanged":break;case"none":default:0!==this.expandedKeys.length&&(this.expandedKeys=[],this.expandedKeysChange.emit(this.expandedKeys))}this.isFiltered=!1}else{var l=n.reduce((function(e,n){return t.updateExpandedNodes(e,n,s),e}),[]);oe(this.expandedKeys,l)||(this.expandedKeys=l,this.expandedKeysChange.emit(this.expandedKeys)),this.isFiltered=!0}}},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"isExpanded",null),Object(a.__decorate)([Object(s.Input)("expandBy"),Object(a.__metadata)("design:type",Object)],e.prototype,"expandKey",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"expandOnFilter",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"expandedKeysChange",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"expandedKeys",null),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewExpandable]"}),Object(a.__metadata)("design:paramtypes",[fe])],e)}(),xe=function(){function e(e){var t=this;this.treeView=e,this.selectedKeysChange=new s.EventEmitter,this.subscriptions=new h.Subscription,this.selectActions={multiple:function(e){return t.selectMultiple(e)},single:function(e){return t.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,n){return t.selectedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}return Object.defineProperty(e.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{get:function(){return this._selectedKeys},set:function(e){this._selectedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={enabled:!0,mode:"single"};if(!N(this.selection)||"string"==typeof this.selection)return e;var t=V(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){return this.selectKey?"string"==typeof this.selectKey?e.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(e):void 0:e.index},e.prototype.select=function(e){var t=this.options,n=t.enabled,i=t.mode,o=this.selectActions[i]||A;n&&o(e)},e.prototype.selectSingle=function(e){var t=this.itemKey(e);this.selectedKeys[0]!==t&&(this.selectedKeys=[t],this.notify())},e.prototype.selectMultiple=function(e){var t=this.itemKey(e),n=this.selectedKeys.indexOf(t),i=n>-1;N(t)&&(i?this.selectedKeys.splice(n,1):this.selectedKeys.push(t),this.notify())},e.prototype.notify=function(){this.selectedKeysChange.emit(this.selectedKeys.slice())},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"isSelected",null),Object(a.__decorate)([Object(s.Input)("selectBy"),Object(a.__metadata)("design:type",Object)],e.prototype,"selectKey",void 0),Object(a.__decorate)([Object(s.Input)("kendoTreeViewSelectable"),Object(a.__metadata)("design:type",Object)],e.prototype,"selection",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"selectedKeysChange",void 0),Object(a.__decorate)([Object(s.HostBinding)("attr.aria-multiselectable"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewSelectable]"}),Object(a.__metadata)("design:paramtypes",[ye])],e)}();!function(e){e[e.Add=0]="Add",e[e.InsertTop=1]="InsertTop",e[e.InsertBottom=2]="InsertBottom",e[e.InsertMiddle=3]="InsertMiddle",e[e.Invalid=4]="Invalid"}(i||(i={})),function(e){e[e.Over=0]="Over",e[e.Before=1]="Before",e[e.After=2]="After"}(o||(o={})),function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"}(r||(r={}));var we,ke,Ie,Ee=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),De=function(e){function t(t,n){var i=e.call(this)||this;return i.isValid=!0,Object.assign(i,t),i.originalEvent=n,i}return Object(a.__extends)(t,e),t.prototype.setValid=function(e){this.isValid=e},t}(Ee),Te=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return Object(a.__extends)(t,e),t}(Ee),Pe=(we=function(){if(!Object(c.isDocumentAvailable)()||!N(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},Ie=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ie||(ke=we.apply(void 0,e),Ie=!0),ke});var Fe,Me=function(e,t,n,i,r){if(N(e)&&N(t)&&N(i)&&N(r)){var a=M(t,".k-mid");if(N(a)){var s=function(e){if(!N(e))return null;var t=".k-in:not(.k-treeview-load-more-button)";return F(e,t)?e:e.querySelector(t)}(a),c=G(a,z(e));if(N(s)&&s!==e&&!c){var l=s.getBoundingClientRect(),d=l.height/(H(t)?4:2),u=n-r.top,p=l.top-r.top;return u<p+d?o.Before:u>=p+l.height-d?o.After:o.Over}}}},Ae=function(e,t){if(!N(e)||!N(t))return null;var n=z(t),i=W(n),o=e.itemLookup(i);return N(o)&&N(o.item.dataItem)?o:null},Ne=function(e,t,n){N(e)&&0===t.length&&n.isExpanded(e.item.dataItem,e.item.index)&&n.collapseNode(e.item.dataItem,e.item.index)},Be=function(e,t){t.isExpanded(e.item.dataItem,e.item.index)||t.expandNode(e.item.dataItem,e.item.index)},Re=function(e){return Object(c.isDocumentAvailable)()&&N(document.elementFromPoint)?document.elementFromPoint(e.clientX,e.clientY):e.target},Ve=function(e,t){var n=e.split("_"),i=t.split("_");if(n.length<i.length)return e;var o=i.length-1,r=i.slice(0,o).join("_"),a=n.slice(0,o).join("_"),s=i.length-1,c=Number(i[s]),l=Number(n[s]);return r===a&&l>c?(n[s]=String(l-1),n.join("_")):e},ze=new RegExp("(auto|scroll)"),Le=function(e){return Math.floor(e.scrollTop)<=0},He=function(e){return Math.ceil(e.scrollTop)>=e.scrollHeight-e.clientHeight},Ke=function(e,t,n){if(N(e)&&Object(c.isDocumentAvailable)())for(var i=e.scrollTop,o=t,a=0;i===e.scrollTop&&(n!==r.Up||!Le(e))&&(n!==r.Down||!He(e))&&a<20;)e.scrollTop+=o*n,o+=1,a+=1},Ge=function(e,t,n){if(N(e.loadMoreService)){var i=e.getNodePageSize(t);e.setNodePageSize(n,i)}},Ue=function(e,t){if(N(e.loadMoreService)){var n=e.getNodePageSize(t);e.setNodePageSize(t,n+1)}},We=function(e,t){if(N(e.loadMoreService)){var n=e.getNodePageSize(t);e.setNodePageSize(t,n-1)}},Ze=function(){function e(e){this.hierarchyBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,n=e.destinationItem,i=e.dropPosition,r=e.sourceTree,a=e.destinationTree,s=Object.assign({},q(t));if(i===o.Over){Be(n,a);var c=this.childrenFor(q(n)),l=N(a.loadMoreService)?Math.min(a.loadMoreService.getGroupSize(q(n)),c.length):c.length;c.splice(l,0,s),Object(u.e)(this.hierarchyBinding.childrenField)(q(n),c),this.movedItemNewIndex=ne(n.item.index,l)}else{var d=this.getParentNodes(n,a),p=i===o.After?1:0;l=d.indexOf(q(n))+p;d.splice(l,0,s);var h=n.parent?n.parent.item.index:null;this.movedItemNewIndex=ne(h,l)}var f=i===o.Over?q(n):q(n.parent);Ue(a,f),Ge(a,q(t),s),r===a||a.loadOnDemand||a.preloadChildNodes(),r!==a&&(a.changeDetectorRef.detectChanges(),a.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,o=this.getParentNodes(t,n),r=o.indexOf(q(t));if(o.splice(r,1),Ne(t.parent,o,n),We(n,q(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i){i.changeDetectorRef.detectChanges();var a=Ve(this.movedItemNewIndex,t.item.index);i.focus(a)}},e.prototype.getParentNodes=function(e,t){return N(e.parent)?this.childrenFor(q(e.parent)):t.nodes},e.prototype.childrenFor=function(e){return Object(u.b)(this.hierarchyBinding.childrenField)(e)||[]},e}(),$e=function(){function e(e){this.cdr=e,this.hostClasses=!0,this.posistionStyle="fixed"}return Object.defineProperty(e.prototype,"statusIconClass",{get:function(){switch(this.action){case i.Add:return"k-i-plus";case i.InsertTop:return"k-i-insert-up";case i.InsertBottom:return"k-i-insert-down";case i.InsertMiddle:return"k-i-insert-middle";case i.Invalid:default:return"k-i-cancel"}},enumerable:!0,configurable:!0}),e.prototype.detectChanges=function(){this.cdr.detectChanges()},Object(a.__decorate)([Object(s.HostBinding)("class.k-header"),Object(s.HostBinding)("class.k-drag-clue"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(a.__decorate)([Object(s.HostBinding)("style.position"),Object(a.__metadata)("design:type",String)],e.prototype,"posistionStyle",void 0),e=Object(a.__decorate)([Object(s.Component)({changeDetection:s.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drag-clue",template:'\n <ng-container *ngIf="!template">\n <span class="k-icon {{statusIconClass}} k-drag-status"></span>\n <span>{{text}}</span>\n </ng-container>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n text: text,\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n </ng-template>\n '}),Object(a.__metadata)("design:paramtypes",[s.ChangeDetectorRef])],e)}(),qe=function(){function e(){}return Object.defineProperty(e.prototype,"componentRef",{get:function(){if(!N(this._componentRef))throw new Error("The `initalize` method must be called before calling other service methods.");return this._componentRef},set:function(e){this._componentRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){N(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)},e.prototype.show=function(){this.element.style.display=""},e.prototype.hide=function(){this.element.style.display="none"},e.prototype.move=function(e,t,n){void 0===n&&(n=0),this.element.style.left=e+n+"px",this.element.style.top=t+n+"px"},e}(),Xe=function(e){function t(t){var n=e.call(this)||this;return n.componentFactoryResolver=t,n}return Object(a.__extends)(t,e),t.prototype.initialize=function(e,t){N(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory($e);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},t.prototype.ngOnDestroy=function(){this.cancelReturnAnimation(),this.cancelScroll(),e.prototype.ngOnDestroy.call(this)},t.prototype.move=function(t,n){e.prototype.move.call(this,t,n,10)},t.prototype.animateDragClueToElementPosition=function(e){var t=this;if(N(e)&&N(this.element.animate)){var n=e.getBoundingClientRect(),i=this.element.getBoundingClientRect();this.returnAnimation=this.element.animate([{transform:"translate(0, 0)"},{transform:"translate("+(n.left-i.left)+"px, "+(n.top-i.top)+"px)"}],200),this.returnAnimation.onfinish=function(){return t.hide()}}else this.hide()},t.prototype.cancelReturnAnimation=function(){N(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)},t.prototype.updateDragClueData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&$(t,i.sourceItem)&&$(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},t.prototype.updateText=function(e){e!==this.componentRef.instance.text&&(this.componentRef.instance.text=e,this.componentRef.instance.detectChanges())},t.prototype.scrollIntoView=function(e){var t=e.step,n=e.interval;this.cancelScroll();var i=function(e){for(;N(e)&&"HTML"!==e.nodeName;){var t=e.scrollHeight>e.clientHeight,n=ze.test(getComputedStyle(e).overflowY);if(t&&n)return e;e=e.parentNode}return e}(this.element);if(N(i)){var o=i.getBoundingClientRect(),a=this.element.getBoundingClientRect(),s=Math.max(o.top,0),c=s+a.height,l=s+Math.min(o.bottom,i.clientHeight);a.top<c?this.scrollInterval=setInterval((function(){return Ke(i,t,r.Up)}),n):a.bottom>l&&(this.scrollInterval=setInterval((function(){return Ke(i,t,r.Down)}),n))}},t.prototype.cancelScroll=function(){N(this.scrollInterval)&&(clearInterval(this.scrollInterval),this.scrollInterval=null)},t=Object(a.__decorate)([Object(s.Injectable)(),Object(a.__metadata)("design:paramtypes",[s.ComponentFactoryResolver])],t)}(qe),Ye=function(){function e(e){this.changeDetectorRef=e,this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}return e.prototype.detectChanges=function(){this.changeDetectorRef.detectChanges()},Object(a.__decorate)([Object(s.HostBinding)("class.k-drop-hint-container"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(a.__decorate)([Object(s.HostBinding)("style.position"),Object(a.__metadata)("design:type",String)],e.prototype,"position",void 0),Object(a.__decorate)([Object(s.HostBinding)("style.pointer-events"),Object(a.__metadata)("design:type",String)],e.prototype,"pointerEvents",void 0),e=Object(a.__decorate)([Object(s.Component)({changeDetection:s.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drop-hint",template:'\n <div\n *ngIf="!template"\n class="k-drop-hint k-drop-hint-h"\n >\n <div class=\'k-drop-hint-start\'></div>\n <div class=\'k-drop-hint-line\'></div>\n </div>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n <ng-template>\n '}),Object(a.__metadata)("design:paramtypes",[s.ChangeDetectorRef])],e)}(),Je=function(e){function t(t){var n=e.call(this)||this;return n.componentFactoryResolver=t,n}return Object(a.__extends)(t,e),t.prototype.initialize=function(e,t){N(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(Ye);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},t.prototype.updateDropHintData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&$(t,i.sourceItem)&&$(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},t=Object(a.__decorate)([Object(s.Injectable)(),Object(a.__metadata)("design:paramtypes",[s.ComponentFactoryResolver])],t)}(qe),Qe=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewDragClueTemplate]"}),Object(a.__param)(0,Object(s.Optional)()),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),et=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewDropHintTemplate]"}),Object(a.__param)(0,Object(s.Optional)()),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),tt={enabled:!0,step:1,interval:1},nt=function(){function e(e,t,n,i,o){this.element=e,this.zone=t,this.treeview=n,this.dragClueService=i,this.dropHintService=o,this.allowCopy=!1,this.dropZoneTreeViews=[],this.startDragAfter=5,this.autoScroll=!0,this.userSelectStyle="none",this.containerOffset={top:0,left:0},this.treeview.touchActions=!1}return Object.defineProperty(e.prototype,"scrollSettings",{get:function(){var e="boolean"==typeof this.autoScroll?{enabled:this.autoScroll}:this.autoScroll;return Object.assign({},tt,e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.initalizeDraggable(),this.dragClueService.initialize(this.treeview.assetsContainer,this.dragClueTemplate&&this.dragClueTemplate.templateRef),this.dropHintService.initialize(this.treeview.assetsContainer,this.dropHintTemplate&&this.dropHintTemplate.templateRef)},e.prototype.ngOnDestroy=function(){this.draggable.destroy()},e.prototype.handlePress=function(e){var t=e.originalEvent;H(t.target)&&(this.draggedItem=M(t.target,".k-in"),this.pendingDragStartEvent=t)},e.prototype.handleDrag=function(e){var t=this,n=e.originalEvent,r=e.clientX,a=e.clientY;if(this.shouldInitiateDragStart({clientX:r,clientY:a})&&this.initiateDragStart(),N(this.draggedItem)&&!N(this.pendingDragStartEvent)){var s=Re(n);Object(c.hasObservers)(this.treeview.nodeDrag)&&this.zone.run((function(){return t.notifyDrag(n,s)}));var l=this.getTargetTreeView(s),d=Me(this.draggedItem,s,a,l,this.containerOffset),u=M(s,".k-mid"),p=function(e,t){if(!N(e)||!N(t))return i.Invalid;switch(e){case o.Over:return i.Add;case o.Before:return N(z(t).previousElementSibling)?i.InsertMiddle:i.InsertTop;case o.After:return N(z(t).nextElementSibling)?i.InsertMiddle:i.InsertBottom;default:return i.Invalid}}(d,s),h=Ae(this.treeview,this.draggedItem),f=Ae(l,s);this.updateDropHintState(d,u,p,h,f),this.updateDragClueState(p,r,a,h,f),this.scrollSettings.enabled&&this.dragClueService.scrollIntoView(this.scrollSettings)}},e.prototype.handleRelease=function(e){var t=this,n=e.originalEvent,i=e.clientY;if(this.scrollSettings.enabled&&this.dragClueService.cancelScroll(),!N(this.draggedItem)||N(this.pendingDragStartEvent))return this.pendingDragStartEvent=null,void(this.draggedItem=null);var o=Re(n),r=this.treeview,a=this.getTargetTreeView(o),s=Me(this.draggedItem,o,i,this.getTargetTreeView(o),this.containerOffset),l=Ae(r,this.draggedItem),d=Ae(a,o);N(d)&&N(s)?this.zone.run((function(){return t.notifyDrop({sourceItem:l,destinationItem:d,dropPosition:s,sourceTree:r,destinationTree:a},n)})):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),Object(c.hasObservers)(this.treeview.nodeDragEnd)&&this.zone.run((function(){return t.notifyDragEnd({sourceItem:l,destinationItem:d,originalEvent:n})})),this.dropHintService.hide(),this.draggedItem=null},e.prototype.updateDropHintState=function(e,t,n,i,r){if(N(t)&&e!==o.Over&&N(e)){var a=t.getBoundingClientRect(),s=e===o.Before?a.top:a.top+a.height;this.dropHintService.updateDropHintData(n,i,r),this.dropHintService.move(a.left-this.containerOffset.left,s-this.containerOffset.top),this.dropHintService.show()}else this.dropHintService.hide()},e.prototype.updateDragClueState=function(e,t,n,i,o){this.dragClueService.move(t-this.containerOffset.left,n-this.containerOffset.top),this.dragClueService.updateDragClueData(e,i,o),this.dragClueService.show()},e.prototype.initalizeDraggable=function(){var e=this;this.draggable=new v.a({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))},e.prototype.notifyDragStart=function(e,t){var n=Ae(this.treeview,t),i=new Te({sourceItem:n,originalEvent:e});return this.treeview.nodeDragStart.emit(i),i},e.prototype.notifyDrag=function(e,t){var n={sourceItem:Ae(this.treeview,this.draggedItem),destinationItem:Ae(this.getTargetTreeView(t),t),originalEvent:e};this.treeview.nodeDrag.emit(n)},e.prototype.notifyDrop=function(e,t){var n=new De(e,t);e.destinationTree.nodeDrop.emit(n),this.disableAnimationsForNextTick(e.destinationTree),e.sourceTree!==e.destinationTree&&this.disableAnimationsForNextTick(e.sourceTree),!n.isDefaultPrevented()&&n.isValid?(this.dragClueService.hide(),e.destinationTree.addItem.emit(e),t.ctrlKey&&this.allowCopy||e.sourceTree.removeItem.emit(e)):n.isDefaultPrevented()?this.dragClueService.hide():n.isValid||this.dragClueService.animateDragClueToElementPosition(this.draggedItem)},e.prototype.notifyDragEnd=function(e){this.treeview.nodeDragEnd.emit(e)},e.prototype.getTargetTreeView=function(e){var t=this.treeview.element.nativeElement.tagName,n=M(e,t);return[this.treeview].concat(this.dropZoneTreeViews).find((function(e){return N(e)&&e.element.nativeElement===n}))},e.prototype.disableAnimationsForNextTick=function(e){e.animate||(e.animate=!1,this.zone.runOutsideAngular((function(){return setTimeout((function(){return e.animate=!0}))})))},e.prototype.shouldInitiateDragStart=function(e){return!!N(this.pendingDragStartEvent)&&Math.sqrt(Math.pow(this.pendingDragStartEvent.clientX-e.clientX,2)+Math.pow(this.pendingDragStartEvent.clientY-e.clientY,2))>=this.startDragAfter},e.prototype.initiateDragStart=function(){var e=this;if(Object(c.hasObservers)(this.treeview.nodeDragStart)&&this.zone.run((function(){return e.notifyDragStart(e.pendingDragStartEvent,Re(e.pendingDragStartEvent))})).isDefaultPrevented())return this.pendingDragStartEvent=null,void(this.draggedItem=null);this.dragClueService.cancelReturnAnimation(),this.dragClueService.updateText(this.draggedItem.innerText),this.containerOffset=function(e){if(!e||!Pe())return{left:0,top:0};for(var t=e.parentElement;t&&"none"===window.getComputedStyle(t).transform;)t=t.parentElement;if(t){var n=t.getBoundingClientRect();return{left:n.left-t.scrollLeft,top:n.top-t.scrollTop}}return{left:0,top:0}}(this.draggedItem),this.pendingDragStartEvent=null},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"allowCopy",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"dropZoneTreeViews",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"startDragAfter",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"autoScroll",void 0),Object(a.__decorate)([Object(s.ContentChild)(Qe,{static:!1}),Object(a.__metadata)("design:type",Qe)],e.prototype,"dragClueTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(et,{static:!1}),Object(a.__metadata)("design:type",et)],e.prototype,"dropHintTemplate",void 0),Object(a.__decorate)([Object(s.HostBinding)("style.user-select"),Object(s.HostBinding)("style.-ms-user-select"),Object(s.HostBinding)("style.-moz-user-select"),Object(s.HostBinding)("style.-webkit-user-select"),Object(a.__metadata)("design:type",String)],e.prototype,"userSelectStyle",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewDragAndDrop]",providers:[Xe,Je]}),Object(a.__metadata)("design:paramtypes",[s.ElementRef,s.NgZone,ye,Xe,Je])],e)}(),it={operator:"contains",ignoreCase:!0,mode:"lenient"},ot=function(){function e(e){this.component=e,this.visibleNodes=new Set,this._filterSettings=it}return Object.defineProperty(e.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(e){this._filterSettings=Object(a.__assign)({},it,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{set:function(e){this.handleFilterChange(e)},enumerable:!0,configurable:!0}),e.prototype.handleFilterChange=function(e){this.filterData&&(this.resetNodesVisibility(this.filterData),e&&Y(this.filterData,e,this.filterSettings,this.component.textField),this.updateVisibleNodes(this.filterData),N(this.component.filterStateChange)&&this.component.filterStateChange.emit({nodes:this.filterData,matchCount:this.visibleNodes.size,term:e,filterSettings:this.filterSettings}))},e.prototype.updateVisibleNodes=function(e){var t=this;e.forEach((function(e){e.visible&&t.visibleNodes.add(e.dataItem),e.children&&t.updateVisibleNodes(e.children)}))},e.prototype.resetNodesVisibility=function(e){var t=this;this.visibleNodes.clear(),e.forEach((function(e){e.visible=!0,e.children&&t.resetNodesVisibility(e.children)}))},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"filterSettings",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"filter",null),e}(),rt=new D,at=function(e,t,n,i){return void 0===n&&(n=null),void 0===i&&(i=""),X(e)?e.map((function(e,o){var r=rt.nodeIndex(o.toString(),i),a={dataItem:e,index:r,parent:n,visible:!0};return a.children=at(Object(u.b)(t)(e),t,a,r),a})):[]},st=function(e){function t(t,n){var i=e.call(this,t)||this;i.component=t,i.dragAndDropDirective=n,i.loadOnDemand=!0,i.originalData=[];var o=!N(i.dragAndDropDirective);return i.component.isVisible=o?function(e){return i.visibleNodes.has(e)}:k,i}return Object(a.__extends)(t,e),Object.defineProperty(t.prototype,"childrenField",{get:function(){return this._childrenField},set:function(e){if(!e)throw new Error("'childrenField' cannot be empty");this._childrenField=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{set:function(e){this.originalData=e||[],this.filterData=at(e,this.childrenField)||[],this.updateVisibleNodes(this.filterData)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;N(this.childrenField)&&(this.component.children=function(t){return Object(h.of)(Object(u.b)(e.childrenField)(t))},this.component.hasChildren=function(t){var n=Object(u.b)(e.childrenField)(t);return Boolean(n&&n.length)},this.component.editService=new Ze(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&N(this.component.preloadChildNodes)&&this.component.preloadChildNodes())},t.prototype.ngOnChanges=function(e){Object(c.isChanged)("childrenField",e,!1)&&(this.nodes=this.originalData),Object(c.anyChanged)(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&N(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],t.prototype,"childrenField",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],t.prototype,"nodes",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],t.prototype,"isVisible",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),t=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewHierarchyBinding]"}),Object(a.__param)(1,Object(s.Optional)()),Object(a.__param)(1,Object(s.Host)()),Object(a.__metadata)("design:paramtypes",[he,nt])],t)}(ot),ct=function(){function e(e,t,n){this.expandService=e,this.loadingService=t,this.cd=n,this._loading=!1}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.loadingService.changes.pipe(Object(b.filter)((function(t){return t===e.index})));this.subscription=this.expandService.changes.pipe(Object(b.filter)((function(t){return t.index===e.index})),Object(b.tap)((function(t){!t.expand&&e.loading&&(e.loading=!1)})),Object(b.filter)((function(e){return e.expand})),Object(b.switchMap)((function(e){return Object(h.of)(e).pipe(Object(b.delay)(100),Object(b.takeUntil)(t))}))).subscribe((function(){return e.loading=!0})),this.subscription.add(t.subscribe((function(){return e.loading=!1})))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},Object(a.__decorate)([Object(s.HostBinding)("class.k-i-loading"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"loading",null),Object(a.__decorate)([Object(s.Input)("kendoTreeViewLoading"),Object(a.__metadata)("design:type",String)],e.prototype,"index",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewLoading]"}),Object(a.__metadata)("design:paramtypes",[E,T,s.ChangeDetectorRef])],e)}(),lt=function(){function e(e){this.flatBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,n=e.destinationItem,i=e.dropPosition,r=e.sourceTree,a=e.destinationTree,s=Object.assign({},q(t));if(i===o.Over){Be(n,a);var c=Object(u.b)(this.flatBinding.idField)(q(n));Object(u.e)(this.flatBinding.parentIdField)(s,c);var l=this.getLastVisibleChildNodeIndex(a,this.flatBinding.originalData,q(n))+1;this.flatBinding.originalData.splice(l,0,s),this.rebindData();var d=this.fetchChildNodes(q(n),a).indexOf(s);this.movedItemNewIndex=ne(n.item.index,d)}else{var p=i===o.After?1:0;l=this.flatBinding.originalData.indexOf(q(n))+p;this.flatBinding.originalData.splice(l,0,s);var h=Object(u.b)(this.flatBinding.parentIdField)(q(n));Object(u.e)(this.flatBinding.parentIdField)(s,h),this.rebindData();var f=n.parent?n.parent.item.index:null;d=(n.parent?this.fetchChildNodes(q(n.parent),a):a.nodes).indexOf(s);this.movedItemNewIndex=ne(f,d)}r!==a&&this.addChildNodes(s,r);var b=i===o.Over?q(n):q(n.parent);Ue(a,b),Ge(a,q(t),s),r===a||a.loadOnDemand||a.preloadChildNodes(),r!==a&&(a.changeDetectorRef.detectChanges(),a.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,o=q(t),r=this.flatBinding.originalData.indexOf(o);this.flatBinding.originalData.splice(r,1),n!==i&&this.removeChildNodes(o,n),this.rebindData();var a=t.parent?t.parent.children:[];if(Ne(t.parent,a,n),We(n,q(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i){i.changeDetectorRef.detectChanges();var s=Ve(this.movedItemNewIndex,t.item.index);i.focus(s)}},e.prototype.addChildNodes=function(e,t){var n,i=this.fetchAllDescendantNodes(e,t);(n=this.flatBinding.originalData).push.apply(n,i)},e.prototype.removeChildNodes=function(e,t){var n=this;this.fetchAllDescendantNodes(e,t).forEach((function(e){var t=n.flatBinding.originalData.indexOf(e);n.flatBinding.originalData.splice(t,1)}))},e.prototype.fetchAllDescendantNodes=function(e,t){var n=this,i=this.fetchChildNodes(e,t);return i.forEach((function(e){return i=i.concat(n.fetchAllDescendantNodes(e,t)||[])})),i},e.prototype.fetchChildNodes=function(e,t){if(!e)return[];var n=[];return t.children(e).pipe(Object(b.take)(1)).subscribe((function(e){return n=n.concat(e||[])})),n},e.prototype.getLastVisibleChildNodeIndex=function(e,t,n){if(!N(e.loadMoreService)||!e.hasChildren(n))return t.length;var i=e.loadMoreService.getGroupSize(n),o=this.fetchChildNodes(n,e).slice(0,i),r=o[o.length-1];return t.indexOf(r)},e.prototype.rebindData=function(){this.flatBinding.nodes=this.flatBinding.originalData},e}(),dt=function(e,t,n){return t.filter((function(t){return e(t)===n}))},ut=new D,pt=function(e,t,n,i,o,r){return void 0===o&&(o=null),void 0===r&&(r=""),X(e)?e.map((function(e,a){var s=ut.nodeIndex(a.toString(),r),c={dataItem:e,index:s,parent:o,visible:!0};return c.children=pt(dt(Object(u.b)(n),t||[],Object(u.b)(i)(e)),t,n,i,c,s),c})):[]},ht=function(e){function t(t){var n=e.call(this,t)||this;return n.component=t,n.loadOnDemand=!0,n.originalData=[],n.component.isVisible=function(e){return n.visibleNodes.has(e)},n}return Object(a.__extends)(t,e),Object.defineProperty(t.prototype,"nodes",{set:function(e){if(this.originalData=e||[],n=this.parentIdField,B(n)||0===n.trim().length)this.component.nodes=this.originalData.slice(0);else{var t=Object(u.b)(this.parentIdField);this.component.nodes=this.originalData.filter(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}}(B,t)),this.filterData=pt(this.component.nodes,this.originalData,this.parentIdField,this.idField),this.updateVisibleNodes(this.filterData)}var n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;if(N(this.parentIdField)&&N(this.idField)){var t=function(t){return dt(Object(u.b)(e.parentIdField),e.originalData||[],Object(u.b)(e.idField)(t))};this.component.hasChildren=function(e){return t(e).length>0},this.component.children=function(e){return Object(h.of)(t(e))},this.component.editService=new lt(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&N(this.component.preloadChildNodes)&&this.component.preloadChildNodes()}},t.prototype.ngOnChanges=function(e){Object(c.isChanged)("parentIdField",e,!1)&&(this.nodes=this.originalData),Object(c.anyChanged)(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&N(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],t.prototype,"nodes",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"parentIdField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"idField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],t.prototype,"isVisible",null),t=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewFlatDataBinding]"}),Object(a.__metadata)("design:paramtypes",[he])],t)}(ot),ft=function(e,t){return{dataItem:t,index:e}},bt=0,mt=function(){function e(e,t,n,i,o,r,a){this.element=e,this.expandService=t,this.navigationService=n,this.selectionService=i,this.lookupService=o,this.renderer=r,this.ib=a,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=bt++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isButton",{get:function(){return"button"===this.role},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeItem",{get:function(){return ft(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?ft(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()},e.prototype.ngOnChanges=function(e){var t=e.index,n=e.isDisabled;Object(c.anyChanged)(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),n&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(t),Object(c.anyChanged)(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()},e.prototype.ngOnDestroy=function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((function(e,t){return t.unsubscribe(),e}),[])},e.prototype.subscribe=function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe((function(){e.updateTabIndex(),e.focusItem()})),this.navigationService.expands.pipe(Object(b.filter)((function(t){return t.index===e.index&&!e.isDisabled}))).subscribe((function(t){var n=t.expand;return e.expand(n)}))]},e.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()},e.prototype.activateItem=function(){if(!this.isDisabled){var e=this.navigationService,t=this.selectionService,n=this.index;t.setFirstSelected(n,this.isSelected),!e.isActive(n)&&t.isFirstSelected(n)&&e.activateIndex(n)}},e.prototype.expand=function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)},e.prototype.isFocusable=function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)},e.prototype.focusItem=function(){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus()},e.prototype.moveLookupItem=function(e){void 0===e&&(e={});var t=e.dataItem,n=e.index,i=e.parentDataItem,o=e.parentIndex;if((!n||!n.firstChange)&&(t||n||i||o)){var r=(n||{}).previousValue||this.index;this.lookupService.replaceItem(r,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,n=e.firstChange,i=e.previousValue;!n&&N(t)&&N(i)&&(this.navigationService.unregisterItem(this.id,i),this.navigationService.registerItem(this.id,t,this.isDisabled,this.isButton))},e.prototype.updateNodeAvailability=function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.unregisterItem(this.id,this.index),e.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)},e.prototype.setAriaAttributes=function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)},e.prototype.setDisabledClass=function(){this.setClass("k-state-disabled",this.isDisabled)},e.prototype.setClass=function(e,t){var n=t?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,e)},e.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},e.prototype.setAttribute=function(e,t){N(t)?this.renderer.setAttribute(this.element.nativeElement,e,t):this.renderer.removeAttribute(this.element.nativeElement,e)},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"dataItem",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"index",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"parentDataItem",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"parentIndex",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"checkable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"selectable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"expandable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"isChecked",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isDisabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isVisible",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewItem]"}),Object(a.__metadata)("design:paramtypes",[s.ElementRef,E,le,be,ge,s.Renderer2,D])],e)}(),gt=function(){function e(e,t,n,i){var o=this;this.element=e,this.navigationService=t,this.selectionService=n,this.renderer=i,this.initialSelection=!1,this.isSelected=w,this.subscriptions=new h.Subscription,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(Object(b.filter)((function(e){return e===o.index}))).subscribe((function(e){return o.selectionService.select(e,o.dataItem)}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))})))}return e.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.updateFocusClass=function(){this.render(this.navigationService.isActive(this.index),"k-state-focused")},e.prototype.updateSelectionClass=function(e){this.render(e,"k-state-selected")},e.prototype.render=function(e,t){var n=e?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,t)},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"dataItem",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"index",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"initialSelection",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isSelected",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewItemContent]"}),Object(a.__metadata)("design:paramtypes",[s.ElementRef,le,be,s.Renderer2])],e)}(),vt=[function(){function e(e,t,n){this.element=e,this.renderer=t,this.changeDetector=n,this.id="_"+Object(c.guid)(),this.tabindex=0,this.checkStateChange=new s.EventEmitter,this.checkState="none"}return Object.defineProperty(e.prototype,"classWrapper",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminate",{get:function(){return"indeterminate"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return"checked"===this.checkState},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")},e.prototype.ngDoCheck=function(){this.checkState=this.isChecked(this.node,this.index)},e.prototype.handleChange=function(e){var t=e.target.checked?"checked":"none";this.checkState=t,this.changeDetector.detectChanges(),this.checkStateChange.emit(t)},Object(a.__decorate)([Object(s.HostBinding)("class.k-checkbox-wrapper"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"classWrapper",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"isChecked",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"node",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"index",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"labelText",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"checkStateChange",void 0),e=Object(a.__decorate)([Object(s.Component)({selector:"kendo-checkbox",template:'\n <input\n class="k-checkbox"\n type="checkbox"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n '}),Object(a.__metadata)("design:paramtypes",[s.ElementRef,s.Renderer2,s.ChangeDetectorRef])],e)}()],yt=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({declarations:[vt],exports:[vt]})],e)}(),_t=function(){function e(e){this.treeview=e,this.subscriptions=new h.Subscription,this.subscriptions.add(this.treeview.addItem.subscribe(this.handleAdd.bind(this))),this.subscriptions.add(this.treeview.removeItem.subscribe(this.handleRemove.bind(this)))}return Object.defineProperty(e.prototype,"editService",{set:function(e){this.treeview.editService=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleAdd=function(e){if(!N(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.add(e)},e.prototype.handleRemove=function(e){if(!N(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.remove(e)},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"editService",null),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewDragAndDropEditing]"}),Object(a.__metadata)("design:paramtypes",[ye])],e)}(),Ot="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",jt=function(){function e(e){this.treeview=e,this.pageSizes=new Map,this.rootLevelId=Object(c.guid)(),this.treeview.loadMoreService={getInitialPageSize:this.getInitalPageSize.bind(this),getGroupSize:this.getGroupSize.bind(this),setGroupSize:this.setGroupSize.bind(this),getTotalNodesCount:this.getTotalNodesCount.bind(this)}}return Object.defineProperty(e.prototype,"loadMoreNodes",{set:function(e){"string"!=typeof e&&(this.treeview.loadMoreService.loadMoreNodes=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.verifySettings()},e.prototype.verifySettings=function(){if(Object(s.isDevMode)()){if(!N(this.pageSize))throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See "+Ot+".");var e=this.treeview.loadMoreService.loadMoreNodes;if(N(e)&&"function"!=typeof e)throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See "+Ot+".");if(N(e)&&!N(this.totalField))throw new Error("When a function to fetch additional nodes is provided to the `kendoTreeViewLoadMore` directive, the `totalField` and `totalRootNodes` values must also be provided. See "+Ot+".")}},e.prototype.getGroupSize=function(e){var t=e||this.rootLevelId;return this.pageSizes.has(t)?this.pageSizes.get(t):this.pageSize},e.prototype.setGroupSize=function(e,t){var n=e||this.rootLevelId,i=t>0?t:0;this.pageSizes.set(n,i)},e.prototype.getTotalNodesCount=function(e,t){return N(e)&&N(this.totalField)?e[this.totalField]:!N(e)&&N(this.totalRootNodes)?this.totalRootNodes:t},e.prototype.getInitalPageSize=function(){return this.pageSize},Object(a.__decorate)([Object(s.Input)("kendoTreeViewLoadMore"),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"loadMoreNodes",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"pageSize",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"totalRootNodes",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"totalField",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoTreeViewLoadMore]"}),Object(a.__metadata)("design:paramtypes",[ye])],e)}(),Ct=[ye,_e,mt,gt,ue,Oe,je,Se,xe,st,ct,ht,nt,Qe,$e,et,Ye,_t,jt,pe],St=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({declarations:[Ct],exports:[Ct],imports:[g.CommonModule,yt,y.InputsModule],entryComponents:[$e,Ye]})],e)}(),xt=[ye,ue,Oe,je,Se,xe,st,ht,nt,Qe,et,_t,jt,pe],wt=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({exports:[xt],imports:[St]})],e)}(),kt={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1631260317,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"},It=function(e){return null!=e},Et=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},Dt=function(e){return Array.isArray(e)},Tt=function(e){return It(e)&&"object"==typeof e},Pt=function(e){return"string"==typeof e&&0===e.length},Ft=function(e,t,n){var i=function(e,t){return Dt(e)&&e.filter((function(e){return Tt(e)&&It(Nt(e,t))}))}(e,n)||[];return(function(e,t,n){return void 0===t&&(t=[]),e.map((function(e){return t.find((function(t){return Nt(t,n)===e}))})).filter((function(e){return void 0!==e}))}(e,t,n)||[]).concat(i)},Mt=function(e){return Dt(e)&&e.every((function(e){return Tt(e)}))},At=function(e,t,n){var i=t.map((function(e){return It(e)&&It(Nt(e,n))?Nt(e,n):e}));return e.reduce((function(e,t){var o=It(t)&&It(Nt(t,n))?Nt(t,n):t,r=i.indexOf(o);return-1!==r&&e.push(r),e}),[])},Nt=function(e,t){return It(e)?It(t)&&Tt(e)?Object(u.b)(t)(e):e:null},Bt=function(e,t,n){if(!It(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},Rt=function(e,t){return!!It(e)&&t.every((function(t){return e.hasOwnProperty(t)}))},Vt=function(e){return e.className.includes("ng-untouched")},zt=function(e){},Lt=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)},Ht=function(e,t){void 0===t&&(t=0);var n=Number(e);return isNaN(n)?t:n},Kt=function(e,t,n){return e.nativeElement.contains(t)||n&&n.popupElement.contains(t)},Gt=function(e){return(e||"").split("_").length-1},Ut=function(e,t){if(!It(e)||0===e.children.length)return[];var n=e.children;return It(t)&&(n=n.filter((function(e){return t(e.item)}))),n.forEach((function(e){return n=n.concat(Ut(e,t))})),n},Wt=function(e,t){var n=e.dataItem,i=e.index,o=e.level,r=Array.isArray(t)?t:[t],a=It(o)?o:Gt(i),s=r[Math.min(a,r.length-1)];return Object(u.b)(s)(n)},Zt=function(){function e(e,t){this.localization=e,this.valueChange=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onClick=new s.EventEmitter,this.onNavigate=new s.EventEmitter,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=e.rtl?"rtl":"ltr",this.renderer=t}return Object.defineProperty(e.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;return e.direction=n?"rtl":"ltr"}))},e.prototype.ngOnChanges=function(e){var t,n,i;if(this.input&&(e.userInput||e.suggestedText)){t=e.userInput&&e.userInput.previousValue?this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"":this._previousValue;var o=this.input.nativeElement.selectionStart,r=t.length===o;this.writeInputValue(this.suggestedText?(n=this.userInput,i=this.suggestedText,n.concat(i.substr(i.toLowerCase().indexOf(n.toLowerCase())+n.length))):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):r?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(o,o),this._previousValue=this.userInput}},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.writeInputValue=function(e){Object(c.isDocumentAvailable)()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},e.prototype.setInputSelection=function(e,t){if(Object(c.isDocumentAvailable)()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},e.prototype.handleInput=function(e){var t=e.target.value;t!==this.userInput&&(this._previousValue=t,this.valueChange.emit(t))},e.prototype.handleFocus=function(e){this.onFocus.emit(e)},e.prototype.handleBlur=function(e){this.onBlur.emit(e)},e.prototype.handleKeydown=function(e){var t=e.keyCode;[c.Keys.ArrowUp,c.Keys.ArrowDown,c.Keys.ArrowLeft,c.Keys.ArrowRight,c.Keys.Enter,c.Keys.Escape,c.Keys.Delete,c.Keys.Backspace,c.Keys.Home,c.Keys.End].indexOf(t)>-1&&this.onNavigate.emit(e)},e.prototype.focus=function(){Object(c.isDocumentAvailable)()&&this.input.nativeElement.focus()},e.prototype.blur=function(){Object(c.isDocumentAvailable)()&&this.input.nativeElement.blur()},e.prototype.setInputSize=function(){var e=function(e){return e?e.length:0},t=this.input.nativeElement,n=e(this.placeholder),i=e(this.value),o=Math.max(n,i,1);this.renderer.setAttribute(t,"size",o.toString())},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"listId",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"tagListId",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeDescendant",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"noDataLabel",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabIndex",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"popupOpen",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"userInput",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"suggestedText",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onClick",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onNavigate",void 0),Object(a.__decorate)([Object(s.ViewChild)("input",{static:!0}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"input",void 0),Object(a.__decorate)([Object(s.HostBinding)("class.k-searchbar"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"searchBarClass",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"placeholder",null),e=Object(a.__decorate)([Object(s.Component)({selector:"kendo-searchbar",template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="popupOpen"\n [attr.aria-owns]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-label]="noDataLabel"\n />\n '}),Object(a.__metadata)("design:paramtypes",[p.LocalizationService,s.Renderer2])],e)}(),$t=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),qt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),Xt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),Yt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),Jt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),Qt=function(){function e(){this.onSelect=new s.EventEmitter,this.onChange=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.total=0,this.selectedIndices=[]}return e.prototype.getTotal=function(){return this.total},e.prototype.isSelected=function(e){return It(this.selectedIndices.find((function(t){return t===e})))},e.prototype.isFocused=function(e){return e===this.focused},e.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},e.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:It(e)}))},e.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},e.prototype.unselect=function(e){if(this.isSelected(e)){var t=this.selectedIndices.indexOf(e);this.selectedIndices.splice(t,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}},e.prototype.change=function(e){var t=It(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})},e.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(e.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!0,configurable:!0}),e=Object(a.__decorate)([Object(s.Injectable)()],e)}();!function(e){e[e.Undefined=0]="Undefined",e[e.Open=1]="Open",e[e.Close=2]="Close",e[e.Enter=3]="Enter",e[e.Tab=4]="Tab",e[e.Esc=5]="Esc",e[e.Delete=6]="Delete",e[e.Backspace=7]="Backspace",e[e.Home=8]="Home",e[e.End=9]="End",e[e.Up=10]="Up",e[e.Down=11]="Down",e[e.Left=12]="Left",e[e.Right=13]="Right"}(Fe||(Fe={}));var en,tn=function(){function e(){this.grouped=!1,this.groupIndices=[]}return Object.defineProperty(e.prototype,"data",{get:function(){return this.grouped?this._flatData:this._data},set:function(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemsCount",{get:function(){return It(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter((function(e){return!e.header})):this.data).length:0},enumerable:!0,configurable:!0}),e.prototype.isGrouped=function(e){return It(e)&&0!==e.length&&It(e[0])&&Rt(e[0],["aggregates","field","items","value"])},e.prototype.getGroupIndices=function(e){for(var t=[],n=0;n<=e.length-1;n++)t[n]=(t[n-1]||0)+e[n].items.length;return t},e.prototype.filter=function(e){var t=[];if(this.isGrouped(this.data))for(var n=0;n<=this.groupIndices.length-1;n++){var i=this.data[n].items.filter(e);i&&(t=t.concat(i))}else t=this.data.filter(e);return t},e.prototype.indexOf=function(e,t){void 0===t&&(t=0);var n=function(t){return t===e};return this.grouped&&(n=function(t){return t.value===e}),this.findIndex(n,t)},e.prototype.findIndex=function(e,t){void 0===t&&(t=0);var n=-1;if(this.grouped){n=(i=this._flatData.filter((function(e){return!e.header&&e.offsetIndex>=t}))).findIndex(e),n=i[n]?i[n].offsetIndex:-1}else{var i,o=(i=this.data.slice(t)).findIndex(e);n=-1!==o?o+t:-1}return n},e.prototype.closestGroup=function(e){for(var t=e;t>=0;t--)if(this._flatData[t].header)return this._flatData[t]},e.prototype.find=function(e){var t=this.findIndex(e);return this.itemAt(t)},e.prototype.flatIndex=function(e){if(0===this.itemsCount)return-1;if(!this.grouped)return e;var t=this._flatData.find((function(t){return!t.header&&t.offsetIndex===e}));return t?t.index:-1},e.prototype.itemAt=function(e){var t;if(0===this.itemsCount)return t;if(this.grouped){var n=this._flatData.find((function(t){return!t.header&&t.offsetIndex===e}));n&&(t=n.value)}else t=this.data[e];return t},e.prototype.groupAt=function(e){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find((function(t){return t.header&&t.index===e}))},e.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},e.prototype.itemGroup=function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var t=this.groupField();return t?Nt(e,t):void 0}},e.prototype.flatten=function(e,t,n,i){void 0===t&&(t=void 0),void 0===n&&(n=0),void 0===i&&(i=0);var o=[];It(t)&&o.push({header:!0,index:i+n,offsetIndex:i,value:t});for(var r=0;r<e.length;r++){var a=[];e[r].items?(a=this.flatten(e[r].items,e[r].value,n,r),n+=e[r].items.length):a.push({header:!1,index:i+n+r+1,offsetIndex:n+r,value:e[r]}),o=o.concat(a)}return o},e=Object(a.__decorate)([Object(s.Injectable)()],e)}(),nn=function(){function e(e){this.dataService=e,this.itemDisabled=null}return e.prototype.isIndexDisabled=function(e){if(this.itemDisabled){var t=this.dataService.itemAt(e);if(It(t))return this.itemDisabled({dataItem:t,index:e});if(It(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}},e.prototype.isItemDisabled=function(e){if(this.itemDisabled){var t=this.dataService.indexOf(e);if(-1!==t)return this.itemDisabled({dataItem:e,index:t});if(It(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}},e=Object(a.__decorate)([Object(s.Injectable)(),Object(a.__metadata)("design:paramtypes",[tn])],e)}(),on=function(e,t){this.index=e,this.originalEvent=t},rn=function(){function e(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new s.EventEmitter,this.close=new s.EventEmitter,this.enter=new s.EventEmitter,this.tab=new s.EventEmitter,this.esc=new s.EventEmitter,this.up=new s.EventEmitter,this.right=new s.EventEmitter,this.down=new s.EventEmitter,this.left=new s.EventEmitter,this.delete=new s.EventEmitter,this.backspace=new s.EventEmitter,this.home=new s.EventEmitter,this.end=new s.EventEmitter}return e.prototype.process=function(e){var t,n=e.originalEvent.keyCode,i=e.originalEvent.altKey,o=Fe.Undefined;i&&n===c.Keys.ArrowDown?o=Fe.Open:i&&n===c.Keys.ArrowUp?o=Fe.Close:n===c.Keys.Enter?o=Fe.Enter:n===c.Keys.Escape?o=Fe.Esc:n===c.Keys.Tab?o=Fe.Tab:n===c.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=Fe.Up):n===c.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=Fe.Left):n===c.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=Fe.Down):n===c.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=Fe.Right):n===c.Keys.Home?(t=this.isDisabled(0)?e.current:0,o=Fe.Home):n===c.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,o=Fe.End):n===c.Keys.Delete?o=Fe.Delete:n===c.Keys.Backspace&&(o=Fe.Backspace);var r=new on(t,e.originalEvent);return o!==Fe.Undefined&&this[Fe[o].toLowerCase()].emit(r),o},e.prototype.next=function(e){var t=e.current,n=e.start,i=e.end,o=e.step,r=It(t)?this.clampIndex(t+o,n,i):n,a=this.firstFocusableIndex(r,n,i,o);if(It(a))return a;if(this.selectionService.isSelected(t)&&t>=n)return t;var s=-1*o;return this.firstFocusableIndex(r,n,i,s)},e.prototype.clampIndex=function(e,t,n){return!It(e)||e<t?t:e>n?n:e},e.prototype.firstFocusableIndex=function(e,t,n,i){for(;t<=e&&e<=n;){if(!this.isDisabled(e))return e;e+=i}},e.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},e=Object(a.__decorate)([Object(s.Injectable)(),Object(a.__metadata)("design:paramtypes",[nn,Qt])],e)}(),an=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),sn=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),cn=function(){},ln=function(){function e(e){this.element=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:'"li[role=option], li[role=group]"'}),Object(a.__metadata)("design:paramtypes",[s.ElementRef])],e)}(),dn=function(){function e(e,t,n,i,o,r,a){var c=this;this.dataService=e,this.wrapper=t,this.selectionService=n,this.disabledItemsService=i,this.cdr=o,this.zone=r,this.renderer=a,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.listClass="k-list k-reset",this.checkboxes={enabled:!1},this.onClick=new s.EventEmitter,this.pageChange=new s.EventEmitter,this.listResize=new s.EventEmitter,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this.selectSubscription=Object(h.merge)(this.selectionService.onSelect.pipe(Object(b.map)((function(e){return e.indices[0]}))),this.selectionService.onFocus).pipe(Object(b.switchMap)((function(e){return c.zone.onStable.pipe(Object(b.take)(1),Object(b.map)((function(){return e})))}))).subscribe(this.scrollToItem.bind(this))}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflowY",{get:function(){if(It(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){Object(c.isChanged)("data",e,!1)&&this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange())},e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.scrollSubscription=Object(h.fromEvent)(e.content.nativeElement,"scroll").pipe(Object(b.auditTime)(100),Object(b.tap)(e.prefetchData.bind(e)),Object(b.tap)(e.findCurrentGroup.bind(e))).subscribe((function(){e.lastScrollTop=e.content.nativeElement.scrollTop}))}))},e.prototype.ngAfterViewChecked=function(){if(this.virtual&&this.positionItems(),this.items&&this.scrollToFocused){this.scrollToFocused=!1;var e=this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused;this.scrollToItem(e)}this.dataService.grouped&&this.findCurrentGroup()},e.prototype.ngOnDestroy=function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},e.prototype.onCheckedChange=function(e,t){var n=e.target.checked;n&&!this.selectionService.isSelected(t)&&this.selectionService.add(t),!n&&this.selectionService.isSelected(t)&&this.selectionService.unselect(t)},e.prototype.isChecked=function(e){var t=this.virtual?e+this.virtual.skip:e;return this.selectionService.isSelected(t)},e.prototype.firstVisibleItem=function(){var e=this,t=this.content.nativeElement,n=t.getBoundingClientRect(),i=Array.prototype.slice.call(t.querySelectorAll(".k-state-disabled"));i.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","auto")}));var o=document.elementFromPoint(n.left+1,n.top+1);return i.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","none")})),function(e,t){for(var n=e;null!==n&&1===n.nodeType;){if(Lt(n,t))return n;n=n.parentElement||n.parentNode}return null}(o,"li")},e.prototype.findCurrentGroup=function(){if(this.dataService.grouped){var e=this.firstVisibleItem();if(e){var t=void 0;"group"===e.getAttribute("role")?(t=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(t).value):(t=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(t)))}else this.currentGroup=void 0;this.cdr.detectChanges()}else this.currentGroup=void 0},e.prototype.prefetchData=function(){if(this.virtual){var e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),t=this.content.nativeElement.scrollTop,n=Math.trunc(t/this.virtual.itemHeight),i=t>this.lastScrollTop,o=n+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,r=this.pageSize-(this.lastLoaded-this.startFrom),a=this.lastLoaded-this.pageSize+e>=n-r;i&&o&&this.changePage(n),!i&&a&&this.changePage(n-this.pageSize+e+1)}},e.prototype.changePage=function(e){var t=this;this.zone.run((function(){var n=t.pageSize+e;n>t.virtual.total&&(e--,n=t.virtual.total),e<0&&(e=0),t.startFrom=e,t.lastLoaded=n,t.pageChange.emit({skip:e,take:t.pageSize})}))},e.prototype.index=function(e,t){return e>0?this.dataService.groupIndices[e-1]+t:t},e.prototype.getText=function(e){return Nt(e,this.textField)},e.prototype.getValue=function(e){return Nt(e,this.valueField)},e.prototype.isDisabled=function(e){return It(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},e.prototype.scrollToItem=function(e){var t=e;this.dataService.grouped&&(t=this.dataService.flatIndex(e),t+=this.firstGroupHeaderInTargetedPage(t)?-1:0);if(this.virtual&&t>-1)this.scrollToIndex(t);else{var n=this.items.toArray();It(n[t])&&-1!==t&&this.scroll(n[t].element)}},e.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,n=t.scrollTop,i=e*this.virtual.itemHeight,o=this.virtual.itemHeight,r=t.clientHeight,a=i+o;n>i?n=i:a>n+r&&(n=a-r),t.scrollTop=n},e.prototype.scroll=function(e){if(e){var t=e.nativeElement,n=this.content.nativeElement,i=t.offsetTop,o=t.offsetHeight,r=n.scrollTop,a=n.clientHeight,s=i+o;r>i?r=i:s>r+a&&(r=s-a),n.scrollTop=r}},e.prototype.hasScrollbar=function(){return!!(It(this.items)&&this.items.length&&It(this.list)&&It(this.content))&&(It(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)},e.prototype.hasVirtualScrollbar=function(){var e=this.content.nativeElement.offsetHeight,t=this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight;return this.virtualContainer&&t>e},e.prototype.positionItems=function(){var e=this;this.items.forEach((function(t,n){var i=(n+e.startFrom)*e.virtual.itemHeight;e.renderer.setStyle(t.element.nativeElement,"transform","translateY("+i+"px")}))},e.prototype.firstGroupHeaderInTargetedPage=function(e){return!It(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"selected",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"focused",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"height",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",$t)],e.prototype,"template",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Yt)],e.prototype,"groupTemplate",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Jt)],e.prototype,"fixedGroupTemplate",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"show",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"optionPrefix",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"multipleSelection",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"virtual",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"listClass",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"checkboxes",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onClick",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"pageChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"listResize",void 0),Object(a.__decorate)([Object(s.ViewChildren)(ln),Object(a.__metadata)("design:type",s.QueryList)],e.prototype,"items",void 0),Object(a.__decorate)([Object(s.ViewChild)("content",{static:!0}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"content",void 0),Object(a.__decorate)([Object(s.ViewChild)("list",{static:!0}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"list",void 0),Object(a.__decorate)([Object(s.ViewChild)("virtualContainer",{static:!1}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"virtualContainer",void 0),e=Object(a.__decorate)([Object(s.Component)({selector:"kendo-list",template:'\n <div *ngIf="dataService.grouped"\n class=\'k-outer-group-header k-first\'\n [ngClass]="{\'k-virtual-item\': virtual}"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><strong>{{ currentGroup }}</strong> </ng-template>\n </div>\n <div #content\n [ngClass]="{ \'k-virtual-content\': virtual, \'k-list-scroller\': !virtual }"\n [style.maxHeight.px]="height"\n [style.overflowY]="overflowY"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [ngClass]="{ \'k-virtual-list\': virtual }"\n [attr.id]="id"\n [attr.aria-hidden]="!show">\n <ng-template *ngIf="!dataService.grouped && show" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n role="option"\n kendoDropDownsSelectable\n [checkboxes]="checkboxes"\n [height]="virtual?.itemHeight"\n [index]="itemIndex + startFrom"\n [multipleSelection]="multipleSelection"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem)"\n [attr.tabIndex]="-1"\n class="k-item"\n [ngClass]="{ \'k-virtual-item\': virtual, \'k-state-disabled\': isDisabled(itemIndex) }">\n <label *ngIf="checkboxes.enabled"\n class="k-checkbox-label">\n <input type="checkbox"\n class="k-checkbox"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n </label>\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ getText(dataItem) }}</ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n class=\'k-outer-group-header\'\n [ngClass]="{ \'k-virtual-item\': virtual }"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate"><strong> {{ dataItem.value }}</strong> </ng-template>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n class="k-item"\n [ngClass]="{ \'k-virtual-item\': virtual, \'k-state-disabled\': isDisabled(dataItem.offsetIndex) }">\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ getText(dataItem.value) }}</ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" #virtualContainer class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n '}),Object(a.__metadata)("design:paramtypes",[tn,s.ElementRef,Qt,nn,s.ChangeDetectorRef,s.NgZone,s.Renderer2])],e)}(),un={pageSize:50,itemHeight:28},pn=function(e,t){var n=Object.assign({},un,t);return!0===e?n:e?Object(a.__assign)({pageSize:un.pageSize},e):null},hn=new s.InjectionToken("dropdowns-touch-enabled"),fn={multi:!0,provide:l.c,useExisting:Object(s.forwardRef)((function(){return bn}))},bn=function(){function e(e,t,n,i,o,r,a,c,l,u,p){this.localization=e,this.dataService=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=r,this._zone=a,this.cdr=c,this.renderer=l,this.hostElement=u,this.touchEnabled=p,this.highlightFirst=!0,this.focusableId="k-"+Et(),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new s.EventEmitter,this.filterChange=new s.EventEmitter,this.open=new s.EventEmitter,this.opened=new s.EventEmitter,this.close=new s.EventEmitter,this.closed=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.widgetClasses=!0,this.listBoxId=Et(),this.optionPrefix=Et(),this.onChangeCallback=zt,this.onTouchedCallback=zt,this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new h.Subject,this._isFocused=!1,Object(d.validatePackage)(kt),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}var t;return t=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=0;Object(c.isDocumentAvailable)()&&(e=this.wrapper.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return It(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"suggestion",{get:function(){if(this.text&&this.suggestedText){var e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0}this.suggestedText=void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=It(e)?e:!t._open;t._toggle(n)}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!It(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+Nt(e,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=Nt(this.dataService.itemAt(0),this.valueField))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=pn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()})),this.setMessages()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})},e.prototype.reset=function(){this.value=""},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.focusItemAt=function(e){var t=e>=0&&e<this.data.length;It(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.verifySettings=function(e){if(Object(s.isDevMode)()&&It(e)&&"string"!=typeof e)throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/")},e.prototype.search=function(e,t){var n;void 0===t&&(t=0),n=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(n)?n+1<this.dataService.itemsCount?this.search(e,n+1):this.selectionService.focus(-1):(this.selectionService.focus(n),this.suggest&&(this.suggestedText=Nt(this.dataService.itemAt(n),this.valueField)))},e.prototype.navigate=function(e){this.isOpen&&this.selectionService.focus(e)},e.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;if(!(this.disabled||this.readonly||isNaN(t))){var n=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e});n!==Fe.Undefined&&n!==Fe.Backspace&&n!==Fe.Delete&&n!==Fe.Home&&n!==Fe.End&&n!==Fe.Left&&n!==Fe.Right&&(n===Fe.Enter&&this.isOpen||n!==Fe.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(e){var t,n=this.selectionService.focused;if(this.isOpen&&e.originalEvent.preventDefault(),n>=0)t=Nt(this.dataService.itemAt(n),this.valueField);else{var i=this.suggest&&this.suggestedText&&this.data.length&&Nt(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();t=this.isOpen&&i?this.suggestedText:this.searchbar.value}this.change(t)},e.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null},e.prototype.searchBarChange=function(e){var t=It(this.text)?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.togglePopup(e.length>0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)},e.prototype.handleFocus=function(){var e=this;this.isFocused=!0,Object(c.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e,t,n=this,i=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0,-1!==i?(e=this.dataService.itemAt(i),t=Nt(e,this.valueField)||""):t=this.searchbar.value;var o=t===this.searchbar.value,r=t.toLowerCase()===this.searchbar.value.toLowerCase();!o&&r&&this.selectionService.resetSelection([]),this.isFocused=!1;var a=this.value!==this.text;Object(c.hasObservers)(this.onBlur)||Object(c.hasObservers)(this.close)||Vt(this.wrapper)||a?this._zone.run((function(){a&&n.change(n.searchbar.value),n.onBlur.emit(),n.onTouchedCallback(),n.togglePopup(!1)})):this.togglePopup(!1)},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.change=function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)},e.prototype.subscribeEvents=function(){var e=this;Object(c.isDocumentAvailable)()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe((function(t){var n=e.value!==t;e.value=t,e.text=t,n&&e.emitChange(t)})),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=Object(h.merge)(this.navigationService.up,this.navigationService.down).subscribe((function(t){return e.navigate(t.index)})),this.closeSubscription=this.navigationService.close.subscribe((function(){return e.togglePopup(!1)})),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))},e.prototype.subscribeTouchEvents=function(){var e=this;Object(c.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;e.isFocused&&!Kt(e.hostElement,n,e.popupRef)&&e._zone.run((function(){return e.blur()}))}))}))},e.prototype.unsubscribeEvents=function(){Object(c.isDocumentAvailable)()&&(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},e.prototype.handleItemChange=function(e){var t=e.indices.length?e.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),It(t)){var n=Nt(this.dataService.itemAt(t),this.valueField);this.change(n)}},e.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&t>=0)&&(this.suggestedText=Nt(this.dataService.itemAt(t),this.valueField))},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:i,anchorAlign:n});var o=this.popupRef.popupElement,r=this.width,a=r.min,s=r.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=a,o.style.width=s,o.style.height=this.height,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.togglePopup(!1)}))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new sn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.findIndexPredicate=function(e){var t=this;return this.dataService.grouped?function(n){var i=Nt(n.value,t.valueField);return(i=It(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(n){var i=Nt(n,t.valueField);return(i=It(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}},e.prototype.setMessages=function(){var e=this;this._zone.runOutsideAngular((function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout((function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()}))}))},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"highlightFirst",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"data",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"suggest",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(s.Input)("tabIndex"),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"filterChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"opened",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"closed",void 0),Object(a.__decorate)([Object(s.Output)("focus"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(s.Output)("blur"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(s.ContentChild)($t,{static:!1}),Object(a.__metadata)("design:type",$t)],e.prototype,"template",void 0),Object(a.__decorate)([Object(s.ContentChild)(qt,{static:!1}),Object(a.__metadata)("design:type",qt)],e.prototype,"headerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Xt,{static:!1}),Object(a.__metadata)("design:type",Xt)],e.prototype,"footerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(an,{static:!1}),Object(a.__metadata)("design:type",an)],e.prototype,"noDataTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Yt,{static:!1}),Object(a.__metadata)("design:type",Yt)],e.prototype,"groupTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Jt,{static:!1}),Object(a.__metadata)("design:type",Jt)],e.prototype,"fixedGroupTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)("container",{read:s.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",s.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(s.ViewChild)("popupTemplate",{static:!0}),Object(a.__metadata)("design:type",s.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)(Zt,{static:!0}),Object(a.__metadata)("design:type",Zt)],e.prototype,"searchbar",void 0),Object(a.__decorate)([Object(s.ViewChild)("optionsList",{static:!1}),Object(a.__metadata)("design:type",dn)],e.prototype,"optionsList",void 0),Object(a.__decorate)([Object(s.HostBinding)("class.k-widget"),Object(s.HostBinding)("class.k-autocomplete"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(a.__decorate)([Object(s.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"isDisabled",null),Object(a.__decorate)([Object(s.HostBinding)("attr.dir"),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),e=t=Object(a.__decorate)([Object(s.Component)({exportAs:"kendoAutoComplete",providers:[fn,tn,Qt,rn,nn,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:cn,useExisting:Object(s.forwardRef)((function(){return t}))},{provide:c.KendoInput,useExisting:Object(s.forwardRef)((function(){return t}))}],selector:"kendo-autocomplete",template:'\n <ng-container kendoAutoCompleteLocalizedMessages\n i18n-noDataText="kendo.autocomplete.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.autocomplete.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && (clearButton && text?.length)"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (click)="clearValue($event)"\n (mousedown)="$event.preventDefault()"\n >\n</span>\n <span *ngIf="loading" class="k-icon k-i-loading"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(a.__param)(10,Object(s.Optional)()),Object(a.__param)(10,Object(s.Inject)(hn)),Object(a.__metadata)("design:paramtypes",[p.LocalizationService,tn,f.c,Qt,rn,nn,s.NgZone,s.ChangeDetectorRef,s.Renderer2,s.ElementRef,Boolean])],e)}(),mn="Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",gn="Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",vn="Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",yn="Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data",_n="Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection",On="Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values",jn="Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values",Cn="Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",Sn="Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",xn="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding",wn="Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth",kn="Expected valueDepth length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth",In="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",En="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",Dn="Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data",Tn="Expected virtual.itemHeight of type number.",Pn="Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/",Fn="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration",Mn="defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem",An="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",Nn="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",Bn="Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-bind-to-arrays-of-complex-data",Rn="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values",Vn="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values",zn="Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem",Ln="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding",Hn="Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth",Kn={multi:!0,provide:l.c,useExisting:Object(s.forwardRef)((function(){return Gn}))},Gn=function(){function e(e,t,n,i,o,r,a,c,l,u,p){this.localization=e,this.popupService=t,this.selectionService=n,this.navigationService=i,this.disabledItemsService=o,this.dataService=r,this.zone=a,this.cdr=c,this.renderer=l,this.hostElement=u,this.touchEnabled=p,this.selected=[],this.focusableId="k-"+Et(),this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(Object(b.map)((function(e){return e})))},this.placeholder="",this.listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new s.EventEmitter,this.selectionChange=new s.EventEmitter,this.filterChange=new s.EventEmitter,this.open=new s.EventEmitter,this.opened=new s.EventEmitter,this.close=new s.EventEmitter,this.closed=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=Et(),this.optionPrefix=Et(),this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=function(e){return e.preventDefault()},this.customValueSubject=new h.Subject,this.valueSubject=new h.Subject,this.clearValueSubject=new h.Subject,this.subs=new h.Subscription,Object(d.validatePackage)(kt),this.direction=e.rtl?"rtl":"ltr",this.data=[]}var t;return t=e,Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(e){this._text=It(e)?e.toString():""},enumerable:!0,configurable:!0}),e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!It(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(e?Nt(e,this.valueField):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){if(this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering){var t=this.text.length>0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=t}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=Nt(this.dataService.itemAt(0),this.textField))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return It(this._valuePrimitive)?this._valuePrimitive:!It(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=pn(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearable",{get:function(){return this.clearButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupWidth",{get:function(){var e=0;Object(c.isDocumentAvailable)()&&(e=this.wrapper.nativeElement.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupHeight",{get:function(){var e=this.popupSettings.height;return It(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages()},e.prototype.createValueStream=function(){var e=this,t=this.valueSubject.pipe(Object(b.filter)((function(t){var n=Nt(e.value,e.valueField),i=Nt(t,e.valueField),o=Nt(t,e.textField);return!(!It(e.value)&&!It(i))&&(It(o)&&(o=o.toString()),n!==i||e.text!==o||(e.clearFilter(),!1))})),Object(b.map)((function(t){var n=Nt(t,e.valueField);return{dataItem:t,text:Nt(t,e.textField),value:e.valuePrimitive?n:t}}))),n=Object(b.partition)((function(){return e.allowCustom}))(this.customValueSubject.pipe(Object(b.throttleTime)(300))),i=n[0].pipe(Object(b.tap)((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),Object(b.filter)((function(){var t=e.text!==Nt(e.value,e.valueField);return e.loading=t,e.disabled=t,t||e.clearFilter(),t})),this.valueNormalizer,Object(b.map)((function(t){return{custom:!0,dataItem:t,text:e.text,value:t}}))),o=n[1].pipe(Object(b.map)((function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}}))),r=this.clearValueSubject.pipe(Object(b.map)((function(){return{dataItem:void 0,text:void 0,value:void 0}})));this.valueSubscription&&this.valueSubscription.unsubscribe();var a=Object(h.merge)(t,i,o,r);this.valueSubscription=a.pipe(Object(b.catchError)((function(){var t=void 0!==Nt(e.dataItem,e.valueField);return e.dataItem=void 0,e.value=void 0,e.text=void 0,e.loading=!1,e.disabled=!1,t&&e.selectionChange.emit(void 0),e.emitValueChange(),e.createValueStream(),Object(h.of)(null)}))).subscribe((function(t){var n=Nt(e.dataItem,e.valueField)!==Nt(t.dataItem,e.valueField);if(e.dataItem=t.dataItem,e.value=t.value,e.text=t.text,e.loading=!1,e.disabled=!1,e.clearFilter(),t.custom&&(e.selectionService.focused=-1),n){var i=t.custom?void 0:e.dataItem;e.selectionChange.emit(i)}e.emitValueChange()}))},e.prototype.attachStreams=function(){var e=this;Object(c.isDocumentAvailable)()&&(this.subs.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()}))),this.subs.add(Object(h.merge)(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(Object(b.filter)((function(e){return It(e.index)}))).subscribe((function(t){return e.navigate(t.index)}))),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe((function(){return e.togglePopup(!1)}))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(Object(b.tap)((function(t){e.isOpen&&t.originalEvent.preventDefault()}))).subscribe(this.handleEnter.bind(this))),this.subs.add(Object(h.merge)(this.selectionService.onChange,this.selectionService.onSelect.pipe(Object(b.filter)((function(t){return!e.isOpen})))).pipe(Object(b.tap)((function(t){e._filtering=!1,e.togglePopup(!1)})),Object(b.map)((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){e.change(t)}))),this.subs.add(this.selectionService.onSelect.pipe(Object(b.filter)((function(t){return e.isOpen})),Object(b.tap)((function(t){return e._filtering=!1})),Object(b.map)((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){var n=Nt(t,e.valueField)!==Nt(e.dataItem,e.valueField);e.updateState({dataItem:t}),n&&e.selectionChange.emit(t)}))))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),clearTimeout(this.messagesTimeout),this.subs.unsubscribe(),It(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(c.isChanged)("valueNormalizer",e)&&this.createValueStream(),Object(c.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.focusItemAt=function(e){var t=e>=0&&e<this.data.length;It(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=It(e)?e:!t._open;t._toggle(n),t.cdr.markForCheck()}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.value=void 0,this.clearState(),this.resetSelection()},e.prototype.isEmpty=function(){var e=!It(this.text)||Pt(this.text),t=!It(this.value)||Pt(this.value);return e&&t},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1},e.prototype.writeValue=function(e){this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){if(this.isOpen){var e=this.popupRef.popupElement,t=this.popupWidth,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},e.prototype.verifySettings=function(){if(Object(s.isDevMode)()){if(!0===this.valuePrimitive&&It(this.value)&&"object"==typeof this.value)throw new Error(En);if(!1===this.valuePrimitive&&It(this.value)&&"object"!=typeof this.value)throw new Error(In);if(!It(this.valueField)!=!It(this.textField))throw new Error(Dn);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(Tn)}},e.prototype.setState=function(){if(!this._filtering){var e=this.value,t=this.valueField,n=this.findDataItem({valueField:t,value:e});It(n.index)&&-1!==n.index?(this.updateState({dataItem:n.dataItem,confirm:!0}),this.resetSelection(n.index)):It(e)&&this.allowCustom?(this.updateState({dataItem:e}),this.resetSelection(-1)):this._previousDataItem&&this.value?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection(-1))}},e.prototype.updateState=function(e){var t=e.dataItem,n=e.confirm,i=void 0!==n&&n;this.dataItem=t,this.text=Nt(t,this.textField),i&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!It(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e},e.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.findIndexPredicate=function(e){var t=this;return this.dataService.grouped?function(n){var i=Nt(n.value,t.textField);return(i=It(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(n){var i=Nt(n,t.textField);return(i=It(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}},e.prototype.findDataItem=function(e){var t=this,n=e.valueField,i=e.value,o={dataItem:null,index:-1},r=this.dataService.findIndex((function(e){var o=t.dataService.grouped?e.value:e;return Nt(o,n)===Nt(i,n)}));return o.dataItem=this.dataService.itemAt(r),o.index=r,o},e.prototype.search=function(e,t){var n;void 0===t&&(t=0),n=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(n)?n+1<this.dataService.itemsCount?this.search(e,n+1):this.selectionService.focus(-1):(this.selectionService.focus(n),this.suggest&&(this.suggestedText=Nt(this.dataService.itemAt(n),this.textField)))},e.prototype.getSuggestion=function(){var e=!!this.selectionService.selected.length,t=this.suggest&&!this.backspacePressed&&this.suggestedText&&this.text;if(!e&&t&&this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()))return this.suggestedText;this.suggestedText=void 0},e.prototype.navigate=function(e){0!==this.dataService.itemsCount&&(this.text=Nt(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},e.prototype.handleNavigate=function(e){var t=It(this.selectionService.selected[0]),n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused,i=0;if(!this.disabled&&!this.readonly&&e.keyCode!==c.Keys.Home&&e.keyCode!==c.Keys.End){t||(e.keyCode===c.Keys.ArrowDown?i=-1:e.keyCode===c.Keys.ArrowUp&&(i=1));var o=this.navigationService.process({current:i+n,max:this.dataService.itemsCount-1,min:0,originalEvent:e});o!==Fe.Undefined&&o!==Fe.Left&&o!==Fe.Right&&o!==Fe.Backspace&&o!==Fe.Delete&&(o===Fe.Enter&&this.isOpen||o!==Fe.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(){var e=this.text,t=this.selectionService.focused,n=It(t)&&-1!==t,i=Nt(this._previousDataItem,this.textField)||"",o=Nt(this.dataService.itemAt(t),this.textField),r=e!==i;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&r&&(e===o||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(n?this.selectionService.change(t):r&&this.change(e,!0))},e.prototype.handleBlur=function(){var e=this;this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1;var t=Nt(this.dataItem,this.valueField)!==Nt(this.value,this.valueField),n=this.searchbar.value,i=n!==(Nt(this.dataItem,this.textField)||""),o=t||i;o||Object(c.hasObservers)(this.onBlur)||Object(c.hasObservers)(this.close)||Vt(this.hostElement.nativeElement)?this.zone.run((function(){o&&(It(e.focusedItemText)&&e.focusedItemText.toLowerCase()===n.toLowerCase()||t?e.selectionService.change(e.selectionService.focused):e.change(n,!0));e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)})):this.togglePopup(!1)},e.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.selected.length>0||(this.suggestedText=null,this.selectionService.focused=-1)},e.prototype.handleNavigationOpen=function(){this.restoreItemFocus(),this.togglePopup(!0)},e.prototype.searchBarChange=function(e){var t=this.text?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==e?(this.filterText=e,this.filterChange.emit(e)):this.search(e)},e.prototype.handleFocus=function(){var e=this;this.isFocused=!0,Object(c.hasObservers)(this.onFocus)&&this.zone.run((function(){return e.onFocus.emit()}))},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.change=function(e,t){void 0===t&&(t=!1),t?this.customValueSubject.next(e):this.valueSubject.next(e)},e.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem},e.prototype.selectClick=function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)},Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),e.prototype.preventEventDefault=function(e){e.preventDefault()},Object.defineProperty(e.prototype,"focusedItemText",{get:function(){var e=this.selectionService.focused;if(!It(e)||-1===e)return null;var t=Nt(this.dataService.itemAt(e),this.textField);return It(t)?t.toString():""},enumerable:!0,configurable:!0}),e.prototype.restoreItemFocus=function(){!(It(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))},e.prototype.useSuggestion=function(){if(!this.suggest||!It(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),t=Nt(e,this.textField);return!!It(t)&&this.searchbar.value.toLowerCase()===t.toLowerCase()},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:n,popupAlign:i});var o=this.popupRef.popupElement,r=this.popupWidth,a=r.min,s=r.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=a,o.style.width=s,o.style.height=this.popupHeight,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.togglePopup(!1)}))},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new sn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))},e.prototype.setMessages=function(){var e=this;this.zone.runOutsideAngular((function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout((function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()}))}))},e.prototype.subscribeTouchEvents=function(){var e=this;Object(c.isDocumentAvailable)()&&this.touchEnabled&&this.zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target,i=Kt(e.hostElement,n,e.popupRef);e.isFocused&&!i?e.zone.run((function(){return e.blur()})):e.isOpen&&!i&&e.zone.run((function(){return e.togglePopup(!1)}))}))}))},e.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=u.d?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"allowCustom",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"data",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"valueNormalizer",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"iconClass",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"suggest",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(s.Input)("tabIndex"),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"selectionChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"filterChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"opened",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"closed",void 0),Object(a.__decorate)([Object(s.Output)("focus"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(s.Output)("blur"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(s.ContentChild)($t,{static:!1}),Object(a.__metadata)("design:type",$t)],e.prototype,"template",void 0),Object(a.__decorate)([Object(s.ContentChild)(qt,{static:!1}),Object(a.__metadata)("design:type",qt)],e.prototype,"headerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Xt,{static:!1}),Object(a.__metadata)("design:type",Xt)],e.prototype,"footerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(an,{static:!1}),Object(a.__metadata)("design:type",an)],e.prototype,"noDataTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Yt,{static:!1}),Object(a.__metadata)("design:type",Yt)],e.prototype,"groupTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Jt,{static:!1}),Object(a.__metadata)("design:type",Jt)],e.prototype,"fixedGroupTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)("container",{read:s.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",s.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(s.ViewChild)("popupTemplate",{static:!0}),Object(a.__metadata)("design:type",s.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)(Zt,{static:!0}),Object(a.__metadata)("design:type",Zt)],e.prototype,"searchbar",void 0),Object(a.__decorate)([Object(s.ViewChild)("optionsList",{static:!1}),Object(a.__metadata)("design:type",dn)],e.prototype,"optionsList",void 0),Object(a.__decorate)([Object(s.ViewChild)("wrapper",{static:!0}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(s.ViewChild)("select",{static:!0}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"select",void 0),Object(a.__decorate)([Object(s.HostBinding)("class.k-widget"),Object(s.HostBinding)("class.k-combobox"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(a.__decorate)([Object(s.HostBinding)("class.k-combobox-clearable"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"clearable",null),Object(a.__decorate)([Object(s.HostBinding)("attr.dir"),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),e=t=Object(a.__decorate)([Object(s.Component)({exportAs:"kendoComboBox",providers:[Kn,tn,Qt,rn,nn,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.combobox"},{provide:cn,useExisting:Object(s.forwardRef)((function(){return t}))},{provide:c.KendoInput,useExisting:Object(s.forwardRef)((function(){return t}))}],selector:"kendo-combobox",template:'\n <ng-container kendoComboBoxLocalizedMessages\n i18n-noDataText="kendo.combobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.combobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span #wrapper unselectable="on"\n class="k-dropdown-wrap"\n [ngClass]="{\'k-state-disabled\': disabled }"\n >\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="clearTitle"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n <span\n #select\n aria-hidden="true"\n unselectable="on"\n class="k-select"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon" [ngClass]="buttonClasses">\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n </span>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(a.__param)(10,Object(s.Optional)()),Object(a.__param)(10,Object(s.Inject)(hn)),Object(a.__metadata)("design:paramtypes",[p.LocalizationService,f.c,Qt,rn,nn,tn,s.NgZone,s.ChangeDetectorRef,s.Renderer2,s.ElementRef,Boolean])],e)}(),Un=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),Wn={multi:!0,provide:l.c,useExisting:Object(s.forwardRef)((function(){return Zn}))},Zn=function(){function e(e,t,n,i,o,r,a,c,l,u,p){this.localization=e,this.popupService=t,this.selectionService=n,this.navigationService=i,this.disabledItemsService=o,this.dataService=r,this._zone=a,this.renderer=c,this.hostElement=l,this.cdr=u,this.touchEnabled=p,this.focusableId="k-"+Et(),this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new s.EventEmitter,this.filterChange=new s.EventEmitter,this.selectionChange=new s.EventEmitter,this.open=new s.EventEmitter,this.opened=new s.EventEmitter,this.close=new s.EventEmitter,this.closed=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.widgetClasses=!0,this.groupIndices=[],this.listBoxId=Et(),this.optionPrefix=Et(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.word="",this.last="",this.filterFocused=new s.EventEmitter,this.filterBlurred=new s.EventEmitter,this.wrapperFocused=new s.EventEmitter,this.wrapperBlurred=new s.EventEmitter,this.selectionSubscription=new h.Subscription,this._open=!1,this._popupSettings={animate:!0},Object(d.validatePackage)(kt),this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=Object(c.isDocumentAvailable)()?this.wrapper.nativeElement.offsetWidth:0,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return It(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetTabIndex",{get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaOwns",{get:function(){if(this.isOpen)return this.listBoxId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActivedescendant",{get:function(){if(It(this.dataItem))return this.optionPrefix+"-"+Nt(this.dataItem,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){It(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=pn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return It(this._valuePrimitive)?this._valuePrimitive:!It(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.blurComponent=function(){this.wrapperBlurred.emit()},e.prototype.blurFilterInput=function(){this.filterBlurred.emit()},e.prototype.focusComponent=function(){var e=this;this.wrapperFocused.emit(),this.isFocused||(this.isFocused=!0,Object(c.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})))},e.prototype.keydown=function(e){var t=It(this.defaultItem)?-1:0,n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(t):this.selectionService.focused,i=0;if(!this.disabled&&!this.readonly){var o=e.keyCode===c.Keys.Home||e.keyCode===c.Keys.End;if(!(this.filterable&&this.isFocused&&this.isOpen)||!o){var r=It(this.selectionService.selected[0]),a=It(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);r&&!a||(e.keyCode===c.Keys.ArrowDown||e.keyCode===c.Keys.ArrowRight?i=-1:e.keyCode!==c.Keys.ArrowUp&&e.keyCode!==c.Keys.ArrowLeft||(i=1));var s=e,l=this.navigationService.process({current:n+i,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:s}),d=l===Fe.Left||l===Fe.Right;l===Fe.Undefined||l===Fe.Tab||l===Fe.Backspace||l===Fe.Delete||d&&this.filterable||l===Fe.Enter||s.preventDefault()}}},e.prototype.keypress=function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)},e.prototype.click=function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.assignAriaDescribedBy()},e.prototype.isEmpty=function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)},e.prototype.onFilterFocus=function(){this.filterFocused.emit()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(c.isChanged)("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),Object(c.anyChanged)(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.focusItemAt=function(e){var t=(It(this.defaultItem)?-1:0)<=e&&e<this.data.length;It(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=It(e)?e:!t._open;t._toggle(n)}))},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new sn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||(!e&&this.filterable&&this.isFocused&&this.focus(),this._toggle(e)))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.value=void 0},e.prototype.writeValue=function(e){this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabledDefaultItem",{get:function(){return this.disabledItemsService.isItemDisabled(this.defaultItem)},enumerable:!0,configurable:!0}),e.prototype.getText=function(){return this.text},e.prototype.getDefaultItemText=function(){return Nt(this.defaultItem,this.textField)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:n,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:i,popupClass:this.listContainerClasses,positionMode:"absolute"});var o=this.popupRef.popupElement,r=this.width,a=r.min,s=r.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=a,o.style.width=s,o.style.height=this.height,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.filterable||this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.togglePopup(!1)}))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.updateState=function(e){var t=e.dataItem,n=e.confirm,i=void 0!==n&&n;this.dataItem=t,this.text=Nt(t,this.textField),i&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!It(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e},e.prototype.onSelectionChange=function(e){var t=e.dataItem;this.updateState({dataItem:t}),this.selectionChange.emit(t),this.assignAriaDescribedBy()},e.prototype.subscribeEvents=function(){var e=this;Object(c.isDocumentAvailable)()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(Object(b.filter)((function(t){return e.isOpen})),Object(b.map)(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(Object(h.merge)(this.selectionService.onSelect.pipe(Object(b.filter)((function(t){return!e.isOpen}))),this.selectionService.onChange).pipe(Object(b.map)(this.itemFromEvent.bind(this)),Object(b.tap)((function(t){return e.togglePopup(!1)}))).subscribe((function(t){var n=t.dataItem,i=t.value;t.newSelection&&e.onSelectionChange({dataItem:n});var o=!It(n)&&e._previousDataItem,r=i!==Nt(e.value,e.valueField);o?(e.updateState({dataItem:e._previousDataItem}),e.resetSelection()):r&&(e.value=e.valuePrimitive?i:n,e._previousDataItem=n,e.emitChange(e.value)),e.clearFilter()}))),this.navigationSubscription=Object(h.merge)(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(Object(b.skipWhile)((function(){return e.filterable}))),this.navigationService.right.pipe(Object(b.skipWhile)((function(){return e.filterable}))),this.navigationService.home,this.navigationService.end).pipe(Object(b.filter)((function(e){return!isNaN(e.index)}))).subscribe((function(t){return e.selectionService.select(t.index)})),this.openSubscription=this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.closeSubscription=this.navigationService.close.subscribe((function(){e.togglePopup(!1),e.focus()})),this.enterSubscription=this.navigationService.enter.pipe(Object(b.tap)((function(e){return e.originalEvent.preventDefault()}))).subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.filterBlurredSubscription=this.filterBlurred.pipe(Object(b.concatMap)((function(){return Object(h.interval)(10).pipe(Object(b.take)(1),Object(b.takeUntil)(e.wrapperFocused))}))).subscribe((function(){e.wrapperBlurred.emit()})),this._zone.runOutsideAngular((function(){e.componentBlurredSubscription=Object(h.merge)(e.wrapperBlurred.pipe(Object(b.concatMap)((function(){return Object(h.interval)(10).pipe(Object(b.take)(1),Object(b.takeUntil)(e.filterFocused))}))),e.navigationService.tab).pipe(Object(b.tap)((function(t){return t instanceof on&&e.focus()})),Object(b.filter)((function(){return e.isFocused}))).subscribe((function(){return e.componentBlur()}))})))},e.prototype.subscribeTouchEvents=function(){var e=this;Object(c.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;e.isFocused&&!Kt(e.hostElement,n,e.popupRef)&&e._zone.run((function(){e.filterFocused&&e.togglePopup(!1),e.blur()}))}))}))},e.prototype.unsubscribeEvents=function(){Object(c.isDocumentAvailable)()&&(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())},e.prototype.itemFromEvent=function(e){var t=e.indices[0],n=this.dataService.itemAt(t);n=It(n)?n:this.currentOrDefault(t);var i=Nt(n,this.valueField);return{dataItem:n,index:t,newSelection:e.newSelection,value:i}},e.prototype.currentOrDefault=function(e){return It(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem},e.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.handleEnter=function(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)},e.prototype.handleEscape=function(){It(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()},e.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))},e.prototype.verifySettings=function(){if(Object(s.isDevMode)()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(Mn);if(!0===this.valuePrimitive&&It(this.value)&&"object"==typeof this.value)throw new Error(Nn);if(!1===this.valuePrimitive&&It(this.value)&&"object"!=typeof this.value)throw new Error(An);if(!It(this.valueField)!=!It(this.textField))throw new Error(Bn)}},e.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=It(this.selectionService.selected[0])&&Nt(this.value,this.valueField)!==Nt(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||Object(c.hasObservers)(this.close)||Object(c.hasObservers)(this.onBlur)||Object(c.hasObservers)(this.filterChange)||Vt(this.hostElement.nativeElement)?this._zone.run((function(){t&&e.selectionService.change(e.selectionService.selected[0]),e.togglePopup(!1),e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()})):this.togglePopup(!1)},e.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},e.prototype.onKeyPress=function(e){if(0!==e.which&&e.keyCode!==c.Keys.Enter){var t=String.fromCharCode(e.charCode||e.keyCode);this.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),this.word+=t,this.last=t,this.search()}},e.prototype.search=function(){var e=this;clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout((function(){e.word=""}),this.delay),this.selectNext())},e.prototype.selectNext=function(){var e,t,n,i=this,o=this.dataService.filter((function(e){return It(e)&&!e.header&&!i.disabledItemsService.isItemDisabled(e)})).map((function(e){return i.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:i.dataService.indexOf(e)}})),r=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(this.word,this.last),a=o.length,s=!isNaN(this.selectionService.selected[0]),c=s?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(n={item:this.defaultItem,itemIndex:-1},a+=1,c+=1),o=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))}(o,c+=r&&s?1:0,n),t=0;t<a;t++){e=Nt(o[t].item,this.textField);var l=Boolean(r&&Bt(e,this.last,this.ignoreCase)),d=Boolean(Bt(e,this.word,this.ignoreCase));if(l||d){t=o[t].itemIndex;break}}t!==a&&this.navigate(t)},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.navigate=function(e){this.selectionService.select(e)},e.prototype.findDataItem=function(e){var t,n=e.valueField,i=e.value,o={dataItem:null,index:-1},r=function(e){return Nt(e,n)};t=this.dataService.grouped?function(e){return r(e.value)===r(i)}:function(e){return r(e)===r(i)};var a=this.dataService.findIndex(t);return o.dataItem=this.dataService.itemAt(a),o.index=a,o},e.prototype.setState=function(){var e=this.value,t=this.valueField,n=this.textField,i=this.valuePrimitive;if(this.defaultItem){var o=Nt(this.defaultItem,t),r=Nt(e,t);if(!It(e)||r===o)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}var a=this.findDataItem({valueField:t,value:e}),s=!(i&&n);a.dataItem?(this.updateState({dataItem:a.dataItem,confirm:!0}),this.resetSelection(a.index)):It(e)&&s?(this.updateState({dataItem:e}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())},e.prototype.handleFilter=function(e){this.filterChange.emit(e.target.value)},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.setMessages=function(){var e=this;this._zone.runOutsideAngular((function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout((function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()}))}))},e.prototype.assignAriaDescribedBy=function(){var e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=Et();var t=(this.valueLabelId+" "+e).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"iconClass",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"data",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"defaultItem",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"ignoreCase",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"delay",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(s.Input)("tabIndex"),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"filterChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"selectionChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"opened",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"closed",void 0),Object(a.__decorate)([Object(s.Output)("focus"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(s.Output)("blur"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(s.ContentChild)($t,{static:!1}),Object(a.__metadata)("design:type",$t)],e.prototype,"itemTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Yt,{static:!1}),Object(a.__metadata)("design:type",Yt)],e.prototype,"groupTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Jt,{static:!1}),Object(a.__metadata)("design:type",Jt)],e.prototype,"fixedGroupTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Un,{static:!1}),Object(a.__metadata)("design:type",Un)],e.prototype,"valueTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(qt,{static:!1}),Object(a.__metadata)("design:type",qt)],e.prototype,"headerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Xt,{static:!1}),Object(a.__metadata)("design:type",Xt)],e.prototype,"footerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(an,{static:!1}),Object(a.__metadata)("design:type",an)],e.prototype,"noDataTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)("container",{read:s.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",s.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(s.ViewChild)("popupTemplate",{static:!0}),Object(a.__metadata)("design:type",s.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)("wrapper",{static:!0}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(s.ViewChild)("optionsList",{static:!1}),Object(a.__metadata)("design:type",dn)],e.prototype,"optionsList",void 0),Object(a.__decorate)([Object(s.HostBinding)("class.k-widget"),Object(s.HostBinding)("class.k-dropdown"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(a.__decorate)([Object(s.HostBinding)("attr.dir"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),e=t=Object(a.__decorate)([Object(s.Component)({exportAs:"kendoDropDownList",providers:[Wn,tn,Qt,rn,nn,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:cn,useExisting:Object(s.forwardRef)((function(){return t}))},{provide:c.KendoInput,useExisting:Object(s.forwardRef)((function(){return t}))}],selector:"kendo-dropdownlist",template:'\n <ng-container kendoDropDownListLocalizedMessages\n i18n-noDataText="kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n >\n </ng-container>\n <span #wrapper unselectable="on"\n role="listbox"\n [id]="focusableId"\n [ngClass]="{\n \'k-dropdown-wrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n [attr.dir]="direction"\n [attr.readonly]="readonly"\n [attr.tabindex]="widgetTabIndex"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n (keydown)="keydown($event)"\n (keypress)="keypress($event)"\n (click)="click($event)"\n [kendoEventsOutsideAngular]="{\n focus: focusComponent,\n blur: blurComponent\n }"\n [scope]="this"\n >\n <span class="k-input" unselectable="on" [id]="valueLabelId">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate">{{ getText() }}</ng-template>\n </span>\n <span class="k-select" unselectable="on">\n <span\n class="k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n >\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <span class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <input\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-textbox"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n <span class="k-icon k-i-search" unselectable="on"></span>\n </span>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div class="k-list-optionlabel" [ngClass]="{ \'k-state-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div class="k-list-optionlabel" [ngClass]="{ \'k-state-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n </span>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(a.__param)(10,Object(s.Optional)()),Object(a.__param)(10,Object(s.Inject)(hn)),Object(a.__metadata)("design:paramtypes",[p.LocalizationService,f.c,Qt,rn,nn,tn,s.NgZone,s.Renderer2,s.ElementRef,s.ChangeDetectorRef,Boolean])],e)}(),$n=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoMultiSelectCustomItemTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),qn=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),Xn=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),Yn=function(e){function t(t){var n=e.call(this)||this;return n.dataItem=t,n}return Object(a.__extends)(t,e),t}(sn),Jn={multi:!0,provide:l.c,useExisting:Object(s.forwardRef)((function(){return Qn}))},Qn=function(){function e(e,t,n,i,o,r,a,c,l,u,p,f){var m=this;this.localization=e,this.popupService=t,this.dataService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=r,this.cdr=a,this.differs=c,this.renderer=l,this.hostElement=u,this._zone=p,this.touchEnabled=f,this.listBoxId=Et(),this.tagListId=Et(),this.tagPrefix="tag-"+Et(),this.optionPrefix="option-"+Et(),this.focusedTagIndex=void 0,this.focusableId="k-"+Et(),this.autoClose=!0,this.tabindex=0,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.listHeight=200,this.clearButton=!0,this.tagMapper=function(e){return e||[]},this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(Object(b.map)((function(e){var t=function(t){return"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},n=m.value.find(t);if(n)return n;var i=m.dataService.find(t);return i||e})))},this.filterChange=new s.EventEmitter,this.valueChange=new s.EventEmitter,this.open=new s.EventEmitter,this.opened=new s.EventEmitter,this.close=new s.EventEmitter,this.closed=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.removeTag=new s.EventEmitter,this.widgetClasses=!0,this.initialized=!1,this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new h.Subject,this.observableSubscriptions=new h.Subscription,Object(d.validatePackage)(kt),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}var t;return t=e,e.prototype.focusItemAt=function(e){var t=(this.allowCustom?-1:0)<=0&&e<this.data.length;It(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.onSearchBarFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(c.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})))},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.onSearchBarBlur=function(){var e=this;this.isFocused&&(this.isFocused=!1,Object(c.hasObservers)(this.onBlur)||Object(c.hasObservers)(this.filterChange)||Object(c.hasObservers)(this.close)||Vt(this.hostElement.nativeElement)?this._zone.run((function(){e.closePopup(),e.isOpen&&e.allowCustom||e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()})):(this.allowCustom||this.clearFilter(),this.closePopup()))},e.prototype.wrapperMousedown=function(e){var t=this.searchbar.input.nativeElement;if(0===e.button){if(this.isFocused&&this.isOpen&&e.target===t)return;(!this.touchEnabled||this.touchEnabled&&"SPAN"!==e.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),e.preventDefault()}},e.prototype.onMouseDown=function(e){e.preventDefault()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],!this.differ&&this.value&&(this.differ=this.differs.find(this.value).create()),this.valueChangeDetected=!0,this.initialized&&this.setState(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this.selectedDataItems.length?"":this._placeholder},set:function(e){this._placeholder=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkboxes",{get:function(){return this._checkboxes},set:function(e){this._checkboxes=function(e){if(Tt(e)){return Object.assign({},{enabled:!0,checkOnClick:!0},e)}return{enabled:Boolean(e),checkOnClick:!0}}(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=pn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return It(this._valuePrimitive)?this._valuePrimitive:!It(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e=0;Object(c.isDocumentAvailable)()&&(e=this.wrapper.nativeElement.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return It(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDescendant",{get:function(){var e,t,n=this.focusedTagIndex,i=this.selectionService.focused;if(It(n)&&!this.isOpen)t=this.tags[n],e=this.tagPrefix;else{if(!It(i)||-1===i||!this.isOpen)return null;t=this.dataService.itemAt(i),e=this.optionPrefix}return e+"-"+Nt(t,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),e.prototype.verifySettings=function(){if(Object(s.isDevMode)()&&0!==this.value.length){if(!Dt(this.value))throw new Error(mn);if(!0===this.valuePrimitive&&Mt(this.value))throw new Error(vn);if(!1===this.valuePrimitive&&!Mt(this.value))throw new Error(gn);if(!It(this.valueField)!=!It(this.textField))throw new Error(yn)}},e.prototype.change=function(e){var t=this;if((It(e.added)||It(e.removed))&&(-1===e.added||-1===e.removed))this.addCustomValue(this.text);else{if(It(e.added)){var n=this.dataService.itemAt(e.added),i=this.valuePrimitive&&It(n)&&It(n[this.valueField])?n[this.valueField]:n;this.value=this.value.concat([i])}if(It(e.removed)){var o=this.dataService.itemAt(e.removed);this.value=this.value.filter((function(e){return Nt(e,t.valueField)!==Nt(o,t.valueField)})),this.selectionService.focused=e.removed,this.cdr.detectChanges()}this.emitValueChange()}},e.prototype.setState=function(e){var t=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=At(this.value,n,this.valueField);this.selectionService.resetSelection(i),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(this.dataService.itemsCount>0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(Mt(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=Ft(e,n,this.valueField)),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map((function(e){var n=t.selectedDataItems.find((function(n){return Nt(n,t.valueField)===Nt(e,t.valueField)}));return It(n)?n:t.resolveDataItemFromTags(e)})).filter((function(e){return It(e)}))),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()},e.prototype.handleFilter=function(e){this.text=e,e&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.clearFilter=function(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()},e.prototype.handleNavigate=function(e){var t=this.text&&e.keyCode!==c.Keys.ArrowDown&&e.keyCode!==c.Keys.ArrowUp,n=this.text&&e.keyCode===c.Keys.Enter||e.keyCode===c.Keys.Escape;if(!this.text&&e.keyCode===c.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!(this.disabled||t&&!n)){var i=e,o=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,r=this.navigationService.process({current:o,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:i});r!==Fe.Undefined&&(r===Fe.Enter&&this.isOpen||r!==Fe.Enter)&&e.preventDefault()}},e.prototype.handleRemoveTag=function(e){var t=e.tag,n=new Yn(t);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(n),n.isDefaultPrevented()||(t instanceof Array?this.removeGroupTag(t):this.removeSingleTag(t),this.cdr.detectChanges()))},e.prototype.clearAll=function(e){var t=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter();var n=this.selectionService.selected;this.value=this.value.filter((function(e,i){return t.disabledItemsService.isIndexDisabled(n[i])})),this.emitValueChange()},e.prototype.addCustomValue=function(e){this.customValueSubject.next(e)},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.ngDoCheck=function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1},e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.setState(this.value),this.initialized=!0},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(c.isChanged)("valueNormalizer",e)&&this.createCustomValueStream(),Object(c.anyChanged)(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)},e.prototype.ngAfterViewInit=function(){this.searchbar.setInputSize()},e.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout)},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=It(e)?e:!t._open;t._toggle(n),t.cdr.markForCheck()}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.text="",this.value=[]},e.prototype.writeValue=function(e){this.value=e||[]},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onTagMapperChange=function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),e.prototype.subscribeEvents=function(){var e=this;if(Object(c.isDocumentAvailable)()){var t=function(){return e.isOpen},n=function(){return!e.isOpen},i=function(){return!e.isOpen&&void 0!==e.focusedTagIndex};[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(Object(b.filter)(t)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe(Object(b.filter)(t)).subscribe((function(t){return e.handleUp(t.index)})),this.navigationService.home.pipe(Object(b.filter)((function(){return n}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Object(b.filter)((function(){return n}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Object(b.filter)(i)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Object(b.filter)(i)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe((function(t){return e.handleDownKey(t.index)}))].forEach((function(t){return e.observableSubscriptions.add(t)}))}},e.prototype.subscribeTouchEvents=function(){var e=this;Object(c.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;!e.isFocused&&!e.isOpen||Kt(e.hostElement,n,e.popupRef)||e._zone.run((function(){e.blur(),e.isOpen&&e.togglePopup(!1)}))}))}))},e.prototype.unsubscribeEvents=function(){Object(c.isDocumentAvailable)()&&(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},e.prototype.removeGroupTag=function(e){var t=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=new Set(e.map((function(e){return Nt(e,t.valueField)})));this.value=this.value.filter((function(e){var o=At([e],n,t.valueField)[0],r=t.disabledItemsService.isIndexDisabled(o);return!i.has(Nt(e,t.valueField))||r})),this.emitValueChange()},e.prototype.removeSingleTag=function(e){var t=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=At([e],n,this.valueField)[0];if(!this.disabledItemsService.isIndexDisabled(i))if(isNaN(i)){this.value=this.value.filter((function(n){return Nt(n,t.valueField)!==Nt(e,t.valueField)})),this.emitValueChange()}else this.selectionService.unselect(i),this.selectionService.focused=i,this.togglePopup(!1)},e.prototype.disabledItemsMapper=function(){var e=this,t=this.selectionService.selected;return new Set(this.selectedDataItems.reduce((function(n,i,o){return e.disabledItemsService.isIndexDisabled(t[o])&&n.push(o),n}),[]))},e.prototype.createCustomValueStream=function(){var e=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(Object(b.tap)((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),this.valueNormalizer,Object(b.catchError)((function(){return e.loading=!1,e.disabled=!1,e.autoClose&&e.togglePopup(!1),!e.autoClose&&e.filterable||e.clearFilter(),e.nextTick((function(){e.searchbar.focus()})),e.createCustomValueStream(),Object(h.of)(null)}))).subscribe((function(t){if(e.loading=!1,e.disabled=!1,It(t)){var n=e.valuePrimitive?Nt(t,e.valueField):t,i=e.dataService.indexOf(n),o=-1===i;-1===e.value.indexOf(n)?(e.tags=e.tagMapper(e.selectedDataItems.concat([t])),o?e.value=e.value.concat([n]):e.selectionService.add(i)):!o&&e.selectionService.isSelected(i)?(e.selectionService.unselect(i),e.selectionService.focused=i):e.value=e.value.filter((function(t){return Nt(t,e.valueField)!==n})),e.emitValueChange()}e.autoClose&&e.togglePopup(!1),!e.autoClose&&e.filterable||e.clearFilter(),e.nextTick((function(){e.searchbar.focus()}))}))},e.prototype.handleItemChange=function(e){this.change(e),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()},e.prototype.handleEnter=function(e){var t=this.selectionService,n=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==n?(t.isSelected(n)?(t.unselect(n),t.focused=n):t.add(n),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)},e.prototype.handleClose=function(){this.closePopup(),this.searchbar.focus()},e.prototype.handleEnd=function(){this.focusedTagIndex=this.tags.length-1},e.prototype.handleHome=function(){this.focusedTagIndex=0},e.prototype.handleUp=function(e){this.selectionService.focused=e},e.prototype.handleBackspace=function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())},e.prototype.handleDelete=function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},e.prototype.handleLeftKey=function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},e.prototype.handleDownKey=function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()},e.prototype.handleRightKey=function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e&&this.focusedTagIndex++},e.prototype.findIndex=function(e,t){var n,i=this;void 0===t&&(t=0),e=e.toLowerCase();var o=this.dataService.findIndex((function(t){return n=i.dataService.grouped?Nt(t.value,i.textField):Nt(t,i.textField),n=It(n)?n.toString().toLowerCase():"",e&&n.startsWith(e)}),t);return this.disabledItemsService.isIndexDisabled(o)?o+1>this.dataService.itemsCount?-1:this.findIndex(e,o+1):o},e.prototype.searchTextAndFocus=function(e){var t=this.findIndex(e);this.selectionService.focused=t},e.prototype.closePopup=function(){this.togglePopup(!1),this.focusedTagIndex=void 0},e.prototype.openPopup=function(){this.togglePopup(!0),this.focusedTagIndex=void 0},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},e.prototype.triggerPopupEvents=function(e){var t=new sn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:n,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:i,popupClass:this.listContainerClasses,positionMode:"absolute"});var o=this.popupRef.popupElement,r=this.width,a=r.min,s=r.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=a,o.style.width=s,o.style.height=this.height,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.togglePopup(!1)}))},e.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)},e.prototype.resolveDataItemFromTags=function(e){var t=this;if(this.tags&&this.tags.length&&It(e))return this.tags.reduce((function(e,t){var n=Dt(t)?t:[t];return e.push.apply(e,n),e}),[]).find((function(n){return Nt(n,t.valueField)===Nt(e,t.valueField)}))},e.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){var n=e+1;return n<t?this.firstFocusableIndex(n):void 0}return e},e.prototype.nextTick=function(e){var t=this;this._zone.runOutsideAngular((function(){setTimeout((function(){return t._zone.run(e)}))}))},e.prototype.setMessages=function(){var e=this;this._zone.runOutsideAngular((function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout((function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()}))}))},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"autoClose",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"value",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(s.Input)("tabIndex"),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"placeholder",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"checkboxes",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"tagMapper",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"allowCustom",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"valueNormalizer",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"filterChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"opened",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"closed",void 0),Object(a.__decorate)([Object(s.Output)("focus"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(s.Output)("blur"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"removeTag",void 0),Object(a.__decorate)([Object(s.ViewChild)("container",{read:s.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",s.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(s.ViewChild)(Zt,{static:!0}),Object(a.__metadata)("design:type",Zt)],e.prototype,"searchbar",void 0),Object(a.__decorate)([Object(s.ViewChild)("popupTemplate",{static:!0}),Object(a.__metadata)("design:type",s.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)("wrapper",{static:!0}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(s.ViewChild)("optionsList",{static:!1}),Object(a.__metadata)("design:type",dn)],e.prototype,"optionsList",void 0),Object(a.__decorate)([Object(s.ContentChild)($t,{static:!1}),Object(a.__metadata)("design:type",$t)],e.prototype,"template",void 0),Object(a.__decorate)([Object(s.ContentChild)($n,{static:!1}),Object(a.__metadata)("design:type",$n)],e.prototype,"customItemTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Yt,{static:!1}),Object(a.__metadata)("design:type",Yt)],e.prototype,"groupTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Jt,{static:!1}),Object(a.__metadata)("design:type",Jt)],e.prototype,"fixedGroupTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(qt,{static:!1}),Object(a.__metadata)("design:type",qt)],e.prototype,"headerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Xt,{static:!1}),Object(a.__metadata)("design:type",Xt)],e.prototype,"footerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(qn,{static:!1}),Object(a.__metadata)("design:type",qn)],e.prototype,"tagTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Xn,{static:!1}),Object(a.__metadata)("design:type",Xn)],e.prototype,"groupTagTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(an,{static:!1}),Object(a.__metadata)("design:type",an)],e.prototype,"noDataTemplate",void 0),Object(a.__decorate)([Object(s.HostBinding)("class.k-widget"),Object(s.HostBinding)("class.k-multiselect"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(a.__decorate)([Object(s.HostBinding)("attr.dir"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),Object(a.__decorate)([Object(s.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(a.__decorate)([Object(s.Component)({exportAs:"kendoMultiSelect",providers:[Jn,tn,Qt,rn,nn,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:cn,useExisting:Object(s.forwardRef)((function(){return t}))},{provide:c.KendoInput,useExisting:Object(s.forwardRef)((function(){return t}))}],selector:"kendo-multiselect",template:'\n <ng-container kendoMultiSelectLocalizedMessages\n i18n-noDataText="kendo.multiselect.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.combobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <div class="k-multiselect-wrap k-floatwrap"\n #wrapper\n (mousedown)="wrapperMousedown($event)"\n >\n <kendo-taglist\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n </kendo-taglist>\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'listbox\'"\n [tagListId]="tagListId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n </div>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div class="k-list" *ngIf="allowCustom && text">\n <div class="k-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n [checkboxes]="checkboxes"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(a.__param)(11,Object(s.Optional)()),Object(a.__param)(11,Object(s.Inject)(hn)),Object(a.__metadata)("design:paramtypes",[p.LocalizationService,f.c,tn,Qt,rn,nn,s.ChangeDetectorRef,s.KeyValueDiffers,s.Renderer2,s.ElementRef,s.NgZone,Boolean])],e)}(),ei=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),ti=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),ni=function(){function e(){this.hidden=!1,this.matchesMedia=!0}return Object(a.__decorate)([Object(s.ContentChild)(ei,{static:!1}),Object(a.__metadata)("design:type",ei)],e.prototype,"cellTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(ti,{static:!1}),Object(a.__metadata)("design:type",ti)],e.prototype,"headerTemplate",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"field",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"width",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"hidden",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"style",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"headerStyle",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"class",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"headerClass",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"media",void 0),e=Object(a.__decorate)([Object(s.Component)({selector:"kendo-combobox-column",template:""})],e)}(),ii=function(){if(isNaN(en)){var e=document.createElement("div");e.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),en=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return en},oi=function(e){if(!function(e){return!(!It(e)||0===e.length)&&e.toArray().every((function(e){return!isNaN(e.width)&&e.width>0}))}(e))return null;var t=ii()+2;return e.reduce((function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e}),t)},ri=function(e){function t(t,n,i,o,r,a,s,c,l,d,u){var p=e.call(this,t,n,i,o,r,a,s,c,l,d,u)||this;return p.hostClasses=!0,p.removeWindowResizeListener=zt,p.defaultVirtualItemHeight=36,p.defaultVirtualPageSize=30,p}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"header",{set:function(e){this.updateHeaderPadding(e&&e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupWidth",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=e+"px",n=this.popupSettings.width||oi(this.columns)||e;return{min:t,max:isNaN(n)?n:n+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-popup","k-reset","k-group","k-dropdowngrid-popup","k-popup-flush","k-state-border-up"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.removeWindowResizeListener()},t.prototype.textFrom=function(e,t){return Nt(e,t)},t.prototype.updateHeaderPadding=function(e){if(It(e)){var t=this.localization.rtl?"padding-left":"padding-right";this.optionsList.hasScrollbar()&&ii()>0?this.renderer.setStyle(e,t,ii()+"px"):this.renderer.removeStyle(e,t)}},t.prototype.verifySettings=function(){if(Object(s.isDevMode)()){if(It(this.data)&&this.data.length>0&&this.data.some((function(e){return!Tt(e)})))throw new Error(Pn);if(!It(this.valueField)||!It(this.textField))throw new Error(Fn);e.prototype.verifySettings.call(this)}},t.prototype.addWindowResizeListener=function(){var e=this;Object(c.isDocumentAvailable)()&&this.zone.runOutsideAngular((function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))}))},t.prototype.updateColumnsMediaState=function(){var e=this;It(this.columns)&&Object(c.isDocumentAvailable)()&&this.columns.forEach((function(t){var n=!t.media||window.matchMedia(t.media).matches;t.matchesMedia!==n&&(t.matchesMedia=n,e.isOpen&&e.zone.run((function(){return e.popupRef.popupElement.style.width=e.popupWidth.max})))}))},Object(a.__decorate)([Object(s.HostBinding)("class.k-dropdowngrid"),Object(a.__metadata)("design:type",Boolean)],t.prototype,"hostClasses",void 0),Object(a.__decorate)([Object(s.ContentChildren)(ni),Object(a.__metadata)("design:type",s.QueryList)],t.prototype,"columns",void 0),Object(a.__decorate)([Object(s.ViewChild)("header",{static:!1}),Object(a.__metadata)("design:type",s.ElementRef),Object(a.__metadata)("design:paramtypes",[s.ElementRef])],t.prototype,"header",null),t=n=Object(a.__decorate)([Object(s.Component)({providers:[Qt,tn,rn,nn,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:l.c,useExisting:Object(s.forwardRef)((function(){return n}))},{provide:c.KendoInput,useExisting:Object(s.forwardRef)((function(){return n}))},{provide:cn,useExisting:Object(s.forwardRef)((function(){return n}))}],selector:"kendo-multicolumncombobox",template:'\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText="kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multicolumncombobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span\n #wrapper\n unselectable="on"\n class="k-dropdown-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="clearTitle"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n\n <span\n #select\n aria-hidden="true"\n unselectable="on"\n class="k-select"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span\n class="k-icon"\n [ngClass]="buttonClasses"\n >\n </span>\n </span>\n </span>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-grid-header"\n >\n <div class="k-grid-header-wrap">\n <table role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <tbody>\n <tr>\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-header"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-cell"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [listClass]="\'k-reset k-grid-list\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-nodata"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-footer">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </div>\n </ng-container>\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n '}),Object(a.__param)(10,Object(s.Inject)(hn)),Object(a.__metadata)("design:paramtypes",[p.LocalizationService,f.c,Qt,rn,nn,tn,s.NgZone,s.ChangeDetectorRef,s.Renderer2,s.ElementRef,Boolean])],t)}(Gn),ai=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}),Object(a.__metadata)("design:paramtypes",[s.TemplateRef])],e)}(),si={animate:!0},ci=function(){return!1},li=function(){return Object(h.of)([])},di=function(){return!1},ui=function(){return!0},pi=function(){function e(e,t,n,i,o,r,a,l){this.popupService=e,this.navigationService=t,this.renderer=n,this.hostElement=i,this._zone=o,this.cdr=r,this.localization=a,this.touchEnabled=l,this.hostClasses=!0,this.open=new s.EventEmitter,this.opened=new s.EventEmitter,this.close=new s.EventEmitter,this.closed=new s.EventEmitter,this.nodeExpand=new s.EventEmitter,this.nodeCollapse=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.valueChange=new s.EventEmitter,this.filterChange=new s.EventEmitter,this.clearButton=!0,this.hasChildren=ci,this.fetchChildren=li,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=di,this.isNodeVisible=ui,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+Object(c.guid)(),this.selectedKeys=[],this.filterStateChange=new s.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+Object(c.guid)(),this._popupSettings=si,this._tabindex=0,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=zt,this.onChangeCallback=zt,this.direction=a.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}var t;return t=e,Object.defineProperty(e.prototype,"clearable",{get:function(){return this.clearButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeview",{get:function(){return this._treeview},set:function(e){e&&((this.isFocused&&!this.filterable||this.touchEnabled)&&e.focus(),e.animate=!0,this._treeview=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},si,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataItem",{get:function(){return this._dataItem?this._dataItem:this.value},set:function(e){this._dataItem=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return It(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return It(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.markForCheck()})))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){Object(c.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.isEmpty=function(){return!this.text&&!this.placeholder},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup()))},e.prototype.handleFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(c.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this,n=e&&e.relatedTarget;this.hostElement.nativeElement.contains(n)||this.isOpen&&this.popupRef.popupElement.contains(n)||(this.isFocused=!1,Object(c.hasObservers)(this.onBlur)||Vt(this.hostElement.nativeElement)?this._zone.run((function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()})):this.togglePopup(!1))},e.prototype.handleKeydown=function(e){if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})}},e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.focusItemAt=function(e){if(this.treeview){var t=this.treeview.itemLookup(e);!It(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e)}},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},e.prototype.reset=function(){this.value=void 0,this.dataItem=void 0},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=It(e)?e:!It(t.popupRef);t.destroyPopup(),n&&t.createPopup()}))},Object.defineProperty(e.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),e.prototype.onSelectionChange=function(e){var t=e.dataItem,n=e.index;this.valueDepth=n.split("_").length-1;var i=this.getField(this.valueField,t),o=this.valuePrimitive?Object(u.b)(i)(t):t;o!==this.value&&(this.dataItem=t,this.value=o,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()},e.prototype.messageFor=function(e){return this.localization.get(e)},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.value=void 0,this.dataItem=void 0,this.clearState(),this.valueChange.emit(void 0),this.emitValueChange()},Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.preventEventDefault=function(e){e.preventDefault()},e.prototype.writeValue=function(e){!It(e)&&It(this.value)&&(this.dataItem=null),this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.handleFilterInputChange=function(e){var t=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every((function(e,n){return!t.isVisible(e,String(n))}))},e.prototype.verifySettings=function(){if(Object(s.isDevMode)()){if(!0===this.valuePrimitive&&It(this.value)&&"object"==typeof this.value)throw new Error(Rn);if(!0===this.valuePrimitive&&It(this.value)&&"object"!=typeof this.dataItem)throw new Error(zn);if(!1===this.valuePrimitive&&It(this.value)&&"object"!=typeof this.value)throw new Error(Vn);if(!It(this.valueField)||!It(this.textField))throw new Error(Ln);if((Dt(this.valueField)||Dt(this.textField))&&It(this.value)&&!It(this.valueDepth))throw new Error(Hn)}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.getText=function(e,t){if(It(t)&&It(e)){var n=this.getField(e,t);return Object(u.b)(n)(t)}return null},e.prototype.getField=function(e,t){var n=e.length-1;return"string"==typeof e?e:It(this.valueDepth)?n<this.valueDepth?e[n]:e[this.valueDepth]:e.find((function(e){return e in t}))},e.prototype.triggerPopupEvents=function(e){var t=new sn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:n,content:this.popupTemplate,popupAlign:i,positionMode:"absolute",popupClass:this.popupContainerClasses});var o=this.popupRef.popupElement,r=this.width,a=r.min,s=r.max;o.style.minWidth=a,o.style.width=s,o.style.height=this.height,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()}))},e.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,Object(c.hasObservers)(this.filterChange)&&this._zone.run((function(){e.filterChange.emit("")}))))},e.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},e.prototype.setState=function(){if(It(this.value)&&It(this.dataItem)&&It(this.valueField)){this.text=this.getText(this.textField,this.dataItem);var e=this.getField(this.valueField,this.dataItem);this.selectBy=e,this.selectedKeys=[Object(u.b)(e)(this.dataItem)]}else this.clearState();this.cdr.markForCheck()},e.prototype.clearState=function(){this.text=void 0,this.valueDepth=void 0,this.selectedKeys=[]},e.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.navigationService.close.subscribe((function(){e.togglePopup(!1),e.focus()})),this.navigationService.enter.pipe(Object(b.tap)((function(e){return e.originalEvent.preventDefault()}))).subscribe((function(){return e.togglePopup(!0)})),this.navigationService.esc.subscribe((function(){return e.handleEscape()})),this.navigationService.tab.subscribe((function(){return e.focus()})),this.navigationService.down.subscribe((function(t){e.treeview&&(t.originalEvent.preventDefault(),e.treeview.isActive||e.treeview.focus())})),this.navigationService.up.subscribe((function(t){e.treeview&&(t.originalEvent.preventDefault(),e.filterable&&"0"===e.treeview.navigationService.activeIndex&&e.filterInput.nativeElement.focus())})))},e.prototype.subscribeTouchEvents=function(){var e=this;Object(c.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;e.isFocused&&!Kt(e.hostElement,n,e.popupRef)&&e._zone.run((function(){e.isOpen&&e.treeview.blur(),e.blur()}))}))}))},e.prototype.unsubscribeEvents=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},e.prototype.assignAriaDescribedBy=function(){var e=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",t=(this.valueLabelId+" "+e.trim()).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)},Object(a.__decorate)([Object(s.HostBinding)("class.k-widget"),Object(s.HostBinding)("class.k-dropdowntree"),Object(s.HostBinding)("class.k-dropdowntree-clearable"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(a.__decorate)([Object(s.HostBinding)("attr.dir"),Object(a.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(a.__decorate)([Object(s.HostBinding)("class.k-dropdowntree-clearable"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"clearable",null),Object(a.__decorate)([Object(s.ContentChild)(an,{static:!1}),Object(a.__metadata)("design:type",an)],e.prototype,"noDataTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(qt,{static:!1}),Object(a.__metadata)("design:type",qt)],e.prototype,"headerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Xt,{static:!1}),Object(a.__metadata)("design:type",Xt)],e.prototype,"footerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(ai,{static:!1}),Object(a.__metadata)("design:type",ai)],e.prototype,"nodeTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Un,{static:!1}),Object(a.__metadata)("design:type",Un)],e.prototype,"valueTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)("popupTemplate",{static:!0}),Object(a.__metadata)("design:type",s.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)("wrapper",{static:!0}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(s.ViewChild)("container",{read:s.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",s.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(s.ViewChild)("treeview",{static:!1}),Object(a.__metadata)("design:type",ye),Object(a.__metadata)("design:paramtypes",[ye])],e.prototype,"treeview",null),Object(a.__decorate)([Object(s.ViewChild)("filterInput",{static:!1}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"filterInput",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"opened",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"closed",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"nodeExpand",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"nodeCollapse",void 0),Object(a.__decorate)([Object(s.Output)("focus"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(s.Output)("blur"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"filterChange",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"valueField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"valueDepth",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"hasChildren",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"fetchChildren",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"dataItem",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"itemDisabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isNodeExpanded",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isNodeVisible",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"filter",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),e=t=Object(a.__decorate)([Object(s.Component)({exportAs:"kendoDropDownTree",providers:[tn,Qt,rn,nn,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:l.c,useExisting:Object(s.forwardRef)((function(){return t}))},{provide:c.KendoInput,useExisting:Object(s.forwardRef)((function(){return t}))},{provide:he,useExisting:Object(s.forwardRef)((function(){return t}))},{provide:fe,useExisting:Object(s.forwardRef)((function(){return t}))}],selector:"kendo-dropdowntree",template:'\n <ng-container kendoDropDownTreeLocalizedMessages\n i18n-noDataText="kendo.dropdowntree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.dropdowntree.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span\n #wrapper\n [ngClass]="{\n \'k-dropdown-wrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n [attr.id]="focusableId"\n role="listbox"\n aria-haspopup="tree"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.tabindex]="tabindex"\n [attr.dir]="direction"\n (click)="handleClick()"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n [attr.id]="valueLabelId"\n class="k-input"\n >\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate"> {{ text || placeholder }} </ng-template>\n </span>\n <span\n *ngIf="!loading && !readonly && clearButton && text?.length"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n </span>\n <span class="k-select" aria-hidden="true">\n <span class="k-icon k-i-arrow-60-down"></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown.arrowdown)="handleKeydown($event)"\n (keydown.alt.arrowup)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-textbox"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-zoom"></span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n *ngIf="data.length !== 0 && !allNodesHidden"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n [(selectedKeys)]="selectedKeys"\n [selectBy]="selectBy"\n [textField]="textField"\n kendoTreeViewSelectable\n [children]="children"\n [hasChildren]="hasChildren"\n [loadOnDemand]="loadOnDemand"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (focusout)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n (selectionChange)="onSelectionChange($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',changeDetection:s.ChangeDetectionStrategy.OnPush}),Object(a.__param)(7,Object(s.Optional)()),Object(a.__param)(7,Object(s.Inject)(hn)),Object(a.__metadata)("design:paramtypes",[f.c,rn,s.Renderer2,s.ElementRef,s.NgZone,s.ChangeDetectorRef,p.LocalizationService,Boolean])],e)}(),hi={animate:!0},fi={checkChildren:!0,checkOnClick:!0},bi=function(){return!1},mi=function(){return Object(h.of)([])},gi=function(){return!1},vi=function(){return!0},yi=function(){function e(e,t,n,i,o,r,a,l){this.popupService=e,this.renderer=t,this.hostElement=n,this.navigationService=i,this._zone=o,this.localization=r,this.cdr=a,this.touchEnabled=l,this.hostClasses=!0,this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId="k-"+Object(c.guid)(),this.clearButton=!0,this.filterable=!1,this.hasChildren=bi,this.fetchChildren=mi,this.isNodeVisible=vi,this.itemDisabled=gi,this.tagMapper=function(e){return e||[]},this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.open=new s.EventEmitter,this.opened=new s.EventEmitter,this.close=new s.EventEmitter,this.closed=new s.EventEmitter,this.nodeExpand=new s.EventEmitter,this.nodeCollapse=new s.EventEmitter,this.valueChange=new s.EventEmitter,this.removeTag=new s.EventEmitter,this.filterChange=new s.EventEmitter,this.filterStateChange=new s.EventEmitter,this.checkedItems=[],this.checkBy=function(e){return e},this.showAfter=0,this.allNodesHidden=!1,this.tagListId=Object(c.guid)(),this.tagPrefix="tag-"+Object(c.guid)(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=hi,this._checkableSettings=fi,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=zt,this.onChangeCallback=zt,this.direction=r.rtl?"rtl":"ltr",this.subscribeEvents()}var t;return t=e,Object.defineProperty(e.prototype,"treeview",{get:function(){return this._treeview},set:function(e){var t=this;this._treeview=e,e&&((this.isFocused&&!this.filterable||this.touchEnabled)&&e.focus(),Promise.resolve(null).then((function(){return t.treeview.animate=!0})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Ht(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},hi,e),this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkableSettings",{get:function(){return this._checkableSettings},set:function(e){this._checkableSettings=Object.assign({},fi,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataItems",{get:function(){var e=this;return this._dataItems||this.value.map((function(t,n){return{dataItem:t,index:null,level:e.valueDepth[n]||0}}))},set:function(e){var t=this;this._dataItems=(e||[]).map((function(e,n){return Rt(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:t.valueDepth[n]||0}})),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedTagId",{get:function(){if(!It(this.focusedTagIndex)||this.isOpen)return null;var e=this.tags[this.focusedTagIndex];return this.tagPrefix+"-"+Wt({dataItem:e},this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return It(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return It(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTagFocused",{get:function(){return!this.isOpen&&void 0!==this.focusedTagIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTreeViewActive",{get:function(){return this.treeview&&this.treeview.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isWrapperActive",{get:function(){return document.activeElement===this.wrapper.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.markForCheck()})))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){var t=this;Object(c.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState(),Object(c.anyChanged)(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map((function(e,n){return Object(a.__assign)({},e,{level:t.valueDepth[n]||0})})):this.dataItems=this.value)},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||It(this.value)&&0!==this.value.length)},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},e.prototype.focusItemAt=function(e){if(this.treeview){var t=this.treeview.itemLookup(e);!It(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e)}},e.prototype.reset=function(){this.value=[],this.dataItems=[],this.valueDepth=[]},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=It(e)?e:!It(t.popupRef);t.destroyPopup(),n&&t.createPopup()}))},e.prototype.handleFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(c.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})),this.isOpen&&this.treeview&&(this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus()))},e.prototype.handleBlur=function(e){var t=this,n=e&&e.relatedTarget;this.hostElement.nativeElement.contains(n)||this.isOpen&&this.popupRef.popupElement.contains(n)||(this.isFocused=!1,this.togglePopup(!1),(Object(c.hasObservers)(this.onBlur)||Vt(this.hostElement.nativeElement))&&this._zone.run((function(){t.onBlur.emit(),t.onTouchedCallback()})))},e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.handleKeydown=function(e){if(this.isWrapperActive&&e.keyCode===c.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})===Fe.Open&&t.preventDefault()}},e.prototype.handleNodeClick=function(e){if(!this.isFocused){var t=e.originalEvent.target.parentElement.parentElement;this.lastNodeOnFocus=t,this.focus()}},e.prototype.togglePopup=function(e){var t=this,n=this.disabled||this.readonly,i=this.isOpen===e;(this._zone.run((function(){t.focusedTagIndex=void 0})),n||i)||(this.triggerPopupEvents(e)?this.removeTreeViewFromTabOrder():e?this.createPopup():this.destroyPopup())},e.prototype.messageFor=function(e){return this.localization.get(e)},e.prototype.handleCheckedItemsChange=function(e){this.valueDepth=e.map((function(e){return e.level})),this.dataItems=e.slice(),this.updateValue(this.dataItems)},e.prototype.handleRemoveTag=function(e){var t=this,n=e.tag,i=e.index;if(!this.disabled&&!this.readonly){var o=new Yn(n);this.removeTag.emit(o),o.isDefaultPrevented()||(n instanceof Array?(this.dataItems=this.dataItems.filter((function(e,n){return n<t.showAfter||t.disabledIndices.has(n)})),this.valueDepth=this.valueDepth.filter((function(e,n){return n<t.showAfter||t.disabledIndices.has(n)}))):(this.dataItems=this.dataItems.filter((function(e,n){return n!==i||t.disabledIndices.has(n)})),this.valueDepth=this.valueDepth.filter((function(e,n){return n!==i||t.disabledIndices.has(n)}))),this.updateValue(this.dataItems),this.isFocused||this.focus())}},e.prototype.handleTagMapperChange=function(e){this.showAfter=Ht(e),this.setTags()},e.prototype.clearAll=function(e){var t=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter((function(e,n){return t.disabledIndices.has(n)})),this.dataItems=this.dataItems.filter((function(e,n){return t.disabledIndices.has(n)})),this.valueDepth=this.valueDepth.filter((function(e,n){return t.disabledIndices.has(n)})),this.emitValueChange(this.value)},e.prototype.writeValue=function(e){this.value=e||[],this.valuePrimitive||(this.dataItems=this.value)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.handleFilterInputChange=function(e){var t=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every((function(e,n){return!t.isVisible(e,String(n))}))},e.prototype.verifySettings=function(){if(Object(s.isDevMode)()){if(!It(this.valueField)||!It(this.textField))throw new Error(xn);if(!Dt(this.value))throw new Error(_n);if(this.value.length>0){if(this.valuePrimitive&&this.value.some((function(e){return Tt(e)})))throw new Error(On);var e=this.dataItems.every((function(e){return Tt(e.dataItem)}));if(this.valuePrimitive&&!Dt(this.dataItems))throw new Error(Cn);if(this.valuePrimitive&&!e)throw new Error(Cn);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error(Sn);if(!this.valuePrimitive&&!Mt(this.value))throw new Error(jn);if((Dt(this.valueField)||Dt(this.textField))&&!Dt(this.valueDepth))throw new Error(wn);if((Dt(this.valueField)||Dt(this.textField))&&0===this.valueDepth.length)throw new Error(wn);if((Dt(this.valueField)||Dt(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error(kn)}}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.triggerPopupEvents=function(e){var t=new sn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:n,content:this.popupTemplate,popupAlign:i,positionMode:"absolute",popupClass:this.popupContainerClasses});var o=this.popupRef.popupElement,r=this.width,a=r.min,s=r.max;o.style.minWidth=a,o.style.width=s,o.style.height=this.height,this.renderer.setAttribute(o,"dir",this.direction),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","true"),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()}))},e.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","false"),""!==this.filter&&(this.filter="",this.allNodesHidden=!1,Object(c.hasObservers)(this.filterChange)&&this._zone.run((function(){e.filterChange.emit("")}))))},e.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.navigationService.enter.pipe(Object(b.tap)((function(e){return e.originalEvent.preventDefault()}))).subscribe((function(){return e.togglePopup(!0)})),Object(h.merge)(this.navigationService.close,this.navigationService.esc).subscribe((function(){e.focus(),e.togglePopup(!1)})),this.navigationService.tab.subscribe(this.handleTabKey.bind(this)),this.navigationService.up.subscribe(this.handleUpKey.bind(this)),this.navigationService.down.subscribe(this.handleDownKey.bind(this)),this.navigationService.left.pipe(Object(b.filter)((function(){return!e.isTreeViewActive}))).subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.pipe(Object(b.filter)((function(){return!e.isTreeViewActive}))).subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.home.pipe(Object(b.filter)((function(){return!e.isOpen}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Object(b.filter)((function(){return!e.isOpen}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Object(b.filter)((function(){return e.isTagFocused}))).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Object(b.filter)((function(){return e.isTagFocused}))).subscribe(this.handleDelete.bind(this)))},e.prototype.handleTabKey=function(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())},e.prototype.handleUpKey=function(e){if(this.treeview&&(e.originalEvent.preventDefault(),!this.isWrapperActive)){var t="0"===this.treeview.navigationService.activeIndex;if(this.filterable){var n=this.filterInput.nativeElement===document.activeElement;n?this.focus():!n&&t&&this.filterInput.nativeElement.focus()}!this.filterable&&t&&this.focus()}},e.prototype.handleDownKey=function(e){this.treeview&&(e.originalEvent.preventDefault(),this.filterable&&this.isWrapperActive?this.filterInput.nativeElement.focus():this.treeview.isActive||this.treeview.focus(),this.focusedTagIndex=void 0)},e.prototype.handleRightKey=function(e){e.originalEvent.preventDefault();var t=this.tags.length-1;this.focusedTagIndex===t?this.focusedTagIndex=void 0:this.focusedTagIndex<t?this.focusedTagIndex++:this.focusedTagIndex||(this.focusedTagIndex=0)},e.prototype.handleLeftKey=function(e){e.originalEvent.preventDefault(),void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},e.prototype.handleEnd=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=this.tags.length-1},e.prototype.handleHome=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=0},e.prototype.handleBackspace=function(){if(void 0!==this.focusedTagIndex)this.handleDelete();else{var e=this.tags[this.tags.length-1],t=this.tags.length-1;this.handleRemoveTag({tag:e,index:t})}},e.prototype.handleDelete=function(){var e=this.tags[this.focusedTagIndex],t=this.focusedTagIndex;this.handleRemoveTag({tag:e,index:t}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},e.prototype.unsubscribeEvents=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.removeTreeViewFromTabOrder=function(){var e=this;this.treeview.element.nativeElement.querySelectorAll("li").forEach((function(t){"0"===t.getAttribute("tabindex")&&(e.lastNodeOnFocus=t,e.lastNodeOnFocus.setAttribute("tabindex","-1"))}))},e.prototype.setState=function(){It(this.dataItems)&&It(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()},e.prototype.setTags=function(){var e=this.dataItems.map((function(e){return e.dataItem}));this.tags=this.tagMapper(e),this.disabledIndices=this.disabledItemsMapper()},e.prototype.updateValue=function(e){var t=this,n=this.valuePrimitive?e.map((function(e){return Wt(e,t.valueField)})):e.map((function(e){return e.dataItem}));this.value=n,this.emitValueChange(this.value)},e.prototype.disabledItemsMapper=function(){var e=this;return new Set(this.dataItems.reduce((function(t,n,i){return e.itemDisabled(n.dataItem,n.index)&&t.push(i),t}),[]))},Object(a.__decorate)([Object(s.HostBinding)("class.k-widget"),Object(s.HostBinding)("class.k-dropdowntree"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(a.__decorate)([Object(s.HostBinding)("attr.dir"),Object(a.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(a.__decorate)([Object(s.ContentChild)(qt,{static:!1}),Object(a.__metadata)("design:type",qt)],e.prototype,"headerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Xt,{static:!1}),Object(a.__metadata)("design:type",Xt)],e.prototype,"footerTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(ai,{static:!1}),Object(a.__metadata)("design:type",ai)],e.prototype,"nodeTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(an,{static:!1}),Object(a.__metadata)("design:type",an)],e.prototype,"noDataTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(qn,{static:!1}),Object(a.__metadata)("design:type",qn)],e.prototype,"tagTemplate",void 0),Object(a.__decorate)([Object(s.ContentChild)(Xn,{static:!1}),Object(a.__metadata)("design:type",Xn)],e.prototype,"groupTagTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)("popupTemplate",{static:!0}),Object(a.__metadata)("design:type",s.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(a.__decorate)([Object(s.ViewChild)("wrapper",{static:!0}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(s.ViewChild)("container",{read:s.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",s.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(s.ViewChild)("treeview",{static:!1}),Object(a.__metadata)("design:type",ye),Object(a.__metadata)("design:paramtypes",[ye])],e.prototype,"treeview",null),Object(a.__decorate)([Object(s.ViewChild)("filterInput",{static:!1}),Object(a.__metadata)("design:type",s.ElementRef)],e.prototype,"filterInput",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"checkableSettings",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"value",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"dataItems",null),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"valueField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"valueDepth",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"hasChildren",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"fetchChildren",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isNodeExpanded",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"isNodeVisible",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"itemDisabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"tagMapper",void 0),Object(a.__decorate)([Object(s.Output)("focus"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(s.Output)("blur"),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"opened",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"closed",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"nodeExpand",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"nodeCollapse",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"removeTag",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"filterChange",void 0),e=t=Object(a.__decorate)([Object(s.Component)({exportAs:"kendoMultiSelectTree",providers:[p.LocalizationService,rn,tn,nn,Qt,{provide:p.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:l.c,useExisting:Object(s.forwardRef)((function(){return t}))},{provide:he,useExisting:Object(s.forwardRef)((function(){return t}))},{provide:fe,useExisting:Object(s.forwardRef)((function(){return t}))},{provide:c.KendoInput,useExisting:Object(s.forwardRef)((function(){return t}))}],selector:"kendo-multiselecttree",template:'\n <ng-container kendoMultiSelectTreeLocalizedMessages\n i18n-noDataText="kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multiselecttree.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <div #wrapper\n [ngClass]="{\n \'k-multiselect-wrap\': true,\n \'k-floatwrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n role="listbox"\n aria-haspopup="tree"\n [attr.aria-describedby]="tagListId"\n [attr.aria-readonly]="readonly"\n [attr.aria-activedescendant]="focusedTagId"\n [attr.tabindex]="tabindex"\n [attr.id]="focusableId"\n [attr.dir]="direction"\n (click)="handleClick()"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n >\n <kendo-taglist\n [id]="tagListId"\n [tags]="tags"\n [focused]="focusedTagIndex"\n [textField]="textField"\n [valueField]="valueField"\n [valueDepth]="valueDepth"\n [disabled]="disabled"\n [tagPrefix]="tagPrefix"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n </kendo-taglist>\n <span *ngIf="!tags || !tags.length"\n class="k-input k-readonly"\n >\n {{ placeholder }}\n </span>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-icon k-clear-value k-i-close"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n </div>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown.arrowdown)="handleKeydown($event)"\n (keydown.arrowup)="handleKeydown($event)"\n (keydown.alt.arrowup)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-textbox"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-zoom"></span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n kendoMultiSelectTreeCheckable\n [checkable]="checkableSettings"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [textField]="textField"\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [loadOnDemand]="loadOnDemand"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (keydown)="handleKeydown($event)"\n (nodeClick)="handleNodeClick($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n [kendoEventsOutsideAngular]="{\n focusout: handleBlur\n }"\n [scope]="this"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data?.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(a.__param)(7,Object(s.Optional)()),Object(a.__param)(7,Object(s.Inject)(hn)),Object(a.__metadata)("design:paramtypes",[f.c,s.Renderer2,s.ElementRef,rn,s.NgZone,p.LocalizationService,s.ChangeDetectorRef,Boolean])],e)}(),_i=function(e){function t(t){return e.call(this,t)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(s.Input)("kendoDropDownTreeFlatBinding"),Object(a.__metadata)("design:type",Array)],t.prototype,"nodes",void 0),Object(a.__decorate)([Object(s.Input)("valueField"),Object(a.__metadata)("design:type",String)],t.prototype,"idField",void 0),t=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownTreeFlatBinding]"}),Object(a.__metadata)("design:paramtypes",[he])],t)}(ht),Oi=function(e){function t(t){var n=e.call(this,t)||this;return n.dropDownTree=t,n}return Object(a.__extends)(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),Object(a.__decorate)([Object(s.Input)("kendoDropDownTreeHierarchyBinding"),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],t.prototype,"data",null),t=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownTreeHierarchyBinding]"}),Object(a.__metadata)("design:paramtypes",[he])],t)}(st),ji=function(e){function t(t){return e.call(this,t)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(s.Input)("kendoMultiSelectTreeFlatBinding"),Object(a.__metadata)("design:type",Array)],t.prototype,"nodes",void 0),Object(a.__decorate)([Object(s.Input)("valueField"),Object(a.__metadata)("design:type",String)],t.prototype,"idField",void 0),t=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoMultiSelectTreeFlatBinding]"}),Object(a.__metadata)("design:paramtypes",[he])],t)}(ht),Ci=function(e){function t(t){var n=e.call(this,t)||this;return n.multiSelectTree=t,n}return Object(a.__extends)(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),Object(a.__decorate)([Object(s.Input)("kendoMultiSelectTreeHierarchyBinding"),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],t.prototype,"data",null),t=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),Object(a.__metadata)("design:paramtypes",[he])],t)}(st),Si=function(e){function t(t){return e.call(this,t)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(s.Input)("isNodeExpanded"),Object(a.__metadata)("design:type",Function)],t.prototype,"isExpanded",void 0),t=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),Object(a.__metadata)("design:paramtypes",[fe])],t)}(Se),xi=function(){function e(){this.disabledIndices=new Set,this.removeTag=new s.EventEmitter}return e.prototype.tagProp=function(e,t,n){var i=t&&this.getPropField(e,t,n);return Nt(e,i)},e.prototype.isTagDisabled=function(e,t){var n=this;return this.isGroupTag(e)?e.every((function(e,i){return n.disabledIndices.has(i+t)})):this.disabledIndices.has(t)},e.prototype.deleteTag=function(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:n})},e.prototype.itemId=function(e,t){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,t)},e.prototype.isGroupTag=function(e){return e instanceof Array},e.prototype.tagAriaHidden=function(e){return It(this.focused)&&this.focused!==e},e.prototype.getPropField=function(e,t,n){var i=t.length-1;if("string"==typeof t)return t;if(this.valueDepth){var o=this.valueDepth[n];return i<o?t[i]:t[o]}return t.find((function(t){return t in e}))},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"tags",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"valueDepth",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"focused",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",qn)],e.prototype,"template",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Xn)],e.prototype,"groupTemplate",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"tagPrefix",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Set)],e.prototype,"disabledIndices",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"removeTag",void 0),e=Object(a.__decorate)([Object(s.Component)({selector:"kendo-taglist",template:'\n <ul [attr.id]="id" class="k-reset">\n <li\n *ngFor="let tag of tags; let index = index;"\n role="option"\n [attr.id]="itemId(tag, index)"\n [attr.aria-hidden]="tagAriaHidden(index)"\n aria-selected="true"\n [attr.aria-setsize]="tags?.length"\n class="k-button"\n [ngClass]="{\n \'k-state-focused\': index === focused,\n \'k-state-disabled\': isTagDisabled(tag, index)\n }"\n >\n <ng-template *ngIf="isGroupTag(tag); then groupTag else singleTag"></ng-template>\n <ng-template #groupTag>\n <span>\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ tag.length }} {{ tag.length === 1 ? \'item\' : \'items\' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span>\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: tag\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ tagProp(tag, textField, index) }}</ng-template>\n </span>\n </ng-template>\n\n <span aria-label="delete" [attr.aria-hidden]="index !== focused" class="k-select">\n <span class="k-icon k-i-close" (mousedown)="deleteTag($event, tag, index)">\n </span>\n </span>\n </li>\n </ul>\n '})],e)}(),wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"noDataText",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"clearTitle",void 0),t}(p.ComponentMessages),ki=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(s.Directive)({providers:[{provide:wi,useExisting:Object(s.forwardRef)((function(){return n}))}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),Object(a.__metadata)("design:paramtypes",[p.LocalizationService])],t)}(wi),Ii=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(s.Component)({providers:[{provide:wi,useExisting:Object(s.forwardRef)((function(){return n}))}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),Object(a.__metadata)("design:paramtypes",[p.LocalizationService])],t)}(wi),Ei={caseSensitive:!1,operator:"startsWith"},Di=function(){function e(e){this.component=e,this.filterable=!0,this._data=[]}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))},e.prototype.ngOnDestroy=function(){It(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},e.prototype.handleFilterChange=function(e){var t=this;this.component.data=this.data.filter((function(n){return t.matchesAnyField(n,e)}))},e.prototype.matchesAnyField=function(e,t){var n=this,i=this.normalizeValue(t),o=this.filterSettings.fields;return 0===o.length?this.checkItem(e,i):o.some((function(t){return n.checkItem(Nt(e,t),i)}))},e.prototype.checkItem=function(e,t){return e=this.normalizeValue(e),"contains"===this.filterSettings.operator?-1!==e.indexOf(t):0===e.indexOf(t)},e.prototype.normalizeValue=function(e){var t=It(e)?e.toString():"";return this.filterSettings.caseSensitive?t:t.toLowerCase()},e.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?Dt(e)&&e.length>0?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(e.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=It(e)&&"object"==typeof e?e.fields:[];return Object.assign({},Ei,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array),Object(a.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(a.__decorate)([Object(s.Input)("kendoDropDownFilter"),Object(a.__metadata)("design:type",Object)],e.prototype,"rawSettings",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownFilter]"}),Object(a.__metadata)("design:paramtypes",[cn])],e)}(),Ti=function(){function e(e,t){this.element=e,this.zone=t}return e.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick((function(){return e.element.nativeElement.focus()}))},e.prototype.nextTick=function(e){this.zone.runOutsideAngular((function(){return setTimeout(e)}))},Object(a.__decorate)([Object(s.Input)("filterInput"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"focused",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[filterInput]"}),Object(a.__metadata)("design:paramtypes",[s.ElementRef,s.NgZone])],e)}(),Pi=[qt,Xt,$t,Yt,Jt,an,Un,qn,Xn,ki,Ii,Di,Ti],Fi=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({declarations:[Pi],exports:[Pi]})],e)}(),Mi=function(){function e(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}return Object.defineProperty(e.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!0,configurable:!0}),e.prototype.onClick=function(e){e.stopPropagation(),this.checkboxes.enabled&&!this.checkboxes.checkOnClick||(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))},Object(a.__decorate)([Object(s.HostBinding)("attr.index"),Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"index",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"checkboxes",void 0),Object(a.__decorate)([Object(s.HostBinding)("style.height.px"),Object(s.HostBinding)("style.minHeight.px"),Object(s.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"height",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"multipleSelection",void 0),Object(a.__decorate)([Object(s.HostBinding)("class.k-state-focused"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"focusedClassName",null),Object(a.__decorate)([Object(s.HostBinding)("class.k-state-selected"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"selectedClassName",null),Object(a.__decorate)([Object(s.HostListener)("click",["$event"]),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Object]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"onClick",null),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoDropDownsSelectable]"}),Object(a.__metadata)("design:paramtypes",[Qt])],e)}(),Ai=function(){function e(e){this.viewContainerRef=e}return Object.defineProperty(e.prototype,"templateContext",{set:function(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))},enumerable:!0,configurable:!0}),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"templateContext",null),e=Object(a.__decorate)([Object(s.Directive)({selector:"[templateContext]"}),Object(a.__metadata)("design:paramtypes",[s.ViewContainerRef])],e)}(),Ni=function(){function e(e){this.treeView=e,this.checkedItemsChange=new s.EventEmitter,this.checkedKeys=new Set,this.subscriptions=new h.Subscription,this.subscriptions.add(this.treeView.checkedChange.subscribe(this.handleCheckedChange.bind(this))),this.treeView.isChecked=this.getCheckedState.bind(this)}return e.prototype.ngOnChanges=function(e){var t=this;It(e.checkable)&&this.toggleCheckOnClick(),It(e.checkedItems)&&(this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map((function(e){return Wt(e,t.valueField)}))))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},e.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},e.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},e.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(Object(b.filter)((function(e){return"click"===e.type}))).subscribe((function(t){var n=e.treeView.itemLookup(t.item.index);e.handleCheckedChange(n)})))},e.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},e.prototype.checkNode=function(e){var t=this;if(!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var n=e.item,i=[n];if(this.checkable.checkChildren){Ut(e,(function(e){return t.treeView.isVisible(e.dataItem,e.index)&&!t.treeView.isDisabled(e.dataItem,e.index)})).forEach((function(e){return i.push(e.item)}))}var o=!this.isItemChecked(n);i.forEach((function(e){o?t.addItem(e):t.removeItem(e)}))}},e.prototype.checkParents=function(e){for(var t=this,n=e;n;){n.children.every((function(e){return t.isItemChecked(e)}))?this.addItem(n.item):this.removeItem(n.item),n=n.parent}},e.prototype.addItem=function(e){if(!this.isItemChecked(e)){var t=Gt(e.index),n=Object(a.__assign)({},e,{level:t});this.checkedItems.push(n),this.checkedKeys.add(Wt(n,this.valueField))}},e.prototype.removeItem=function(e){var t=this;if(this.isItemChecked(e)){var n=Gt(e.index),i=Object(a.__assign)({},e,{level:n});this.checkedItems=this.checkedItems.filter((function(e){return Wt(e,t.valueField)!==Wt(i,t.valueField)})),this.checkedKeys.delete(Wt(i,this.valueField))}},e.prototype.isItemChecked=function(e){return this.checkedKeys.has(Wt(e,this.valueField))},e.prototype.isItemIndeterminate=function(e){var t=e.children;if(!Array.isArray(t)||0===t.length)return!1;for(var n=0,i=t[n];It(i);){if(this.isItemChecked(i.item)||this.isItemIndeterminate(i))return!0;i=t[n+=1]}return!1},Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"checkable",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"valueField",void 0),Object(a.__decorate)([Object(s.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"checkedItems",void 0),Object(a.__decorate)([Object(s.Output)(),Object(a.__metadata)("design:type",s.EventEmitter)],e.prototype,"checkedItemsChange",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoMultiSelectTreeCheckable]"}),Object(a.__metadata)("design:paramtypes",[ye])],e)}(),Bi=[dn,ln,Mi,Zt,Ai,xi,Ni],Ri=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({declarations:[Bi],exports:[Bi,g.CommonModule,l.a,f.b,c.ResizeSensorModule,Fi,c.EventsModule],imports:[g.CommonModule,l.a,f.b,c.ResizeSensorModule,Fi,c.EventsModule]})],e)}(),Vi=function(){function e(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){It(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},e.prototype.createTagMapper=function(){var e=Ht(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(t){return t.length>e?t.slice(0,e).concat([t.slice(e)]):t}},Object(a.__decorate)([Object(s.Input)("kendoMultiSelectTreeSummaryTag"),Object(a.__metadata)("design:type",Object)],e.prototype,"showAfter",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoMultiSelectTreeSummaryTag]"}),Object(a.__metadata)("design:paramtypes",[yi])],e)}(),zi=[pi,yi,_i,Oi,ji,Ci,Si,ai,Vi],Li=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({declarations:[zi],exports:[zi,Fi],imports:[Ri,wt]})],e)}(),Hi=function(){function e(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){It(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},e.prototype.createTagMapper=function(){var e=Ht(this.showAfter);this.multiSelectComponent.tagMapper=function(t){if(t.length>e){var n=void 0;return(n=t.slice(0,e)).push(t.slice(e,t.length)),n}return t}},Object(a.__decorate)([Object(s.Input)("kendoMultiSelectSummaryTag"),Object(a.__metadata)("design:type",Object)],e.prototype,"showAfter",void 0),e=Object(a.__decorate)([Object(s.Directive)({selector:"[kendoMultiSelectSummaryTag]"}),Object(a.__metadata)("design:paramtypes",[Qn])],e)}(),Ki=[bn],Gi=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({declarations:[Ki],exports:[Ki,Fi],imports:[Ri]})],e)}(),Ui=[Gn,ri,ni,ti,ei],Wi=u.f,Zi=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({declarations:[Ui],exports:[Ui,Fi],imports:[Ri],providers:[{provide:hn,useValue:Wi}]})],e)}(),$i=[Zn],qi=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({declarations:[$i],exports:[$i,Fi],imports:[Ri]})],e)}(),Xi=[Qn,Hi,$n],Yi=u.f,Ji=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({declarations:[Xi],exports:[Xi,Fi],imports:[Ri],providers:[{provide:hn,useValue:Yi}]})],e)}(),Qi=function(){function e(){}return e=Object(a.__decorate)([Object(s.NgModule)({exports:[Gi,Zi,qi,Ji,Li]})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17);t.PageSizeChangeEvent=i.PageSizeChangeEvent;var o=n(18);t.CustomMessagesComponent=o.CustomMessagesComponent;var r=n(20);t.PagerPrevButtonsComponent=r.PagerPrevButtonsComponent;var a=n(21);t.PagerPageSizesComponent=a.PagerPageSizesComponent;var s=n(16);t.PagerTemplateDirective=s.PagerTemplateDirective;var c=n(22);t.PagerNumericButtonsComponent=c.PagerNumericButtonsComponent;var l=n(23);t.PagerNextButtonsComponent=l.PagerNextButtonsComponent;var d=n(24);t.PagerInputComponent=d.PagerInputComponent;var u=n(25);t.PagerInfoComponent=u.PagerInfoComponent;var p=n(26);t.PagerComponent=p.PagerComponent;var h=n(33);t.PagerModule=h.PagerModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RESPONSIVE_BREAKPOINT_MEDIUM=600,t.RESPONSIVE_BREAKPOINT_LARGE=768},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PAGE_SIZE_VALUES=[5,10,20]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-pager",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635939992,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(0),o=n(3),r=n(1),a=n(6),s=n(14),c=n(27),l=n(26),d=n(20),u=n(23),p=n(22),h=n(24),f=n(25),b=n(21),m=n(16),g=n(2),v=n(34),y=n(18),_=n(2),O=[a.CommonModule,s.NumericTextBoxModule,c.DropDownListModule,g.EventsModule,_.ResizeSensorModule],j=[l.PagerComponent,d.PagerPrevButtonsComponent,u.PagerNextButtonsComponent,p.PagerNumericButtonsComponent,h.PagerInputComponent,f.PagerInfoComponent,b.PagerPageSizesComponent,m.PagerTemplateDirective,v.LocalizedMessagesDirective,y.CustomMessagesComponent],C=[{provide:o.L10N_PREFIX,useValue:"kendo.pager"}],S=function(){function e(){}return e.exports=function(){return[l.PagerComponent,d.PagerPrevButtonsComponent,u.PagerNextButtonsComponent,p.PagerNumericButtonsComponent,h.PagerInputComponent,f.PagerInfoComponent,b.PagerPageSizesComponent,m.PagerTemplateDirective]},e=i.__decorate([r.NgModule({declarations:[j],exports:[j],imports:O.slice(),providers:[C]})],e)}();t.PagerModule=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(19),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoDataPagerLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.LocalizedMessagesDirective=s}])}));
|