@progress/kendo-angular-dropdowns 6.0.1 → 6.0.2-dev.202202171128

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/main.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-treeview"),require("@progress/kendo-angular-popup"),require("@angular/forms"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-common"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@progress/kendo-angular-treeview","@progress/kendo-angular-popup","@angular/forms","rxjs","rxjs/operators","@progress/kendo-common","@progress/kendo-licensing","@angular/common"],t):"object"==typeof exports?exports.KendoAngularDropdowns=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-treeview"),require("@progress/kendo-angular-popup"),require("@angular/forms"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-common"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularDropdowns=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-angular-treeview"],e["@progress/kendo-angular-popup"],e["@angular/forms"],e.rxjs,e["rxjs/operators"],e["@progress/kendo-common"],e["@progress/kendo-licensing"],e["@angular/common"])}(window,(function(e,t,i,n,a,o,r,s,l,p,d,u){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=66)}([function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),a=i(28);t.isPresent=function(e){return null!=e},t.isNumber=function(e){return!isNaN(e)},t.guid=function(){var e,t,i="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(i+="-"),i+=(12===e?4:16===e?3&t|8:t).toString(16);return i},t.combineStr=function(e,t){return e.concat(t.substr(t.toLowerCase().indexOf(e.toLowerCase())+e.length))},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.isArray=function(e){return Array.isArray(e)},t.isObject=function(e){return t.isPresent(e)&&"object"==typeof e},t.isEmptyString=function(e){return"string"==typeof e&&0===e.length},t.resolveValuesInArray=function(e,i,n){return void 0===i&&(i=[]),e.map((function(e){return i.find((function(i){return t.getter(i,n)===e}))})).filter((function(e){return void 0!==e}))},t.validateComplexValues=function(e,i){return t.isArray(e)&&e.filter((function(e){return t.isObject(e)&&t.isPresent(t.getter(e,i))}))},t.resolveAllValues=function(e,i,n){var a=t.validateComplexValues(e,n)||[];return(t.resolveValuesInArray(e,i,n)||[]).concat(a)},t.isObjectArray=function(e){return t.isArray(e)&&e.every((function(e){return t.isObject(e)}))},t.selectedIndices=function(e,i,n){var a=i.map((function(e){return t.isPresent(e)&&t.isPresent(t.getter(e,n))?t.getter(e,n):e}));return e.reduce((function(e,i){var o=t.isPresent(i)&&t.isPresent(t.getter(i,n))?t.getter(i,n):i,r=a.indexOf(o);return-1!==r&&e.push(r),e}),[])},t.getter=function(e,i){return t.isPresent(e)?t.isPresent(i)&&t.isObject(e)?a.getter(i)(e):e:null},t.resolveValue=function(e){var i;return t.isPresent(e.value)?{dataItem:i=[e.defaultItem].concat(e.data).find((function(i){return t.getter(i,e.valueField)===e.value})),focused:e.data.indexOf(i),selected:e.data.indexOf(i)}:e.index?(i=e.data[e.index],{dataItem:e.data[e.index],focused:e.index,selected:e.index}):{dataItem:e.defaultItem,focused:-1,selected:-1}},t.sameCharsOnly=function(e,t){for(var i=0;i<e.length;i++)if(e.charAt(i)!==t)return!1;return!0},t.shuffleData=function(e,t,i){var n=e;return i&&(n=[i].concat(n)),n.slice(t).concat(n.slice(0,t))},t.matchText=function(e,i,n){if(!t.isPresent(e))return!1;var a=String(e);return n&&(a=a.toLowerCase()),0===a.indexOf(i)},t.elementFromPoint=function(e,t){if(n.isDocumentAvailable())return document.elementFromPoint(e,t)},t.hasProps=function(e,i){return!!t.isPresent(e)&&i.every((function(t){return e.hasOwnProperty(t)}))},t.isUntouched=function(e){return e.className.includes("ng-untouched")},t.noop=function(e){};var o=function(e,t){var i=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!i&&i.call(e,t)};t.closest=function(e,t){for(var i=e;null!==i&&1===i.nodeType;){if(o(i,t))return i;i=i.parentElement||i.parentNode}return null},t.parseNumber=function(e,t){void 0===t&&(t=0);var i=Number(e);return isNaN(i)?t:i},t.inDropDown=function(e,t,i){return e.nativeElement.contains(t)||i&&i.popupElement.contains(t)},t.getHierarchicalItemLevel=function(e){return(e||"").split("_").length-1},t.fetchDescendentNodes=function(e,i){if(!t.isPresent(e)||0===e.children.length)return[];var n=e.children;return t.isPresent(i)&&(n=n.filter((function(e){return i(e.item)}))),n.forEach((function(e){return n=n.concat(t.fetchDescendentNodes(e,i))})),n},t.valueFrom=function(e,i){var n=e.dataItem,o=e.index,r=e.level,s=Array.isArray(i)?i:[i],l=t.isPresent(r)?r:t.getHierarchicalItemLevel(o),p=s[Math.min(l,s.length-1)];return a.getter(p)(n)},t.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]},t.getRoundedClass=function(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]},t.getFillModeClass=function(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=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 o.isPresent(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:o.isPresent(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=o.isPresent(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=n.__decorate([a.Injectable()],e)}();t.SelectionService=r},function(e,t){e.exports=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=i(8),s=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(o.isPresent(t))return this.itemDisabled({dataItem:t,index:e});if(o.isPresent(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(o.isPresent(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}},e=n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[r.DataService])],e)}();t.DisabledItemsService=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=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 o.isPresent(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 o.isPresent(e)&&0!==e.length&&o.isPresent(e[0])&&o.hasProps(e[0],["aggregates","field","items","value"])},e.prototype.getGroupIndices=function(e){for(var t=[],i=0;i<=e.length-1;i++)t[i]=(t[i-1]||0)+e[i].items.length;return t},e.prototype.filter=function(e){var t=[];if(this.isGrouped(this.data))for(var i=0;i<=this.groupIndices.length-1;i++){var n=this.data[i].items.filter(e);n&&(t=t.concat(n))}else t=this.data.filter(e);return t},e.prototype.indexOf=function(e,t){void 0===t&&(t=0);var i=function(t){return t===e};return this.grouped&&(i=function(t){return t.value===e}),this.findIndex(i,t)},e.prototype.findIndex=function(e,t){void 0===t&&(t=0);var i=-1;if(this.grouped){i=(n=this._flatData.filter((function(e){return!e.header&&e.offsetIndex>=t}))).findIndex(e),i=n[i]?n[i].offsetIndex:-1}else{var n,a=(n=this.data.slice(t)).findIndex(e);i=-1!==a?a+t:-1}return i},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 i=this._flatData.find((function(t){return!t.header&&t.offsetIndex===e}));i&&(t=i.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?o.getter(e,t):void 0}},e.prototype.flatten=function(e,t,i,n){void 0===t&&(t=void 0),void 0===i&&(i=0),void 0===n&&(n=0);var a=[];o.isPresent(t)&&a.push({header:!0,index:n+i,offsetIndex:n,value:t});for(var r=0;r<e.length;r++){var s=[];e[r].items?(s=this.flatten(e[r].items,e[r].value,i,r),i+=e[r].items.length):s.push({header:!1,index:n+i+r+1,offsetIndex:i+r,value:e[r]}),a=a.concat(s)}return a},e=n.__decorate([a.Injectable()],e)}();t.DataService=r},function(e,t){e.exports=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1);t.TOUCH_ENABLED=new n.InjectionToken("dropdowns-touch-enabled")},function(e,t){e.exports=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.HeaderTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.FooterTemplateDirective=o},function(e,t){e.exports=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ItemTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.GroupTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.FixedGroupTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=i(3),s=i(23),l=i(7),p=i(5),d=function(e,t){this.index=e,this.originalEvent=t};t.NavigationEvent=d;var u=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,i=e.originalEvent.keyCode,n=e.originalEvent.altKey,a=s.NavigationAction.Undefined;n&&i===r.Keys.ArrowDown?a=s.NavigationAction.Open:n&&i===r.Keys.ArrowUp?a=s.NavigationAction.Close:i===r.Keys.Enter?a=s.NavigationAction.Enter:i===r.Keys.Escape?a=s.NavigationAction.Esc:i===r.Keys.Tab?a=s.NavigationAction.Tab:i===r.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=s.NavigationAction.Up):i===r.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=s.NavigationAction.Left):i===r.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=s.NavigationAction.Down):i===r.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=s.NavigationAction.Right):i===r.Keys.Home?(t=this.isDisabled(0)?e.current:0,a=s.NavigationAction.Home):i===r.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,a=s.NavigationAction.End):i===r.Keys.Delete?a=s.NavigationAction.Delete:i===r.Keys.Backspace&&(a=s.NavigationAction.Backspace);var o=new d(t,e.originalEvent);return a!==s.NavigationAction.Undefined&&this[s.NavigationAction[a].toLowerCase()].emit(o),a},e.prototype.next=function(e){var t=e.current,i=e.start,n=e.end,a=e.step,r=o.isPresent(t)?this.clampIndex(t+a,i,n):i,s=this.firstFocusableIndex(r,i,n,a);if(o.isPresent(s))return s;if(this.selectionService.isSelected(t)&&t>=i)return t;var l=-1*a;return this.firstFocusableIndex(r,i,n,l)},e.prototype.clampIndex=function(e,t,i){return!o.isPresent(e)||e<t?t:e>i?i:e},e.prototype.firstFocusableIndex=function(e,t,i,n){for(;t<=e&&e<=i;){if(!this.isDisabled(e))return e;e+=n}},e.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},e=n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[l.DisabledItemsService,p.SelectionService])],e)}();t.NavigationService=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.NoDataTemplateDirective=o},function(e,t){e.exports=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(16),r=i(17),s=i(18),l=i(12),p=i(13),d=i(20),u=i(34),c=i(35),h=i(29),m=i(71),g=i(72),v=i(57),f=i(73),_=[l.HeaderTemplateDirective,p.FooterTemplateDirective,o.ItemTemplateDirective,r.GroupTemplateDirective,s.FixedGroupTemplateDirective,d.NoDataTemplateDirective,u.ValueTemplateDirective,c.TagTemplateDirective,h.GroupTagTemplateDirective,m.LocalizedMessagesDirective,g.CustomMessagesComponent,v.FilterDirective,f.FilterInputDirective],b=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[_],exports:[_]})],e)}();t.SharedDirectivesModule=b},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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"}(t.NavigationAction||(t.NavigationAction={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.FilterableComponent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(3),r=i(46),s=i(16),l=i(17),p=i(18),d=i(2),u=i(5),c=i(14),h=i(21),m=i(7),g=i(8),v=function(){function e(e,t,i,n,o,r,s){var l=this;this.dataService=e,this.wrapper=t,this.selectionService=i,this.disabledItemsService=n,this.cdr=o,this.zone=r,this.renderer=s,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",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._size="medium",this.selectSubscription=c.merge(this.selectionService.onSelect.pipe(h.map((function(e){return e.indices[0]}))),this.selectionService.onFocus).pipe(h.switchMap((function(e){return l.zone.onStable.pipe(h.take(1),h.map((function(){return e})))}))).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}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,"size",{get:function(){return this._size},set:function(e){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,d.getSizeClass("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,d.getSizeClass("list",e)),this._size=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(d.isPresent(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkboxClasses",{get:function(){return(this.size?d.getSizeClass("checkbox",this.size):"")+" "+(this.rounded?d.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){o.isChanged("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),o.isChanged("virtual",e,!1)&&this.setOverflow(),o.isChanged("type",e,!1)&&this.prepareClasses()},e.prototype.ngAfterViewInit=function(){var e=this;this.setComponentClasses(),this.zone.runOutsideAngular((function(){e.scrollSubscription=c.fromEvent(e.content.nativeElement,"scroll").pipe(h.auditTime(100),h.tap(e.prefetchData.bind(e)),h.tap(e.findCurrentGroup.bind(e))).subscribe((function(){e.lastScrollTop=e.content.nativeElement.scrollTop}))})),this.setOverflow()},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 i=e.target.checked;i&&!this.selectionService.isSelected(t)&&this.selectionService.add(t),!i&&this.selectionService.isSelected(t)&&this.selectionService.unselect(t)},e.prototype.prepareClasses=function(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")},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,i=t.getBoundingClientRect(),n=Array.prototype.slice.call(t.querySelectorAll(".k-disabled"));n.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","auto")}));var a=document.elementFromPoint(i.left+1,i.top+1);return n.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","none")})),d.closest(a,"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,i=Math.trunc(t/this.virtual.itemHeight),n=t>this.lastScrollTop,a=i+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,o=this.pageSize-(this.lastLoaded-this.startFrom),r=this.lastLoaded-this.pageSize+e>=i-o;n&&a&&this.changePage(i),!n&&r&&this.changePage(i-this.pageSize+e+1)}},e.prototype.changePage=function(e){var t=this;this.zone.run((function(){var i=t.pageSize+e;i>t.virtual.total&&(e--,i=t.virtual.total),e<0&&(e=0),t.startFrom=e,t.lastLoaded=i,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 d.getter(e,this.textField)},e.prototype.getValue=function(e){return d.getter(e,this.valueField)},e.prototype.isDisabled=function(e){return d.isPresent(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},e.prototype.isAltRow=function(e){return"dropdowngrid"===this.type&&e%2!=0},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 i=this.items.toArray();d.isPresent(i[t])&&-1!==t&&this.scroll(i[t].element)}},e.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,i=t.scrollTop,n=e*this.virtual.itemHeight,a=this.virtual.itemHeight,o=t.clientHeight,r=n+a;i>n?i=n:r>i+o&&(i=r-o),t.scrollTop=i},e.prototype.scroll=function(e){if(e){var t=e.nativeElement,i=this.content.nativeElement,n=t.offsetTop,a=t.offsetHeight,o=i.scrollTop,r=i.clientHeight,s=n+a;o>n?o=n:s>o+r&&(o=s-r),i.scrollTop=o}},e.prototype.hasScrollbar=function(){return!!(d.isPresent(this.items)&&this.items.length&&d.isPresent(this.list)&&d.isPresent(this.content))&&(d.isPresent(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)},e.prototype.setOverflow=function(){if(this.virtual){var e=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",e)}},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,i){var n=(i+e.startFrom)*e.virtual.itemHeight;e.renderer.setStyle(t.element.nativeElement,"transform","translateY("+n+"px")}))},e.prototype.firstGroupHeaderInTargetedPage=function(e){return!d.isPresent(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},e.prototype.setComponentClasses=function(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,d.getSizeClass("list",this.size))),d.isPresent(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)},n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"selected",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"focused",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"height",void 0),n.__decorate([a.Input(),n.__metadata("design:type",s.ItemTemplateDirective)],e.prototype,"template",void 0),n.__decorate([a.Input(),n.__metadata("design:type",l.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",p.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"show",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"optionPrefix",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"multipleSelection",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"virtual",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"type",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"checkboxes",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"rounded",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onClick",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"listResize",void 0),n.__decorate([a.ViewChildren(r.ListItemDirective),n.__metadata("design:type",a.QueryList)],e.prototype,"items",void 0),n.__decorate([a.ViewChild("content",{static:!0}),n.__metadata("design:type",a.ElementRef)],e.prototype,"content",void 0),n.__decorate([a.ViewChild("list",{static:!0}),n.__metadata("design:type",a.ElementRef)],e.prototype,"list",void 0),n.__decorate([a.ViewChild("virtualContainer",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"virtualContainer",void 0),e=n.__decorate([a.Component({selector:"kendo-list",template:'\n <div *ngIf="dataService.grouped"\n [class]="listGroupStickyHeaderClass"\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"><span [class]="listGroupStickyHeaderTextClass">{{ currentGroup }}</span></ng-template>\n </div>\n <div #content\n [class]="listContentClass"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\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]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(itemIndex),\n \'k-table-alt-row\': isAltRow(itemIndex)\n }"\n >\n <input\n *ngIf="checkboxes.enabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkboxClasses"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem) }}</span></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]="listGroupItemClass"\n [class.k-table-alt-row]="isAltRow(itemIndex - 1)"\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 <span [class]="listGroupItemTextClass">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ dataItem.value }}</ng-template>\n </span>\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]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(dataItem.offsetIndex),\n \'k-table-alt-row\': isAltRow(itemIndex - 1)\n }"\n >\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem.value) }}</span></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 '}),n.__metadata("design:paramtypes",[g.DataService,a.ElementRef,u.SelectionService,m.DisabledItemsService,a.ChangeDetectorRef,a.NgZone,a.Renderer2])],e)}();t.ListComponent=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiselectMessages={array:"Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",object:"Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",primitive:"Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",textAndValue:"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"},t.MultiSelectTreeMessages={array:"Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection",primitive:"Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values",object:"Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values",dataItems:"Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",dataItemsLength:"Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding",valueDepth:"Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth",valueDepthLength:"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"},t.ComboBoxMessages={object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",textAndValue:"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",noItemHeight:"Expected virtual.itemHeight of type number."},t.MultiColumnComboBoxMessages={data:"Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration"},t.DropDownListMessages={defaultItem:"defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem",object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",textAndValue:"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"},t.DropDownTreeMessages={primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values",object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values",dataItem:"Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding",valueDepth:"Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(69),r=i(11),s=i(25),l=i(32),p=i(70),d=i(9),u=i(3),c=i(22),h=i(46),m=i(58),g=i(59),v=i(74),f=i(75),_=[s.ListComponent,h.ListItemDirective,m.SelectableDirective,l.SearchBarComponent,g.TemplateContextDirective,p.TagListComponent,v.CheckDirective,f.CheckAllDirective],b=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[_],exports:[_,o.CommonModule,r.FormsModule,d.PopupModule,u.ResizeSensorModule,c.SharedDirectivesModule,u.EventsModule],imports:[o.CommonModule,r.FormsModule,d.PopupModule,u.ResizeSensorModule,c.SharedDirectivesModule,u.EventsModule]})],e)}();t.SharedModule=b},function(e,t){e.exports=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.GroupTagTemplateDirective=o},function(e,t){e.exports=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642685068,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,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(3),r=i(3),s=i(2),l=i(4),p=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 i=t.rtl;return e.direction=i?"rtl":"ltr"}))},e.prototype.ngOnChanges=function(e){var t;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 i=this.input.nativeElement.selectionStart,n=t.length===i;this.writeInputValue(this.suggestedText?s.combineStr(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):n?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(i,i),this._previousValue=this.userInput}},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.writeInputValue=function(e){o.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},e.prototype.setInputSelection=function(e,t){if(o.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;[r.Keys.ArrowUp,r.Keys.ArrowDown,r.Keys.ArrowLeft,r.Keys.ArrowRight,r.Keys.Enter,r.Keys.Escape,r.Keys.Delete,r.Keys.Backspace,r.Keys.Home,r.Keys.End].indexOf(t)>-1&&this.onNavigate.emit(e)},e.prototype.focus=function(){o.isDocumentAvailable()&&this.input.nativeElement.focus()},e.prototype.blur=function(){o.isDocumentAvailable()&&this.input.nativeElement.blur()},e.prototype.setInputSize=function(){var e=function(e){return e?e.length:0},t=this.input.nativeElement,i=e(this.placeholder),n=e(this.value),a=Math.max(i,n,1);this.renderer.setAttribute(t,"size",a.toString())},n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"listId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"tagListId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"activeDescendant",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"noDataLabel",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"popupOpen",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"userInput",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"suggestedText",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onClick",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onNavigate",void 0),n.__decorate([a.ViewChild("input",{static:!0}),n.__metadata("design:type",a.ElementRef)],e.prototype,"input",void 0),n.__decorate([a.HostBinding("class.k-searchbar"),n.__metadata("design:type",Boolean)],e.prototype,"searchBarClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"placeholder",null),e=n.__decorate([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-inner\'"\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 '}),n.__metadata("design:paramtypes",[l.LocalizationService,a.Renderer2])],e)}();t.SearchBarComponent=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a={pageSize:50,itemHeight:28};t.normalizeVirtualizationSettings=function(e,t){var i=Object.assign({},a,t);return!0===e?i:e?n.__assign({pageSize:a.pageSize},e):null}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ValueTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.TagTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.NodeTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(11),r=i(30),s=i(31),l=i(32),p=i(16),d=i(12),u=i(13),c=i(17),h=i(18),m=i(20),g=i(5),v=i(19),f=i(7),_=i(14),b=i(21),y=i(3),C=i(2),S=i(23),x=i(3),I=i(15),w=i(4),D=i(9),k=i(10),T=i(26),E=i(24),O=i(8),P=i(25),F=i(33),M=i(28);t.COMBOBOX_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return A}))};var A=function(){function e(e,t,i,n,o,l,p,d,u,c,h){this.wrapper=e,this.localization=t,this.popupService=i,this.selectionService=n,this.navigationService=o,this.disabledItemsService=l,this.dataService=p,this.zone=d,this.cdr=u,this.renderer=c,this.touchEnabled=h,this.selected=[],this.focusableId="k-"+C.guid(),this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(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 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=C.guid(),this.optionPrefix=C.guid(),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 _.Subject,this.valueSubject=new _.Subject,this.clearValueSubject=new _.Subject,this.subs=new _.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",r.validatePackage(s.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[]}var i;return i=e,Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(e){this._text=C.isPresent(e)?e.toString():""},enumerable:!0,configurable:!0}),e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!C.isPresent(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(e?C.getter(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,i=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,i)}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=C.getter(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 C.isPresent(this._valuePrimitive)?this._valuePrimitive:!C.isPresent(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=F.normalizeVirtualizationSettings(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},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-focus"),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;y.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 C.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages(),this.setComponentClasses()},e.prototype.createValueStream=function(){var e=this,t=this.valueSubject.pipe(b.filter((function(t){var i=C.getter(e.value,e.valueField),n=C.getter(t,e.valueField),a=C.getter(t,e.textField);return!(!C.isPresent(e.value)&&!C.isPresent(n))&&(C.isPresent(a)&&(a=a.toString()),i!==n||e.text!==a||(e.clearFilter(),!1))})),b.map((function(t){var i=C.getter(t,e.valueField);return{dataItem:t,text:C.getter(t,e.textField),value:e.valuePrimitive?i:t}}))),i=b.partition((function(){return e.allowCustom}))(this.customValueSubject.pipe(b.throttleTime(300))),n=i[0].pipe(b.tap((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),b.filter((function(){var t=e.text!==C.getter(e.value,e.valueField);return e.loading=t,e.disabled=t,t||e.clearFilter(),t})),this.valueNormalizer,b.map((function(t){return{custom:!0,dataItem:t,text:e.text,value:t}}))),a=i[1].pipe(b.map((function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}}))),o=this.clearValueSubject.pipe(b.map((function(){return{dataItem:void 0,text:void 0,value:void 0}})));this.valueSubscription&&this.valueSubscription.unsubscribe();var r=_.merge(t,n,a,o);this.valueSubscription=r.pipe(b.catchError((function(){var t=void 0!==C.getter(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(),_.of(null)}))).subscribe((function(t){var i=C.getter(e.dataItem,e.valueField)!==C.getter(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),i){var n=t.custom?void 0:e.dataItem;e.selectionChange.emit(n)}e.emitValueChange()}))},e.prototype.attachStreams=function(){var e=this;y.isDocumentAvailable()&&(this.subs.add(this.localization.changes.subscribe((function(t){var i=t.rtl;e.direction=i?"rtl":"ltr",e.setMessages()}))),this.subs.add(_.merge(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(b.filter((function(e){return C.isPresent(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(b.tap((function(t){e.isOpen&&t.originalEvent.preventDefault()}))).subscribe(this.handleEnter.bind(this))),this.subs.add(_.merge(this.selectionService.onChange,this.selectionService.onSelect.pipe(b.filter((function(t){return!e.isOpen})))).pipe(b.tap((function(t){e._filtering=!1,e.togglePopup(!1)})),b.map((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){e.change(t)}))),this.subs.add(this.selectionService.onSelect.pipe(b.filter((function(t){return e.isOpen})),b.tap((function(t){return e._filtering=!1})),b.map((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){var i=C.getter(t,e.valueField)!==C.getter(e.dataItem,e.valueField);e.updateState({dataItem:t}),i&&e.selectionChange.emit(t)}))))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),clearTimeout(this.messagesTimeout),this.subs.unsubscribe(),C.isPresent(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}),y.isChanged("valueNormalizer",e)&&this.createValueStream(),y.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;C.isPresent(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 i=C.isPresent(e)?e:!t._open;t._toggle(i),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=!C.isPresent(this.text)||C.isEmptyString(this.text),t=!C.isPresent(this.value)||C.isEmptyString(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}),Object.defineProperty(e.prototype,"selectButtonClasses",{get:function(){return(this.size?C.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")+"\n "},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){if(this.isOpen){var e=this.popupRef.popupElement,t=this.popupWidth,i=t.min,n=t.max;e.style.minWidth=i,e.style.width=n}},e.prototype.verifySettings=function(){if(a.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(T.ComboBoxMessages.primitive);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(T.ComboBoxMessages.object);if(!C.isPresent(this.valueField)!=!C.isPresent(this.textField))throw new Error(T.ComboBoxMessages.textAndValue);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(T.ComboBoxMessages.noItemHeight)}},e.prototype.setState=function(){if(!this._filtering){var e=this.value,t=this.valueField,i=this.findDataItem({valueField:t,value:e});C.isPresent(i.index)&&-1!==i.index?(this.updateState({dataItem:i.dataItem,confirm:!0}),this.resetSelection(i.index)):C.isPresent(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,i=e.confirm,n=void 0!==i&&i;this.dataItem=t,this.text=C.getter(t,this.textField),n&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!C.isPresent(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(i){var n=C.getter(i.value,t.textField);return(n=C.isPresent(n)?n.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(i){var n=C.getter(i,t.textField);return(n=C.isPresent(n)?n.toString().toLowerCase():"").startsWith(e.toLowerCase())}},e.prototype.findDataItem=function(e){var t=this,i=e.valueField,n=e.value,a={dataItem:null,index:-1},o=this.dataService.findIndex((function(e){var a=t.dataService.grouped?e.value:e;return C.getter(a,i)===C.getter(n,i)}));return a.dataItem=this.dataService.itemAt(o),a.index=o,a},e.prototype.search=function(e,t){var i;void 0===t&&(t=0),i=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(i)?i+1<this.dataService.itemsCount?this.search(e,i+1):this.selectionService.focus(-1):(this.selectionService.focus(i),this.suggest&&(this.suggestedText=C.getter(this.dataService.itemAt(i),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=C.getter(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},e.prototype.handleNavigate=function(e){var t=C.isPresent(this.selectionService.selected[0]),i=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused,n=0;if(!this.disabled&&!this.readonly&&e.keyCode!==x.Keys.Home&&e.keyCode!==x.Keys.End){t||(e.keyCode===x.Keys.ArrowDown?n=-1:e.keyCode===x.Keys.ArrowUp&&(n=1));var a=this.navigationService.process({current:n+i,max:this.dataService.itemsCount-1,min:0,originalEvent:e});a!==S.NavigationAction.Undefined&&a!==S.NavigationAction.Left&&a!==S.NavigationAction.Right&&a!==S.NavigationAction.Backspace&&a!==S.NavigationAction.Delete&&(a===S.NavigationAction.Enter&&this.isOpen||a!==S.NavigationAction.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(){var e=this.text,t=this.selectionService.focused,i=C.isPresent(t)&&-1!==t,n=C.getter(this._previousDataItem,this.textField)||"",a=C.getter(this.dataService.itemAt(t),this.textField),o=e!==n;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&o&&(e===a||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(i?this.selectionService.change(t):o&&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=C.getter(this.dataItem,this.valueField)!==C.getter(this.value,this.valueField),i=this.searchbar.value,n=i!==(C.getter(this.dataItem,this.textField)||""),a=t||n;a||y.hasObservers(this.onBlur)||y.hasObservers(this.close)||C.isUntouched(this.wrapper.nativeElement)?this.zone.run((function(){a&&(C.isPresent(e.focusedItemText)&&e.focusedItemText.toLowerCase()===i.toLowerCase()||t?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,y.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(!C.isPresent(e)||-1===e)return null;var t=C.getter(this.dataService.itemAt(e),this.textField);return C.isPresent(t)?t.toString():""},enumerable:!0,configurable:!0}),e.prototype.restoreItemFocus=function(){!(C.isPresent(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||!C.isPresent(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),t=C.getter(e,this.textField);return!!C.isPresent(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",i={horizontal:t,vertical:"bottom"},n={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:i,popupAlign:n});var a=this.popupRef.popupElement,o=this.popupWidth,r=o.min,s=o.max;a.addEventListener("mousedown",this.popupMouseDownHandler),a.style.minWidth=r,a.style.width=s,a.style.height=this.popupHeight,a.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 I.PreventableEvent;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;y.isDocumentAvailable()&&this.touchEnabled&&this.zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var i=t.target,n=C.inDropDown(e.wrapper,i,e.popupRef);e.isFocused&&!n?e.zone.run((function(){return e.blur()})):e.isOpen&&!n&&e.zone.run((function(){return e.togglePopup(!1)}))}))}))},e.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=M.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,C.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,C.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,C.getFillModeClass("input",this.fillMode))},n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"allowCustom",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"valueNormalizer",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"placeholder",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"iconClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"suggest",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([a.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([a.Output("focus"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output("blur"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.ContentChild(p.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",p.ItemTemplateDirective)],e.prototype,"template",void 0),n.__decorate([a.ContentChild(d.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",d.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.ContentChild(u.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",u.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([a.ContentChild(m.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",m.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([a.ContentChild(c.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",c.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([a.ContentChild(h.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",h.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),n.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),n.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([a.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([a.ViewChild(l.SearchBarComponent,{static:!0}),n.__metadata("design:type",l.SearchBarComponent)],e.prototype,"searchbar",void 0),n.__decorate([a.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],e.prototype,"optionsList",void 0),n.__decorate([a.ViewChild("select",{static:!0}),n.__metadata("design:type",a.ElementRef)],e.prototype,"select",void 0),n.__decorate([a.HostBinding("class.k-combobox"),a.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],e.prototype,"widgetClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([a.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=i=n.__decorate([a.Component({exportAs:"kendoComboBox",providers:[t.COMBOBOX_VALUE_ACCESSOR,O.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,w.LocalizationService,{provide:w.L10N_PREFIX,useValue:"kendo.combobox"},{provide:E.FilterableComponent,useExisting:a.forwardRef((function(){return i}))},{provide:y.KendoInput,useExisting:a.forwardRef((function(){return i}))}],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 <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-clear-value"\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 class="k-icon k-i-x"></span>\n </span>\n <button\n #select\n aria-hidden="true"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\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 [size]="size"\n [rounded]="rounded"\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-no-data" *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 '}),n.__param(10,a.Optional()),n.__param(10,a.Inject(k.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[a.ElementRef,w.LocalizationService,D.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,O.DataService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,Boolean])],e)}();t.ComboBoxComponent=A},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(2),o=i(32),r=i(1),s=i(14),l=i(21),p=i(3),d=i(11),u=i(30),c=i(31),h=i(5),m=i(19),g=i(23),v=i(7),f=i(3),_=i(16),b=i(39),y=i(17),C=i(18),S=i(12),x=i(13),I=i(35),w=i(29),D=i(20),k=i(26),T=i(15),E=i(40),O=i(4),P=i(9),F=i(24),M=i(10),A=i(8),j=i(25),B=i(67),z=i(33),R={multi:!0,provide:d.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return N}))},N=function(){function e(e,t,i,n,o,p,d,h,m,g,v,f){var _=this;this.wrapper=e,this.localization=t,this.popupService=i,this.dataService=n,this.selectionService=o,this.navigationService=p,this.disabledItemsService=d,this.cdr=h,this.differs=m,this.renderer=g,this._zone=v,this.touchEnabled=f,this.listBoxId=a.guid(),this.tagListId=a.guid(),this.tagPrefix="tag-"+a.guid(),this.optionPrefix="option-"+a.guid(),this.focusedTagIndex=void 0,this.focusableId="k-"+a.guid(),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(l.map((function(e){var t=function(t){return"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},i=_.value.find(t);if(i)return i;var n=_.dataService.find(t);return n||e})))},this.filterChange=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.open=new r.EventEmitter,this.opened=new r.EventEmitter,this.close=new r.EventEmitter,this.closed=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.removeTag=new r.EventEmitter,this.hostClasses=!0,this.initialized=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",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 s.Subject,this.observableSubscriptions=new s.Subscription,u.validatePackage(c.packageMetadata),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;a.isPresent(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,p.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,p.hasObservers(this.onBlur)||p.hasObservers(this.filterChange)||p.hasObservers(this.close)||a.isUntouched(this.wrapper.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.onMouseDown=function(e){e.preventDefault()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,i=t.min,n=t.max;e.style.minWidth=i,e.style.width=n}},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,i=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,i)}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,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,a.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,a.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,a.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,a.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,a.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,a.getFillModeClass("input",e)),this._fillMode=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=B.normalizeCheckboxesSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=z.normalizeVirtualizationSettings(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 a.isPresent(this._valuePrimitive)?this._valuePrimitive:!a.isPresent(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,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),e.prototype.hostMousedown=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()}},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,"customItemSizeClass",{get:function(){return""+(this.size?a.getSizeClass("list",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e=0;p.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 a.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDescendant",{get:function(){var e,t,i=this.focusedTagIndex,n=this.selectionService.focused;if(a.isPresent(i)&&!this.isOpen)t=this.tags[i],e=this.tagPrefix;else{if(!a.isPresent(n)||-1===n||!this.isOpen)return null;t=this.dataService.itemAt(n),e=this.optionPrefix}return e+"-"+a.getter(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(r.isDevMode()&&0!==this.value.length){if(!a.isArray(this.value))throw new Error(k.MultiselectMessages.array);if(!0===this.valuePrimitive&&a.isObjectArray(this.value))throw new Error(k.MultiselectMessages.primitive);if(!1===this.valuePrimitive&&!a.isObjectArray(this.value))throw new Error(k.MultiselectMessages.object);if(!a.isPresent(this.valueField)!=!a.isPresent(this.textField))throw new Error(k.MultiselectMessages.textAndValue)}},e.prototype.change=function(e){var t=this;if((a.isPresent(e.added)||a.isPresent(e.removed))&&(-1===e.added||-1===e.removed))this.addCustomValue(this.text);else{if(a.isPresent(e.added)){var i=this.dataService.itemAt(e.added),n=this.valuePrimitive&&a.isPresent(i)&&a.isPresent(i[this.valueField])?i[this.valueField]:i;this.value=this.value.concat([n])}if(a.isPresent(e.removed)){var o=this.dataService.itemAt(e.removed);this.value=this.value.filter((function(e){return a.getter(e,t.valueField)!==a.getter(o,t.valueField)})),this.selectionService.focused=e.removed,this.cdr.detectChanges()}this.emitValueChange()}},e.prototype.setState=function(e){var t=this,i=this.dataService.data;this.dataService.grouped&&(i=i.filter((function(e){return!e.header})).map((function(e){return e.value})));var n=a.selectedIndices(this.value,i,this.valueField);this.selectionService.resetSelection(n),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()),(a.isObjectArray(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=a.resolveAllValues(e,i,this.valueField)),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map((function(e){var i=t.selectedDataItems.find((function(i){return a.getter(i,t.valueField)===a.getter(e,t.valueField)}));return a.isPresent(i)?i:t.resolveDataItemFromTags(e)})).filter((function(e){return a.isPresent(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!==f.Keys.ArrowDown&&e.keyCode!==f.Keys.ArrowUp,i=this.text&&e.keyCode===f.Keys.Enter||e.keyCode===f.Keys.Escape;if(!this.text&&e.keyCode===f.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!(this.disabled||t&&!i)){var n=e,a=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,o=this.navigationService.process({current:a,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:n});o!==g.NavigationAction.Undefined&&(o===g.NavigationAction.Enter&&this.isOpen||o!==g.NavigationAction.Enter)&&e.preventDefault()}},e.prototype.handleRemoveTag=function(e){var t=e.tag,i=new E.RemoveTagEvent(t);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(i),i.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 i=this.selectionService.selected;this.value=this.value.filter((function(e,n){return t.disabledItemsService.isIndexDisabled(i[n])})),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.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var i=t.rtl;e.direction=i?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.setState(this.value),this.setComponentClasses(),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}),p.isChanged("valueNormalizer",e)&&this.createCustomValueStream(),p.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 i=a.isPresent(e)?e:!t._open;t._toggle(i),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.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),e.prototype.subscribeEvents=function(){var e=this;if(p.isDocumentAvailable()){var t=function(){return e.isOpen},i=function(){return!e.isOpen},n=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(l.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(l.filter(t)).subscribe((function(t){return e.handleUp(t.index)})),this.navigationService.home.pipe(l.filter((function(){return i}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(l.filter((function(){return i}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(l.filter(n)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(l.filter(n)).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;p.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var i=t.target;!e.isFocused&&!e.isOpen||a.inDropDown(e.wrapper,i,e.popupRef)||e._zone.run((function(){e.blur(),e.isOpen&&e.togglePopup(!1)}))}))}))},e.prototype.unsubscribeEvents=function(){p.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,i=this.dataService.data;this.dataService.grouped&&(i=i.filter((function(e){return!e.header})).map((function(e){return e.value})));var n=new Set(e.map((function(e){return a.getter(e,t.valueField)})));this.value=this.value.filter((function(e){var o=a.selectedIndices([e],i,t.valueField)[0],r=t.disabledItemsService.isIndexDisabled(o);return!n.has(a.getter(e,t.valueField))||r})),this.emitValueChange()},e.prototype.removeSingleTag=function(e){var t=this,i=this.dataService.data;this.dataService.grouped&&(i=i.filter((function(e){return!e.header})).map((function(e){return e.value})));var n=a.selectedIndices([e],i,this.valueField)[0];if(!this.disabledItemsService.isIndexDisabled(n))if(a.isNumber(n))this.selectionService.unselect(n),this.selectionService.focused=n,this.togglePopup(!1);else{this.value=this.value.filter((function(i){return a.getter(i,t.valueField)!==a.getter(e,t.valueField)})),this.emitValueChange()}},e.prototype.disabledItemsMapper=function(){var e=this,t=this.selectionService.selected;return new Set(this.selectedDataItems.reduce((function(i,n,a){return e.disabledItemsService.isIndexDisabled(t[a])&&i.push(a),i}),[]))},e.prototype.createCustomValueStream=function(){var e=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(l.tap((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),this.valueNormalizer,l.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(),s.of(null)}))).subscribe((function(t){if(e.loading=!1,e.disabled=!1,a.isPresent(t)){var i=e.valuePrimitive?a.getter(t,e.valueField):t,n=e.dataService.indexOf(i),o=-1===n;-1===e.value.indexOf(i)?(e.tags=e.tagMapper(e.selectedDataItems.concat([t])),o?e.value=e.value.concat([i]):e.selectionService.add(n)):!o&&e.selectionService.isSelected(n)?(e.selectionService.unselect(n),e.selectionService.focused=n):e.value=e.value.filter((function(t){return a.getter(t,e.valueField)!==i})),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,i=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==i?(t.isSelected(i)?(t.unselect(i),t.focused=i):t.add(i),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 i,n=this;void 0===t&&(t=0),e=e.toLowerCase();var o=this.dataService.findIndex((function(t){return i=n.dataService.grouped?a.getter(t.value,n.textField):a.getter(t,n.textField),i=a.isPresent(i)?i.toString().toLowerCase():"",e&&i.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,i=this.isOpen===e;t||i||(this.triggerPopupEvents(e)||this._toggle(e))},e.prototype.triggerPopupEvents=function(e){var t=new T.PreventableEvent;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",i={horizontal:t,vertical:"bottom"},n={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:i,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:n,popupClass:this.listContainerClasses,positionMode:"absolute"});var a=this.popupRef.popupElement,o=this.width,r=o.min,s=o.max;a.addEventListener("mousedown",this.popupMouseDownHandler),a.style.minWidth=r,a.style.width=s,a.style.height=this.height,a.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&&a.isPresent(e))return this.tags.reduce((function(e,t){var i=a.isArray(t)?t:[t];return e.push.apply(e,i),e}),[]).find((function(i){return a.getter(i,t.valueField)===a.getter(e,t.valueField)}))},e.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){var i=e+1;return i<t?this.firstFocusableIndex(i):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()}))}))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,a.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,a.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,a.getFillModeClass("input",this.fillMode))},n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"autoClose",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([r.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"value",null),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"textField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([r.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"placeholder",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"checkboxes",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([r.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],e.prototype,"tagMapper",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"allowCustom",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Function)],e.prototype,"valueNormalizer",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([r.Output("focus"),n.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([r.Output("blur"),n.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"removeTag",void 0),n.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),n.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([r.ViewChild(o.SearchBarComponent,{static:!0}),n.__metadata("design:type",o.SearchBarComponent)],e.prototype,"searchbar",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",j.ListComponent)],e.prototype,"optionsList",void 0),n.__decorate([r.ContentChild(_.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",_.ItemTemplateDirective)],e.prototype,"template",void 0),n.__decorate([r.ContentChild(b.CustomItemTemplateDirective,{static:!1}),n.__metadata("design:type",b.CustomItemTemplateDirective)],e.prototype,"customItemTemplate",void 0),n.__decorate([r.ContentChild(y.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",y.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([r.ContentChild(C.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",C.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),n.__decorate([r.ContentChild(S.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",S.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([r.ContentChild(x.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",x.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([r.ContentChild(I.TagTemplateDirective,{static:!1}),n.__metadata("design:type",I.TagTemplateDirective)],e.prototype,"tagTemplate",void 0),n.__decorate([r.ContentChild(w.GroupTagTemplateDirective,{static:!1}),n.__metadata("design:type",w.GroupTagTemplateDirective)],e.prototype,"groupTagTemplate",void 0),n.__decorate([r.ContentChild(D.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",D.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([r.HostBinding("class.k-multiselect"),r.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([r.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),n.__decorate([r.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),n.__decorate([r.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([r.HostListener("mousedown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"hostMousedown",null),e=t=n.__decorate([r.Component({exportAs:"kendoMultiSelect",providers:[R,A.DataService,h.SelectionService,m.NavigationService,v.DisabledItemsService,O.LocalizationService,{provide:O.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:F.FilterableComponent,useExisting:r.forwardRef((function(){return t}))},{provide:p.KendoInput,useExisting:r.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 <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\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-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 </kendo-taglist>\n\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\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!--custom item template--\x3e\n <div\n *ngIf="allowCustom && text"\n class="k-list"\n [ngClass]="customItemSizeClass"\n >\n <div class="k-list-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 [size]="size"\n [rounded]="rounded"\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-no-data" *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 '}),n.__param(11,r.Optional()),n.__param(11,r.Inject(M.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[r.ElementRef,O.LocalizationService,P.PopupService,A.DataService,h.SelectionService,m.NavigationService,v.DisabledItemsService,r.ChangeDetectorRef,r.KeyValueDiffers,r.Renderer2,r.NgZone,Boolean])],e)}();t.MultiSelectComponent=N},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoMultiSelectCustomItemTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.CustomItemTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=function(e){function t(t){var i=e.call(this)||this;return i.dataItem=t,i}return n.__extends(t,e),t}(i(15).PreventableEvent);t.RemoveTagEvent=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(42),r=i(43),s=function(){function e(){this.hidden=!1,this.matchesMedia=!0}return n.__decorate([a.ContentChild(o.ColumnCellTemplateDirective,{static:!1}),n.__metadata("design:type",o.ColumnCellTemplateDirective)],e.prototype,"cellTemplate",void 0),n.__decorate([a.ContentChild(r.ColumnHeaderTemplateDirective,{static:!1}),n.__metadata("design:type",r.ColumnHeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"field",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"width",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"hidden",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"style",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"headerStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"class",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"headerClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"media",void 0),e=n.__decorate([a.Component({selector:"kendo-combobox-column",template:""})],e)}();t.ComboBoxColumnComponent=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ColumnCellTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ColumnHeaderTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(11),r=i(3),s=i(4),l=i(19),p=i(9),d=i(6),u=i(8),c=i(7),h=i(5),m=i(15),g=i(23),v=i(2),f=i(40),_=i(26),b=i(12),y=i(13),C=i(36),S=i(20),x=i(35),I=i(29),w=i(10),D=i(14),k=i(21),T={animate:!0},E={checkChildren:!0,checkOnClick:!0},O=function(){return!1},P=function(){return D.of([])},F=function(){return!1},M=function(){return!0},A=function(){function e(e,t,i,n,o,s,l,p){this.wrapper=e,this.popupService=t,this.renderer=i,this.navigationService=n,this._zone=o,this.localization=s,this.cdr=l,this.touchEnabled=p,this.hostClasses=!0,this.role="listbox",this.ariaHasPopup="tree",this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId="k-"+r.guid(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=O,this.fetchChildren=P,this.isNodeVisible=M,this.itemDisabled=F,this.tagMapper=function(e){return e||[]},this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,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.valueChange=new a.EventEmitter,this.removeTag=new a.EventEmitter,this.filterChange=new a.EventEmitter,this.filterStateChange=new a.EventEmitter,this.checkedItems=[],this.checkBy=function(e){return e},this.showAfter=0,this.allNodesHidden=!1,this.tagListId=r.guid(),this.tagPrefix="tag-"+r.guid(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=T,this._checkableSettings=E,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=v.noop,this.onChangeCallback=v.noop,this.direction=s.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeFocusEvents()}var t;return t=e,Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDescribedBy",{get:function(){return this.tagListId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActiveDescendant",{get:function(){return this.focusedTagId},enumerable:!0,configurable:!0}),e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.handleKeydown=function(e){if(this.isWrapperActive&&e.keyCode===r.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})===g.NavigationAction.Open&&t.preventDefault()}},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.checkAll||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=v.parseNumber(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},T,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({},E,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,i){return{dataItem:t,index:null,level:e.valueDepth[i]||0}}))},set:function(e){var t=this;this._dataItems=(e||[]).map((function(e,i){return v.hasProps(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:t.valueDepth[i]||0}})),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedTagId",{get:function(){if(!v.isPresent(this.focusedTagIndex)||this.isOpen)return null;var e=this.tags[this.focusedTagIndex];return this.tagPrefix+"-"+v.valueFrom({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.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return v.isPresent(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 v.isPresent(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"];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}),Object.defineProperty(e.prototype,"isFilterActive",{get:function(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCheckAllActive",{get:function(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe((function(t){var i=t.rtl;e.direction=i?"rtl":"ltr",e.cdr.markForCheck()}))),this.setComponentClasses()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){var t=this;r.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState(),r.anyChanged(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map((function(e,i){return n.__assign({},e,{level:t.valueDepth[i]||0})})):this.dataItems=this.value)},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||v.isPresent(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);!v.isPresent(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 i=v.isPresent(e)?e:!v.isPresent(t.popupRef);t.destroyPopup(),i&&t.createPopup()}))},e.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,r.hasObservers(this.onFocus)&&this._zone.run((function(){t.onFocus.emit()})),this.isOpen&&this.treeview&&(this.lastNodeOnFocus&&this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus())))},e.prototype.handleBlur=function(e){var t=this,i=e&&e.relatedTarget;this.wrapper.nativeElement.contains(i)||this.isOpen&&this.popupRef.popupElement.contains(i)||(this.isFocused=!1,this.togglePopup(!1),(r.hasObservers(this.onBlur)||v.isUntouched(this.wrapper.nativeElement))&&this._zone.run((function(){t.onBlur.emit(),t.onTouchedCallback()})))},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,i=this.disabled||this.readonly,n=this.isOpen===e;(this._zone.run((function(){t.focusedTagIndex=void 0})),i||n)||(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.lastAction=e.length>this.dataItems.length?"check":"uncheck",this.dataItems=e.slice(),this.updateValue(this.dataItems)},e.prototype.handleRemoveTag=function(e){var t=this,i=e.tag,n=e.index;if(!this.disabled&&!this.readonly){var a=new f.RemoveTagEvent(i);this.removeTag.emit(a),a.isDefaultPrevented()||(i instanceof Array?(this.dataItems=this.dataItems.filter((function(e,i){return i<t.showAfter||t.disabledIndices.has(i)})),this.valueDepth=this.valueDepth.filter((function(e,i){return i<t.showAfter||t.disabledIndices.has(i)}))):(this.dataItems=this.dataItems.filter((function(e,i){return i!==n||t.disabledIndices.has(i)})),this.valueDepth=this.valueDepth.filter((function(e,i){return i!==n||t.disabledIndices.has(i)}))),this.updateValue(this.dataItems),this.isFocused||this.focus())}},e.prototype.handleTagMapperChange=function(e){this.showAfter=v.parseNumber(e),this.setTags()},e.prototype.clearAll=function(e){var t=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter((function(e,i){return t.disabledIndices.has(i)})),this.dataItems=this.dataItems.filter((function(e,i){return t.disabledIndices.has(i)})),this.valueDepth=this.valueDepth.filter((function(e,i){return t.disabledIndices.has(i)})),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,i){return!t.isVisible(e,String(i))}))},Object.defineProperty(e.prototype,"filterInputClasses",{get:function(){return(this.size?v.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?v.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkAllCheckboxClasses",{get:function(){return""+(this.size?v.getSizeClass("checkbox",this.size):"")},enumerable:!0,configurable:!0}),e.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},e.prototype.verifySettings=function(){if(a.isDevMode()){if(!v.isPresent(this.valueField)||!v.isPresent(this.textField))throw new Error(_.MultiSelectTreeMessages.textAndValue);if(!v.isArray(this.value))throw new Error(_.MultiSelectTreeMessages.array);if(this.value.length>0){if(this.valuePrimitive&&this.value.some((function(e){return v.isObject(e)})))throw new Error(_.MultiSelectTreeMessages.primitive);var e=this.dataItems.every((function(e){return v.isObject(e.dataItem)}));if(this.valuePrimitive&&!v.isArray(this.dataItems))throw new Error(_.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&!e)throw new Error(_.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error(_.MultiSelectTreeMessages.dataItemsLength);if(!this.valuePrimitive&&!v.isObjectArray(this.value))throw new Error(_.MultiSelectTreeMessages.object);if((v.isArray(this.valueField)||v.isArray(this.textField))&&!v.isArray(this.valueDepth))throw new Error(_.MultiSelectTreeMessages.valueDepth);if((v.isArray(this.valueField)||v.isArray(this.textField))&&0===this.valueDepth.length)throw new Error(_.MultiSelectTreeMessages.valueDepth);if((v.isArray(this.valueField)||v.isArray(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error(_.MultiSelectTreeMessages.valueDepthLength)}}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.triggerPopupEvents=function(e){var t=new m.PreventableEvent;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",i={horizontal:t,vertical:"bottom"},n={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:i,content:this.popupTemplate,popupAlign:n,positionMode:"absolute",popupClass:this.popupContainerClasses});var a=this.popupRef.popupElement,o=this.width,r=o.min,s=o.max;a.style.minWidth=r,a.style.width=s,a.style.height=this.height,this.renderer.setAttribute(a,"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,r.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(k.tap((function(e){return e.originalEvent.preventDefault()}))).subscribe((function(){return e.togglePopup(!0)})),D.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(k.filter((function(){return!e.isTreeViewActive}))).subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.pipe(k.filter((function(){return!e.isTreeViewActive}))).subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.home.pipe(k.filter((function(){return!e.isOpen}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(k.filter((function(){return!e.isOpen}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(k.filter((function(){return e.isTagFocused}))).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(k.filter((function(){return e.isTagFocused}))).subscribe(this.handleDelete.bind(this)))},e.prototype.subscribeFocusEvents=function(){var e=this;r.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular((function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)})))},e.prototype.unSubscribeFocusEvents=function(){if(r.isDocumentAvailable()){document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0)}},e.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},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;this.filterable&&this.isFilterActive?this.focus():this.checkAll&&!this.isCheckAllActive&&t?this.checkAllInput.nativeElement.focus():(this.isCheckAllActive||t)&&(this.filterable?this.filterInput.nativeElement.focus():this.focus())}},e.prototype.handleDownKey=function(e){this.treeview&&(e.originalEvent.preventDefault(),this.filterable&&this.isWrapperActive?this.filterInput.nativeElement.focus():this.checkAll&&(this.isWrapperActive||this.isFilterActive)?this.checkAllInput.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()})),this.unSubscribeFocusEvents()},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(){v.isPresent(this.dataItems)&&v.isPresent(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,i=this.valuePrimitive?e.map((function(e){return v.valueFrom(e,t.valueField)})):e.map((function(e){return e.dataItem}));this.value=i,this.emitValueChange(this.value)},e.prototype.disabledItemsMapper=function(){var e=this;return new Set(this.dataItems.reduce((function(t,i,n){return e.itemDisabled(i.dataItem,i.index)&&t.push(n),t}),[]))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("input",this.fillMode))},n.__decorate([a.HostBinding("class.k-dropdowntree"),a.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),a.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([a.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([a.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"id",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([a.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],e.prototype,"hostTabIndex",null),n.__decorate([a.HostBinding("attr.role"),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([a.HostBinding("attr.aria-haspopup"),n.__metadata("design:type",String)],e.prototype,"ariaHasPopup",void 0),n.__decorate([a.HostBinding("attr.readonly"),a.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),n.__decorate([a.HostBinding("attr.aria-describedby"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"ariaDescribedBy",null),n.__decorate([a.HostBinding("attr.aria-activedescendant"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"ariaActiveDescendant",null),n.__decorate([a.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),n.__decorate([a.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),n.__decorate([a.ContentChild(b.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",b.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.ContentChild(y.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",y.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([a.ContentChild(C.NodeTemplateDirective,{static:!1}),n.__metadata("design:type",C.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),n.__decorate([a.ContentChild(S.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",S.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([a.ContentChild(x.TagTemplateDirective,{static:!1}),n.__metadata("design:type",x.TagTemplateDirective)],e.prototype,"tagTemplate",void 0),n.__decorate([a.ContentChild(I.GroupTagTemplateDirective,{static:!1}),n.__metadata("design:type",I.GroupTagTemplateDirective)],e.prototype,"groupTagTemplate",void 0),n.__decorate([a.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),n.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([a.ViewChild("treeview",{static:!1}),n.__metadata("design:type",d.TreeViewComponent),n.__metadata("design:paramtypes",[d.TreeViewComponent])],e.prototype,"treeview",null),n.__decorate([a.ViewChild("filterInput",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"filterInput",void 0),n.__decorate([a.ViewChild("checkAllInput",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"checkAllInput",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"checkableSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"value",null),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"dataItems",null),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"valueDepth",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"placeholder",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"checkAll",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"fetchChildren",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"isNodeExpanded",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"isNodeVisible",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"tagMapper",void 0),n.__decorate([a.Output("focus"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output("blur"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"nodeExpand",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"nodeCollapse",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"removeTag",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),e=t=n.__decorate([a.Component({exportAs:"kendoMultiSelectTree",providers:[s.LocalizationService,l.NavigationService,u.DataService,c.DisabledItemsService,h.SelectionService,{provide:s.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t}))},{provide:d.DataBoundComponent,useExisting:a.forwardRef((function(){return t}))},{provide:d.ExpandableComponent,useExisting:a.forwardRef((function(){return t}))},{provide:r.KendoInput,useExisting:a.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 i18n-checkAllText="kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox"\n checkAllText="Check all"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\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 <span *ngIf="!tags || !tags.length"\n class="k-input-inner k-readonly"\n >\n <span class="k-input-value-text">{{ placeholder }}</span>\n </span>\n </kendo-taglist>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-clear-value"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\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>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkAllCheckboxClasses"\n role="checkbox"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [treeview]="treeview"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [lastAction]="lastAction"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n class="k-checkbox-label"\n (click)="toggleCheckAll()"\n (mousedown)="$event.preventDefault()"\n >\n {{ messageFor(\'checkAllText\') }}\n </span>\n </div>\n <kendo-treeview\n #treeview\n [size]="size"\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-no-data" *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 '}),n.__param(7,a.Optional()),n.__param(7,a.Inject(w.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[a.ElementRef,p.PopupService,a.Renderer2,l.NavigationService,a.NgZone,s.LocalizationService,a.ChangeDetectorRef,Boolean])],e)}();t.MultiSelectTreeComponent=A},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(3),r=i(11),s=i(30),l=i(31),p=i(32),d=i(16),u=i(12),c=i(13),h=i(17),m=i(18),g=i(5),v=i(19),f=i(7),_=i(14),b=i(2),y=i(23),C=i(20),S=i(15),x=i(4),I=i(9),w=i(24),D=i(8),k=i(25),T=i(33),E=i(10);t.AUTOCOMPLETE_VALUE_ACCESSOR={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return O}))};var O=function(){function e(e,t,i,n,o,r,p,d,u,c,h){this.localization=e,this.dataService=t,this.popupService=i,this.selectionService=n,this.navigationService=o,this.disabledItemsService=r,this._zone=p,this.cdr=d,this.renderer=u,this.hostElement=c,this.touchEnabled=h,this.highlightFirst=!0,this.focusableId="k-"+b.guid(),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=b.guid(),this.optionPrefix=b.guid(),this.onChangeCallback=b.noop,this.onTouchedCallback=b.noop,this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new _.Subject,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",s.validatePackage(l.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}var i;return i=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=0;o.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 b.isPresent(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 i=b.isPresent(e)?e:!t._open;t._toggle(i)}))},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,i=this.isOpen===e;t||i||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!b.isPresent(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+b.getter(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,i=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,i)}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=b.getter(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=T.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper,b.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper,b.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper,b.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper,b.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper,b.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper,b.getFillModeClass("input",e)),this._fillMode=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-focus"),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,"isLoading",{get:function(){return this.loading},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 i=t.rtl;e.direction=i?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.setComponentClasses()},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;b.isPresent(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,i=t.min,n=t.max;e.style.minWidth=i,e.style.width=n}},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.verifySettings=function(e){if(a.isDevMode()&&b.isPresent(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 i;void 0===t&&(t=0),i=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(i)?i+1<this.dataService.itemsCount?this.search(e,i+1):this.selectionService.focus(-1):(this.selectionService.focus(i),this.suggest&&(this.suggestedText=b.getter(this.dataService.itemAt(i),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 i=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e});i!==y.NavigationAction.Undefined&&i!==y.NavigationAction.Backspace&&i!==y.NavigationAction.Delete&&i!==y.NavigationAction.Home&&i!==y.NavigationAction.End&&i!==y.NavigationAction.Left&&i!==y.NavigationAction.Right&&(i===y.NavigationAction.Enter&&this.isOpen||i!==y.NavigationAction.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(e){var t,i=this.selectionService.focused;if(this.isOpen&&e.originalEvent.preventDefault(),i>=0)t=b.getter(this.dataService.itemAt(i),this.valueField);else{var n=this.suggest&&this.suggestedText&&this.data.length&&b.getter(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();t=this.isOpen&&n?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=b.isPresent(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,o.hasObservers(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e,t,i=this,n=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0,-1!==n?(e=this.dataService.itemAt(n),t=b.getter(e,this.valueField)||""):t=this.searchbar.value;var a=t===this.searchbar.value,r=t.toLowerCase()===this.searchbar.value.toLowerCase();!a&&r&&this.selectionService.resetSelection([]),this.isFocused=!1;var s=this.value!==this.text;o.hasObservers(this.onBlur)||o.hasObservers(this.close)||b.isUntouched(this.wrapper)||s?this._zone.run((function(){s&&i.change(i.searchbar.value),i.onBlur.emit(),i.onTouchedCallback(),i.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;o.isDocumentAvailable()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe((function(t){var i=e.value!==t;e.value=t,e.text=t,i&&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=_.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;o.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var i=t.target;e.isFocused&&!b.inDropDown(e.hostElement,i,e.popupRef)&&e._zone.run((function(){return e.blur()}))}))}))},e.prototype.unsubscribeEvents=function(){o.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]),b.isPresent(t)){var i=b.getter(this.dataService.itemAt(t),this.valueField);this.change(i)}},e.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&t>=0)&&(this.suggestedText=b.getter(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",i={horizontal:t,vertical:"bottom"},n={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:n,anchorAlign:i});var a=this.popupRef.popupElement,o=this.width,r=o.min,s=o.max;a.addEventListener("mousedown",this.popupMouseDownHandler),a.style.minWidth=r,a.style.width=s,a.style.height=this.height,a.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 S.PreventableEvent;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(i){var n=b.getter(i.value,t.valueField);return(n=b.isPresent(n)?n.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(i){var n=b.getter(i,t.valueField);return(n=b.isPresent(n)?n.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()}))}))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper,b.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper,b.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper,b.getFillModeClass("input",this.fillMode))},n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"highlightFirst",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"value",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"placeholder",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"suggest",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([a.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([a.Output("focus"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output("blur"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.ContentChild(d.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",d.ItemTemplateDirective)],e.prototype,"template",void 0),n.__decorate([a.ContentChild(u.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",u.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.ContentChild(c.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",c.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([a.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([a.ContentChild(h.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",h.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([a.ContentChild(m.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",m.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),n.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),n.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([a.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([a.ViewChild(p.SearchBarComponent,{static:!0}),n.__metadata("design:type",p.SearchBarComponent)],e.prototype,"searchbar",void 0),n.__decorate([a.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",k.ListComponent)],e.prototype,"optionsList",void 0),n.__decorate([a.HostBinding("class.k-autocomplete"),a.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],e.prototype,"widgetClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([a.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=i=n.__decorate([a.Component({exportAs:"kendoAutoComplete",providers:[t.AUTOCOMPLETE_VALUE_ACCESSOR,D.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,x.LocalizationService,{provide:x.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:w.FilterableComponent,useExisting:a.forwardRef((function(){return i}))},{provide:o.KendoInput,useExisting:a.forwardRef((function(){return i}))}],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-clear-value"\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 class="k-icon k-i-x"></span>\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 [size]="size"\n [rounded]="rounded"\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-no-data" *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 '}),n.__param(10,a.Optional()),n.__param(10,a.Inject(E.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[x.LocalizationService,D.DataService,I.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.ElementRef,Boolean])],e)}();t.AutoCompleteComponent=O},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.element=e}return e=n.__decorate([a.Directive({selector:'"li[role=option], li[role=group]"'}),n.__metadata("design:paramtypes",[a.ElementRef])],e)}();t.ListItemDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(11),r=i(30),s=i(31),l=i(14),p=i(21),d=i(3),u=i(3),c=i(2),h=i(5),m=i(19),g=i(16),v=i(17),f=i(18),_=i(34),b=i(12),y=i(13),C=i(20),S=i(23),x=i(15),I=i(4),w=i(9),D=i(10),k=i(26),T=i(7),E=i(8),O=i(24),P=i(25),F=i(33);t.DROPDOWNLIST_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return M}))};var M=function(){function e(e,t,i,n,o,p,d,u,h,m,g){this.wrapper=e,this.localization=t,this.popupService=i,this.selectionService=n,this.navigationService=o,this.disabledItemsService=p,this.dataService=d,this._zone=u,this.renderer=h,this.cdr=m,this.touchEnabled=g,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.hostClasses=!0,this.focusableId="k-"+c.guid(),this.role="listbox",this.groupIndices=[],this.listBoxId=c.guid(),this.optionPrefix=c.guid(),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.hostElementFocused=new a.EventEmitter,this.hostElementBlurred=new a.EventEmitter,this.selectionSubscription=new l.Subscription,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",r.validatePackage(s.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}var i;return i=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=d.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 c.isPresent(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(c.isPresent(this.dataItem))return this.optionPrefix+"-"+c.getter(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,i=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,i)}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){c.isPresent(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=F.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return c.isPresent(this._valuePrimitive)?this._valuePrimitive:!c.isPresent(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}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,c.getSizeClass("picker",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,c.getSizeClass("picker",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,c.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,c.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,c.getFillModeClass("picker",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,c.getFillModeClass("picker",e)),this._fillMode=e},enumerable:!0,configurable:!0}),e.prototype.blurComponent=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())},e.prototype.blurFilterInput=function(){this.filterBlurred.emit()},e.prototype.focusComponent=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,d.hasObservers(this.onFocus)&&this._zone.run((function(){t.onFocus.emit()}))))},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,i=t.min,n=t.max;e.style.minWidth=i,e.style.width=n}},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabIndex",{get:function(){return this.widgetTabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAriaExpanded",{get:function(){return this.ariaExpanded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostAriaOwns",{get:function(){return this.ariaOwns},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostAriaActivedescendant",{get:function(){return this.ariaActivedescendant},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostNoDataLabel",{get:function(){return this.noDataLabel},enumerable:!0,configurable:!0}),e.prototype.keydown=function(e){var t=c.isPresent(this.defaultItem)?-1:0,i=isNaN(this.selectionService.focused)?this.firstFocusableIndex(t):this.selectionService.focused,n=0;if(!this.disabled&&!this.readonly){var a=e.keyCode===u.Keys.Home||e.keyCode===u.Keys.End;if(!(this.filterable&&this.isFocused&&this.isOpen)||!a){var o=c.isPresent(this.selectionService.selected[0]),r=c.isPresent(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);o&&!r||(e.keyCode===u.Keys.ArrowDown||e.keyCode===u.Keys.ArrowRight?n=-1:e.keyCode!==u.Keys.ArrowUp&&e.keyCode!==u.Keys.ArrowLeft||(n=1));var s=e,l=this.navigationService.process({current:i+n,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:s}),p=l===S.NavigationAction.Left||l===S.NavigationAction.Right;l===S.NavigationAction.Undefined||l===S.NavigationAction.Tab||l===S.NavigationAction.Backspace||l===S.NavigationAction.Delete||p&&this.filterable||l===S.NavigationAction.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)},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe((function(t){var i=t.rtl;e.direction=i?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.assignAriaDescribedBy(),this.setComponentClasses()},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}),d.isChanged("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),d.anyChanged(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.focusItemAt=function(e){var t=(c.isPresent(this.defaultItem)?-1:0)<=e&&e<this.data.length;c.isPresent(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 i=c.isPresent(e)?e:!t._open;t._toggle(i)}))},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new x.PreventableEvent;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||(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,"selectButtonClasses",{get:function(){return(this.size?c.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterInputClasses",{get:function(){return(this.size?c.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?c.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"optionLabelSizeClass",{get:function(){return""+(this.size?c.getSizeClass("list",this.size):"")},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 c.getter(this.defaultItem,this.textField)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",i={horizontal:t,vertical:"bottom"},n={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:i,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:n,popupClass:this.listContainerClasses,positionMode:"absolute"});var a=this.popupRef.popupElement,o=this.width,r=o.min,s=o.max;a.addEventListener("mousedown",this.popupMouseDownHandler),a.style.minWidth=r,a.style.width=s,a.style.height=this.height,a.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,i=e.confirm,n=void 0!==i&&i;this.dataItem=t,this.text=c.getter(t,this.textField),n&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!c.isPresent(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;d.isDocumentAvailable()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(p.filter((function(t){return e.isOpen})),p.map(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(l.merge(this.selectionService.onSelect.pipe(p.filter((function(t){return!e.isOpen}))),this.selectionService.onChange).pipe(p.map(this.itemFromEvent.bind(this)),p.tap((function(t){return e.togglePopup(!1)}))).subscribe((function(t){var i=t.dataItem,n=t.value;t.newSelection&&e.onSelectionChange({dataItem:i});var a=!c.isPresent(i)&&e._previousDataItem,o=n!==c.getter(e.value,e.valueField);a?(e.updateState({dataItem:e._previousDataItem}),e.resetSelection()):o&&(e.value=e.valuePrimitive?n:i,e._previousDataItem=i,e.emitChange(e.value)),e.clearFilter()}))),this.navigationSubscription=l.merge(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(p.skipWhile((function(){return e.filterable}))),this.navigationService.right.pipe(p.skipWhile((function(){return e.filterable}))),this.navigationService.home,this.navigationService.end).pipe(p.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(p.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(p.concatMap((function(){return l.interval(10).pipe(p.take(1),p.takeUntil(e.hostElementFocused))}))).subscribe((function(){e.hostElementBlurred.emit()})),this._zone.runOutsideAngular((function(){e.componentBlurredSubscription=l.merge(e.hostElementBlurred.pipe(p.concatMap((function(){return l.interval(10).pipe(p.take(1),p.takeUntil(e.filterFocused))}))),e.navigationService.tab).pipe(p.tap((function(t){return t instanceof m.NavigationEvent&&e.focus()})),p.filter((function(){return e.isFocused}))).subscribe((function(){return e.componentBlur()}))})))},e.prototype.subscribeTouchEvents=function(){var e=this;d.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var i=t.target;e.isFocused&&!c.inDropDown(e.wrapper,i,e.popupRef)&&e._zone.run((function(){e.filterFocused&&e.togglePopup(!1),e.blur()}))}))}))},e.prototype.subscribeFocusEvents=function(){var e=this;d.isDocumentAvailable()&&(this.focusComponent=this.focusComponent.bind(this),this.blurComponent=this.blurComponent.bind(this),this._zone.runOutsideAngular((function(){document.addEventListener("focus",e.focusComponent,!0),document.addEventListener("blur",e.blurComponent,!0)})))},e.prototype.unSubscribeFocusEvents=function(){if(d.isDocumentAvailable()){document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0)}},e.prototype.unsubscribeEvents=function(){d.isDocumentAvailable()&&(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())},e.prototype.itemFromEvent=function(e){var t=e.indices[0],i=this.dataService.itemAt(t);i=c.isPresent(i)?i:this.currentOrDefault(t);var n=c.getter(i,this.valueField);return{dataItem:i,index:t,newSelection:e.newSelection,value:n}},e.prototype.currentOrDefault=function(e){return c.isPresent(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(){c.isPresent(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(a.isDevMode()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(k.DropDownListMessages.defaultItem);if(!0===this.valuePrimitive&&c.isPresent(this.value)&&"object"==typeof this.value)throw new Error(k.DropDownListMessages.primitive);if(!1===this.valuePrimitive&&c.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(k.DropDownListMessages.object);if(!c.isPresent(this.valueField)!=!c.isPresent(this.textField))throw new Error(k.DropDownListMessages.textAndValue)}},e.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=c.isPresent(this.selectionService.selected[0])&&c.getter(this.value,this.valueField)!==c.getter(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||d.hasObservers(this.close)||d.hasObservers(this.onBlur)||d.hasObservers(this.filterChange)||c.isUntouched(this.wrapper.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!==u.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,i,n=this,a=this.dataService.filter((function(e){return c.isPresent(e)&&!e.header&&!n.disabledItemsService.isItemDisabled(e)})).map((function(e){return n.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:n.dataService.indexOf(e)}})),o=c.sameCharsOnly(this.word,this.last),r=a.length,s=!isNaN(this.selectionService.selected[0]),l=s?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(i={item:this.defaultItem,itemIndex:-1},r+=1,l+=1),l+=o&&s?1:0,a=c.shuffleData(a,l,i),t=0;t<r;t++){e=c.getter(a[t].item,this.textField);var p=Boolean(o&&c.matchText(e,this.last,this.ignoreCase)),d=Boolean(c.matchText(e,this.word,this.ignoreCase));if(p||d){t=a[t].itemIndex;break}}t!==r&&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,i=e.valueField,n=e.value,a={dataItem:null,index:-1},o=function(e){return c.getter(e,i)};t=this.dataService.grouped?function(e){return o(e.value)===o(n)}:function(e){return o(e)===o(n)};var r=this.dataService.findIndex(t);return a.dataItem=this.dataService.itemAt(r),a.index=r,a},e.prototype.setState=function(){var e=this.value,t=this.valueField,i=this.textField,n=this.valuePrimitive;if(this.defaultItem){var a=c.getter(this.defaultItem,t),o=c.getter(e,t);if(!c.isPresent(e)||o===a)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 r=this.findDataItem({valueField:t,value:e}),s=!(n&&i);r.dataItem?(this.updateState({dataItem:r.dataItem,confirm:!0}),this.resetSelection(r.index)):c.isPresent(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=c.guid();var t=(this.valueLabelId+" "+e).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,c.getSizeClass("picker",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,c.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,c.getFillModeClass("picker",this.fillMode))},n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"iconClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"ignoreCase",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"delay",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([a.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([a.Output("focus"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output("blur"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.ContentChild(g.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",g.ItemTemplateDirective)],e.prototype,"itemTemplate",void 0),n.__decorate([a.ContentChild(v.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",v.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([a.ContentChild(f.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",f.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),n.__decorate([a.ContentChild(_.ValueTemplateDirective,{static:!1}),n.__metadata("design:type",_.ValueTemplateDirective)],e.prototype,"valueTemplate",void 0),n.__decorate([a.ContentChild(b.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",b.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.ContentChild(y.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",y.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([a.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),n.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([a.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([a.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],e.prototype,"optionsList",void 0),n.__decorate([a.HostBinding("class.k-dropdownlist"),a.HostBinding("class.k-picker"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),a.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([a.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([a.Input("id"),a.HostBinding("attr.id"),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),n.__decorate([a.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],e.prototype,"hostTabIndex",null),n.__decorate([a.HostBinding("attr.readonly"),a.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),n.__decorate([a.HostBinding("attr.role"),a.HostBinding("attr.aria-haspopup"),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([a.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isAriaExpanded",null),n.__decorate([a.HostBinding("attr.aria-owns"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"hostAriaOwns",null),n.__decorate([a.HostBinding("attr.aria-activedescendant"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"hostAriaActivedescendant",null),n.__decorate([a.HostBinding("attr.aria-label"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"hostNoDataLabel",null),n.__decorate([a.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"keydown",null),n.__decorate([a.HostListener("keypress",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"keypress",null),n.__decorate([a.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"click",null),e=i=n.__decorate([a.Component({exportAs:"kendoDropDownList",providers:[t.DROPDOWNLIST_VALUE_ACCESSOR,E.DataService,h.SelectionService,m.NavigationService,T.DisabledItemsService,I.LocalizationService,{provide:I.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:O.FilterableComponent,useExisting:a.forwardRef((function(){return i}))},{provide:d.KendoInput,useExisting:a.forwardRef((function(){return i}))}],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 class="k-input-inner" unselectable="on" [id]="valueLabelId">\n <span class="k-input-value-text">\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>\n <button\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [kendoEventsOutsideAngular]="{\n mousedown: onMouseDown\n }"\n >\n <span\n class="k-button-icon k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <div class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <span\n class="k-searchbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-icon k-icon k-i-search" unselectable="on"></span>\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-input-inner"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n </span>\n </div>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel k-list-item" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel k-list-item" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\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 [size]="size"\n [rounded]="rounded"\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-no-data" *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 '}),n.__param(10,a.Optional()),n.__param(10,a.Inject(D.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[a.ElementRef,I.LocalizationService,w.PopupService,h.SelectionService,m.NavigationService,T.DisabledItemsService,E.DataService,a.NgZone,a.Renderer2,a.ChangeDetectorRef,Boolean])],e)}();t.DropDownListComponent=M},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(11),r=i(3),s=i(4),l=i(9),p=i(37),d=i(41),u=i(8),c=i(7),h=i(19),m=i(5),g=i(10),v=i(2),f=i(68),_=i(24),b=i(26),y=function(e){function t(t,i,n,a,o,r,s,l,p,d,u){var c=e.call(this,d,t,i,n,a,o,r,s,l,p,u)||this;return c.hostClasses=!0,c.removeWindowResizeListener=v.noop,c.defaultVirtualItemHeight=36,c.defaultVirtualPageSize=30,c}var i;return n.__extends(t,e),i=t,Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),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",i=this.popupSettings.width||f.getRowWidthFromColumnsMeta(this.columns)||e;return{min:t,max:isNaN(i)?i:i+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableSizeClass",{get:function(){return""+(this.size?v.getSizeClass("table",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listContainerClasses",{get:function(){return["k-popup","k-dropdowngrid-popup"].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 v.getter(e,t)},t.prototype.updateHeaderPadding=function(e){if(v.isPresent(e)){var t=this.localization.rtl?"padding-left":"padding-right";this.optionsList.hasScrollbar()&&f.scrollbarWidth()>0?this.renderer.setStyle(e,t,f.scrollbarWidth()+"px"):this.renderer.removeStyle(e,t)}},t.prototype.verifySettings=function(){if(a.isDevMode()){if(v.isPresent(this.data)&&this.data.length>0&&this.data.some((function(e){return!v.isObject(e)})))throw new Error(b.MultiColumnComboBoxMessages.data);if(!v.isPresent(this.valueField)||!v.isPresent(this.textField))throw new Error(b.MultiColumnComboBoxMessages.textAndValue);e.prototype.verifySettings.call(this)}},t.prototype.addWindowResizeListener=function(){var e=this;r.isDocumentAvailable()&&this.zone.runOutsideAngular((function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))}))},t.prototype.updateColumnsMediaState=function(){var e=this;v.isPresent(this.columns)&&r.isDocumentAvailable()&&this.columns.forEach((function(t){var i=!t.media||window.matchMedia(t.media).matches;t.matchesMedia!==i&&(t.matchesMedia=i,e.isOpen&&e.zone.run((function(){return e.popupRef.popupElement.style.width=e.popupWidth.max})))}))},n.__decorate([a.HostBinding("class.k-dropdowngrid"),n.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],t.prototype,"isDisabled",null),n.__decorate([a.ContentChildren(d.ComboBoxColumnComponent),n.__metadata("design:type",a.QueryList)],t.prototype,"columns",void 0),n.__decorate([a.ViewChild("header",{static:!1}),n.__metadata("design:type",a.ElementRef),n.__metadata("design:paramtypes",[a.ElementRef])],t.prototype,"header",null),t=i=n.__decorate([a.Component({providers:[m.SelectionService,u.DataService,h.NavigationService,c.DisabledItemsService,s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return i}))},{provide:r.KendoInput,useExisting:a.forwardRef((function(){return i}))},{provide:_.FilterableComponent,useExisting:a.forwardRef((function(){return i}))}],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 <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-clear-value"\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 class="k-icon k-i-x"></span>\n </span>\n\n <button\n #select\n tabindex="-1"\n aria-hidden="true"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\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!--data table--\x3e\n <div class="k-data-table" [ngClass]="tableSizeClass">\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-table-header"\n >\n <div class="k-table-header-wrap">\n <table class="k-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 <thead class="k-table-thead">\n <tr class="k-table-row">\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-th"\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 </thead>\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-table-td"\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 [type]="\'dropdowngrid\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-no-data"\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-table-footer">\n <table class="k-table">\n <tfoot class="k-table-tfoot">\n <tr class="k-table-row">\n <td class="k-table-td">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </ng-container>\n\n </div>\n\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 '}),n.__param(10,a.Inject(g.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[s.LocalizationService,l.PopupService,m.SelectionService,h.NavigationService,c.DisabledItemsService,u.DataService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.ElementRef,Boolean])],t)}(p.ComboBoxComponent);t.MultiColumnComboBoxComponent=y},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(3),r=i(9),s=i(6),l=i(28),p=i(11),d=i(8),u=i(7),c=i(19),h=i(4),m=i(5),g=i(15),v=i(2),f=i(20),_=i(14),b=i(21),y=i(12),C=i(13),S=i(36),x=i(26),I=i(10),w=i(34),D={animate:!0},k=function(){return!1},T=function(){return _.of([])},E=function(){return!1},O=function(){return!0},P=function(){function e(e,t,i,n,r,s,l,p){this.wrapper=e,this.popupService=t,this.navigationService=i,this.renderer=n,this._zone=r,this.cdr=s,this.localization=l,this.touchEnabled=p,this.hostClasses=!0,this.role="listbox",this.ariaHasPopup="tree",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.filterChange=new a.EventEmitter,this.clearButton=!0,this.hasChildren=k,this.fetchChildren=T,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=E,this.isNodeVisible=O,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+o.guid(),this.selectedKeys=[],this.filterStateChange=new a.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+o.guid(),this._popupSettings=D,this._tabindex=0,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.onTouchedCallback=v.noop,this.onChangeCallback=v.noop,this.direction=l.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents()}var t;return t=e,Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.handleKeydown=function(e){if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})}},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({},D,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,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getSizeClass("picker",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("picker",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getFillModeClass("picker",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("picker",e)),this._fillMode=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.nativeElement,"k-focus"),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 v.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return v.isPresent(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.wrapper.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe((function(t){var i=t.rtl;e.direction=i?"rtl":"ltr",e.cdr.markForCheck()}))),this.setComponentClasses()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){o.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,i=this.isOpen===e;t||i||(this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup()))},e.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,o.hasObservers(this.onFocus)&&this._zone.run((function(){t.onFocus.emit()}))))},e.prototype.handleBlur=function(e){var t=this,i=e&&e.relatedTarget;this.wrapper.nativeElement.contains(i)||this.isOpen&&this.popupRef.popupElement.contains(i)||(this.isFocused=!1,o.hasObservers(this.onBlur)||v.isUntouched(this.wrapper.nativeElement)?this._zone.run((function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()})):this.togglePopup(!1))},e.prototype.focusItemAt=function(e){if(this.treeview){var t=this.treeview.itemLookup(e);!v.isPresent(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 i=v.isPresent(e)?e:!v.isPresent(t.popupRef);t.destroyPopup(),i&&t.createPopup()}))},Object.defineProperty(e.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),e.prototype.onSelectionChange=function(e){var t=e.dataItem,i=e.index;this.valueDepth=i.split("_").length-1;var n=this.getField(this.valueField,t),a=this.valuePrimitive?l.getter(n)(t):t;a!==this.value&&(this.value=a,this.dataItem=t,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){!v.isPresent(e)&&v.isPresent(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,i){return!t.isVisible(e,String(i))}))},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectButtonClasses",{get:function(){return(this.size?v.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterInputClasses",{get:function(){return(this.size?v.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?v.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),e.prototype.verifySettings=function(){if(a.isDevMode()){if(!0===this.valuePrimitive&&v.isPresent(this.value)&&"object"==typeof this.value)throw new Error(x.DropDownTreeMessages.primitive);if(!0===this.valuePrimitive&&v.isPresent(this.value)&&"object"!=typeof this.dataItem)throw new Error(x.DropDownTreeMessages.dataItem);if(!1===this.valuePrimitive&&v.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(x.DropDownTreeMessages.object);if(!v.isPresent(this.valueField)||!v.isPresent(this.textField))throw new Error(x.DropDownTreeMessages.textAndValue);if((v.isArray(this.valueField)||v.isArray(this.textField))&&v.isPresent(this.value)&&!v.isPresent(this.valueDepth))throw new Error(x.DropDownTreeMessages.valueDepth)}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.getText=function(e,t){if(v.isPresent(t)&&v.isPresent(e)){var i=this.getField(e,t);return l.getter(i)(t)}return null},e.prototype.getField=function(e,t){var i=e.length-1;return"string"==typeof e?e:v.isPresent(this.valueDepth)?i<this.valueDepth?e[i]:e[this.valueDepth]:e.find((function(e){return e in t}))},e.prototype.triggerPopupEvents=function(e){var t=new g.PreventableEvent;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",i={horizontal:t,vertical:"bottom"},n={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:i,content:this.popupTemplate,popupAlign:n,positionMode:"absolute",popupClass:this.popupContainerClasses});var a=this.popupRef.popupElement,o=this.width,r=o.min,s=o.max;a.style.minWidth=r,a.style.width=s,a.style.height=this.height,a.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,o.hasObservers(this.filterChange)&&this._zone.run((function(){e.filterChange.emit("")}))))},e.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},e.prototype.setState=function(){if(v.isPresent(this.value)&&v.isPresent(this.dataItem)&&v.isPresent(this.valueField)){this.text=this.getText(this.textField,this.dataItem);var e=this.getField(this.valueField,this.dataItem);this.selectBy=e,this.selectedKeys=[l.getter(e)(this.dataItem)]}else this.clearState();this.cdr.markForCheck()},e.prototype.clearState=function(){this.text=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(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;o.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var i=t.target;e.isFocused&&!v.inDropDown(e.wrapper,i,e.popupRef)&&e._zone.run((function(){e.isOpen&&e.treeview.blur(),e.blur()}))}))}))},e.prototype.subscribeFocusEvents=function(){var e=this;o.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular((function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)})))},e.prototype.unSubscribeFocusEvents=function(){if(o.isDocumentAvailable()){document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0)}},e.prototype.unsubscribeEvents=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},e.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},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)},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("picker",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("picker",this.fillMode))},n.__decorate([a.HostBinding("class.k-dropdowntree"),a.HostBinding("class.k-picker"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),a.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([a.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([a.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"id",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([a.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],e.prototype,"hostTabIndex",null),n.__decorate([a.HostBinding("attr.role"),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([a.HostBinding("attr.aria-haspopup"),n.__metadata("design:type",String)],e.prototype,"ariaHasPopup",void 0),n.__decorate([a.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isAriaExpanded",null),n.__decorate([a.HostBinding("attr.readonly"),a.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),n.__decorate([a.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),n.__decorate([a.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),n.__decorate([a.ContentChild(f.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",f.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([a.ContentChild(y.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",y.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.ContentChild(C.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",C.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([a.ContentChild(S.NodeTemplateDirective,{static:!1}),n.__metadata("design:type",S.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),n.__decorate([a.ContentChild(w.ValueTemplateDirective,{static:!1}),n.__metadata("design:type",w.ValueTemplateDirective)],e.prototype,"valueTemplate",void 0),n.__decorate([a.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),n.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([a.ViewChild("treeview",{static:!1}),n.__metadata("design:type",s.TreeViewComponent),n.__metadata("design:paramtypes",[s.TreeViewComponent])],e.prototype,"treeview",null),n.__decorate([a.ViewChild("filterInput",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"filterInput",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"nodeExpand",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"nodeCollapse",void 0),n.__decorate([a.Output("focus"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output("blur"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"valueDepth",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"fetchChildren",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"placeholder",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"dataItem",null),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"isNodeExpanded",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"isNodeVisible",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"filter",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),e=t=n.__decorate([a.Component({exportAs:"kendoDropDownTree",providers:[d.DataService,m.SelectionService,c.NavigationService,u.DisabledItemsService,h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:p.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t}))},{provide:o.KendoInput,useExisting:a.forwardRef((function(){return t}))},{provide:s.DataBoundComponent,useExisting:a.forwardRef((function(){return t}))},{provide:s.ExpandableComponent,useExisting: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 [attr.id]="valueLabelId"\n class="k-input-inner"\n >\n <span class="k-input-value-text">\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 <span\n *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n tabindex="-1"\n type="button"\n aria-hidden="true"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\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-input-inner"\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>\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 [size]="size"\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-no-data" *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:a.ChangeDetectionStrategy.OnPush}),n.__param(7,a.Optional()),n.__param(7,a.Inject(I.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[a.ElementRef,r.PopupService,c.NavigationService,a.Renderer2,a.NgZone,a.ChangeDetectorRef,h.LocalizationService,Boolean])],e)}();t.DropDownTreeComponent=P},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),n.__decorate([a.Input("kendoDropDownTreeFlatBinding"),n.__metadata("design:type",Array)],t.prototype,"nodes",void 0),n.__decorate([a.Input("valueField"),n.__metadata("design:type",String)],t.prototype,"idField",void 0),t=n.__decorate([a.Directive({selector:"[kendoDropDownTreeFlatBinding]"}),n.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.FlatDataBindingDirective);t.DropDownTreeFlatBindingDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=function(e){function t(t){var i=e.call(this,t)||this;return i.dropDownTree=t,i}return n.__extends(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),n.__decorate([a.Input("kendoDropDownTreeHierarchyBinding"),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),t=n.__decorate([a.Directive({selector:"[kendoDropDownTreeHierarchyBinding]"}),n.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.HierarchyBindingDirective);t.DropDownTreeHierarchyBindingDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),n.__decorate([a.Input("kendoMultiSelectTreeFlatBinding"),n.__metadata("design:type",Array)],t.prototype,"nodes",void 0),n.__decorate([a.Input("valueField"),n.__metadata("design:type",String)],t.prototype,"idField",void 0),t=n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeFlatBinding]"}),n.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.FlatDataBindingDirective);t.MultiSelectTreeFlatBindingDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=function(e){function t(t){var i=e.call(this,t)||this;return i.multiSelectTree=t,i}return n.__extends(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),n.__decorate([a.Input("kendoMultiSelectTreeHierarchyBinding"),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),t=n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),n.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.HierarchyBindingDirective);t.MultiSelectTreeHierarchyBindingDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),n.__decorate([a.Input("isNodeExpanded"),n.__metadata("design:type",Function)],t.prototype,"isExpanded",void 0),t=n.__decorate([a.Directive({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),n.__metadata("design:paramtypes",[o.ExpandableComponent])],t)}(o.ExpandDirective);t.DropDownTreesExpandDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(27),r=i(6),s=i(22),l=i(49),p=i(44),d=i(50),u=i(51),c=i(52),h=i(53),m=i(54),g=i(36),v=i(76),f=[l.DropDownTreeComponent,p.MultiSelectTreeComponent,d.DropDownTreeFlatBindingDirective,u.DropDownTreeHierarchyBindingDirective,c.MultiSelectTreeFlatBindingDirective,h.MultiSelectTreeHierarchyBindingDirective,m.DropDownTreesExpandDirective,g.NodeTemplateDirective,v.MultiSelectTreeSummaryTagDirective],_=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[f],exports:[f,s.SharedDirectivesModule],imports:[o.SharedModule,r.TreeViewModule]})],e)}();t.DropDownTreesModule=_},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),n.__decorate([a.Input(),n.__metadata("design:type",String)],t.prototype,"noDataText",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],t.prototype,"clearTitle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],t.prototype,"checkAllText",void 0),t}(i(4).ComponentMessages);t.Messages=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(24),r=i(2),s={caseSensitive:!1,operator:"startsWith"},l=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(){r.isPresent(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},e.prototype.handleFilterChange=function(e){var t=this;this.component.data=this.data.filter((function(i){return t.matchesAnyField(i,e)}))},e.prototype.matchesAnyField=function(e,t){var i=this,n=this.normalizeValue(t),a=this.filterSettings.fields;return 0===a.length?this.checkItem(e,n):a.some((function(t){return i.checkItem(r.getter(e,t),n)}))},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=r.isPresent(e)?e.toString():"";return this.filterSettings.caseSensitive?t:t.toLowerCase()},e.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?r.isArray(e)&&e.length>0?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(e.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=r.isPresent(e)&&"object"==typeof e?e.fields:[];return Object.assign({},s,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([a.Input("kendoDropDownFilter"),n.__metadata("design:type",Object)],e.prototype,"rawSettings",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),e=n.__decorate([a.Directive({selector:"[kendoDropDownFilter]"}),n.__metadata("design:paramtypes",[o.FilterableComponent])],e)}();t.FilterDirective=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(5),r=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))},n.__decorate([a.HostBinding("attr.index"),a.Input(),n.__metadata("design:type",Number)],e.prototype,"index",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"checkboxes",void 0),n.__decorate([a.HostBinding("style.height.px"),a.HostBinding("style.minHeight.px"),a.Input(),n.__metadata("design:type",Number)],e.prototype,"height",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"multipleSelection",void 0),n.__decorate([a.HostBinding("class.k-focus"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"focusedClassName",null),n.__decorate([a.HostBinding("class.k-selected"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"selectedClassName",null),n.__decorate([a.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),e=n.__decorate([a.Directive({selector:"[kendoDropDownsSelectable]"}),n.__metadata("design:paramtypes",[o.SelectionService])],e)}();t.SelectableDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=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}),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"templateContext",null),e=n.__decorate([a.Directive({selector:"[templateContext]"}),n.__metadata("design:paramtypes",[a.ViewContainerRef])],e)}();t.TemplateContextDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=function(){function e(){}return e.prototype.addItem=function(e){if(!this.isItemChecked(e)){var t=o.getHierarchicalItemLevel(e.index),i=n.__assign({},e,{level:t});this.checkedItems.push(i),this.checkedKeys.add(o.valueFrom(i,this.valueField))}},e.prototype.removeItem=function(e){var t=this;if(this.isItemChecked(e)){var i=o.getHierarchicalItemLevel(e.index),a=n.__assign({},e,{level:i});this.checkedItems=this.checkedItems.filter((function(e){return o.valueFrom(e,t.valueField)!==o.valueFrom(a,t.valueField)})),this.checkedKeys.delete(o.valueFrom(a,this.valueField))}},e.prototype.isItemChecked=function(e){return this.checkedKeys.has(o.valueFrom(e,this.valueField))},e.prototype.updateItems=function(){var e=this;this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map((function(t){return o.valueFrom(t,e.valueField)})))},n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"checkedItems",void 0),e}();t.BaseCheckDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=i(38),s=function(){function e(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},e.prototype.createTagMapper=function(){var e=o.parseNumber(this.showAfter);this.multiSelectComponent.tagMapper=function(t){if(t.length>e){var i=void 0;return(i=t.slice(0,e)).push(t.slice(e,t.length)),i}return t}},n.__decorate([a.Input("kendoMultiSelectSummaryTag"),n.__metadata("design:type",Object)],e.prototype,"showAfter",void 0),e=n.__decorate([a.Directive({selector:"[kendoMultiSelectSummaryTag]"}),n.__metadata("design:paramtypes",[r.MultiSelectComponent])],e)}();t.SummaryTagDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(45),r=i(27),s=i(22),l=[o.AutoCompleteComponent],p=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[l],exports:[l,s.SharedDirectivesModule],imports:[r.SharedModule]})],e)}();t.AutoCompleteModule=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(28),r=i(37),s=i(48),l=i(41),p=i(27),d=i(22),u=i(10),c=i(43),h=i(42),m=[r.ComboBoxComponent,s.MultiColumnComboBoxComponent,l.ComboBoxColumnComponent,c.ColumnHeaderTemplateDirective,h.ColumnCellTemplateDirective],g=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[m],exports:[m,d.SharedDirectivesModule],imports:[p.SharedModule],providers:[{provide:u.TOUCH_ENABLED,useValue:o.touchEnabled}]})],e)}();t.ComboBoxModule=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(47),r=i(27),s=i(22),l=[o.DropDownListComponent],p=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[l],exports:[l,s.SharedDirectivesModule],imports:[r.SharedModule]})],e)}();t.DropDownListModule=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(28),r=i(38),s=i(39),l=i(61),p=i(27),d=i(22),u=i(10),c=[r.MultiSelectComponent,l.SummaryTagDirective,s.CustomItemTemplateDirective],h=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[c],exports:[c,d.SharedDirectivesModule],imports:[p.SharedModule],providers:[{provide:u.TOUCH_ENABLED,useValue:o.touchEnabled}]})],e)}();t.MultiSelectModule=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(45);t.AutoCompleteComponent=n.AutoCompleteComponent;var a=i(37);t.ComboBoxComponent=a.ComboBoxComponent;var o=i(47);t.DropDownListComponent=o.DropDownListComponent;var r=i(38);t.MultiSelectComponent=r.MultiSelectComponent;var s=i(48);t.MultiColumnComboBoxComponent=s.MultiColumnComboBoxComponent;var l=i(41);t.ComboBoxColumnComponent=l.ComboBoxColumnComponent;var p=i(42);t.ColumnCellTemplateDirective=p.ColumnCellTemplateDirective;var d=i(43);t.ColumnHeaderTemplateDirective=d.ColumnHeaderTemplateDirective;var u=i(49);t.DropDownTreeComponent=u.DropDownTreeComponent;var c=i(44);t.MultiSelectTreeComponent=c.MultiSelectTreeComponent;var h=i(50);t.DropDownTreeFlatBindingDirective=h.DropDownTreeFlatBindingDirective;var m=i(51);t.DropDownTreeHierarchyBindingDirective=m.DropDownTreeHierarchyBindingDirective;var g=i(52);t.MultiSelectTreeFlatBindingDirective=g.MultiSelectTreeFlatBindingDirective;var v=i(53);t.MultiSelectTreeHierarchyBindingDirective=v.MultiSelectTreeHierarchyBindingDirective;var f=i(54);t.DropDownTreesExpandDirective=f.DropDownTreesExpandDirective;var _=i(55);t.DropDownTreesModule=_.DropDownTreesModule;var b=i(36);t.NodeTemplateDirective=b.NodeTemplateDirective;var y=i(16);t.ItemTemplateDirective=y.ItemTemplateDirective;var C=i(17);t.GroupTemplateDirective=C.GroupTemplateDirective;var S=i(18);t.FixedGroupTemplateDirective=S.FixedGroupTemplateDirective;var x=i(39);t.CustomItemTemplateDirective=x.CustomItemTemplateDirective;var I=i(12);t.HeaderTemplateDirective=I.HeaderTemplateDirective;var w=i(13);t.FooterTemplateDirective=w.FooterTemplateDirective;var D=i(34);t.ValueTemplateDirective=D.ValueTemplateDirective;var k=i(59);t.TemplateContextDirective=k.TemplateContextDirective;var T=i(29);t.GroupTagTemplateDirective=T.GroupTagTemplateDirective;var E=i(58);t.SelectableDirective=E.SelectableDirective;var O=i(61);t.SummaryTagDirective=O.SummaryTagDirective;var P=i(57);t.FilterDirective=P.FilterDirective;var F=i(77);t.DropDownsModule=F.DropDownsModule;var M=i(65);t.MultiSelectModule=M.MultiSelectModule;var A=i(27);t.SharedModule=A.SharedModule;var j=i(62);t.AutoCompleteModule=j.AutoCompleteModule;var B=i(63);t.ComboBoxModule=B.ComboBoxModule;var z=i(64);t.DropDownListModule=z.DropDownListModule;var R=i(22);t.SharedDirectivesModule=R.SharedDirectivesModule;var N=i(25);t.ListComponent=N.ListComponent;var L=i(9);t.PopupComponent=L.PopupComponent;var H=i(15);t.PreventableEvent=H.PreventableEvent;var V=i(40);t.RemoveTagEvent=V.RemoveTagEvent},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);t.normalizeCheckboxesSettings=function(e){if(n.isObject(e)){return Object.assign({},{enabled:!0,checkOnClick:!0},e)}return{enabled:Boolean(e),checkOnClick:!0}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(2);t.scrollbarWidth=function(){if(isNaN(n)){var e=document.createElement("div");e.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML="&nbsp;",document.body.appendChild(e),n=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return n};t.getRowWidthFromColumnsMeta=function(e){if(!function(e){return!(!a.isPresent(e)||0===e.length)&&e.toArray().every((function(e){return!isNaN(e.width)&&e.width>0}))}(e))return null;var i=t.scrollbarWidth()+2;return e.reduce((function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e}),i)}},function(e,t){e.exports=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(35),r=i(29),s=i(2),l=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.rounded="medium",this.fillMode="solid",this.disabledIndices=new Set,this.removeTag=new a.EventEmitter,this.hostClasses=!0,this._size="medium"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.hostElement.nativeElement,s.getSizeClass("chip-list",this.size)),e&&this.renderer.addClass(this.hostElement.nativeElement,s.getSizeClass("chip-list",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostId",{get:function(){return this.id},enumerable:!0,configurable:!0}),e.prototype.tagProp=function(e,t,i){var n=t&&this.getPropField(e,t,i);return s.getter(e,n)},e.prototype.isTagDisabled=function(e,t){var i=this;return this.isGroupTag(e)?e.every((function(e,n){return i.disabledIndices.has(n+t)})):this.disabledIndices.has(t)},e.prototype.deleteTag=function(e,t,i){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:i})},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 s.isPresent(this.focused)&&this.focused!==e},e.prototype.getPropField=function(e,t,i){var n=t.length-1;if("string"==typeof t)return t;if(this.valueDepth){var a=this.valueDepth[i];return n<a?t[n]:t[a]}return t.find((function(t){return t in e}))},n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"tags",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"valueDepth",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"focused",void 0),n.__decorate([a.Input(),n.__metadata("design:type",o.TagTemplateDirective)],e.prototype,"template",void 0),n.__decorate([a.Input(),n.__metadata("design:type",r.GroupTagTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"tagPrefix",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"rounded",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"fillMode",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Set)],e.prototype,"disabledIndices",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"removeTag",void 0),n.__decorate([a.HostBinding("class.k-input-values"),a.HostBinding("class.k-chip-list"),a.HostBinding("class.k-selection-multiple"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"hostId",null),e=n.__decorate([a.Component({selector:"kendo-taglist",template:"\n <div\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-chip\"\n [ngClass]=\"{\n 'k-focus': index === focused,\n 'k-disabled': isTagDisabled(tag, index),\n 'k-chip-sm': size === 'small',\n 'k-chip-md': size === 'medium',\n 'k-chip-lg': size === 'large',\n 'k-rounded-sm': rounded === 'small',\n 'k-rounded-md': rounded === 'medium',\n 'k-rounded-lg': rounded === 'large',\n 'k-rounded-full': rounded === 'full',\n 'k-chip-solid k-chip-solid-base': fillMode === 'solid',\n 'k-chip-flat k-chip-flat-base': fillMode === 'flat',\n 'k-chip-outline k-chip-outline-base': fillMode === 'outline'\n }\"\n >\n <span class=\"k-chip-content\">\n <ng-template *ngIf=\"isGroupTag(tag); then groupTag else singleTag\"></ng-template>\n <ng-template #groupTag>\n <span class=\"k-chip-label k-text-ellipsis\">\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 class=\"k-chip-label k-text-ellipsis\">\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 </span>\n\n <span class=\"k-chip-actions\">\n <span aria-label=\"delete\" [attr.aria-hidden]=\"index !== focused\" class=\"k-chip-action k-chip-remove-action\">\n <span class=\"k-icon k-i-x-circle\" (mousedown)=\"deleteTag($event, tag, index)\">\n </span>\n </span>\n </span>\n </div>\n <ng-content></ng-content>\n "}),n.__metadata("design:paramtypes",[a.Renderer2,a.ElementRef])],e)}();t.TagListComponent=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(4),r=i(56),s=function(e){function t(t){var i=e.call(this)||this;return i.service=t,i}var i;return n.__extends(t,e),i=t,t=i=n.__decorate([a.Directive({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return i}))}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),n.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.LocalizedMessagesDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(4),r=i(56),s=function(e){function t(t){var i=e.call(this)||this;return i.service=t,i}var i;return n.__extends(t,e),i=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=i=n.__decorate([a.Component({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return i}))}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),n.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.CustomMessagesComponent=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=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)}))},n.__decorate([a.Input("filterInput"),n.__metadata("design:type",Boolean)],e.prototype,"focused",void 0),e=n.__decorate([a.Directive({selector:"[filterInput]"}),n.__metadata("design:paramtypes",[a.ElementRef,a.NgZone])],e)}();t.FilterInputDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=i(14),s=i(21),l=i(2),p=function(e){function t(t){var i=e.call(this)||this;return i.treeView=t,i.checkedItemsChange=new a.EventEmitter,i.checkedKeys=new Set,i.subscriptions=new r.Subscription,i.subscriptions.add(i.treeView.checkedChange.subscribe(i.handleCheckedChange.bind(i))),i.treeView.isChecked=i.getCheckedState.bind(i),i}return n.__extends(t,e),t.prototype.ngOnChanges=function(e){l.isPresent(e.checkable)&&this.toggleCheckOnClick(),l.isPresent(e.checkedItems)&&this.updateItems()},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},t.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},t.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},t.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(s.filter((function(e){return"click"===e.type}))).subscribe((function(t){var i=e.treeView.itemLookup(t.item.index);e.handleCheckedChange(i)})))},t.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},t.prototype.checkNode=function(e){var t=this;if(!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var i=e.item,n=[i];if(this.checkable.checkChildren){l.fetchDescendentNodes(e,(function(e){return t.treeView.isVisible(e.dataItem,e.index)&&!t.treeView.isDisabled(e.dataItem,e.index)})).forEach((function(e){return n.push(e.item)}))}var a=!this.isItemChecked(i);n.forEach((function(e){a?t.addItem(e):t.removeItem(e)}))}},t.prototype.checkParents=function(e){for(var t=this,i=e;i;){i.children.every((function(e){return t.isItemChecked(e)}))?this.addItem(i.item):this.removeItem(i.item),i=i.parent}},t.prototype.isItemIndeterminate=function(e){var t=e.children;if(!Array.isArray(t)||0===t.length)return!1;for(var i=0,n=t[i];l.isPresent(n);){if(this.isItemChecked(n.item)||this.isItemIndeterminate(n))return!0;n=t[i+=1]}return!1},n.__decorate([a.Input(),n.__metadata("design:type",Object)],t.prototype,"checkable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],t.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],t.prototype,"checkedItems",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],t.prototype,"checkedItemsChange",void 0),t=n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeCheckable]"}),n.__metadata("design:paramtypes",[o.TreeViewComponent])],t)}(i(60).BaseCheckDirective);t.CheckDirective=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=i(2),s=function(e){function t(t,i,n,o){var r=e.call(this)||this;return r.element=t,r.zone=i,r.cdr=n,r.renderer=o,r.checkedItemsChange=new a.EventEmitter,r.checkedKeys=new Set,r}return n.__extends(t,e),t.prototype.handleChange=function(e){var t=this;this.currentCheckedState=e.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map((function(e,i){var n=String(i),a=t.treeview.itemLookup(n);t.checkNode(a)})),this.checkedItemsChange.emit(this.checkedItems.slice())},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){var e=this,t=this.treeview.nodes.some((function(t,i){var n=String(i),a=e.treeview.itemLookup(n);return e.someChecked(a)}));return!this.isChecked&&t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){var e=this;return this.treeview.nodes.every((function(t,i){var n=String(i),a=e.treeview.itemLookup(n);return e.allChecked(a)}))},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){r.isPresent(e.checkedItems)&&(this.updateItems(),this.renderer.setProperty(this.element.nativeElement,"checked",this.isChecked),this.renderer.setProperty(this.element.nativeElement,"indeterminate",this.isIndeterminate))},t.prototype.ngOnInit=function(){var e=this;this.focused&&this.nextTick((function(){return e.element.nativeElement.focus()}))},t.prototype.nextTick=function(e){this.zone.runOutsideAngular((function(){return setTimeout(e)}))},t.prototype.checkNode=function(e){var t=this;if(!this.treeview.isDisabled(e.item.dataItem,e.item.index)){var i=[];i.push(e.item),r.fetchDescendentNodes(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)})),i.forEach((function(e){t.currentIndeterminateState?"check"===t.lastAction?t.addItem(e):t.removeItem(e):t.currentCheckedState?t.addItem(e):t.removeItem(e)}))}},t.prototype.allChecked=function(e){var t=this,i=e&&e.children;if(Array.isArray(i))return i.every((function(e){return e.children.length?t.isItemChecked(e.item)&&t.allChecked(e):t.isItemChecked(e.item)}))&&this.isItemChecked(e.item)},t.prototype.someChecked=function(e){var t=this,i=e&&e.children;if(Array.isArray(i))return i.some((function(e){return e.children.length?t.isItemChecked(e.item)||t.someChecked(e):t.isItemChecked(e.item)}))||this.isItemChecked(e.item)},n.__decorate([a.Input(),n.__metadata("design:type",String)],t.prototype,"lastAction",void 0),n.__decorate([a.Input(),n.__metadata("design:type",o.TreeViewComponent)],t.prototype,"treeview",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],t.prototype,"checkedItems",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],t.prototype,"valueField",void 0),n.__decorate([a.Input("checkAll"),n.__metadata("design:type",Boolean)],t.prototype,"focused",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],t.prototype,"checkedItemsChange",void 0),n.__decorate([a.HostListener("change",["$event.target"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),t=n.__decorate([a.Directive({selector:"[checkAll]"}),n.__metadata("design:paramtypes",[a.ElementRef,a.NgZone,a.ChangeDetectorRef,a.Renderer2])],t)}(i(60).BaseCheckDirective);t.CheckAllDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=i(44),s=function(){function e(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},e.prototype.createTagMapper=function(){var e=o.parseNumber(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(t){return t.length>e?t.slice(0,e).concat([t.slice(e)]):t}},n.__decorate([a.Input("kendoMultiSelectTreeSummaryTag"),n.__metadata("design:type",Object)],e.prototype,"showAfter",void 0),e=n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeSummaryTag]"}),n.__metadata("design:paramtypes",[r.MultiSelectTreeComponent])],e)}();t.MultiSelectTreeSummaryTagDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(62),r=i(63),s=i(64),l=i(65),p=i(55),d=function(){function e(){}return e=n.__decorate([a.NgModule({exports:[o.AutoCompleteModule,r.ComboBoxModule,s.DropDownListModule,l.MultiSelectModule,p.DropDownTreesModule]})],e)}();t.DropDownsModule=d}])}));
5
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-treeview"),require("@progress/kendo-angular-popup"),require("@angular/forms"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-common"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@progress/kendo-angular-treeview","@progress/kendo-angular-popup","@angular/forms","rxjs","rxjs/operators","@progress/kendo-common","@progress/kendo-licensing","@angular/common"],t):"object"==typeof exports?exports.KendoAngularDropdowns=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-treeview"),require("@progress/kendo-angular-popup"),require("@angular/forms"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-common"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularDropdowns=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-angular-treeview"],e["@progress/kendo-angular-popup"],e["@angular/forms"],e.rxjs,e["rxjs/operators"],e["@progress/kendo-common"],e["@progress/kendo-licensing"],e["@angular/common"])}(window,(function(e,t,i,n,a,o,r,s,l,p,d,u){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=66)}([function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),a=i(28);t.isPresent=function(e){return null!=e},t.isNumber=function(e){return!isNaN(e)},t.guid=function(){var e,t,i="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(i+="-"),i+=(12===e?4:16===e?3&t|8:t).toString(16);return i},t.combineStr=function(e,t){return e.concat(t.substr(t.toLowerCase().indexOf(e.toLowerCase())+e.length))},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.isArray=function(e){return Array.isArray(e)},t.isObject=function(e){return t.isPresent(e)&&"object"==typeof e},t.isEmptyString=function(e){return"string"==typeof e&&0===e.length},t.resolveValuesInArray=function(e,i,n){return void 0===i&&(i=[]),e.map((function(e){return i.find((function(i){return t.getter(i,n)===e}))})).filter((function(e){return void 0!==e}))},t.validateComplexValues=function(e,i){return t.isArray(e)&&e.filter((function(e){return t.isObject(e)&&t.isPresent(t.getter(e,i))}))},t.resolveAllValues=function(e,i,n){var a=t.validateComplexValues(e,n)||[];return(t.resolveValuesInArray(e,i,n)||[]).concat(a)},t.isObjectArray=function(e){return t.isArray(e)&&e.every((function(e){return t.isObject(e)}))},t.selectedIndices=function(e,i,n){var a=i.map((function(e){return t.isPresent(e)&&t.isPresent(t.getter(e,n))?t.getter(e,n):e}));return e.reduce((function(e,i){var o=t.isPresent(i)&&t.isPresent(t.getter(i,n))?t.getter(i,n):i,r=a.indexOf(o);return-1!==r&&e.push(r),e}),[])},t.getter=function(e,i){return t.isPresent(e)?t.isPresent(i)&&t.isObject(e)?a.getter(i)(e):e:null},t.resolveValue=function(e){var i;return t.isPresent(e.value)?{dataItem:i=[e.defaultItem].concat(e.data).find((function(i){return t.getter(i,e.valueField)===e.value})),focused:e.data.indexOf(i),selected:e.data.indexOf(i)}:e.index?(i=e.data[e.index],{dataItem:e.data[e.index],focused:e.index,selected:e.index}):{dataItem:e.defaultItem,focused:-1,selected:-1}},t.sameCharsOnly=function(e,t){for(var i=0;i<e.length;i++)if(e.charAt(i)!==t)return!1;return!0},t.shuffleData=function(e,t,i){var n=e;return i&&(n=[i].concat(n)),n.slice(t).concat(n.slice(0,t))},t.matchText=function(e,i,n){if(!t.isPresent(e))return!1;var a=String(e);return n&&(a=a.toLowerCase()),0===a.indexOf(i)},t.elementFromPoint=function(e,t){if(n.isDocumentAvailable())return document.elementFromPoint(e,t)},t.hasProps=function(e,i){return!!t.isPresent(e)&&i.every((function(t){return e.hasOwnProperty(t)}))},t.isUntouched=function(e){return e.className.includes("ng-untouched")},t.noop=function(e){};var o=function(e,t){var i=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!i&&i.call(e,t)};t.closest=function(e,t){for(var i=e;null!==i&&1===i.nodeType;){if(o(i,t))return i;i=i.parentElement||i.parentNode}return null},t.parseNumber=function(e,t){void 0===t&&(t=0);var i=Number(e);return isNaN(i)?t:i},t.inDropDown=function(e,t,i){return e.nativeElement.contains(t)||i&&i.popupElement.contains(t)},t.getHierarchicalItemLevel=function(e){return(e||"").split("_").length-1},t.fetchDescendentNodes=function(e,i){if(!t.isPresent(e)||0===e.children.length)return[];var n=e.children;return t.isPresent(i)&&(n=n.filter((function(e){return i(e.item)}))),n.forEach((function(e){return n=n.concat(t.fetchDescendentNodes(e,i))})),n},t.valueFrom=function(e,i){var n=e.dataItem,o=e.index,r=e.level,s=Array.isArray(i)?i:[i],l=t.isPresent(r)?r:t.getHierarchicalItemLevel(o),p=s[Math.min(l,s.length-1)];return a.getter(p)(n)},t.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]},t.getRoundedClass=function(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]},t.getFillModeClass=function(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=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 o.isPresent(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:o.isPresent(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=o.isPresent(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=n.__decorate([a.Injectable()],e)}();t.SelectionService=r},function(e,t){e.exports=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=i(8),s=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(o.isPresent(t))return this.itemDisabled({dataItem:t,index:e});if(o.isPresent(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(o.isPresent(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}},e=n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[r.DataService])],e)}();t.DisabledItemsService=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=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 o.isPresent(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 o.isPresent(e)&&0!==e.length&&o.isPresent(e[0])&&o.hasProps(e[0],["aggregates","field","items","value"])},e.prototype.getGroupIndices=function(e){for(var t=[],i=0;i<=e.length-1;i++)t[i]=(t[i-1]||0)+e[i].items.length;return t},e.prototype.filter=function(e){var t=[];if(this.isGrouped(this.data))for(var i=0;i<=this.groupIndices.length-1;i++){var n=this.data[i].items.filter(e);n&&(t=t.concat(n))}else t=this.data.filter(e);return t},e.prototype.indexOf=function(e,t){void 0===t&&(t=0);var i=function(t){return t===e};return this.grouped&&(i=function(t){return t.value===e}),this.findIndex(i,t)},e.prototype.findIndex=function(e,t){void 0===t&&(t=0);var i=-1;if(this.grouped){i=(n=this._flatData.filter((function(e){return!e.header&&e.offsetIndex>=t}))).findIndex(e),i=n[i]?n[i].offsetIndex:-1}else{var n,a=(n=this.data.slice(t)).findIndex(e);i=-1!==a?a+t:-1}return i},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 i=this._flatData.find((function(t){return!t.header&&t.offsetIndex===e}));i&&(t=i.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?o.getter(e,t):void 0}},e.prototype.flatten=function(e,t,i,n){void 0===t&&(t=void 0),void 0===i&&(i=0),void 0===n&&(n=0);var a=[];o.isPresent(t)&&a.push({header:!0,index:n+i,offsetIndex:n,value:t});for(var r=0;r<e.length;r++){var s=[];e[r].items?(s=this.flatten(e[r].items,e[r].value,i,r),i+=e[r].items.length):s.push({header:!1,index:n+i+r+1,offsetIndex:i+r,value:e[r]}),a=a.concat(s)}return a},e=n.__decorate([a.Injectable()],e)}();t.DataService=r},function(e,t){e.exports=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1);t.TOUCH_ENABLED=new n.InjectionToken("dropdowns-touch-enabled")},function(e,t){e.exports=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.HeaderTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.FooterTemplateDirective=o},function(e,t){e.exports=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ItemTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.GroupTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.FixedGroupTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=i(3),s=i(23),l=i(7),p=i(5),d=function(e,t){this.index=e,this.originalEvent=t};t.NavigationEvent=d;var u=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,i=e.originalEvent.keyCode,n=e.originalEvent.altKey,a=s.NavigationAction.Undefined;n&&i===r.Keys.ArrowDown?a=s.NavigationAction.Open:n&&i===r.Keys.ArrowUp?a=s.NavigationAction.Close:i===r.Keys.Enter?a=s.NavigationAction.Enter:i===r.Keys.Escape?a=s.NavigationAction.Esc:i===r.Keys.Tab?a=s.NavigationAction.Tab:i===r.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=s.NavigationAction.Up):i===r.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=s.NavigationAction.Left):i===r.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=s.NavigationAction.Down):i===r.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=s.NavigationAction.Right):i===r.Keys.Home?(t=this.isDisabled(0)?e.current:0,a=s.NavigationAction.Home):i===r.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,a=s.NavigationAction.End):i===r.Keys.Delete?a=s.NavigationAction.Delete:i===r.Keys.Backspace&&(a=s.NavigationAction.Backspace);var o=new d(t,e.originalEvent);return a!==s.NavigationAction.Undefined&&this[s.NavigationAction[a].toLowerCase()].emit(o),a},e.prototype.next=function(e){var t=e.current,i=e.start,n=e.end,a=e.step,r=o.isPresent(t)?this.clampIndex(t+a,i,n):i,s=this.firstFocusableIndex(r,i,n,a);if(o.isPresent(s))return s;if(this.selectionService.isSelected(t)&&t>=i)return t;var l=-1*a;return this.firstFocusableIndex(r,i,n,l)},e.prototype.clampIndex=function(e,t,i){return!o.isPresent(e)||e<t?t:e>i?i:e},e.prototype.firstFocusableIndex=function(e,t,i,n){for(;t<=e&&e<=i;){if(!this.isDisabled(e))return e;e+=n}},e.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},e=n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[l.DisabledItemsService,p.SelectionService])],e)}();t.NavigationService=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.NoDataTemplateDirective=o},function(e,t){e.exports=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(16),r=i(17),s=i(18),l=i(12),p=i(13),d=i(20),u=i(34),c=i(35),h=i(29),m=i(71),g=i(72),v=i(57),f=i(73),_=[l.HeaderTemplateDirective,p.FooterTemplateDirective,o.ItemTemplateDirective,r.GroupTemplateDirective,s.FixedGroupTemplateDirective,d.NoDataTemplateDirective,u.ValueTemplateDirective,c.TagTemplateDirective,h.GroupTagTemplateDirective,m.LocalizedMessagesDirective,g.CustomMessagesComponent,v.FilterDirective,f.FilterInputDirective],b=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[_],exports:[_]})],e)}();t.SharedDirectivesModule=b},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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"}(t.NavigationAction||(t.NavigationAction={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.FilterableComponent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(3),r=i(46),s=i(16),l=i(17),p=i(18),d=i(2),u=i(5),c=i(14),h=i(21),m=i(7),g=i(8),v=function(){function e(e,t,i,n,o,r,s){var l=this;this.dataService=e,this.wrapper=t,this.selectionService=i,this.disabledItemsService=n,this.cdr=o,this.zone=r,this.renderer=s,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",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._size="medium",this.selectSubscription=c.merge(this.selectionService.onSelect.pipe(h.map((function(e){return e.indices[0]}))),this.selectionService.onFocus).pipe(h.switchMap((function(e){return l.zone.onStable.pipe(h.take(1),h.map((function(){return e})))}))).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}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,"size",{get:function(){return this._size},set:function(e){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,d.getSizeClass("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,d.getSizeClass("list",e)),this._size=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(d.isPresent(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkboxClasses",{get:function(){return(this.size?d.getSizeClass("checkbox",this.size):"")+" "+(this.rounded?d.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){o.isChanged("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),o.isChanged("virtual",e,!1)&&this.setOverflow(),o.isChanged("type",e,!1)&&this.prepareClasses()},e.prototype.ngAfterViewInit=function(){var e=this;this.setComponentClasses(),this.zone.runOutsideAngular((function(){e.scrollSubscription=c.fromEvent(e.content.nativeElement,"scroll").pipe(h.auditTime(100),h.tap(e.prefetchData.bind(e)),h.tap(e.findCurrentGroup.bind(e))).subscribe((function(){e.lastScrollTop=e.content.nativeElement.scrollTop}))})),this.setOverflow()},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 i=e.target.checked;i&&!this.selectionService.isSelected(t)&&this.selectionService.add(t),!i&&this.selectionService.isSelected(t)&&this.selectionService.unselect(t)},e.prototype.prepareClasses=function(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")},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,i=t.getBoundingClientRect(),n=Array.prototype.slice.call(t.querySelectorAll(".k-disabled"));n.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","auto")}));var a=document.elementFromPoint(i.left+1,i.top+1);return n.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","none")})),d.closest(a,"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,i=Math.trunc(t/this.virtual.itemHeight),n=t>this.lastScrollTop,a=i+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,o=this.pageSize-(this.lastLoaded-this.startFrom),r=this.lastLoaded-this.pageSize+e>=i-o;n&&a&&this.changePage(i),!n&&r&&this.changePage(i-this.pageSize+e+1)}},e.prototype.changePage=function(e){var t=this;this.zone.run((function(){var i=t.pageSize+e;i>t.virtual.total&&(e--,i=t.virtual.total),e<0&&(e=0),t.startFrom=e,t.lastLoaded=i,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 d.getter(e,this.textField)},e.prototype.getValue=function(e){return d.getter(e,this.valueField)},e.prototype.isDisabled=function(e){return d.isPresent(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},e.prototype.isAltRow=function(e){return"dropdowngrid"===this.type&&e%2!=0},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 i=this.items.toArray();d.isPresent(i[t])&&-1!==t&&this.scroll(i[t].element)}},e.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,i=t.scrollTop,n=e*this.virtual.itemHeight,a=this.virtual.itemHeight,o=t.clientHeight,r=n+a;i>n?i=n:r>i+o&&(i=r-o),t.scrollTop=i},e.prototype.scroll=function(e){if(e){var t=e.nativeElement,i=this.content.nativeElement,n=t.offsetTop,a=t.offsetHeight,o=i.scrollTop,r=i.clientHeight,s=n+a;o>n?o=n:s>o+r&&(o=s-r),i.scrollTop=o}},e.prototype.hasScrollbar=function(){return!!(d.isPresent(this.items)&&this.items.length&&d.isPresent(this.list)&&d.isPresent(this.content))&&(d.isPresent(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)},e.prototype.setOverflow=function(){if(this.virtual){var e=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",e)}},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,i){var n=(i+e.startFrom)*e.virtual.itemHeight;e.renderer.setStyle(t.element.nativeElement,"transform","translateY("+n+"px")}))},e.prototype.firstGroupHeaderInTargetedPage=function(e){return!d.isPresent(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},e.prototype.setComponentClasses=function(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,d.getSizeClass("list",this.size))),d.isPresent(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)},n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"selected",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"focused",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"height",void 0),n.__decorate([a.Input(),n.__metadata("design:type",s.ItemTemplateDirective)],e.prototype,"template",void 0),n.__decorate([a.Input(),n.__metadata("design:type",l.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",p.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"show",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"optionPrefix",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"multipleSelection",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"virtual",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"type",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"checkboxes",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"rounded",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onClick",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"listResize",void 0),n.__decorate([a.ViewChildren(r.ListItemDirective),n.__metadata("design:type",a.QueryList)],e.prototype,"items",void 0),n.__decorate([a.ViewChild("content",{static:!0}),n.__metadata("design:type",a.ElementRef)],e.prototype,"content",void 0),n.__decorate([a.ViewChild("list",{static:!0}),n.__metadata("design:type",a.ElementRef)],e.prototype,"list",void 0),n.__decorate([a.ViewChild("virtualContainer",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"virtualContainer",void 0),e=n.__decorate([a.Component({selector:"kendo-list",template:'\n <div *ngIf="dataService.grouped"\n [class]="listGroupStickyHeaderClass"\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"><span [class]="listGroupStickyHeaderTextClass">{{ currentGroup }}</span></ng-template>\n </div>\n <div #content\n [class]="listContentClass"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\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]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(itemIndex),\n \'k-table-alt-row\': isAltRow(itemIndex)\n }"\n >\n <input\n *ngIf="checkboxes.enabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkboxClasses"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem) }}</span></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]="listGroupItemClass"\n [class.k-table-alt-row]="isAltRow(itemIndex - 1)"\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 <span [class]="listGroupItemTextClass">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ dataItem.value }}</ng-template>\n </span>\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]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(dataItem.offsetIndex),\n \'k-table-alt-row\': isAltRow(itemIndex - 1)\n }"\n >\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem.value) }}</span></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 '}),n.__metadata("design:paramtypes",[g.DataService,a.ElementRef,u.SelectionService,m.DisabledItemsService,a.ChangeDetectorRef,a.NgZone,a.Renderer2])],e)}();t.ListComponent=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiselectMessages={array:"Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",object:"Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",primitive:"Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",textAndValue:"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"},t.MultiSelectTreeMessages={array:"Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection",primitive:"Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values",object:"Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values",dataItems:"Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",dataItemsLength:"Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding",valueDepth:"Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth",valueDepthLength:"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"},t.ComboBoxMessages={object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",textAndValue:"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",noItemHeight:"Expected virtual.itemHeight of type number."},t.MultiColumnComboBoxMessages={data:"Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration"},t.DropDownListMessages={defaultItem:"defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem",object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",textAndValue:"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"},t.DropDownTreeMessages={primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values",object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values",dataItem:"Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding",valueDepth:"Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(69),r=i(11),s=i(25),l=i(32),p=i(70),d=i(9),u=i(3),c=i(22),h=i(46),m=i(58),g=i(59),v=i(74),f=i(75),_=[s.ListComponent,h.ListItemDirective,m.SelectableDirective,l.SearchBarComponent,g.TemplateContextDirective,p.TagListComponent,v.CheckDirective,f.CheckAllDirective],b=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[_],exports:[_,o.CommonModule,r.FormsModule,d.PopupModule,u.ResizeSensorModule,c.SharedDirectivesModule,u.EventsModule],imports:[o.CommonModule,r.FormsModule,d.PopupModule,u.ResizeSensorModule,c.SharedDirectivesModule,u.EventsModule]})],e)}();t.SharedModule=b},function(e,t){e.exports=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.GroupTagTemplateDirective=o},function(e,t){e.exports=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1645097139,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,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(3),r=i(3),s=i(2),l=i(4),p=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 i=t.rtl;return e.direction=i?"rtl":"ltr"}))},e.prototype.ngOnChanges=function(e){var t;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 i=this.input.nativeElement.selectionStart,n=t.length===i;this.writeInputValue(this.suggestedText?s.combineStr(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):n?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(i,i),this._previousValue=this.userInput}},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.writeInputValue=function(e){o.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},e.prototype.setInputSelection=function(e,t){if(o.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;[r.Keys.ArrowUp,r.Keys.ArrowDown,r.Keys.ArrowLeft,r.Keys.ArrowRight,r.Keys.Enter,r.Keys.Escape,r.Keys.Delete,r.Keys.Backspace,r.Keys.Home,r.Keys.End].indexOf(t)>-1&&this.onNavigate.emit(e)},e.prototype.focus=function(){o.isDocumentAvailable()&&this.input.nativeElement.focus()},e.prototype.blur=function(){o.isDocumentAvailable()&&this.input.nativeElement.blur()},e.prototype.setInputSize=function(){var e=function(e){return e?e.length:0},t=this.input.nativeElement,i=e(this.placeholder),n=e(this.value),a=Math.max(i,n,1);this.renderer.setAttribute(t,"size",a.toString())},n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"listId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"tagListId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"activeDescendant",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"noDataLabel",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"popupOpen",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"userInput",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"suggestedText",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onClick",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onNavigate",void 0),n.__decorate([a.ViewChild("input",{static:!0}),n.__metadata("design:type",a.ElementRef)],e.prototype,"input",void 0),n.__decorate([a.HostBinding("class.k-searchbar"),n.__metadata("design:type",Boolean)],e.prototype,"searchBarClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"placeholder",null),e=n.__decorate([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-inner\'"\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 '}),n.__metadata("design:paramtypes",[l.LocalizationService,a.Renderer2])],e)}();t.SearchBarComponent=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a={pageSize:50,itemHeight:28};t.normalizeVirtualizationSettings=function(e,t){var i=Object.assign({},a,t);return!0===e?i:e?n.__assign({pageSize:a.pageSize},e):null}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ValueTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.TagTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.NodeTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(11),r=i(30),s=i(31),l=i(32),p=i(16),d=i(12),u=i(13),c=i(17),h=i(18),m=i(20),g=i(5),v=i(19),f=i(7),_=i(14),b=i(21),y=i(3),C=i(2),S=i(23),x=i(3),I=i(15),w=i(4),D=i(9),k=i(10),T=i(26),E=i(24),O=i(8),P=i(25),F=i(33),M=i(28);t.COMBOBOX_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return A}))};var A=function(){function e(e,t,i,n,o,l,p,d,u,c,h){this.wrapper=e,this.localization=t,this.popupService=i,this.selectionService=n,this.navigationService=o,this.disabledItemsService=l,this.dataService=p,this.zone=d,this.cdr=u,this.renderer=c,this.touchEnabled=h,this.selected=[],this.focusableId="k-"+C.guid(),this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(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 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=C.guid(),this.optionPrefix=C.guid(),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 _.Subject,this.valueSubject=new _.Subject,this.clearValueSubject=new _.Subject,this.subs=new _.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",r.validatePackage(s.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[]}var i;return i=e,Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(e){this._text=C.isPresent(e)?e.toString():""},enumerable:!0,configurable:!0}),e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!C.isPresent(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(e?C.getter(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,i=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,i)}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=C.getter(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 C.isPresent(this._valuePrimitive)?this._valuePrimitive:!C.isPresent(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=F.normalizeVirtualizationSettings(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,C.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,C.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},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-focus"),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;y.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 C.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages(),this.setComponentClasses()},e.prototype.createValueStream=function(){var e=this,t=this.valueSubject.pipe(b.filter((function(t){var i=C.getter(e.value,e.valueField),n=C.getter(t,e.valueField),a=C.getter(t,e.textField);return!(!C.isPresent(e.value)&&!C.isPresent(n))&&(C.isPresent(a)&&(a=a.toString()),i!==n||e.text!==a||(e.clearFilter(),!1))})),b.map((function(t){var i=C.getter(t,e.valueField);return{dataItem:t,text:C.getter(t,e.textField),value:e.valuePrimitive?i:t}}))),i=b.partition((function(){return e.allowCustom}))(this.customValueSubject.pipe(b.throttleTime(300))),n=i[0].pipe(b.tap((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),b.filter((function(){var t=e.text!==C.getter(e.value,e.valueField);return e.loading=t,e.disabled=t,t||e.clearFilter(),t})),this.valueNormalizer,b.map((function(t){return{custom:!0,dataItem:t,text:e.text,value:t}}))),a=i[1].pipe(b.map((function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}}))),o=this.clearValueSubject.pipe(b.map((function(){return{dataItem:void 0,text:void 0,value:void 0}})));this.valueSubscription&&this.valueSubscription.unsubscribe();var r=_.merge(t,n,a,o);this.valueSubscription=r.pipe(b.catchError((function(){var t=void 0!==C.getter(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(),_.of(null)}))).subscribe((function(t){var i=C.getter(e.dataItem,e.valueField)!==C.getter(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),i){var n=t.custom?void 0:e.dataItem;e.selectionChange.emit(n)}e.emitValueChange()}))},e.prototype.attachStreams=function(){var e=this;y.isDocumentAvailable()&&(this.subs.add(this.localization.changes.subscribe((function(t){var i=t.rtl;e.direction=i?"rtl":"ltr",e.setMessages()}))),this.subs.add(_.merge(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(b.filter((function(e){return C.isPresent(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(b.tap((function(t){e.isOpen&&t.originalEvent.preventDefault()}))).subscribe(this.handleEnter.bind(this))),this.subs.add(_.merge(this.selectionService.onChange,this.selectionService.onSelect.pipe(b.filter((function(t){return!e.isOpen})))).pipe(b.tap((function(t){e._filtering=!1,e.togglePopup(!1)})),b.map((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){e.change(t)}))),this.subs.add(this.selectionService.onSelect.pipe(b.filter((function(t){return e.isOpen})),b.tap((function(t){return e._filtering=!1})),b.map((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){var i=C.getter(t,e.valueField)!==C.getter(e.dataItem,e.valueField);e.updateState({dataItem:t}),i&&e.selectionChange.emit(t)}))))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),clearTimeout(this.messagesTimeout),this.subs.unsubscribe(),C.isPresent(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}),y.isChanged("valueNormalizer",e)&&this.createValueStream(),y.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;C.isPresent(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 i=C.isPresent(e)?e:!t._open;t._toggle(i),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=!C.isPresent(this.text)||C.isEmptyString(this.text),t=!C.isPresent(this.value)||C.isEmptyString(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}),Object.defineProperty(e.prototype,"selectButtonClasses",{get:function(){return(this.size?C.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")+"\n "},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){if(this.isOpen){var e=this.popupRef.popupElement,t=this.popupWidth,i=t.min,n=t.max;e.style.minWidth=i,e.style.width=n}},e.prototype.verifySettings=function(){if(a.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(T.ComboBoxMessages.primitive);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(T.ComboBoxMessages.object);if(!C.isPresent(this.valueField)!=!C.isPresent(this.textField))throw new Error(T.ComboBoxMessages.textAndValue);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(T.ComboBoxMessages.noItemHeight)}},e.prototype.setState=function(){if(!this._filtering){var e=this.value,t=this.valueField,i=this.findDataItem({valueField:t,value:e});C.isPresent(i.index)&&-1!==i.index?(this.updateState({dataItem:i.dataItem,confirm:!0}),this.resetSelection(i.index)):C.isPresent(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,i=e.confirm,n=void 0!==i&&i;this.dataItem=t,this.text=C.getter(t,this.textField),n&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!C.isPresent(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(i){var n=C.getter(i.value,t.textField);return(n=C.isPresent(n)?n.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(i){var n=C.getter(i,t.textField);return(n=C.isPresent(n)?n.toString().toLowerCase():"").startsWith(e.toLowerCase())}},e.prototype.findDataItem=function(e){var t=this,i=e.valueField,n=e.value,a={dataItem:null,index:-1},o=this.dataService.findIndex((function(e){var a=t.dataService.grouped?e.value:e;return C.getter(a,i)===C.getter(n,i)}));return a.dataItem=this.dataService.itemAt(o),a.index=o,a},e.prototype.search=function(e,t){var i;void 0===t&&(t=0),i=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(i)?i+1<this.dataService.itemsCount?this.search(e,i+1):this.selectionService.focus(-1):(this.selectionService.focus(i),this.suggest&&(this.suggestedText=C.getter(this.dataService.itemAt(i),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=C.getter(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},e.prototype.handleNavigate=function(e){var t=C.isPresent(this.selectionService.selected[0]),i=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused,n=0;if(!this.disabled&&!this.readonly&&e.keyCode!==x.Keys.Home&&e.keyCode!==x.Keys.End){t||(e.keyCode===x.Keys.ArrowDown?n=-1:e.keyCode===x.Keys.ArrowUp&&(n=1));var a=this.navigationService.process({current:n+i,max:this.dataService.itemsCount-1,min:0,originalEvent:e});a!==S.NavigationAction.Undefined&&a!==S.NavigationAction.Left&&a!==S.NavigationAction.Right&&a!==S.NavigationAction.Backspace&&a!==S.NavigationAction.Delete&&(a===S.NavigationAction.Enter&&this.isOpen||a!==S.NavigationAction.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(){var e=this.text,t=this.selectionService.focused,i=C.isPresent(t)&&-1!==t,n=C.getter(this._previousDataItem,this.textField)||"",a=C.getter(this.dataService.itemAt(t),this.textField),o=e!==n;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&o&&(e===a||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(i?this.selectionService.change(t):o&&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=C.getter(this.dataItem,this.valueField)!==C.getter(this.value,this.valueField),i=this.searchbar.value,n=i!==(C.getter(this.dataItem,this.textField)||""),a=t||n;a||y.hasObservers(this.onBlur)||y.hasObservers(this.close)||C.isUntouched(this.wrapper.nativeElement)?this.zone.run((function(){a&&(C.isPresent(e.focusedItemText)&&e.focusedItemText.toLowerCase()===i.toLowerCase()||t?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,y.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(!C.isPresent(e)||-1===e)return null;var t=C.getter(this.dataService.itemAt(e),this.textField);return C.isPresent(t)?t.toString():""},enumerable:!0,configurable:!0}),e.prototype.restoreItemFocus=function(){!(C.isPresent(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||!C.isPresent(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),t=C.getter(e,this.textField);return!!C.isPresent(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",i={horizontal:t,vertical:"bottom"},n={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:i,popupAlign:n});var a=this.popupRef.popupElement,o=this.popupWidth,r=o.min,s=o.max;a.addEventListener("mousedown",this.popupMouseDownHandler),a.style.minWidth=r,a.style.width=s,a.style.height=this.popupHeight,a.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 I.PreventableEvent;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;y.isDocumentAvailable()&&this.touchEnabled&&this.zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var i=t.target,n=C.inDropDown(e.wrapper,i,e.popupRef);e.isFocused&&!n?e.zone.run((function(){return e.blur()})):e.isOpen&&!n&&e.zone.run((function(){return e.togglePopup(!1)}))}))}))},e.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=M.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,C.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,C.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,C.getFillModeClass("input",this.fillMode))},n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"allowCustom",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"valueNormalizer",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"placeholder",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"iconClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"suggest",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([a.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([a.Output("focus"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output("blur"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.ContentChild(p.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",p.ItemTemplateDirective)],e.prototype,"template",void 0),n.__decorate([a.ContentChild(d.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",d.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.ContentChild(u.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",u.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([a.ContentChild(m.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",m.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([a.ContentChild(c.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",c.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([a.ContentChild(h.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",h.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),n.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),n.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([a.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([a.ViewChild(l.SearchBarComponent,{static:!0}),n.__metadata("design:type",l.SearchBarComponent)],e.prototype,"searchbar",void 0),n.__decorate([a.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],e.prototype,"optionsList",void 0),n.__decorate([a.ViewChild("select",{static:!0}),n.__metadata("design:type",a.ElementRef)],e.prototype,"select",void 0),n.__decorate([a.HostBinding("class.k-combobox"),a.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],e.prototype,"widgetClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([a.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=i=n.__decorate([a.Component({exportAs:"kendoComboBox",providers:[t.COMBOBOX_VALUE_ACCESSOR,O.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,w.LocalizationService,{provide:w.L10N_PREFIX,useValue:"kendo.combobox"},{provide:E.FilterableComponent,useExisting:a.forwardRef((function(){return i}))},{provide:y.KendoInput,useExisting:a.forwardRef((function(){return i}))}],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 <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-clear-value"\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 class="k-icon k-i-x"></span>\n </span>\n <button\n #select\n aria-hidden="true"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\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 [size]="size"\n [rounded]="rounded"\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-no-data" *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 '}),n.__param(10,a.Optional()),n.__param(10,a.Inject(k.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[a.ElementRef,w.LocalizationService,D.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,O.DataService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,Boolean])],e)}();t.ComboBoxComponent=A},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(2),o=i(32),r=i(1),s=i(14),l=i(21),p=i(3),d=i(11),u=i(30),c=i(31),h=i(5),m=i(19),g=i(23),v=i(7),f=i(3),_=i(16),b=i(39),y=i(17),C=i(18),S=i(12),x=i(13),I=i(35),w=i(29),D=i(20),k=i(26),T=i(15),E=i(40),O=i(4),P=i(9),F=i(24),M=i(10),A=i(8),j=i(25),B=i(67),z=i(33),R={multi:!0,provide:d.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return N}))},N=function(){function e(e,t,i,n,o,p,d,h,m,g,v,f){var _=this;this.wrapper=e,this.localization=t,this.popupService=i,this.dataService=n,this.selectionService=o,this.navigationService=p,this.disabledItemsService=d,this.cdr=h,this.differs=m,this.renderer=g,this._zone=v,this.touchEnabled=f,this.listBoxId=a.guid(),this.tagListId=a.guid(),this.tagPrefix="tag-"+a.guid(),this.optionPrefix="option-"+a.guid(),this.focusedTagIndex=void 0,this.focusableId="k-"+a.guid(),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(l.map((function(e){var t=function(t){return"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},i=_.value.find(t);if(i)return i;var n=_.dataService.find(t);return n||e})))},this.filterChange=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.open=new r.EventEmitter,this.opened=new r.EventEmitter,this.close=new r.EventEmitter,this.closed=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.removeTag=new r.EventEmitter,this.hostClasses=!0,this.initialized=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",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 s.Subject,this.observableSubscriptions=new s.Subscription,u.validatePackage(c.packageMetadata),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;a.isPresent(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,p.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,p.hasObservers(this.onBlur)||p.hasObservers(this.filterChange)||p.hasObservers(this.close)||a.isUntouched(this.wrapper.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.onMouseDown=function(e){e.preventDefault()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,i=t.min,n=t.max;e.style.minWidth=i,e.style.width=n}},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,i=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,i)}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,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,a.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,a.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,a.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,a.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,a.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,a.getFillModeClass("input",e)),this._fillMode=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=B.normalizeCheckboxesSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=z.normalizeVirtualizationSettings(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 a.isPresent(this._valuePrimitive)?this._valuePrimitive:!a.isPresent(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,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),e.prototype.hostMousedown=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()}},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,"customItemSizeClass",{get:function(){return""+(this.size?a.getSizeClass("list",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e=0;p.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 a.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDescendant",{get:function(){var e,t,i=this.focusedTagIndex,n=this.selectionService.focused;if(a.isPresent(i)&&!this.isOpen)t=this.tags[i],e=this.tagPrefix;else{if(!a.isPresent(n)||-1===n||!this.isOpen)return null;t=this.dataService.itemAt(n),e=this.optionPrefix}return e+"-"+a.getter(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(r.isDevMode()&&0!==this.value.length){if(!a.isArray(this.value))throw new Error(k.MultiselectMessages.array);if(!0===this.valuePrimitive&&a.isObjectArray(this.value))throw new Error(k.MultiselectMessages.primitive);if(!1===this.valuePrimitive&&!a.isObjectArray(this.value))throw new Error(k.MultiselectMessages.object);if(!a.isPresent(this.valueField)!=!a.isPresent(this.textField))throw new Error(k.MultiselectMessages.textAndValue)}},e.prototype.change=function(e){var t=this;if((a.isPresent(e.added)||a.isPresent(e.removed))&&(-1===e.added||-1===e.removed))this.addCustomValue(this.text);else{if(a.isPresent(e.added)){var i=this.dataService.itemAt(e.added),n=this.valuePrimitive&&a.isPresent(i)&&a.isPresent(i[this.valueField])?i[this.valueField]:i;this.value=this.value.concat([n])}if(a.isPresent(e.removed)){var o=this.dataService.itemAt(e.removed);this.value=this.value.filter((function(e){return a.getter(e,t.valueField)!==a.getter(o,t.valueField)})),this.selectionService.focused=e.removed,this.cdr.detectChanges()}this.emitValueChange()}},e.prototype.setState=function(e){var t=this,i=this.dataService.data;this.dataService.grouped&&(i=i.filter((function(e){return!e.header})).map((function(e){return e.value})));var n=a.selectedIndices(this.value,i,this.valueField);this.selectionService.resetSelection(n),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()),(a.isObjectArray(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=a.resolveAllValues(e,i,this.valueField)),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map((function(e){var i=t.selectedDataItems.find((function(i){return a.getter(i,t.valueField)===a.getter(e,t.valueField)}));return a.isPresent(i)?i:t.resolveDataItemFromTags(e)})).filter((function(e){return a.isPresent(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!==f.Keys.ArrowDown&&e.keyCode!==f.Keys.ArrowUp,i=this.text&&e.keyCode===f.Keys.Enter||e.keyCode===f.Keys.Escape;if(!this.text&&e.keyCode===f.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!(this.disabled||t&&!i)){var n=e,a=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,o=this.navigationService.process({current:a,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:n});o!==g.NavigationAction.Undefined&&(o===g.NavigationAction.Enter&&this.isOpen||o!==g.NavigationAction.Enter)&&e.preventDefault()}},e.prototype.handleRemoveTag=function(e){var t=e.tag,i=new E.RemoveTagEvent(t);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(i),i.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 i=this.selectionService.selected;this.value=this.value.filter((function(e,n){return t.disabledItemsService.isIndexDisabled(i[n])})),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.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var i=t.rtl;e.direction=i?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.setState(this.value),this.setComponentClasses(),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}),p.isChanged("valueNormalizer",e)&&this.createCustomValueStream(),p.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 i=a.isPresent(e)?e:!t._open;t._toggle(i),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.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),e.prototype.subscribeEvents=function(){var e=this;if(p.isDocumentAvailable()){var t=function(){return e.isOpen},i=function(){return!e.isOpen},n=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(l.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(l.filter(t)).subscribe((function(t){return e.handleUp(t.index)})),this.navigationService.home.pipe(l.filter((function(){return i}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(l.filter((function(){return i}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(l.filter(n)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(l.filter(n)).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;p.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var i=t.target;!e.isFocused&&!e.isOpen||a.inDropDown(e.wrapper,i,e.popupRef)||e._zone.run((function(){e.blur(),e.isOpen&&e.togglePopup(!1)}))}))}))},e.prototype.unsubscribeEvents=function(){p.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,i=this.dataService.data;this.dataService.grouped&&(i=i.filter((function(e){return!e.header})).map((function(e){return e.value})));var n=new Set(e.map((function(e){return a.getter(e,t.valueField)})));this.value=this.value.filter((function(e){var o=a.selectedIndices([e],i,t.valueField)[0],r=t.disabledItemsService.isIndexDisabled(o);return!n.has(a.getter(e,t.valueField))||r})),this.emitValueChange()},e.prototype.removeSingleTag=function(e){var t=this,i=this.dataService.data;this.dataService.grouped&&(i=i.filter((function(e){return!e.header})).map((function(e){return e.value})));var n=a.selectedIndices([e],i,this.valueField)[0];if(!this.disabledItemsService.isIndexDisabled(n))if(a.isNumber(n))this.selectionService.unselect(n),this.selectionService.focused=n,this.togglePopup(!1);else{this.value=this.value.filter((function(i){return a.getter(i,t.valueField)!==a.getter(e,t.valueField)})),this.emitValueChange()}},e.prototype.disabledItemsMapper=function(){var e=this,t=this.selectionService.selected;return new Set(this.selectedDataItems.reduce((function(i,n,a){return e.disabledItemsService.isIndexDisabled(t[a])&&i.push(a),i}),[]))},e.prototype.createCustomValueStream=function(){var e=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(l.tap((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),this.valueNormalizer,l.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(),s.of(null)}))).subscribe((function(t){if(e.loading=!1,e.disabled=!1,a.isPresent(t)){var i=e.valuePrimitive?a.getter(t,e.valueField):t,n=e.dataService.indexOf(i),o=-1===n;-1===e.value.indexOf(i)?(e.tags=e.tagMapper(e.selectedDataItems.concat([t])),o?e.value=e.value.concat([i]):e.selectionService.add(n)):!o&&e.selectionService.isSelected(n)?(e.selectionService.unselect(n),e.selectionService.focused=n):e.value=e.value.filter((function(t){return a.getter(t,e.valueField)!==i})),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,i=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==i?(t.isSelected(i)?(t.unselect(i),t.focused=i):t.add(i),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 i,n=this;void 0===t&&(t=0),e=e.toLowerCase();var o=this.dataService.findIndex((function(t){return i=n.dataService.grouped?a.getter(t.value,n.textField):a.getter(t,n.textField),i=a.isPresent(i)?i.toString().toLowerCase():"",e&&i.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,i=this.isOpen===e;t||i||(this.triggerPopupEvents(e)||this._toggle(e))},e.prototype.triggerPopupEvents=function(e){var t=new T.PreventableEvent;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",i={horizontal:t,vertical:"bottom"},n={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:i,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:n,popupClass:this.listContainerClasses,positionMode:"absolute"});var a=this.popupRef.popupElement,o=this.width,r=o.min,s=o.max;a.addEventListener("mousedown",this.popupMouseDownHandler),a.style.minWidth=r,a.style.width=s,a.style.height=this.height,a.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&&a.isPresent(e))return this.tags.reduce((function(e,t){var i=a.isArray(t)?t:[t];return e.push.apply(e,i),e}),[]).find((function(i){return a.getter(i,t.valueField)===a.getter(e,t.valueField)}))},e.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){var i=e+1;return i<t?this.firstFocusableIndex(i):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()}))}))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,a.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,a.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,a.getFillModeClass("input",this.fillMode))},n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"autoClose",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([r.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"value",null),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"textField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([r.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"placeholder",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"checkboxes",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([r.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],e.prototype,"tagMapper",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"allowCustom",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Function)],e.prototype,"valueNormalizer",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([r.Output("focus"),n.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([r.Output("blur"),n.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"removeTag",void 0),n.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),n.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([r.ViewChild(o.SearchBarComponent,{static:!0}),n.__metadata("design:type",o.SearchBarComponent)],e.prototype,"searchbar",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",j.ListComponent)],e.prototype,"optionsList",void 0),n.__decorate([r.ContentChild(_.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",_.ItemTemplateDirective)],e.prototype,"template",void 0),n.__decorate([r.ContentChild(b.CustomItemTemplateDirective,{static:!1}),n.__metadata("design:type",b.CustomItemTemplateDirective)],e.prototype,"customItemTemplate",void 0),n.__decorate([r.ContentChild(y.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",y.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([r.ContentChild(C.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",C.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),n.__decorate([r.ContentChild(S.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",S.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([r.ContentChild(x.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",x.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([r.ContentChild(I.TagTemplateDirective,{static:!1}),n.__metadata("design:type",I.TagTemplateDirective)],e.prototype,"tagTemplate",void 0),n.__decorate([r.ContentChild(w.GroupTagTemplateDirective,{static:!1}),n.__metadata("design:type",w.GroupTagTemplateDirective)],e.prototype,"groupTagTemplate",void 0),n.__decorate([r.ContentChild(D.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",D.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([r.HostBinding("class.k-multiselect"),r.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([r.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),n.__decorate([r.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),n.__decorate([r.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([r.HostListener("mousedown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"hostMousedown",null),e=t=n.__decorate([r.Component({exportAs:"kendoMultiSelect",providers:[R,A.DataService,h.SelectionService,m.NavigationService,v.DisabledItemsService,O.LocalizationService,{provide:O.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:F.FilterableComponent,useExisting:r.forwardRef((function(){return t}))},{provide:p.KendoInput,useExisting:r.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 <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\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-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 </kendo-taglist>\n\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\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!--custom item template--\x3e\n <div\n *ngIf="allowCustom && text"\n class="k-list"\n [ngClass]="customItemSizeClass"\n >\n <div class="k-list-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 [size]="size"\n [rounded]="rounded"\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-no-data" *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 '}),n.__param(11,r.Optional()),n.__param(11,r.Inject(M.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[r.ElementRef,O.LocalizationService,P.PopupService,A.DataService,h.SelectionService,m.NavigationService,v.DisabledItemsService,r.ChangeDetectorRef,r.KeyValueDiffers,r.Renderer2,r.NgZone,Boolean])],e)}();t.MultiSelectComponent=N},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoMultiSelectCustomItemTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.CustomItemTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=function(e){function t(t){var i=e.call(this)||this;return i.dataItem=t,i}return n.__extends(t,e),t}(i(15).PreventableEvent);t.RemoveTagEvent=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(42),r=i(43),s=function(){function e(){this.hidden=!1,this.matchesMedia=!0}return n.__decorate([a.ContentChild(o.ColumnCellTemplateDirective,{static:!1}),n.__metadata("design:type",o.ColumnCellTemplateDirective)],e.prototype,"cellTemplate",void 0),n.__decorate([a.ContentChild(r.ColumnHeaderTemplateDirective,{static:!1}),n.__metadata("design:type",r.ColumnHeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"field",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"width",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"hidden",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"style",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"headerStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"class",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"headerClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"media",void 0),e=n.__decorate([a.Component({selector:"kendo-combobox-column",template:""})],e)}();t.ComboBoxColumnComponent=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ColumnCellTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ColumnHeaderTemplateDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(11),r=i(3),s=i(4),l=i(19),p=i(9),d=i(6),u=i(8),c=i(7),h=i(5),m=i(15),g=i(23),v=i(2),f=i(40),_=i(26),b=i(12),y=i(13),C=i(36),S=i(20),x=i(35),I=i(29),w=i(10),D=i(14),k=i(21),T={animate:!0},E={checkChildren:!0,checkOnClick:!0},O=function(){return!1},P=function(){return D.of([])},F=function(){return!1},M=function(){return!0},A=function(){function e(e,t,i,n,o,s,l,p){this.wrapper=e,this.popupService=t,this.renderer=i,this.navigationService=n,this._zone=o,this.localization=s,this.cdr=l,this.touchEnabled=p,this.hostClasses=!0,this.role="listbox",this.ariaHasPopup="tree",this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId="k-"+r.guid(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=O,this.fetchChildren=P,this.isNodeVisible=M,this.itemDisabled=F,this.tagMapper=function(e){return e||[]},this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,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.valueChange=new a.EventEmitter,this.removeTag=new a.EventEmitter,this.filterChange=new a.EventEmitter,this.filterStateChange=new a.EventEmitter,this.checkedItems=[],this.checkBy=function(e){return e},this.showAfter=0,this.allNodesHidden=!1,this.tagListId=r.guid(),this.tagPrefix="tag-"+r.guid(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=T,this._checkableSettings=E,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=v.noop,this.onChangeCallback=v.noop,this.direction=s.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeFocusEvents()}var t;return t=e,Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDescribedBy",{get:function(){return this.tagListId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActiveDescendant",{get:function(){return this.focusedTagId},enumerable:!0,configurable:!0}),e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.handleKeydown=function(e){if(this.isWrapperActive&&e.keyCode===r.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})===g.NavigationAction.Open&&t.preventDefault()}},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.checkAll||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=v.parseNumber(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},T,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({},E,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,i){return{dataItem:t,index:null,level:e.valueDepth[i]||0}}))},set:function(e){var t=this;this._dataItems=(e||[]).map((function(e,i){return v.hasProps(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:t.valueDepth[i]||0}})),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedTagId",{get:function(){if(!v.isPresent(this.focusedTagIndex)||this.isOpen)return null;var e=this.tags[this.focusedTagIndex];return this.tagPrefix+"-"+v.valueFrom({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.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return v.isPresent(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 v.isPresent(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"];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}),Object.defineProperty(e.prototype,"isFilterActive",{get:function(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCheckAllActive",{get:function(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe((function(t){var i=t.rtl;e.direction=i?"rtl":"ltr",e.cdr.markForCheck()}))),this.setComponentClasses()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){var t=this;r.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState(),r.anyChanged(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map((function(e,i){return n.__assign({},e,{level:t.valueDepth[i]||0})})):this.dataItems=this.value)},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||v.isPresent(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);!v.isPresent(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 i=v.isPresent(e)?e:!v.isPresent(t.popupRef);t.destroyPopup(),i&&t.createPopup()}))},e.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,r.hasObservers(this.onFocus)&&this._zone.run((function(){t.onFocus.emit()})),this.isOpen&&this.treeview&&(this.lastNodeOnFocus&&this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus())))},e.prototype.handleBlur=function(e){var t=this,i=e&&e.relatedTarget;this.wrapper.nativeElement.contains(i)||this.isOpen&&this.popupRef.popupElement.contains(i)||(this.isFocused=!1,this.togglePopup(!1),(r.hasObservers(this.onBlur)||v.isUntouched(this.wrapper.nativeElement))&&this._zone.run((function(){t.onBlur.emit(),t.onTouchedCallback()})))},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,i=this.disabled||this.readonly,n=this.isOpen===e;(this._zone.run((function(){t.focusedTagIndex=void 0})),i||n)||(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.lastAction=e.length>this.dataItems.length?"check":"uncheck",this.dataItems=e.slice(),this.updateValue(this.dataItems)},e.prototype.handleRemoveTag=function(e){var t=this,i=e.tag,n=e.index;if(!this.disabled&&!this.readonly){var a=new f.RemoveTagEvent(i);this.removeTag.emit(a),a.isDefaultPrevented()||(i instanceof Array?(this.dataItems=this.dataItems.filter((function(e,i){return i<t.showAfter||t.disabledIndices.has(i)})),this.valueDepth=this.valueDepth.filter((function(e,i){return i<t.showAfter||t.disabledIndices.has(i)}))):(this.dataItems=this.dataItems.filter((function(e,i){return i!==n||t.disabledIndices.has(i)})),this.valueDepth=this.valueDepth.filter((function(e,i){return i!==n||t.disabledIndices.has(i)}))),this.updateValue(this.dataItems),this.isFocused||this.focus())}},e.prototype.handleTagMapperChange=function(e){this.showAfter=v.parseNumber(e),this.setTags()},e.prototype.clearAll=function(e){var t=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter((function(e,i){return t.disabledIndices.has(i)})),this.dataItems=this.dataItems.filter((function(e,i){return t.disabledIndices.has(i)})),this.valueDepth=this.valueDepth.filter((function(e,i){return t.disabledIndices.has(i)})),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,i){return!t.isVisible(e,String(i))}))},Object.defineProperty(e.prototype,"filterInputClasses",{get:function(){return(this.size?v.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?v.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkAllCheckboxClasses",{get:function(){return""+(this.size?v.getSizeClass("checkbox",this.size):"")},enumerable:!0,configurable:!0}),e.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},e.prototype.verifySettings=function(){if(a.isDevMode()){if(!v.isPresent(this.valueField)||!v.isPresent(this.textField))throw new Error(_.MultiSelectTreeMessages.textAndValue);if(!v.isArray(this.value))throw new Error(_.MultiSelectTreeMessages.array);if(this.value.length>0){if(this.valuePrimitive&&this.value.some((function(e){return v.isObject(e)})))throw new Error(_.MultiSelectTreeMessages.primitive);var e=this.dataItems.every((function(e){return v.isObject(e.dataItem)}));if(this.valuePrimitive&&!v.isArray(this.dataItems))throw new Error(_.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&!e)throw new Error(_.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error(_.MultiSelectTreeMessages.dataItemsLength);if(!this.valuePrimitive&&!v.isObjectArray(this.value))throw new Error(_.MultiSelectTreeMessages.object);if((v.isArray(this.valueField)||v.isArray(this.textField))&&!v.isArray(this.valueDepth))throw new Error(_.MultiSelectTreeMessages.valueDepth);if((v.isArray(this.valueField)||v.isArray(this.textField))&&0===this.valueDepth.length)throw new Error(_.MultiSelectTreeMessages.valueDepth);if((v.isArray(this.valueField)||v.isArray(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error(_.MultiSelectTreeMessages.valueDepthLength)}}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.triggerPopupEvents=function(e){var t=new m.PreventableEvent;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",i={horizontal:t,vertical:"bottom"},n={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:i,content:this.popupTemplate,popupAlign:n,positionMode:"absolute",popupClass:this.popupContainerClasses});var a=this.popupRef.popupElement,o=this.width,r=o.min,s=o.max;a.style.minWidth=r,a.style.width=s,a.style.height=this.height,this.renderer.setAttribute(a,"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,r.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(k.tap((function(e){return e.originalEvent.preventDefault()}))).subscribe((function(){return e.togglePopup(!0)})),D.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(k.filter((function(){return!e.isTreeViewActive}))).subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.pipe(k.filter((function(){return!e.isTreeViewActive}))).subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.home.pipe(k.filter((function(){return!e.isOpen}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(k.filter((function(){return!e.isOpen}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(k.filter((function(){return e.isTagFocused}))).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(k.filter((function(){return e.isTagFocused}))).subscribe(this.handleDelete.bind(this)))},e.prototype.subscribeFocusEvents=function(){var e=this;r.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular((function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)})))},e.prototype.unSubscribeFocusEvents=function(){if(r.isDocumentAvailable()){document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0)}},e.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},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;this.filterable&&this.isFilterActive?this.focus():this.checkAll&&!this.isCheckAllActive&&t?this.checkAllInput.nativeElement.focus():(this.isCheckAllActive||t)&&(this.filterable?this.filterInput.nativeElement.focus():this.focus())}},e.prototype.handleDownKey=function(e){this.treeview&&(e.originalEvent.preventDefault(),this.filterable&&this.isWrapperActive?this.filterInput.nativeElement.focus():this.checkAll&&(this.isWrapperActive||this.isFilterActive)?this.checkAllInput.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()})),this.unSubscribeFocusEvents()},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(){v.isPresent(this.dataItems)&&v.isPresent(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,i=this.valuePrimitive?e.map((function(e){return v.valueFrom(e,t.valueField)})):e.map((function(e){return e.dataItem}));this.value=i,this.emitValueChange(this.value)},e.prototype.disabledItemsMapper=function(){var e=this;return new Set(this.dataItems.reduce((function(t,i,n){return e.itemDisabled(i.dataItem,i.index)&&t.push(n),t}),[]))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("input",this.fillMode))},n.__decorate([a.HostBinding("class.k-dropdowntree"),a.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),a.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([a.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([a.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"id",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([a.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],e.prototype,"hostTabIndex",null),n.__decorate([a.HostBinding("attr.role"),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([a.HostBinding("attr.aria-haspopup"),n.__metadata("design:type",String)],e.prototype,"ariaHasPopup",void 0),n.__decorate([a.HostBinding("attr.readonly"),a.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),n.__decorate([a.HostBinding("attr.aria-describedby"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"ariaDescribedBy",null),n.__decorate([a.HostBinding("attr.aria-activedescendant"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"ariaActiveDescendant",null),n.__decorate([a.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),n.__decorate([a.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),n.__decorate([a.ContentChild(b.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",b.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.ContentChild(y.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",y.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([a.ContentChild(C.NodeTemplateDirective,{static:!1}),n.__metadata("design:type",C.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),n.__decorate([a.ContentChild(S.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",S.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([a.ContentChild(x.TagTemplateDirective,{static:!1}),n.__metadata("design:type",x.TagTemplateDirective)],e.prototype,"tagTemplate",void 0),n.__decorate([a.ContentChild(I.GroupTagTemplateDirective,{static:!1}),n.__metadata("design:type",I.GroupTagTemplateDirective)],e.prototype,"groupTagTemplate",void 0),n.__decorate([a.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),n.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([a.ViewChild("treeview",{static:!1}),n.__metadata("design:type",d.TreeViewComponent),n.__metadata("design:paramtypes",[d.TreeViewComponent])],e.prototype,"treeview",null),n.__decorate([a.ViewChild("filterInput",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"filterInput",void 0),n.__decorate([a.ViewChild("checkAllInput",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"checkAllInput",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"checkableSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"value",null),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"dataItems",null),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"valueDepth",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"placeholder",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"checkAll",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"fetchChildren",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"isNodeExpanded",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"isNodeVisible",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"tagMapper",void 0),n.__decorate([a.Output("focus"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output("blur"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"nodeExpand",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"nodeCollapse",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"removeTag",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),e=t=n.__decorate([a.Component({exportAs:"kendoMultiSelectTree",providers:[s.LocalizationService,l.NavigationService,u.DataService,c.DisabledItemsService,h.SelectionService,{provide:s.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t}))},{provide:d.DataBoundComponent,useExisting:a.forwardRef((function(){return t}))},{provide:d.ExpandableComponent,useExisting:a.forwardRef((function(){return t}))},{provide:r.KendoInput,useExisting:a.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 i18n-checkAllText="kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox"\n checkAllText="Check all"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\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 <span *ngIf="!tags || !tags.length"\n class="k-input-inner k-readonly"\n >\n <span class="k-input-value-text">{{ placeholder }}</span>\n </span>\n </kendo-taglist>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-clear-value"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\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>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkAllCheckboxClasses"\n role="checkbox"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [treeview]="treeview"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [lastAction]="lastAction"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n class="k-checkbox-label"\n (click)="toggleCheckAll()"\n (mousedown)="$event.preventDefault()"\n >\n {{ messageFor(\'checkAllText\') }}\n </span>\n </div>\n <kendo-treeview\n #treeview\n [size]="size"\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-no-data" *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 '}),n.__param(7,a.Optional()),n.__param(7,a.Inject(w.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[a.ElementRef,p.PopupService,a.Renderer2,l.NavigationService,a.NgZone,s.LocalizationService,a.ChangeDetectorRef,Boolean])],e)}();t.MultiSelectTreeComponent=A},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(3),r=i(11),s=i(30),l=i(31),p=i(32),d=i(16),u=i(12),c=i(13),h=i(17),m=i(18),g=i(5),v=i(19),f=i(7),_=i(14),b=i(2),y=i(23),C=i(20),S=i(15),x=i(4),I=i(9),w=i(24),D=i(8),k=i(25),T=i(33),E=i(10);t.AUTOCOMPLETE_VALUE_ACCESSOR={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return O}))};var O=function(){function e(e,t,i,n,o,r,p,d,u,c,h){this.localization=e,this.dataService=t,this.popupService=i,this.selectionService=n,this.navigationService=o,this.disabledItemsService=r,this._zone=p,this.cdr=d,this.renderer=u,this.hostElement=c,this.touchEnabled=h,this.highlightFirst=!0,this.focusableId="k-"+b.guid(),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=b.guid(),this.optionPrefix=b.guid(),this.onChangeCallback=b.noop,this.onTouchedCallback=b.noop,this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new _.Subject,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",s.validatePackage(l.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}var i;return i=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=0;o.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 b.isPresent(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 i=b.isPresent(e)?e:!t._open;t._toggle(i)}))},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,i=this.isOpen===e;t||i||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!b.isPresent(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+b.getter(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,i=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,i)}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=b.getter(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=T.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper,b.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper,b.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper,b.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper,b.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper,b.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper,b.getFillModeClass("input",e)),this._fillMode=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-focus"),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,"isLoading",{get:function(){return this.loading},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 i=t.rtl;e.direction=i?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.setComponentClasses()},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;b.isPresent(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,i=t.min,n=t.max;e.style.minWidth=i,e.style.width=n}},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.verifySettings=function(e){if(a.isDevMode()&&b.isPresent(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 i;void 0===t&&(t=0),i=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(i)?i+1<this.dataService.itemsCount?this.search(e,i+1):this.selectionService.focus(-1):(this.selectionService.focus(i),this.suggest&&(this.suggestedText=b.getter(this.dataService.itemAt(i),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 i=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e});i!==y.NavigationAction.Undefined&&i!==y.NavigationAction.Backspace&&i!==y.NavigationAction.Delete&&i!==y.NavigationAction.Home&&i!==y.NavigationAction.End&&i!==y.NavigationAction.Left&&i!==y.NavigationAction.Right&&(i===y.NavigationAction.Enter&&this.isOpen||i!==y.NavigationAction.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(e){var t,i=this.selectionService.focused;if(this.isOpen&&e.originalEvent.preventDefault(),i>=0)t=b.getter(this.dataService.itemAt(i),this.valueField);else{var n=this.suggest&&this.suggestedText&&this.data.length&&b.getter(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();t=this.isOpen&&n?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=b.isPresent(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,o.hasObservers(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e,t,i=this,n=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0,-1!==n?(e=this.dataService.itemAt(n),t=b.getter(e,this.valueField)||""):t=this.searchbar.value;var a=t===this.searchbar.value,r=t.toLowerCase()===this.searchbar.value.toLowerCase();!a&&r&&this.selectionService.resetSelection([]),this.isFocused=!1;var s=this.value!==this.text;o.hasObservers(this.onBlur)||o.hasObservers(this.close)||b.isUntouched(this.wrapper)||s?this._zone.run((function(){s&&i.change(i.searchbar.value),i.onBlur.emit(),i.onTouchedCallback(),i.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;o.isDocumentAvailable()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe((function(t){var i=e.value!==t;e.value=t,e.text=t,i&&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=_.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;o.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var i=t.target;e.isFocused&&!b.inDropDown(e.hostElement,i,e.popupRef)&&e._zone.run((function(){return e.blur()}))}))}))},e.prototype.unsubscribeEvents=function(){o.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]),b.isPresent(t)){var i=b.getter(this.dataService.itemAt(t),this.valueField);this.change(i)}},e.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&t>=0)&&(this.suggestedText=b.getter(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",i={horizontal:t,vertical:"bottom"},n={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:n,anchorAlign:i});var a=this.popupRef.popupElement,o=this.width,r=o.min,s=o.max;a.addEventListener("mousedown",this.popupMouseDownHandler),a.style.minWidth=r,a.style.width=s,a.style.height=this.height,a.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 S.PreventableEvent;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(i){var n=b.getter(i.value,t.valueField);return(n=b.isPresent(n)?n.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(i){var n=b.getter(i,t.valueField);return(n=b.isPresent(n)?n.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()}))}))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper,b.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper,b.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper,b.getFillModeClass("input",this.fillMode))},n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"highlightFirst",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"value",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"placeholder",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"suggest",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([a.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([a.Output("focus"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output("blur"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.ContentChild(d.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",d.ItemTemplateDirective)],e.prototype,"template",void 0),n.__decorate([a.ContentChild(u.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",u.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.ContentChild(c.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",c.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([a.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([a.ContentChild(h.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",h.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([a.ContentChild(m.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",m.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),n.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),n.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([a.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([a.ViewChild(p.SearchBarComponent,{static:!0}),n.__metadata("design:type",p.SearchBarComponent)],e.prototype,"searchbar",void 0),n.__decorate([a.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",k.ListComponent)],e.prototype,"optionsList",void 0),n.__decorate([a.HostBinding("class.k-autocomplete"),a.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],e.prototype,"widgetClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([a.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=i=n.__decorate([a.Component({exportAs:"kendoAutoComplete",providers:[t.AUTOCOMPLETE_VALUE_ACCESSOR,D.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,x.LocalizationService,{provide:x.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:w.FilterableComponent,useExisting:a.forwardRef((function(){return i}))},{provide:o.KendoInput,useExisting:a.forwardRef((function(){return i}))}],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-clear-value"\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 class="k-icon k-i-x"></span>\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 [size]="size"\n [rounded]="rounded"\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-no-data" *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 '}),n.__param(10,a.Optional()),n.__param(10,a.Inject(E.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[x.LocalizationService,D.DataService,I.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.ElementRef,Boolean])],e)}();t.AutoCompleteComponent=O},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(){function e(e){this.element=e}return e=n.__decorate([a.Directive({selector:'"li[role=option], li[role=group]"'}),n.__metadata("design:paramtypes",[a.ElementRef])],e)}();t.ListItemDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(11),r=i(30),s=i(31),l=i(14),p=i(21),d=i(3),u=i(3),c=i(2),h=i(5),m=i(19),g=i(16),v=i(17),f=i(18),_=i(34),b=i(12),y=i(13),C=i(20),S=i(23),x=i(15),I=i(4),w=i(9),D=i(10),k=i(26),T=i(7),E=i(8),O=i(24),P=i(25),F=i(33);t.DROPDOWNLIST_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return M}))};var M=function(){function e(e,t,i,n,o,p,d,u,h,m,g){this.wrapper=e,this.localization=t,this.popupService=i,this.selectionService=n,this.navigationService=o,this.disabledItemsService=p,this.dataService=d,this._zone=u,this.renderer=h,this.cdr=m,this.touchEnabled=g,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.hostClasses=!0,this.focusableId="k-"+c.guid(),this.role="listbox",this.groupIndices=[],this.listBoxId=c.guid(),this.optionPrefix=c.guid(),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.hostElementFocused=new a.EventEmitter,this.hostElementBlurred=new a.EventEmitter,this.selectionSubscription=new l.Subscription,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",r.validatePackage(s.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}var i;return i=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=d.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 c.isPresent(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(c.isPresent(this.dataItem))return this.optionPrefix+"-"+c.getter(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,i=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,i)}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){c.isPresent(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=F.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return c.isPresent(this._valuePrimitive)?this._valuePrimitive:!c.isPresent(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}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,c.getSizeClass("picker",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,c.getSizeClass("picker",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,c.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,c.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,c.getFillModeClass("picker",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,c.getFillModeClass("picker",e)),this._fillMode=e},enumerable:!0,configurable:!0}),e.prototype.blurComponent=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())},e.prototype.blurFilterInput=function(){this.filterBlurred.emit()},e.prototype.focusComponent=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,d.hasObservers(this.onFocus)&&this._zone.run((function(){t.onFocus.emit()}))))},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,i=t.min,n=t.max;e.style.minWidth=i,e.style.width=n}},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabIndex",{get:function(){return this.widgetTabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAriaExpanded",{get:function(){return this.ariaExpanded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostAriaOwns",{get:function(){return this.ariaOwns},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostAriaActivedescendant",{get:function(){return this.ariaActivedescendant},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostNoDataLabel",{get:function(){return this.noDataLabel},enumerable:!0,configurable:!0}),e.prototype.keydown=function(e){var t=c.isPresent(this.defaultItem)?-1:0,i=isNaN(this.selectionService.focused)?this.firstFocusableIndex(t):this.selectionService.focused,n=0;if(!this.disabled&&!this.readonly){var a=e.keyCode===u.Keys.Home||e.keyCode===u.Keys.End;if(!(this.filterable&&this.isFocused&&this.isOpen)||!a){var o=c.isPresent(this.selectionService.selected[0]),r=c.isPresent(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);o&&!r||(e.keyCode===u.Keys.ArrowDown||e.keyCode===u.Keys.ArrowRight?n=-1:e.keyCode!==u.Keys.ArrowUp&&e.keyCode!==u.Keys.ArrowLeft||(n=1));var s=e,l=this.navigationService.process({current:i+n,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:s}),p=l===S.NavigationAction.Left||l===S.NavigationAction.Right;l===S.NavigationAction.Undefined||l===S.NavigationAction.Tab||l===S.NavigationAction.Backspace||l===S.NavigationAction.Delete||p&&this.filterable||l===S.NavigationAction.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)},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe((function(t){var i=t.rtl;e.direction=i?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.assignAriaDescribedBy(),this.setComponentClasses()},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}),d.isChanged("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),d.anyChanged(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.focusItemAt=function(e){var t=(c.isPresent(this.defaultItem)?-1:0)<=e&&e<this.data.length;c.isPresent(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 i=c.isPresent(e)?e:!t._open;t._toggle(i)}))},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new x.PreventableEvent;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||(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,"selectButtonClasses",{get:function(){return(this.size?c.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterInputClasses",{get:function(){return(this.size?c.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?c.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"optionLabelSizeClass",{get:function(){return""+(this.size?c.getSizeClass("list",this.size):"")},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 c.getter(this.defaultItem,this.textField)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",i={horizontal:t,vertical:"bottom"},n={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:i,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:n,popupClass:this.listContainerClasses,positionMode:"absolute"});var a=this.popupRef.popupElement,o=this.width,r=o.min,s=o.max;a.addEventListener("mousedown",this.popupMouseDownHandler),a.style.minWidth=r,a.style.width=s,a.style.height=this.height,a.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,i=e.confirm,n=void 0!==i&&i;this.dataItem=t,this.text=c.getter(t,this.textField),n&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!c.isPresent(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;d.isDocumentAvailable()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(p.filter((function(t){return e.isOpen})),p.map(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(l.merge(this.selectionService.onSelect.pipe(p.filter((function(t){return!e.isOpen}))),this.selectionService.onChange).pipe(p.map(this.itemFromEvent.bind(this)),p.tap((function(t){return e.togglePopup(!1)}))).subscribe((function(t){var i=t.dataItem,n=t.value;t.newSelection&&e.onSelectionChange({dataItem:i});var a=!c.isPresent(i)&&e._previousDataItem,o=n!==c.getter(e.value,e.valueField);a?(e.updateState({dataItem:e._previousDataItem}),e.resetSelection()):o&&(e.value=e.valuePrimitive?n:i,e._previousDataItem=i,e.emitChange(e.value)),e.clearFilter()}))),this.navigationSubscription=l.merge(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(p.skipWhile((function(){return e.filterable}))),this.navigationService.right.pipe(p.skipWhile((function(){return e.filterable}))),this.navigationService.home,this.navigationService.end).pipe(p.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(p.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(p.concatMap((function(){return l.interval(10).pipe(p.take(1),p.takeUntil(e.hostElementFocused))}))).subscribe((function(){e.hostElementBlurred.emit()})),this._zone.runOutsideAngular((function(){e.componentBlurredSubscription=l.merge(e.hostElementBlurred.pipe(p.concatMap((function(){return l.interval(10).pipe(p.take(1),p.takeUntil(e.filterFocused))}))),e.navigationService.tab).pipe(p.tap((function(t){return t instanceof m.NavigationEvent&&e.focus()})),p.filter((function(){return e.isFocused}))).subscribe((function(){return e.componentBlur()}))})))},e.prototype.subscribeTouchEvents=function(){var e=this;d.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var i=t.target;e.isFocused&&!c.inDropDown(e.wrapper,i,e.popupRef)&&e._zone.run((function(){e.filterFocused&&e.togglePopup(!1),e.blur()}))}))}))},e.prototype.subscribeFocusEvents=function(){var e=this;d.isDocumentAvailable()&&(this.focusComponent=this.focusComponent.bind(this),this.blurComponent=this.blurComponent.bind(this),this._zone.runOutsideAngular((function(){document.addEventListener("focus",e.focusComponent,!0),document.addEventListener("blur",e.blurComponent,!0)})))},e.prototype.unSubscribeFocusEvents=function(){if(d.isDocumentAvailable()){document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0)}},e.prototype.unsubscribeEvents=function(){d.isDocumentAvailable()&&(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())},e.prototype.itemFromEvent=function(e){var t=e.indices[0],i=this.dataService.itemAt(t);i=c.isPresent(i)?i:this.currentOrDefault(t);var n=c.getter(i,this.valueField);return{dataItem:i,index:t,newSelection:e.newSelection,value:n}},e.prototype.currentOrDefault=function(e){return c.isPresent(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(){c.isPresent(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(a.isDevMode()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(k.DropDownListMessages.defaultItem);if(!0===this.valuePrimitive&&c.isPresent(this.value)&&"object"==typeof this.value)throw new Error(k.DropDownListMessages.primitive);if(!1===this.valuePrimitive&&c.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(k.DropDownListMessages.object);if(!c.isPresent(this.valueField)!=!c.isPresent(this.textField))throw new Error(k.DropDownListMessages.textAndValue)}},e.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=c.isPresent(this.selectionService.selected[0])&&c.getter(this.value,this.valueField)!==c.getter(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||d.hasObservers(this.close)||d.hasObservers(this.onBlur)||d.hasObservers(this.filterChange)||c.isUntouched(this.wrapper.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!==u.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,i,n=this,a=this.dataService.filter((function(e){return c.isPresent(e)&&!e.header&&!n.disabledItemsService.isItemDisabled(e)})).map((function(e){return n.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:n.dataService.indexOf(e)}})),o=c.sameCharsOnly(this.word,this.last),r=a.length,s=!isNaN(this.selectionService.selected[0]),l=s?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(i={item:this.defaultItem,itemIndex:-1},r+=1,l+=1),l+=o&&s?1:0,a=c.shuffleData(a,l,i),t=0;t<r;t++){e=c.getter(a[t].item,this.textField);var p=Boolean(o&&c.matchText(e,this.last,this.ignoreCase)),d=Boolean(c.matchText(e,this.word,this.ignoreCase));if(p||d){t=a[t].itemIndex;break}}t!==r&&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,i=e.valueField,n=e.value,a={dataItem:null,index:-1},o=function(e){return c.getter(e,i)};t=this.dataService.grouped?function(e){return o(e.value)===o(n)}:function(e){return o(e)===o(n)};var r=this.dataService.findIndex(t);return a.dataItem=this.dataService.itemAt(r),a.index=r,a},e.prototype.setState=function(){var e=this.value,t=this.valueField,i=this.textField,n=this.valuePrimitive;if(this.defaultItem){var a=c.getter(this.defaultItem,t),o=c.getter(e,t);if(!c.isPresent(e)||o===a)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 r=this.findDataItem({valueField:t,value:e}),s=!(n&&i);r.dataItem?(this.updateState({dataItem:r.dataItem,confirm:!0}),this.resetSelection(r.index)):c.isPresent(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=c.guid();var t=(this.valueLabelId+" "+e).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,c.getSizeClass("picker",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,c.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,c.getFillModeClass("picker",this.fillMode))},n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"iconClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"ignoreCase",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"delay",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([a.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([a.Output("focus"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output("blur"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.ContentChild(g.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",g.ItemTemplateDirective)],e.prototype,"itemTemplate",void 0),n.__decorate([a.ContentChild(v.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",v.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([a.ContentChild(f.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",f.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),n.__decorate([a.ContentChild(_.ValueTemplateDirective,{static:!1}),n.__metadata("design:type",_.ValueTemplateDirective)],e.prototype,"valueTemplate",void 0),n.__decorate([a.ContentChild(b.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",b.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.ContentChild(y.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",y.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([a.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),n.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([a.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([a.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],e.prototype,"optionsList",void 0),n.__decorate([a.HostBinding("class.k-dropdownlist"),a.HostBinding("class.k-picker"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),a.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([a.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([a.Input("id"),a.HostBinding("attr.id"),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),n.__decorate([a.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],e.prototype,"hostTabIndex",null),n.__decorate([a.HostBinding("attr.readonly"),a.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),n.__decorate([a.HostBinding("attr.role"),a.HostBinding("attr.aria-haspopup"),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([a.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isAriaExpanded",null),n.__decorate([a.HostBinding("attr.aria-owns"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"hostAriaOwns",null),n.__decorate([a.HostBinding("attr.aria-activedescendant"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"hostAriaActivedescendant",null),n.__decorate([a.HostBinding("attr.aria-label"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"hostNoDataLabel",null),n.__decorate([a.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"keydown",null),n.__decorate([a.HostListener("keypress",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"keypress",null),n.__decorate([a.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"click",null),e=i=n.__decorate([a.Component({exportAs:"kendoDropDownList",providers:[t.DROPDOWNLIST_VALUE_ACCESSOR,E.DataService,h.SelectionService,m.NavigationService,T.DisabledItemsService,I.LocalizationService,{provide:I.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:O.FilterableComponent,useExisting:a.forwardRef((function(){return i}))},{provide:d.KendoInput,useExisting:a.forwardRef((function(){return i}))}],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 class="k-input-inner" unselectable="on" [id]="valueLabelId">\n <span class="k-input-value-text">\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>\n <button\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [kendoEventsOutsideAngular]="{\n mousedown: onMouseDown\n }"\n >\n <span\n class="k-button-icon k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <div class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <span\n class="k-searchbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-icon k-icon k-i-search" unselectable="on"></span>\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-input-inner"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n </span>\n </div>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel k-list-item" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel k-list-item" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\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 [size]="size"\n [rounded]="rounded"\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-no-data" *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 '}),n.__param(10,a.Optional()),n.__param(10,a.Inject(D.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[a.ElementRef,I.LocalizationService,w.PopupService,h.SelectionService,m.NavigationService,T.DisabledItemsService,E.DataService,a.NgZone,a.Renderer2,a.ChangeDetectorRef,Boolean])],e)}();t.DropDownListComponent=M},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(11),r=i(3),s=i(4),l=i(9),p=i(37),d=i(41),u=i(8),c=i(7),h=i(19),m=i(5),g=i(10),v=i(2),f=i(68),_=i(24),b=i(26),y=function(e){function t(t,i,n,a,o,r,s,l,p,d,u){var c=e.call(this,d,t,i,n,a,o,r,s,l,p,u)||this;return c.hostClasses=!0,c.removeWindowResizeListener=v.noop,c.defaultVirtualItemHeight=36,c.defaultVirtualPageSize=30,c}var i;return n.__extends(t,e),i=t,Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),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",i=this.popupSettings.width||f.getRowWidthFromColumnsMeta(this.columns)||e;return{min:t,max:isNaN(i)?i:i+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableSizeClass",{get:function(){return""+(this.size?v.getSizeClass("table",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listContainerClasses",{get:function(){return["k-popup","k-dropdowngrid-popup"].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 v.getter(e,t)},t.prototype.updateHeaderPadding=function(e){if(v.isPresent(e)){var t=this.localization.rtl?"padding-left":"padding-right";this.optionsList.hasScrollbar()&&f.scrollbarWidth()>0?this.renderer.setStyle(e,t,f.scrollbarWidth()+"px"):this.renderer.removeStyle(e,t)}},t.prototype.verifySettings=function(){if(a.isDevMode()){if(v.isPresent(this.data)&&this.data.length>0&&this.data.some((function(e){return!v.isObject(e)})))throw new Error(b.MultiColumnComboBoxMessages.data);if(!v.isPresent(this.valueField)||!v.isPresent(this.textField))throw new Error(b.MultiColumnComboBoxMessages.textAndValue);e.prototype.verifySettings.call(this)}},t.prototype.addWindowResizeListener=function(){var e=this;r.isDocumentAvailable()&&this.zone.runOutsideAngular((function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))}))},t.prototype.updateColumnsMediaState=function(){var e=this;v.isPresent(this.columns)&&r.isDocumentAvailable()&&this.columns.forEach((function(t){var i=!t.media||window.matchMedia(t.media).matches;t.matchesMedia!==i&&(t.matchesMedia=i,e.isOpen&&e.zone.run((function(){return e.popupRef.popupElement.style.width=e.popupWidth.max})))}))},n.__decorate([a.HostBinding("class.k-dropdowngrid"),n.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],t.prototype,"isDisabled",null),n.__decorate([a.ContentChildren(d.ComboBoxColumnComponent),n.__metadata("design:type",a.QueryList)],t.prototype,"columns",void 0),n.__decorate([a.ViewChild("header",{static:!1}),n.__metadata("design:type",a.ElementRef),n.__metadata("design:paramtypes",[a.ElementRef])],t.prototype,"header",null),t=i=n.__decorate([a.Component({providers:[m.SelectionService,u.DataService,h.NavigationService,c.DisabledItemsService,s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return i}))},{provide:r.KendoInput,useExisting:a.forwardRef((function(){return i}))},{provide:_.FilterableComponent,useExisting:a.forwardRef((function(){return i}))}],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 <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-clear-value"\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 class="k-icon k-i-x"></span>\n </span>\n\n <button\n #select\n tabindex="-1"\n aria-hidden="true"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\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!--data table--\x3e\n <div class="k-data-table" [ngClass]="tableSizeClass">\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-table-header"\n >\n <div class="k-table-header-wrap">\n <table class="k-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 <thead class="k-table-thead">\n <tr class="k-table-row">\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-th"\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 </thead>\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-table-td"\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 [type]="\'dropdowngrid\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-no-data"\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-table-footer">\n <table class="k-table">\n <tfoot class="k-table-tfoot">\n <tr class="k-table-row">\n <td class="k-table-td">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </ng-container>\n\n </div>\n\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 '}),n.__param(10,a.Inject(g.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[s.LocalizationService,l.PopupService,m.SelectionService,h.NavigationService,c.DisabledItemsService,u.DataService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.ElementRef,Boolean])],t)}(p.ComboBoxComponent);t.MultiColumnComboBoxComponent=y},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(3),r=i(9),s=i(6),l=i(28),p=i(11),d=i(8),u=i(7),c=i(19),h=i(4),m=i(5),g=i(15),v=i(2),f=i(20),_=i(14),b=i(21),y=i(12),C=i(13),S=i(36),x=i(26),I=i(10),w=i(34),D={animate:!0},k=function(){return!1},T=function(){return _.of([])},E=function(){return!1},O=function(){return!0},P=function(){function e(e,t,i,n,r,s,l,p){this.wrapper=e,this.popupService=t,this.navigationService=i,this.renderer=n,this._zone=r,this.cdr=s,this.localization=l,this.touchEnabled=p,this.hostClasses=!0,this.role="listbox",this.ariaHasPopup="tree",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.filterChange=new a.EventEmitter,this.clearButton=!0,this.hasChildren=k,this.fetchChildren=T,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=E,this.isNodeVisible=O,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+o.guid(),this.selectedKeys=[],this.filterStateChange=new a.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+o.guid(),this._popupSettings=D,this._tabindex=0,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.onTouchedCallback=v.noop,this.onChangeCallback=v.noop,this.direction=l.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents()}var t;return t=e,Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.handleKeydown=function(e){if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})}},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({},D,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,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getSizeClass("picker",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("picker",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getFillModeClass("picker",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("picker",e)),this._fillMode=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.nativeElement,"k-focus"),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 v.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return v.isPresent(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.wrapper.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe((function(t){var i=t.rtl;e.direction=i?"rtl":"ltr",e.cdr.markForCheck()}))),this.setComponentClasses()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){o.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,i=this.isOpen===e;t||i||(this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup()))},e.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,o.hasObservers(this.onFocus)&&this._zone.run((function(){t.onFocus.emit()}))))},e.prototype.handleBlur=function(e){var t=this,i=e&&e.relatedTarget;this.wrapper.nativeElement.contains(i)||this.isOpen&&this.popupRef.popupElement.contains(i)||(this.isFocused=!1,o.hasObservers(this.onBlur)||v.isUntouched(this.wrapper.nativeElement)?this._zone.run((function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()})):this.togglePopup(!1))},e.prototype.focusItemAt=function(e){if(this.treeview){var t=this.treeview.itemLookup(e);!v.isPresent(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 i=v.isPresent(e)?e:!v.isPresent(t.popupRef);t.destroyPopup(),i&&t.createPopup()}))},Object.defineProperty(e.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),e.prototype.onSelectionChange=function(e){var t=e.dataItem,i=e.index;this.valueDepth=i.split("_").length-1;var n=this.getField(this.valueField,t),a=this.valuePrimitive?l.getter(n)(t):t;a!==this.value&&(this.value=a,this.dataItem=t,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){!v.isPresent(e)&&v.isPresent(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,i){return!t.isVisible(e,String(i))}))},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectButtonClasses",{get:function(){return(this.size?v.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterInputClasses",{get:function(){return(this.size?v.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?v.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),e.prototype.verifySettings=function(){if(a.isDevMode()){if(!0===this.valuePrimitive&&v.isPresent(this.value)&&"object"==typeof this.value)throw new Error(x.DropDownTreeMessages.primitive);if(!0===this.valuePrimitive&&v.isPresent(this.value)&&"object"!=typeof this.dataItem)throw new Error(x.DropDownTreeMessages.dataItem);if(!1===this.valuePrimitive&&v.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(x.DropDownTreeMessages.object);if(!v.isPresent(this.valueField)||!v.isPresent(this.textField))throw new Error(x.DropDownTreeMessages.textAndValue);if((v.isArray(this.valueField)||v.isArray(this.textField))&&v.isPresent(this.value)&&!v.isPresent(this.valueDepth))throw new Error(x.DropDownTreeMessages.valueDepth)}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.getText=function(e,t){if(v.isPresent(t)&&v.isPresent(e)){var i=this.getField(e,t);return l.getter(i)(t)}return null},e.prototype.getField=function(e,t){var i=e.length-1;return"string"==typeof e?e:v.isPresent(this.valueDepth)?i<this.valueDepth?e[i]:e[this.valueDepth]:e.find((function(e){return e in t}))},e.prototype.triggerPopupEvents=function(e){var t=new g.PreventableEvent;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",i={horizontal:t,vertical:"bottom"},n={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:i,content:this.popupTemplate,popupAlign:n,positionMode:"absolute",popupClass:this.popupContainerClasses});var a=this.popupRef.popupElement,o=this.width,r=o.min,s=o.max;a.style.minWidth=r,a.style.width=s,a.style.height=this.height,a.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,o.hasObservers(this.filterChange)&&this._zone.run((function(){e.filterChange.emit("")}))))},e.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},e.prototype.setState=function(){if(v.isPresent(this.value)&&v.isPresent(this.dataItem)&&v.isPresent(this.valueField)){this.text=this.getText(this.textField,this.dataItem);var e=this.getField(this.valueField,this.dataItem);this.selectBy=e,this.selectedKeys=[l.getter(e)(this.dataItem)]}else this.clearState();this.cdr.markForCheck()},e.prototype.clearState=function(){this.text=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(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;o.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var i=t.target;e.isFocused&&!v.inDropDown(e.wrapper,i,e.popupRef)&&e._zone.run((function(){e.isOpen&&e.treeview.blur(),e.blur()}))}))}))},e.prototype.subscribeFocusEvents=function(){var e=this;o.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular((function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)})))},e.prototype.unSubscribeFocusEvents=function(){if(o.isDocumentAvailable()){document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0)}},e.prototype.unsubscribeEvents=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},e.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},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)},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("picker",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("picker",this.fillMode))},n.__decorate([a.HostBinding("class.k-dropdowntree"),a.HostBinding("class.k-picker"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("class.k-disabled"),a.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([a.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),n.__decorate([a.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"id",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([a.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],e.prototype,"hostTabIndex",null),n.__decorate([a.HostBinding("attr.role"),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([a.HostBinding("attr.aria-haspopup"),n.__metadata("design:type",String)],e.prototype,"ariaHasPopup",void 0),n.__decorate([a.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isAriaExpanded",null),n.__decorate([a.HostBinding("attr.readonly"),a.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),n.__decorate([a.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),n.__decorate([a.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),n.__decorate([a.ContentChild(f.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",f.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),n.__decorate([a.ContentChild(y.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",y.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),n.__decorate([a.ContentChild(C.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",C.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),n.__decorate([a.ContentChild(S.NodeTemplateDirective,{static:!1}),n.__metadata("design:type",S.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),n.__decorate([a.ContentChild(w.ValueTemplateDirective,{static:!1}),n.__metadata("design:type",w.ValueTemplateDirective)],e.prototype,"valueTemplate",void 0),n.__decorate([a.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),n.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([a.ViewChild("treeview",{static:!1}),n.__metadata("design:type",s.TreeViewComponent),n.__metadata("design:paramtypes",[s.TreeViewComponent])],e.prototype,"treeview",null),n.__decorate([a.ViewChild("filterInput",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"filterInput",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"opened",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"closed",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"nodeExpand",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"nodeCollapse",void 0),n.__decorate([a.Output("focus"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([a.Output("blur"),n.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"valueDepth",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"fetchChildren",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"placeholder",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"dataItem",null),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"isNodeExpanded",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Function)],e.prototype,"isNodeVisible",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"filter",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"focusableId",void 0),e=t=n.__decorate([a.Component({exportAs:"kendoDropDownTree",providers:[d.DataService,m.SelectionService,c.NavigationService,u.DisabledItemsService,h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:p.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t}))},{provide:o.KendoInput,useExisting:a.forwardRef((function(){return t}))},{provide:s.DataBoundComponent,useExisting:a.forwardRef((function(){return t}))},{provide:s.ExpandableComponent,useExisting: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 [attr.id]="valueLabelId"\n class="k-input-inner"\n >\n <span class="k-input-value-text">\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 <span\n *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n tabindex="-1"\n type="button"\n aria-hidden="true"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\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-input-inner"\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>\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 [size]="size"\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-no-data" *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:a.ChangeDetectionStrategy.OnPush}),n.__param(7,a.Optional()),n.__param(7,a.Inject(I.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[a.ElementRef,r.PopupService,c.NavigationService,a.Renderer2,a.NgZone,a.ChangeDetectorRef,h.LocalizationService,Boolean])],e)}();t.DropDownTreeComponent=P},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),n.__decorate([a.Input("kendoDropDownTreeFlatBinding"),n.__metadata("design:type",Array)],t.prototype,"nodes",void 0),n.__decorate([a.Input("valueField"),n.__metadata("design:type",String)],t.prototype,"idField",void 0),t=n.__decorate([a.Directive({selector:"[kendoDropDownTreeFlatBinding]"}),n.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.FlatDataBindingDirective);t.DropDownTreeFlatBindingDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=function(e){function t(t){var i=e.call(this,t)||this;return i.dropDownTree=t,i}return n.__extends(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),n.__decorate([a.Input("kendoDropDownTreeHierarchyBinding"),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),t=n.__decorate([a.Directive({selector:"[kendoDropDownTreeHierarchyBinding]"}),n.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.HierarchyBindingDirective);t.DropDownTreeHierarchyBindingDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),n.__decorate([a.Input("kendoMultiSelectTreeFlatBinding"),n.__metadata("design:type",Array)],t.prototype,"nodes",void 0),n.__decorate([a.Input("valueField"),n.__metadata("design:type",String)],t.prototype,"idField",void 0),t=n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeFlatBinding]"}),n.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.FlatDataBindingDirective);t.MultiSelectTreeFlatBindingDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=function(e){function t(t){var i=e.call(this,t)||this;return i.multiSelectTree=t,i}return n.__extends(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),n.__decorate([a.Input("kendoMultiSelectTreeHierarchyBinding"),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),t=n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),n.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.HierarchyBindingDirective);t.MultiSelectTreeHierarchyBindingDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),n.__decorate([a.Input("isNodeExpanded"),n.__metadata("design:type",Function)],t.prototype,"isExpanded",void 0),t=n.__decorate([a.Directive({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),n.__metadata("design:paramtypes",[o.ExpandableComponent])],t)}(o.ExpandDirective);t.DropDownTreesExpandDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(27),r=i(6),s=i(22),l=i(49),p=i(44),d=i(50),u=i(51),c=i(52),h=i(53),m=i(54),g=i(36),v=i(76),f=[l.DropDownTreeComponent,p.MultiSelectTreeComponent,d.DropDownTreeFlatBindingDirective,u.DropDownTreeHierarchyBindingDirective,c.MultiSelectTreeFlatBindingDirective,h.MultiSelectTreeHierarchyBindingDirective,m.DropDownTreesExpandDirective,g.NodeTemplateDirective,v.MultiSelectTreeSummaryTagDirective],_=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[f],exports:[f,s.SharedDirectivesModule],imports:[o.SharedModule,r.TreeViewModule]})],e)}();t.DropDownTreesModule=_},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),n.__decorate([a.Input(),n.__metadata("design:type",String)],t.prototype,"noDataText",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],t.prototype,"clearTitle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],t.prototype,"checkAllText",void 0),t}(i(4).ComponentMessages);t.Messages=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(24),r=i(2),s={caseSensitive:!1,operator:"startsWith"},l=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(){r.isPresent(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},e.prototype.handleFilterChange=function(e){var t=this;this.component.data=this.data.filter((function(i){return t.matchesAnyField(i,e)}))},e.prototype.matchesAnyField=function(e,t){var i=this,n=this.normalizeValue(t),a=this.filterSettings.fields;return 0===a.length?this.checkItem(e,n):a.some((function(t){return i.checkItem(r.getter(e,t),n)}))},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=r.isPresent(e)?e.toString():"";return this.filterSettings.caseSensitive?t:t.toLowerCase()},e.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?r.isArray(e)&&e.length>0?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(e.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=r.isPresent(e)&&"object"==typeof e?e.fields:[];return Object.assign({},s,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([a.Input("kendoDropDownFilter"),n.__metadata("design:type",Object)],e.prototype,"rawSettings",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),e=n.__decorate([a.Directive({selector:"[kendoDropDownFilter]"}),n.__metadata("design:paramtypes",[o.FilterableComponent])],e)}();t.FilterDirective=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(5),r=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))},n.__decorate([a.HostBinding("attr.index"),a.Input(),n.__metadata("design:type",Number)],e.prototype,"index",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"checkboxes",void 0),n.__decorate([a.HostBinding("style.height.px"),a.HostBinding("style.minHeight.px"),a.Input(),n.__metadata("design:type",Number)],e.prototype,"height",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"multipleSelection",void 0),n.__decorate([a.HostBinding("class.k-focus"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"focusedClassName",null),n.__decorate([a.HostBinding("class.k-selected"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"selectedClassName",null),n.__decorate([a.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),e=n.__decorate([a.Directive({selector:"[kendoDropDownsSelectable]"}),n.__metadata("design:paramtypes",[o.SelectionService])],e)}();t.SelectableDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=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}),n.__decorate([a.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"templateContext",null),e=n.__decorate([a.Directive({selector:"[templateContext]"}),n.__metadata("design:paramtypes",[a.ViewContainerRef])],e)}();t.TemplateContextDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=function(){function e(){}return e.prototype.addItem=function(e){if(!this.isItemChecked(e)){var t=o.getHierarchicalItemLevel(e.index),i=n.__assign({},e,{level:t});this.checkedItems.push(i),this.checkedKeys.add(this.getKey(i))}},e.prototype.removeItem=function(e){var t=this;if(this.isItemChecked(e)){var i=o.getHierarchicalItemLevel(e.index),a=n.__assign({},e,{level:i});this.checkedItems=this.checkedItems.filter((function(e){return o.valueFrom(e,t.valueField)!==o.valueFrom(a,t.valueField)})),this.checkedKeys.delete(this.getKey(a))}},e.prototype.isItemChecked=function(e){var t=e.index.split("_").length-1;return e.level=t,this.checkedKeys.has(this.getKey(e))},e.prototype.updateItems=function(){var e=this;this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map((function(t){return e.getKey(t)})))},e.prototype.getKey=function(e){return o.isArray(this.valueField)?o.valueFrom(e,this.valueField)+"_"+e.level:o.valueFrom(e,this.valueField)},n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"checkedItems",void 0),e}();t.BaseCheckDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=i(38),s=function(){function e(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},e.prototype.createTagMapper=function(){var e=o.parseNumber(this.showAfter);this.multiSelectComponent.tagMapper=function(t){if(t.length>e){var i=void 0;return(i=t.slice(0,e)).push(t.slice(e,t.length)),i}return t}},n.__decorate([a.Input("kendoMultiSelectSummaryTag"),n.__metadata("design:type",Object)],e.prototype,"showAfter",void 0),e=n.__decorate([a.Directive({selector:"[kendoMultiSelectSummaryTag]"}),n.__metadata("design:paramtypes",[r.MultiSelectComponent])],e)}();t.SummaryTagDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(45),r=i(27),s=i(22),l=[o.AutoCompleteComponent],p=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[l],exports:[l,s.SharedDirectivesModule],imports:[r.SharedModule]})],e)}();t.AutoCompleteModule=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(28),r=i(37),s=i(48),l=i(41),p=i(27),d=i(22),u=i(10),c=i(43),h=i(42),m=[r.ComboBoxComponent,s.MultiColumnComboBoxComponent,l.ComboBoxColumnComponent,c.ColumnHeaderTemplateDirective,h.ColumnCellTemplateDirective],g=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[m],exports:[m,d.SharedDirectivesModule],imports:[p.SharedModule],providers:[{provide:u.TOUCH_ENABLED,useValue:o.touchEnabled}]})],e)}();t.ComboBoxModule=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(47),r=i(27),s=i(22),l=[o.DropDownListComponent],p=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[l],exports:[l,s.SharedDirectivesModule],imports:[r.SharedModule]})],e)}();t.DropDownListModule=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(28),r=i(38),s=i(39),l=i(61),p=i(27),d=i(22),u=i(10),c=[r.MultiSelectComponent,l.SummaryTagDirective,s.CustomItemTemplateDirective],h=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[c],exports:[c,d.SharedDirectivesModule],imports:[p.SharedModule],providers:[{provide:u.TOUCH_ENABLED,useValue:o.touchEnabled}]})],e)}();t.MultiSelectModule=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(45);t.AutoCompleteComponent=n.AutoCompleteComponent;var a=i(37);t.ComboBoxComponent=a.ComboBoxComponent;var o=i(47);t.DropDownListComponent=o.DropDownListComponent;var r=i(38);t.MultiSelectComponent=r.MultiSelectComponent;var s=i(48);t.MultiColumnComboBoxComponent=s.MultiColumnComboBoxComponent;var l=i(41);t.ComboBoxColumnComponent=l.ComboBoxColumnComponent;var p=i(42);t.ColumnCellTemplateDirective=p.ColumnCellTemplateDirective;var d=i(43);t.ColumnHeaderTemplateDirective=d.ColumnHeaderTemplateDirective;var u=i(49);t.DropDownTreeComponent=u.DropDownTreeComponent;var c=i(44);t.MultiSelectTreeComponent=c.MultiSelectTreeComponent;var h=i(50);t.DropDownTreeFlatBindingDirective=h.DropDownTreeFlatBindingDirective;var m=i(51);t.DropDownTreeHierarchyBindingDirective=m.DropDownTreeHierarchyBindingDirective;var g=i(52);t.MultiSelectTreeFlatBindingDirective=g.MultiSelectTreeFlatBindingDirective;var v=i(53);t.MultiSelectTreeHierarchyBindingDirective=v.MultiSelectTreeHierarchyBindingDirective;var f=i(54);t.DropDownTreesExpandDirective=f.DropDownTreesExpandDirective;var _=i(55);t.DropDownTreesModule=_.DropDownTreesModule;var b=i(36);t.NodeTemplateDirective=b.NodeTemplateDirective;var y=i(16);t.ItemTemplateDirective=y.ItemTemplateDirective;var C=i(17);t.GroupTemplateDirective=C.GroupTemplateDirective;var S=i(18);t.FixedGroupTemplateDirective=S.FixedGroupTemplateDirective;var x=i(39);t.CustomItemTemplateDirective=x.CustomItemTemplateDirective;var I=i(12);t.HeaderTemplateDirective=I.HeaderTemplateDirective;var w=i(13);t.FooterTemplateDirective=w.FooterTemplateDirective;var D=i(34);t.ValueTemplateDirective=D.ValueTemplateDirective;var k=i(59);t.TemplateContextDirective=k.TemplateContextDirective;var T=i(29);t.GroupTagTemplateDirective=T.GroupTagTemplateDirective;var E=i(58);t.SelectableDirective=E.SelectableDirective;var O=i(61);t.SummaryTagDirective=O.SummaryTagDirective;var P=i(57);t.FilterDirective=P.FilterDirective;var F=i(77);t.DropDownsModule=F.DropDownsModule;var M=i(65);t.MultiSelectModule=M.MultiSelectModule;var A=i(27);t.SharedModule=A.SharedModule;var j=i(62);t.AutoCompleteModule=j.AutoCompleteModule;var B=i(63);t.ComboBoxModule=B.ComboBoxModule;var z=i(64);t.DropDownListModule=z.DropDownListModule;var R=i(22);t.SharedDirectivesModule=R.SharedDirectivesModule;var N=i(25);t.ListComponent=N.ListComponent;var L=i(9);t.PopupComponent=L.PopupComponent;var H=i(15);t.PreventableEvent=H.PreventableEvent;var V=i(40);t.RemoveTagEvent=V.RemoveTagEvent},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);t.normalizeCheckboxesSettings=function(e){if(n.isObject(e)){return Object.assign({},{enabled:!0,checkOnClick:!0},e)}return{enabled:Boolean(e),checkOnClick:!0}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(2);t.scrollbarWidth=function(){if(isNaN(n)){var e=document.createElement("div");e.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML="&nbsp;",document.body.appendChild(e),n=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return n};t.getRowWidthFromColumnsMeta=function(e){if(!function(e){return!(!a.isPresent(e)||0===e.length)&&e.toArray().every((function(e){return!isNaN(e.width)&&e.width>0}))}(e))return null;var i=t.scrollbarWidth()+2;return e.reduce((function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e}),i)}},function(e,t){e.exports=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(35),r=i(29),s=i(2),l=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.rounded="medium",this.fillMode="solid",this.disabledIndices=new Set,this.removeTag=new a.EventEmitter,this.hostClasses=!0,this._size="medium"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.hostElement.nativeElement,s.getSizeClass("chip-list",this.size)),e&&this.renderer.addClass(this.hostElement.nativeElement,s.getSizeClass("chip-list",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostId",{get:function(){return this.id},enumerable:!0,configurable:!0}),e.prototype.tagProp=function(e,t,i){var n=t&&this.getPropField(e,t,i);return s.getter(e,n)},e.prototype.isTagDisabled=function(e,t){var i=this;return this.isGroupTag(e)?e.every((function(e,n){return i.disabledIndices.has(n+t)})):this.disabledIndices.has(t)},e.prototype.deleteTag=function(e,t,i){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:i})},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 s.isPresent(this.focused)&&this.focused!==e},e.prototype.getPropField=function(e,t,i){var n=t.length-1;if("string"==typeof t)return t;if(this.valueDepth){var a=this.valueDepth[i];return n<a?t[n]:t[a]}return t.find((function(t){return t in e}))},n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"tags",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"valueDepth",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"focused",void 0),n.__decorate([a.Input(),n.__metadata("design:type",o.TagTemplateDirective)],e.prototype,"template",void 0),n.__decorate([a.Input(),n.__metadata("design:type",r.GroupTagTemplateDirective)],e.prototype,"groupTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"tagPrefix",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"rounded",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"fillMode",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Set)],e.prototype,"disabledIndices",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"removeTag",void 0),n.__decorate([a.HostBinding("class.k-input-values"),a.HostBinding("class.k-chip-list"),a.HostBinding("class.k-selection-multiple"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"hostId",null),e=n.__decorate([a.Component({selector:"kendo-taglist",template:"\n <div\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-chip\"\n [ngClass]=\"{\n 'k-focus': index === focused,\n 'k-disabled': isTagDisabled(tag, index),\n 'k-chip-sm': size === 'small',\n 'k-chip-md': size === 'medium',\n 'k-chip-lg': size === 'large',\n 'k-rounded-sm': rounded === 'small',\n 'k-rounded-md': rounded === 'medium',\n 'k-rounded-lg': rounded === 'large',\n 'k-rounded-full': rounded === 'full',\n 'k-chip-solid k-chip-solid-base': fillMode === 'solid',\n 'k-chip-flat k-chip-flat-base': fillMode === 'flat',\n 'k-chip-outline k-chip-outline-base': fillMode === 'outline'\n }\"\n >\n <span class=\"k-chip-content\">\n <ng-template *ngIf=\"isGroupTag(tag); then groupTag else singleTag\"></ng-template>\n <ng-template #groupTag>\n <span class=\"k-chip-label k-text-ellipsis\">\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 class=\"k-chip-label k-text-ellipsis\">\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 </span>\n\n <span class=\"k-chip-actions\">\n <span aria-label=\"delete\" [attr.aria-hidden]=\"index !== focused\" class=\"k-chip-action k-chip-remove-action\">\n <span class=\"k-icon k-i-x-circle\" (mousedown)=\"deleteTag($event, tag, index)\">\n </span>\n </span>\n </span>\n </div>\n <ng-content></ng-content>\n "}),n.__metadata("design:paramtypes",[a.Renderer2,a.ElementRef])],e)}();t.TagListComponent=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(4),r=i(56),s=function(e){function t(t){var i=e.call(this)||this;return i.service=t,i}var i;return n.__extends(t,e),i=t,t=i=n.__decorate([a.Directive({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return i}))}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),n.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.LocalizedMessagesDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(4),r=i(56),s=function(e){function t(t){var i=e.call(this)||this;return i.service=t,i}var i;return n.__extends(t,e),i=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=i=n.__decorate([a.Component({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return i}))}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),n.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.CustomMessagesComponent=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=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)}))},n.__decorate([a.Input("filterInput"),n.__metadata("design:type",Boolean)],e.prototype,"focused",void 0),e=n.__decorate([a.Directive({selector:"[filterInput]"}),n.__metadata("design:paramtypes",[a.ElementRef,a.NgZone])],e)}();t.FilterInputDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=i(14),s=i(21),l=i(2),p=function(e){function t(t){var i=e.call(this)||this;return i.treeView=t,i.checkedItemsChange=new a.EventEmitter,i.checkedKeys=new Set,i.subscriptions=new r.Subscription,i.subscriptions.add(i.treeView.checkedChange.subscribe(i.handleCheckedChange.bind(i))),i.treeView.isChecked=i.getCheckedState.bind(i),i}return n.__extends(t,e),t.prototype.ngOnChanges=function(e){l.isPresent(e.checkable)&&this.toggleCheckOnClick(),l.isPresent(e.checkedItems)&&this.updateItems()},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},t.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},t.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},t.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(s.filter((function(e){return"click"===e.type}))).subscribe((function(t){var i=e.treeView.itemLookup(t.item.index);e.handleCheckedChange(i)})))},t.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},t.prototype.checkNode=function(e){var t=this;if(!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var i=e.item,n=[i];if(this.checkable.checkChildren){l.fetchDescendentNodes(e,(function(e){return t.treeView.isVisible(e.dataItem,e.index)&&!t.treeView.isDisabled(e.dataItem,e.index)})).forEach((function(e){return n.push(e.item)}))}var a=!this.isItemChecked(i);n.forEach((function(e){a?t.addItem(e):t.removeItem(e)}))}},t.prototype.checkParents=function(e){for(var t=this,i=e;i;){i.children.every((function(e){return t.isItemChecked(e)}))?this.addItem(i.item):this.removeItem(i.item),i=i.parent}},t.prototype.isItemIndeterminate=function(e){var t=e.children;if(!Array.isArray(t)||0===t.length)return!1;for(var i=0,n=t[i];l.isPresent(n);){if(this.isItemChecked(n.item)||this.isItemIndeterminate(n))return!0;n=t[i+=1]}return!1},n.__decorate([a.Input(),n.__metadata("design:type",Object)],t.prototype,"checkable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],t.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],t.prototype,"checkedItems",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],t.prototype,"checkedItemsChange",void 0),t=n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeCheckable]"}),n.__metadata("design:paramtypes",[o.TreeViewComponent])],t)}(i(60).BaseCheckDirective);t.CheckDirective=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(6),r=i(2),s=function(e){function t(t,i,n,o){var r=e.call(this)||this;return r.element=t,r.zone=i,r.cdr=n,r.renderer=o,r.checkedItemsChange=new a.EventEmitter,r.checkedKeys=new Set,r}return n.__extends(t,e),t.prototype.handleChange=function(e){var t=this;this.currentCheckedState=e.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map((function(e,i){var n=String(i),a=t.treeview.itemLookup(n);t.checkNode(a)})),this.checkedItemsChange.emit(this.checkedItems.slice())},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){var e=this,t=this.treeview.nodes.some((function(t,i){var n=String(i),a=e.treeview.itemLookup(n);return e.someChecked(a)}));return!this.isChecked&&t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){var e=this;return this.treeview.nodes.every((function(t,i){var n=String(i),a=e.treeview.itemLookup(n);return e.allChecked(a)}))},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){r.isPresent(e.checkedItems)&&(this.updateItems(),this.renderer.setProperty(this.element.nativeElement,"checked",this.isChecked),this.renderer.setProperty(this.element.nativeElement,"indeterminate",this.isIndeterminate))},t.prototype.ngOnInit=function(){var e=this;this.focused&&this.nextTick((function(){return e.element.nativeElement.focus()}))},t.prototype.nextTick=function(e){this.zone.runOutsideAngular((function(){return setTimeout(e)}))},t.prototype.checkNode=function(e){var t=this;if(!this.treeview.isDisabled(e.item.dataItem,e.item.index)){var i=[];i.push(e.item),r.fetchDescendentNodes(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)})),i.forEach((function(e){t.currentIndeterminateState?"check"===t.lastAction?t.addItem(e):t.removeItem(e):t.currentCheckedState?t.addItem(e):t.removeItem(e)}))}},t.prototype.allChecked=function(e){var t=this,i=e&&e.children;if(Array.isArray(i))return i.every((function(e){return e.children.length?t.isItemChecked(e.item)&&t.allChecked(e):t.isItemChecked(e.item)}))&&this.isItemChecked(e.item)},t.prototype.someChecked=function(e){var t=this,i=e&&e.children;if(Array.isArray(i))return i.some((function(e){return e.children.length?t.isItemChecked(e.item)||t.someChecked(e):t.isItemChecked(e.item)}))||this.isItemChecked(e.item)},n.__decorate([a.Input(),n.__metadata("design:type",String)],t.prototype,"lastAction",void 0),n.__decorate([a.Input(),n.__metadata("design:type",o.TreeViewComponent)],t.prototype,"treeview",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],t.prototype,"checkedItems",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],t.prototype,"valueField",void 0),n.__decorate([a.Input("checkAll"),n.__metadata("design:type",Boolean)],t.prototype,"focused",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],t.prototype,"checkedItemsChange",void 0),n.__decorate([a.HostListener("change",["$event.target"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),t=n.__decorate([a.Directive({selector:"[checkAll]"}),n.__metadata("design:paramtypes",[a.ElementRef,a.NgZone,a.ChangeDetectorRef,a.Renderer2])],t)}(i(60).BaseCheckDirective);t.CheckAllDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),r=i(44),s=function(){function e(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},e.prototype.createTagMapper=function(){var e=o.parseNumber(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(t){return t.length>e?t.slice(0,e).concat([t.slice(e)]):t}},n.__decorate([a.Input("kendoMultiSelectTreeSummaryTag"),n.__metadata("design:type",Object)],e.prototype,"showAfter",void 0),e=n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeSummaryTag]"}),n.__metadata("design:paramtypes",[r.MultiSelectTreeComponent])],e)}();t.MultiSelectTreeSummaryTagDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(62),r=i(63),s=i(64),l=i(65),p=i(55),d=function(){function e(){}return e=n.__decorate([a.NgModule({exports:[o.AutoCompleteModule,r.ComboBoxModule,s.DropDownListModule,l.MultiSelectModule,p.DropDownTreesModule]})],e)}();t.DropDownsModule=d}])}));