@progress/kendo-angular-dropdowns 6.0.0-dev.202201171002 → 6.0.1-dev.202201201244
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-dropdowns.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/dropdownlist/dropdownlist.component.js +8 -19
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/dropdownlist/dropdownlist.component.d.ts +5 -6
- package/dist/es2015/dropdownlist/dropdownlist.component.js +8 -15
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +9 -16
- package/dist/fesm5/index.js +9 -20
- package/dist/npm/dropdownlist/dropdownlist.component.js +8 -19
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-dropdowns.js +1 -1
- package/package.json +11 -11
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
System.register("@progress/kendo-angular-dropdowns",["@progress/kendo-angular-popup","tslib","@angular/core","@progress/kendo-common","@progress/kendo-angular-treeview","@angular/common","@angular/forms","@progress/kendo-angular-common","@progress/kendo-angular-l10n","rxjs","rxjs/operators","@progress/kendo-licensing"],function(o){var s,r,p,l,d,u,c,h,m,g,v,f;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){r=t(e)},function(e){p=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){h=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){v=t(e)},function(e){f=t(e)}],execute:function(){function n(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,a;a={},n.m=i=[function(e,t){e.exports=r},function(e,t){e.exports=p},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=t(3),o=t(29);a.isPresent=function(e){return null!=e},a.isNumber=function(e){return!isNaN(e)},a.guid=function(){for(var e,t="",i=0;i<32;i++)e=16*Math.random()|0,8!==i&&12!==i&&16!==i&&20!==i||(t+="-"),t+=(12===i?4:16===i?3&e|8:e).toString(16);return t},a.combineStr=function(e,t){return e.concat(t.substr(t.toLowerCase().indexOf(e.toLowerCase())+e.length))},a.isWindowAvailable=function(){return"undefined"!=typeof window},a.isArray=function(e){return Array.isArray(e)},a.isObject=function(e){return a.isPresent(e)&&"object"==typeof e},a.isEmptyString=function(e){return"string"==typeof e&&0===e.length},a.resolveValuesInArray=function(e,i,n){return void 0===i&&(i=[]),e.map(function(t){return i.find(function(e){return a.getter(e,n)===t})}).filter(function(e){return void 0!==e})},a.validateComplexValues=function(e,t){return a.isArray(e)&&e.filter(function(e){return a.isObject(e)&&a.isPresent(a.getter(e,t))})},a.resolveAllValues=function(e,t,i){var n=a.validateComplexValues(e,i)||[];return(a.resolveValuesInArray(e,t,i)||[]).concat(n)},a.isObjectArray=function(e){return a.isArray(e)&&e.every(function(e){return a.isObject(e)})},a.selectedIndices=function(e,t,i){var n=t.map(function(e){return a.isPresent(e)&&a.isPresent(a.getter(e,i))?a.getter(e,i):e});return e.reduce(function(e,t){t=a.isPresent(t)&&a.isPresent(a.getter(t,i))?a.getter(t,i):t,t=n.indexOf(t);return-1!==t&&e.push(t),e},[])},a.getter=function(e,t){return a.isPresent(e)?a.isPresent(t)&&a.isObject(e)?o.getter(t)(e):e:null},a.resolveValue=function(t){var e;return a.isPresent(t.value)?{dataItem:e=[t.defaultItem].concat(t.data).find(function(e){return a.getter(e,t.valueField)===t.value}),focused:t.data.indexOf(e),selected:t.data.indexOf(e)}:t.index?(e=t.data[t.index],{dataItem:t.data[t.index],focused:t.index,selected:t.index}):{dataItem:t.defaultItem,focused:-1,selected:-1}},a.sameCharsOnly=function(e,t){for(var i=0;i<e.length;i++)if(e.charAt(i)!==t)return!1;return!0},a.shuffleData=function(e,t,i){return(e=i?[i].concat(e):e).slice(t).concat(e.slice(0,t))},a.matchText=function(e,t,i){if(!a.isPresent(e))return!1;e=String(e);return 0===(e=i?e.toLowerCase():e).indexOf(t)},a.elementFromPoint=function(e,t){if(i.isDocumentAvailable())return document.elementFromPoint(e,t)},a.hasProps=function(t,e){return!!a.isPresent(t)&&e.every(function(e){return t.hasOwnProperty(e)})},a.isUntouched=function(e){return e.className.includes("ng-untouched")},a.noop=function(e){};a.closest=function(e,t){for(var i,n,a,o=e;null!==o&&1===o.nodeType;){if(n=t,a=void 0,!!(a=(i=o).matches||i.msMatchesSelector||i.webkitMatchesSelector)&&a.call(i,n))return o;o=o.parentElement||o.parentNode}return null},a.parseNumber=function(e,t){void 0===t&&(t=0);e=Number(e);return isNaN(e)?t:e},a.inDropDown=function(e,t,i){return e.nativeElement.contains(t)||i&&i.popupElement.contains(t)},a.getHierarchicalItemLevel=function(e){return(e||"").split("_").length-1},a.fetchDescendentNodes=function(e,t){if(!a.isPresent(e)||0===e.children.length)return[];var i=e.children;return(i=a.isPresent(t)?i.filter(function(e){return t(e.item)}):i).forEach(function(e){return i=i.concat(a.fetchDescendentNodes(e,t))}),i},a.valueFrom=function(e,t){var i=e.dataItem,n=e.index,e=e.level,t=Array.isArray(t)?t:[t],n=a.isPresent(e)?e:a.getHierarchicalItemLevel(n),t=t[Math.min(n,t.length-1)];return o.getter(t)(i)},a.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]},a.getRoundedClass=function(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]},a.getFillModeClass=function(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}},function(e,t){e.exports=h},function(e,t){e.exports=m},function(e,t){e.exports=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),n=(s.prototype.getTotal=function(){return this.total},s.prototype.isSelected=function(t){return o.isPresent(this.selectedIndices.find(function(e){return e===t}))},s.prototype.isFocused=function(e){return e===this.focused},s.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},s.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:o.isPresent(e)}))},s.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},s.prototype.unselect=function(e){var t;this.isSelected(e)&&(t=this.selectedIndices.indexOf(e),this.selectedIndices.splice(t,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e}))},s.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})},s.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(s.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!0,configurable:!0}),n.__decorate([a.Injectable()],s));function s(){this.onSelect=new a.EventEmitter,this.onChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.total=0,this.selectedIndices=[]}t.SelectionService=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(1);t.TOUCH_ENABLED=new i.InjectionToken("dropdowns-touch-enabled")},function(e,t){e.exports=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),r=i(2),a=(Object.defineProperty(o.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(o.prototype,"itemsCount",{get:function(){return r.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}),o.prototype.isGrouped=function(e){return r.isPresent(e)&&0!==e.length&&r.isPresent(e[0])&&r.hasProps(e[0],["aggregates","field","items","value"])},o.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},o.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},o.prototype.indexOf=function(t,e){var i=function(e){return e===t};return this.grouped&&(i=function(e){return e.value===t}),this.findIndex(i,e=void 0===e?0:e)},o.prototype.findIndex=function(e,t){void 0===t&&(t=0);var i,n=-1;return n=this.grouped?(i=this._flatData.filter(function(e){return!e.header&&e.offsetIndex>=t}))[n=i.findIndex(e)]?i[n].offsetIndex:-1:-1!==(e=(i=this.data.slice(t)).findIndex(e))?e+t:-1},o.prototype.closestGroup=function(e){for(var t=e;0<=t;t--)if(this._flatData[t].header)return this._flatData[t]},o.prototype.find=function(e){e=this.findIndex(e);return this.itemAt(e)},o.prototype.flatIndex=function(t){if(0===this.itemsCount)return-1;if(!this.grouped)return t;var e=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t});return e?e.index:-1},o.prototype.itemAt=function(t){var e,i;return 0===this.itemsCount||(this.grouped?(i=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t}))&&(e=i.value):e=this.data[t]),e},o.prototype.groupAt=function(t){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(e){return e.header&&e.index===t})},o.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},o.prototype.itemGroup=function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var t=this.groupField();return t?r.getter(e,t):void 0}},o.prototype.flatten=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=0);var a=[];r.isPresent(t=void 0===t?void 0:t)&&a.push({header:!0,index:n+i,offsetIndex:n,value:t});for(var o=0;o<e.length;o++){var s=[];e[o].items?(s=this.flatten(e[o].items,e[o].value,i,o),i+=e[o].items.length):s.push({header:!1,index:n+i+o+1,offsetIndex:i+o,value:e[o]}),a=a.concat(s)}return a},n.__decorate([a.Injectable()],o));function o(){this.grouped=!1,this.groupIndices=[]}t.DataService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),i=i(9),i=(s.prototype.isIndexDisabled=function(e){if(this.itemDisabled){var t=this.dataService.itemAt(e);return o.isPresent(t)?this.itemDisabled({dataItem:t,index:e}):o.isPresent(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0}},s.prototype.isItemDisabled=function(e){if(this.itemDisabled){var t=this.dataService.indexOf(e);return-1!==t?this.itemDisabled({dataItem:e,index:t}):o.isPresent(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0}},n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[i.DataService])],s));function s(e){this.dataService=e,this.itemDisabled=null}t.DisabledItemsService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(a.prototype.preventDefault=function(){this.prevented=!0},a.prototype.isDefaultPrevented=function(){return this.prevented},a);function a(){this.prevented=!1}t.PreventableEvent=n},function(e,t){e.exports=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.FooterTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.HeaderTemplateDirective=i},function(e,t){e.exports=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(22),s=i(21),r=i(20),p=i(14),l=i(13),d=i(18),u=i(32),c=i(31),h=i(28),m=i(72),g=i(71),v=i(53),i=i(70),i=[p.HeaderTemplateDirective,l.FooterTemplateDirective,o.ItemTemplateDirective,s.GroupTemplateDirective,r.FixedGroupTemplateDirective,d.NoDataTemplateDirective,u.ValueTemplateDirective,c.TagTemplateDirective,h.GroupTagTemplateDirective,m.LocalizedMessagesDirective,g.CustomMessagesComponent,v.FilterDirective,i.FilterInputDirective],i=n.__decorate([a.NgModule({declarations:[i],exports:[i]})],f);function f(){}t.SharedDirectivesModule=i},function(e,t){e.exports=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.NoDataTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),s=i(2),o=i(3),r=i(27),p=i(10),i=i(6),l=function(e,t){this.index=e,this.originalEvent=t};t.NavigationEvent=l;d.prototype.process=function(e){var t,i=e.originalEvent.keyCode,n=e.originalEvent.altKey,a=r.NavigationAction.Undefined;n&&i===o.Keys.ArrowDown?a=r.NavigationAction.Open:n&&i===o.Keys.ArrowUp?a=r.NavigationAction.Close:i===o.Keys.Enter?a=r.NavigationAction.Enter:i===o.Keys.Escape?a=r.NavigationAction.Esc:i===o.Keys.Tab?a=r.NavigationAction.Tab:i===o.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=r.NavigationAction.Up):i===o.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=r.NavigationAction.Left):i===o.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=r.NavigationAction.Down):i===o.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=r.NavigationAction.Right):i===o.Keys.Home?(t=this.isDisabled(0)?e.current:0,a=r.NavigationAction.Home):i===o.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,a=r.NavigationAction.End):i===o.Keys.Delete?a=r.NavigationAction.Delete:i===o.Keys.Backspace&&(a=r.NavigationAction.Backspace);e=new l(t,e.originalEvent);return a!==r.NavigationAction.Undefined&&this[r.NavigationAction[a].toLowerCase()].emit(e),a},d.prototype.next=function(e){var t=e.current,i=e.start,n=e.end,a=e.step,o=s.isPresent(t)?this.clampIndex(t+a,i,n):i,e=this.firstFocusableIndex(o,i,n,a);return s.isPresent(e)?e:this.selectionService.isSelected(t)&&i<=t?t:this.firstFocusableIndex(o,i,n,-1*a)},d.prototype.clampIndex=function(e,t,i){return!s.isPresent(e)||e<t?t:i<e?i:e},d.prototype.firstFocusableIndex=function(e,t,i,n){for(;t<=e&&e<=i;){if(!this.isDisabled(e))return e;e+=n}},d.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},i=n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[p.DisabledItemsService,i.SelectionService])],d);function d(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}t.NavigationService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.FixedGroupTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.GroupTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ItemTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(74),s=i(15),r=i(25),p=i(34),l=i(73),d=i(8),u=i(3),c=i(16),h=i(64),m=i(52),g=i(51),v=i(69),i=i(68),i=[r.ListComponent,h.ListItemDirective,m.SelectableDirective,p.SearchBarComponent,g.TemplateContextDirective,l.TagListComponent,v.CheckDirective,i.CheckAllDirective],u=n.__decorate([a.NgModule({declarations:[i],exports:[i,o.CommonModule,s.FormsModule,d.PopupModule,u.ResizeSensorModule,c.SharedDirectivesModule,u.EventsModule],imports:[o.CommonModule,s.FormsModule,d.PopupModule,u.ResizeSensorModule,c.SharedDirectivesModule,u.EventsModule]})],f);function f(){}t.SharedModule=u},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),p=i(1),a=i(3),o=i(64),s=i(22),r=i(21),l=i(20),d=i(2),u=i(6),c=i(12),h=i(17),m=i(10),i=i(9),m=(Object.defineProperty(g.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(g.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(g.prototype,"pageSize",{get:function(){return this.virtual.pageSize||Math.round(this.height/this.virtual.itemHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"scrollHeight",{get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"overflowY",{get:function(){if(d.isPresent(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"checkboxClasses",{get:function(){return(this.size?d.getSizeClass("checkbox",this.size):"")+" "+(this.rounded?d.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),g.prototype.ngOnChanges=function(e){a.isChanged("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),a.isChanged("virtual",e,!1)&&this.setOverflow(),a.isChanged("type",e,!1)&&this.prepareClasses()},g.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()},g.prototype.ngAfterViewChecked=function(){var e;this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,e=this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused,this.scrollToItem(e)),this.dataService.grouped&&this.findCurrentGroup()},g.prototype.ngOnDestroy=function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},g.prototype.onCheckedChange=function(e,t){e=e.target.checked;e&&!this.selectionService.isSelected(t)&&this.selectionService.add(t),!e&&this.selectionService.isSelected(t)&&this.selectionService.unselect(t)},g.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")},g.prototype.isChecked=function(e){e=this.virtual?e+this.virtual.skip:e;return this.selectionService.isSelected(e)},g.prototype.firstVisibleItem=function(){var t=this,e=this.content.nativeElement,i=e.getBoundingClientRect(),e=Array.prototype.slice.call(e.querySelectorAll(".k-disabled"));e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","auto")});i=document.elementFromPoint(i.left+1,i.top+1);return e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","none")}),d.closest(i,"li")},g.prototype.findCurrentGroup=function(){var e,t;this.dataService.grouped?((e=this.firstVisibleItem())?(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)))):this.currentGroup=void 0,this.cdr.detectChanges()):this.currentGroup=void 0},g.prototype.prefetchData=function(){var e,t,i,n,a;this.virtual&&(e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),a=this.content.nativeElement.scrollTop,t=Math.trunc(a/this.virtual.itemHeight),i=a>this.lastScrollTop,n=t+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,a=this.pageSize-(this.lastLoaded-this.startFrom),a=this.lastLoaded-this.pageSize+e>=t-a,i&&n&&this.changePage(t),!i&&a&&this.changePage(t-this.pageSize+e+1))},g.prototype.changePage=function(t){var i=this;this.zone.run(function(){var e=i.pageSize+t;e>i.virtual.total&&(t--,e=i.virtual.total),t<0&&(t=0),i.startFrom=t,i.lastLoaded=e,i.pageChange.emit({skip:t,take:i.pageSize})})},g.prototype.index=function(e,t){return 0<e?this.dataService.groupIndices[e-1]+t:t},g.prototype.getText=function(e){return d.getter(e,this.textField)},g.prototype.getValue=function(e){return d.getter(e,this.valueField)},g.prototype.isDisabled=function(e){return d.isPresent(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},g.prototype.isAltRow=function(e){return"dropdowngrid"===this.type&&e%2!=0},g.prototype.scrollToItem=function(e){var t=e;this.dataService.grouped&&(t=this.dataService.flatIndex(e),t+=this.firstGroupHeaderInTargetedPage(t)?-1:0),this.virtual&&-1<t?this.scrollToIndex(t):(e=this.items.toArray(),d.isPresent(e[t])&&-1!==t&&this.scroll(e[t].element))},g.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,i=t.scrollTop,n=e*this.virtual.itemHeight,a=this.virtual.itemHeight,e=t.clientHeight,a=n+a;n<i?i=n:i+e<a&&(i=a-e),t.scrollTop=i},g.prototype.scroll=function(e){var t,i,n,a;e&&(n=e.nativeElement,t=this.content.nativeElement,i=n.offsetTop,a=n.offsetHeight,e=t.scrollTop,n=t.clientHeight,a=i+a,i<e?e=i:e+n<a&&(e=a-n),t.scrollTop=e)},g.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)},g.prototype.setOverflow=function(){var e;this.virtual&&(e=this.hasVirtualScrollbar()?"scroll":"hidden",this.renderer.setStyle(this.content.nativeElement,"overflow-y",e))},g.prototype.hasVirtualScrollbar=function(){var e=this.content.nativeElement.offsetHeight,t=this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight;return this.virtualContainer&&e<t},g.prototype.positionItems=function(){var i=this;this.items.forEach(function(e,t){t=(t+i.startFrom)*i.virtual.itemHeight;i.renderer.setStyle(e.element.nativeElement,"transform","translateY("+t+"px")})},g.prototype.firstGroupHeaderInTargetedPage=function(e){return!d.isPresent(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},g.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([p.Input(),n.__metadata("design:type",Array)],g.prototype,"selected",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Number)],g.prototype,"focused",void 0),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"textField",void 0),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"valueField",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Number)],g.prototype,"height",void 0),n.__decorate([p.Input(),n.__metadata("design:type",s.ItemTemplateDirective)],g.prototype,"template",void 0),n.__decorate([p.Input(),n.__metadata("design:type",r.GroupTemplateDirective)],g.prototype,"groupTemplate",void 0),n.__decorate([p.Input(),n.__metadata("design:type",l.FixedGroupTemplateDirective)],g.prototype,"fixedGroupTemplate",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Boolean)],g.prototype,"show",void 0),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"id",void 0),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"optionPrefix",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Boolean)],g.prototype,"multipleSelection",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Object)],g.prototype,"virtual",void 0),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"type",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Object)],g.prototype,"checkboxes",void 0),n.__decorate([p.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],g.prototype,"data",null),n.__decorate([p.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],g.prototype,"size",null),n.__decorate([p.Input(),n.__metadata("design:type",String)],g.prototype,"rounded",void 0),n.__decorate([p.Output(),n.__metadata("design:type",p.EventEmitter)],g.prototype,"onClick",void 0),n.__decorate([p.Output(),n.__metadata("design:type",p.EventEmitter)],g.prototype,"pageChange",void 0),n.__decorate([p.Output(),n.__metadata("design:type",p.EventEmitter)],g.prototype,"listResize",void 0),n.__decorate([p.ViewChildren(o.ListItemDirective),n.__metadata("design:type",p.QueryList)],g.prototype,"items",void 0),n.__decorate([p.ViewChild("content",{static:!0}),n.__metadata("design:type",p.ElementRef)],g.prototype,"content",void 0),n.__decorate([p.ViewChild("list",{static:!0}),n.__metadata("design:type",p.ElementRef)],g.prototype,"list",void 0),n.__decorate([p.ViewChild("virtualContainer",{static:!1}),n.__metadata("design:type",p.ElementRef)],g.prototype,"virtualContainer",void 0),n.__decorate([p.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",[i.DataService,p.ElementRef,u.SelectionService,m.DisabledItemsService,p.ChangeDetectorRef,p.NgZone,p.Renderer2])],g));function g(e,t,i,n,a,o,s){var r=this;this.dataService=e,this.wrapper=t,this.selectionService=i,this.disabledItemsService=n,this.cdr=a,this.zone=o,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 p.EventEmitter,this.pageChange=new p.EventEmitter,this.listResize=new p.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 r.zone.onStable.pipe(h.take(1),h.map(function(){return e}))})).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}t.ListComponent=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterableComponent=function(){}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.NavigationAction||(t.NavigationAction={}))[t.Undefined=0]="Undefined",t[t.Open=1]="Open",t[t.Close=2]="Close",t[t.Enter=3]="Enter",t[t.Tab=4]="Tab",t[t.Esc=5]="Esc",t[t.Delete=6]="Delete",t[t.Backspace=7]="Backspace",t[t.Home=8]="Home",t[t.End=9]="End",t[t.Up=10]="Up",t[t.Down=11]="Down",t[t.Left=12]="Left",t[t.Right=13]="Right"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.GroupTagTemplateDirective=i},function(e,t){e.exports=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.NodeTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.TagTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ValueTemplateDirective=i},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){t=Object.assign({},a,t);return!0===e?t: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=i(3),s=i(3),r=i(2),i=i(4),i=(Object.defineProperty(p.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()},enumerable:!0,configurable:!0}),p.prototype.ngOnInit=function(){var t=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"})},p.prototype.ngOnChanges=function(e){var t;this.input&&(e.userInput||e.suggestedText)&&(t=!e.userInput||!e.userInput.previousValue||this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"",e=this.input.nativeElement.selectionStart,t=t.length===e,this.writeInputValue(this.suggestedText?r.combineStr(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):t?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(e,e),this._previousValue=this.userInput)},p.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},p.prototype.writeInputValue=function(e){o.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},p.prototype.setInputSelection=function(e,t){if(o.isDocumentAvailable()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},p.prototype.handleInput=function(e){e=e.target.value;e!==this.userInput&&(this._previousValue=e,this.valueChange.emit(e))},p.prototype.handleFocus=function(e){this.onFocus.emit(e)},p.prototype.handleBlur=function(e){this.onBlur.emit(e)},p.prototype.handleKeydown=function(e){var t=e.keyCode;-1<[s.Keys.ArrowUp,s.Keys.ArrowDown,s.Keys.ArrowLeft,s.Keys.ArrowRight,s.Keys.Enter,s.Keys.Escape,s.Keys.Delete,s.Keys.Backspace,s.Keys.Home,s.Keys.End].indexOf(t)&&this.onNavigate.emit(e)},p.prototype.focus=function(){o.isDocumentAvailable()&&this.input.nativeElement.focus()},p.prototype.blur=function(){o.isDocumentAvailable()&&this.input.nativeElement.blur()},p.prototype.setInputSize=function(){function e(e){return e?e.length:0}var t=this.input.nativeElement,i=e(this.placeholder),n=e(this.value),n=Math.max(i,n,1);this.renderer.setAttribute(t,"size",n.toString())},n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"listId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"tagListId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"activeDescendant",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"noDataLabel",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],p.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],p.prototype,"tabIndex",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],p.prototype,"popupOpen",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"role",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"userInput",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"suggestedText",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"onBlur",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"onFocus",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"onClick",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.prototype,"onNavigate",void 0),n.__decorate([a.ViewChild("input",{static:!0}),n.__metadata("design:type",a.ElementRef)],p.prototype,"input",void 0),n.__decorate([a.HostBinding("class.k-searchbar"),n.__metadata("design:type",Boolean)],p.prototype,"searchBarClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"placeholder",null),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",[i.LocalizationService,a.Renderer2])],p));function p(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}t.SearchBarComponent=i},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:1642413450,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function p(){return!1}function l(){return P.of([])}function d(){return!1}function u(){return!0}var n,a=i(0),c=i(1),o=i(15),h=i(3),s=i(4),r=i(19),m=i(8),g=i(5),v=i(9),f=i(10),_=i(6),b=i(11),y=i(27),C=i(2),S=i(41),I=i(24),x=i(14),w=i(13),D=i(30),T=i(18),k=i(31),E=i(28),O=i(7),P=i(12),F=i(17),M={animate:!0},A={checkChildren:!0,checkOnClick:!0},s=(n=j,Object.defineProperty(j.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaDescribedBy",{get:function(){return this.tagListId},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaActiveDescendant",{get:function(){return this.focusedTagId},enumerable:!0,configurable:!0}),j.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},j.prototype.handleKeydown=function(e){this.isWrapperActive&&e.keyCode===h.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||this.readonly||this.navigationService.process({originalEvent:e=e})===y.NavigationAction.Open&&e.preventDefault()},Object.defineProperty(j.prototype,"treeview",{get:function(){return this._treeview},set:function(e){var t=this;(this._treeview=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(j.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=C.parseNumber(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.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(j.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(j.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},M,e),this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"checkableSettings",{get:function(){return this._checkableSettings},set:function(e){this._checkableSettings=Object.assign({},A,e)},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"dataItems",{get:function(){var i=this;return this._dataItems||this.value.map(function(e,t){return{dataItem:e,index:null,level:i.valueDepth[t]||0}})},set:function(e){var i=this;this._dataItems=(e||[]).map(function(e,t){return C.hasProps(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:i.valueDepth[t]||0}}),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"focusedTagId",{get:function(){if(!C.isPresent(this.focusedTagIndex)||this.isOpen)return null;var e=this.tags[this.focusedTagIndex];return this.tagPrefix+"-"+C.valueFrom({dataItem:e},this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.prototype,"isOpen",{get:function(){return C.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.prototype,"height",{get:function(){var e=this.popupSettings.height;return C.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.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(j.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isTagFocused",{get:function(){return!this.isOpen&&void 0!==this.focusedTagIndex},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isTreeViewActive",{get:function(){return this.treeview&&this.treeview.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isWrapperActive",{get:function(){return document.activeElement===this.wrapper.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isFilterActive",{get:function(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isCheckAllActive",{get:function(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement},enumerable:!0,configurable:!0}),j.prototype.ngOnInit=function(){var t=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(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()})),this.setComponentClasses()},j.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},j.prototype.ngOnChanges=function(e){var i=this;h.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState(),h.anyChanged(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map(function(e,t){return a.__assign({},e,{level:i.valueDepth[t]||0})}):this.dataItems=this.value)},j.prototype.ngAfterContentChecked=function(){this.verifySettings()},j.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||C.isPresent(this.value)&&0!==this.value.length)},j.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},j.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},j.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),!C.isPresent(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e))},j.prototype.reset=function(){this.value=[],this.dataItems=[],this.valueDepth=[]},j.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=C.isPresent(t)?t:!C.isPresent(i.popupRef);i.destroyPopup(),e&&i.createPopup()})},j.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,h.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus&&this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus())))},j.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.wrapper.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,this.togglePopup(!1),(h.hasObservers(this.onBlur)||C.isUntouched(this.wrapper.nativeElement))&&this._zone.run(function(){t.onBlur.emit(),t.onTouchedCallback()}))},j.prototype.handleNodeClick=function(e){this.isFocused||(e=e.originalEvent.target.parentElement.parentElement,this.lastNodeOnFocus=e,this.focus())},j.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())},j.prototype.messageFor=function(e){return this.localization.get(e)},j.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)},j.prototype.handleRemoveTag=function(e){var i=this,t=e.tag,n=e.index;this.disabled||this.readonly||(e=new S.RemoveTagEvent(t),this.removeTag.emit(e),e.isDefaultPrevented()||(t instanceof Array?(this.dataItems=this.dataItems.filter(function(e,t){return t<i.showAfter||i.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return t<i.showAfter||i.disabledIndices.has(t)})):(this.dataItems=this.dataItems.filter(function(e,t){return t!==n||i.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return t!==n||i.disabledIndices.has(t)})),this.updateValue(this.dataItems),this.isFocused||this.focus()))},j.prototype.handleTagMapperChange=function(e){this.showAfter=C.parseNumber(e),this.setTags()},j.prototype.clearAll=function(e){var i=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter(function(e,t){return i.disabledIndices.has(t)}),this.dataItems=this.dataItems.filter(function(e,t){return i.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return i.disabledIndices.has(t)}),this.emitValueChange(this.value)},j.prototype.writeValue=function(e){this.value=e||[],this.valuePrimitive||(this.dataItems=this.value)},j.prototype.registerOnChange=function(e){this.onChangeCallback=e},j.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},j.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},j.prototype.handleFilterInputChange=function(e){var i=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every(function(e,t){return!i.isVisible(e,String(t))})},Object.defineProperty(j.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(j.prototype,"checkAllCheckboxClasses",{get:function(){return""+(this.size?C.getSizeClass("checkbox",this.size):"")},enumerable:!0,configurable:!0}),j.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},j.prototype.verifySettings=function(){if(c.isDevMode()){if(!C.isPresent(this.valueField)||!C.isPresent(this.textField))throw new Error(I.MultiSelectTreeMessages.textAndValue);if(!C.isArray(this.value))throw new Error(I.MultiSelectTreeMessages.array);if(0<this.value.length){if(this.valuePrimitive&&this.value.some(function(e){return C.isObject(e)}))throw new Error(I.MultiSelectTreeMessages.primitive);var e=this.dataItems.every(function(e){return C.isObject(e.dataItem)});if(this.valuePrimitive&&!C.isArray(this.dataItems))throw new Error(I.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&!e)throw new Error(I.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error(I.MultiSelectTreeMessages.dataItemsLength);if(!this.valuePrimitive&&!C.isObjectArray(this.value))throw new Error(I.MultiSelectTreeMessages.object);if((C.isArray(this.valueField)||C.isArray(this.textField))&&!C.isArray(this.valueDepth))throw new Error(I.MultiSelectTreeMessages.valueDepth);if((C.isArray(this.valueField)||C.isArray(this.textField))&&0===this.valueDepth.length)throw new Error(I.MultiSelectTreeMessages.valueDepth);if((C.isArray(this.valueField)||C.isArray(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error(I.MultiSelectTreeMessages.valueDepthLength)}}},j.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},j.prototype.triggerPopupEvents=function(e){var t=new b.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},j.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:t,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});var i=this.popupRef.popupElement,n=this.width,t=n.min,n=n.max;i.style.minWidth=t,i.style.width=n,i.style.height=this.height,this.renderer.setAttribute(i,"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()})},j.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,h.hasObservers(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},j.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe(function(){return e.togglePopup(!0)}),this.navigationService.enter.pipe(F.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(function(){return e.togglePopup(!0)}),P.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(F.filter(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleRightKey:this.handleLeftKey).bind(this)),this.navigationService.right.pipe(F.filter(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleLeftKey:this.handleRightKey).bind(this)),this.navigationService.home.pipe(F.filter(function(){return!e.isOpen})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(F.filter(function(){return!e.isOpen})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(F.filter(function(){return e.isTagFocused})).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(F.filter(function(){return e.isTagFocused})).subscribe(this.handleDelete.bind(this)))},j.prototype.subscribeFocusEvents=function(){var e=this;h.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)}))},j.prototype.unSubscribeFocusEvents=function(){h.isDocumentAvailable()&&(document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0))},j.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},j.prototype.handleTabKey=function(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())},j.prototype.handleUpKey=function(e){this.treeview&&(e.originalEvent.preventDefault(),!this.isWrapperActive)&&(e="0"===this.treeview.navigationService.activeIndex,this.filterable&&this.isFilterActive?this.focus():this.checkAll&&!this.isCheckAllActive&&e?this.checkAllInput.nativeElement.focus():(this.isCheckAllActive||e)&&(this.filterable?this.filterInput.nativeElement:this).focus())},j.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)},j.prototype.handleRightKey=function(e){e.originalEvent.preventDefault();e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e?this.focusedTagIndex++:this.focusedTagIndex||(this.focusedTagIndex=0)},j.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--},j.prototype.handleEnd=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=this.tags.length-1},j.prototype.handleHome=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=0},j.prototype.handleBackspace=function(){var e,t;void 0!==this.focusedTagIndex?this.handleDelete():(e=this.tags[this.tags.length-1],t=this.tags.length-1,this.handleRemoveTag({tag:e,index:t}))},j.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)},j.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.unSubscribeFocusEvents()},j.prototype.removeTreeViewFromTabOrder=function(){var t=this;this.treeview.element.nativeElement.querySelectorAll("li").forEach(function(e){"0"===e.getAttribute("tabindex")&&(t.lastNodeOnFocus=e,t.lastNodeOnFocus.setAttribute("tabindex","-1"))})},j.prototype.setState=function(){C.isPresent(this.dataItems)&&C.isPresent(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()},j.prototype.setTags=function(){var e=this.dataItems.map(function(e){return e.dataItem});this.tags=this.tagMapper(e),this.disabledIndices=this.disabledItemsMapper()},j.prototype.updateValue=function(e){var t=this,e=this.valuePrimitive?e.map(function(e){return C.valueFrom(e,t.valueField)}):e.map(function(e){return e.dataItem});this.value=e,this.emitValueChange(this.value)},j.prototype.disabledItemsMapper=function(){var n=this;return new Set(this.dataItems.reduce(function(e,t,i){return n.itemDisabled(t.dataItem,t.index)&&e.push(i),e},[]))},j.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))},a.__decorate([c.HostBinding("class.k-dropdowntree"),c.HostBinding("class.k-input"),a.__metadata("design:type",Boolean)],j.prototype,"hostClasses",void 0),a.__decorate([c.HostBinding("class.k-disabled"),c.HostBinding("attr.aria-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],j.prototype,"isDisabled",null),a.__decorate([c.HostBinding("class.k-loading"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],j.prototype,"isLoading",null),a.__decorate([c.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],j.prototype,"id",null),a.__decorate([c.HostBinding("attr.dir"),a.__metadata("design:type",String)],j.prototype,"direction",void 0),a.__decorate([c.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],j.prototype,"hostTabIndex",null),a.__decorate([c.HostBinding("attr.role"),a.__metadata("design:type",String)],j.prototype,"role",void 0),a.__decorate([c.HostBinding("attr.aria-haspopup"),a.__metadata("design:type",String)],j.prototype,"ariaHasPopup",void 0),a.__decorate([c.HostBinding("attr.readonly"),c.HostBinding("attr.aria-readonly"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],j.prototype,"isReadonly",null),a.__decorate([c.HostBinding("attr.aria-describedby"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],j.prototype,"ariaDescribedBy",null),a.__decorate([c.HostBinding("attr.aria-activedescendant"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],j.prototype,"ariaActiveDescendant",null),a.__decorate([c.HostListener("click"),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],j.prototype,"handleClick",null),a.__decorate([c.HostListener("keydown",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],j.prototype,"handleKeydown",null),a.__decorate([c.ContentChild(x.HeaderTemplateDirective,{static:!1}),a.__metadata("design:type",x.HeaderTemplateDirective)],j.prototype,"headerTemplate",void 0),a.__decorate([c.ContentChild(w.FooterTemplateDirective,{static:!1}),a.__metadata("design:type",w.FooterTemplateDirective)],j.prototype,"footerTemplate",void 0),a.__decorate([c.ContentChild(D.NodeTemplateDirective,{static:!1}),a.__metadata("design:type",D.NodeTemplateDirective)],j.prototype,"nodeTemplate",void 0),a.__decorate([c.ContentChild(T.NoDataTemplateDirective,{static:!1}),a.__metadata("design:type",T.NoDataTemplateDirective)],j.prototype,"noDataTemplate",void 0),a.__decorate([c.ContentChild(k.TagTemplateDirective,{static:!1}),a.__metadata("design:type",k.TagTemplateDirective)],j.prototype,"tagTemplate",void 0),a.__decorate([c.ContentChild(E.GroupTagTemplateDirective,{static:!1}),a.__metadata("design:type",E.GroupTagTemplateDirective)],j.prototype,"groupTagTemplate",void 0),a.__decorate([c.ViewChild("popupTemplate",{static:!0}),a.__metadata("design:type",c.TemplateRef)],j.prototype,"popupTemplate",void 0),a.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),a.__metadata("design:type",c.ViewContainerRef)],j.prototype,"container",void 0),a.__decorate([c.ViewChild("treeview",{static:!1}),a.__metadata("design:type",g.TreeViewComponent),a.__metadata("design:paramtypes",[g.TreeViewComponent])],j.prototype,"treeview",null),a.__decorate([c.ViewChild("filterInput",{static:!1}),a.__metadata("design:type",c.ElementRef)],j.prototype,"filterInput",void 0),a.__decorate([c.ViewChild("checkAllInput",{static:!1}),a.__metadata("design:type",c.ElementRef)],j.prototype,"checkAllInput",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],j.prototype,"tabindex",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],j.prototype,"size",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],j.prototype,"rounded",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],j.prototype,"fillMode",null),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],j.prototype,"popupSettings",null),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],j.prototype,"checkableSettings",null),a.__decorate([c.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],j.prototype,"data",null),a.__decorate([c.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],j.prototype,"value",null),a.__decorate([c.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],j.prototype,"dataItems",null),a.__decorate([c.Input(),a.__metadata("design:type",Object)],j.prototype,"textField",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Object)],j.prototype,"valueField",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Array)],j.prototype,"valueDepth",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"loading",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],j.prototype,"placeholder",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Number)],j.prototype,"listHeight",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"disabled",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"readonly",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"valuePrimitive",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"loadOnDemand",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],j.prototype,"focusableId",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"clearButton",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"filterable",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"checkAll",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],j.prototype,"hasChildren",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],j.prototype,"fetchChildren",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],j.prototype,"isNodeExpanded",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],j.prototype,"isNodeVisible",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],j.prototype,"itemDisabled",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Object)],j.prototype,"tagMapper",void 0),a.__decorate([c.Output("focus"),a.__metadata("design:type",c.EventEmitter)],j.prototype,"onFocus",void 0),a.__decorate([c.Output("blur"),a.__metadata("design:type",c.EventEmitter)],j.prototype,"onBlur",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"open",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"opened",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"close",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"closed",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"nodeExpand",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"nodeCollapse",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"valueChange",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"removeTag",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"filterChange",void 0),n=a.__decorate([c.Component({exportAs:"kendoMultiSelectTree",providers:[s.LocalizationService,r.NavigationService,v.DataService,f.DisabledItemsService,_.SelectionService,{provide:s.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return n})},{provide:g.DataBoundComponent,useExisting:c.forwardRef(function(){return n})},{provide:g.ExpandableComponent,useExisting:c.forwardRef(function(){return n})},{provide:h.KendoInput,useExisting:c.forwardRef(function(){return n})}],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 '}),a.__param(7,c.Optional()),a.__param(7,c.Inject(O.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[c.ElementRef,m.PopupService,c.Renderer2,r.NavigationService,c.NgZone,s.LocalizationService,c.ChangeDetectorRef,Boolean])],j));function j(e,t,i,n,a,o,s,r){this.wrapper=e,this.popupService=t,this.renderer=i,this.navigationService=n,this._zone=a,this.localization=o,this.cdr=s,this.touchEnabled=r,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-"+h.guid(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=p,this.fetchChildren=l,this.isNodeVisible=u,this.itemDisabled=d,this.tagMapper=function(e){return e||[]},this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.nodeExpand=new c.EventEmitter,this.nodeCollapse=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.removeTag=new c.EventEmitter,this.filterChange=new c.EventEmitter,this.filterStateChange=new c.EventEmitter,this.checkedItems=[],this.checkBy=function(e){return e},this.showAfter=0,this.allNodesHidden=!1,this.tagListId=h.guid(),this.tagPrefix="tag-"+h.guid(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=M,this._checkableSettings=A,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=C.noop,this.onChangeCallback=C.noop,this.direction=o.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeFocusEvents()}t.MultiSelectTreeComponent=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ColumnHeaderTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ColumnCellTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(39),i=i(38),a=(n.__decorate([a.ContentChild(o.ColumnCellTemplateDirective,{static:!1}),n.__metadata("design:type",o.ColumnCellTemplateDirective)],s.prototype,"cellTemplate",void 0),n.__decorate([a.ContentChild(i.ColumnHeaderTemplateDirective,{static:!1}),n.__metadata("design:type",i.ColumnHeaderTemplateDirective)],s.prototype,"headerTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],s.prototype,"field",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],s.prototype,"title",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],s.prototype,"width",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],s.prototype,"hidden",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"style",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"headerStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"class",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"headerClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],s.prototype,"media",void 0),n.__decorate([a.Component({selector:"kendo-combobox-column",template:""})],s));function s(){this.hidden=!1,this.matchesMedia=!0}t.ComboBoxColumnComponent=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),a=(n=i(11).PreventableEvent,a.__extends(o,n),o);function o(e){var t=n.call(this)||this;return t.dataItem=e,t}t.RemoveTagEvent=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoMultiSelectCustomItemTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.CustomItemTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),h=i(2),o=i(34),m=i(1),g=i(12),v=i(17),s=i(3),r=i(15),f=i(36),_=i(35),p=i(6),l=i(19),d=i(27),u=i(10),c=i(3),b=i(22),y=i(42),C=i(21),S=i(20),I=i(14),x=i(13),w=i(31),D=i(28),T=i(18),k=i(24),E=i(11),O=i(41),P=i(4),F=i(8),M=i(26),A=i(7),j=i(9),B=i(25),z=i(76),R=i(33),r={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:m.forwardRef(function(){return N})},N=((n=L).prototype.focusItemAt=function(e){var t=(this.allowCustom?-1:0)<=0&&e<this.data.length;h.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},L.prototype.focus=function(){this.disabled||this.searchbar.focus()},L.prototype.onSearchBarFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,s.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},L.prototype.blur=function(){this.disabled||this.searchbar.blur()},L.prototype.onSearchBarBlur=function(){var e=this;this.isFocused&&(this.isFocused=!1,s.hasObservers(this.onBlur)||s.hasObservers(this.filterChange)||s.hasObservers(this.close)||h.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()))},L.prototype.onMouseDown=function(e){e.preventDefault()},L.prototype.onResize=function(){var e,t,i;this._open&&(e=this.popupRef.popupElement,t=(i=this.width).min,i=i.max,e.style.minWidth=t,e.style.width=i)},Object.defineProperty(L.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(L.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(L.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(L.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,h.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,h.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,h.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,h.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,h.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,h.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"placeholder",{get:function(){return this.selectedDataItems.length?"":this._placeholder},set:function(e){this._placeholder=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(L.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(L.prototype,"checkboxes",{get:function(){return this._checkboxes},set:function(e){this._checkboxes=z.normalizeCheckboxesSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=R.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"valuePrimitive",{get:function(){return h.isPresent(this._valuePrimitive)?this._valuePrimitive:!h.isPresent(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),L.prototype.hostMousedown=function(e){var t=this.searchbar.input.nativeElement;0===e.button&&(this.isFocused&&this.isOpen&&e.target===t||((!this.touchEnabled||this.touchEnabled&&"SPAN"!==e.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),e.preventDefault()))},Object.defineProperty(L.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(L.prototype,"customItemSizeClass",{get:function(){return""+(this.size?h.getSizeClass("list",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"width",{get:function(){var e=0;s.isDocumentAvailable()&&(e=this.wrapper.nativeElement.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"height",{get:function(){var e=this.popupSettings.height;return h.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"activeDescendant",{get:function(){var e,t,i=this.focusedTagIndex,n=this.selectionService.focused;if(h.isPresent(i)&&!this.isOpen)t=this.tags[i],e=this.tagPrefix;else{if(!h.isPresent(n)||-1===n||!this.isOpen)return null;t=this.dataService.itemAt(n),e=this.optionPrefix}return e+"-"+h.getter(t,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),L.prototype.verifySettings=function(){if(m.isDevMode()&&0!==this.value.length){if(!h.isArray(this.value))throw new Error(k.MultiselectMessages.array);if(!0===this.valuePrimitive&&h.isObjectArray(this.value))throw new Error(k.MultiselectMessages.primitive);if(!1===this.valuePrimitive&&!h.isObjectArray(this.value))throw new Error(k.MultiselectMessages.object);if(!h.isPresent(this.valueField)!=!h.isPresent(this.textField))throw new Error(k.MultiselectMessages.textAndValue)}},L.prototype.change=function(e){var t,i,n=this;!h.isPresent(e.added)&&!h.isPresent(e.removed)||-1!==e.added&&-1!==e.removed?(h.isPresent(e.added)&&(t=this.dataService.itemAt(e.added),t=this.valuePrimitive&&h.isPresent(t)&&h.isPresent(t[this.valueField])?t[this.valueField]:t,this.value=this.value.concat([t])),h.isPresent(e.removed)&&(i=this.dataService.itemAt(e.removed),this.value=this.value.filter(function(e){return h.getter(e,n.valueField)!==h.getter(i,n.valueField)}),this.selectionService.focused=e.removed,this.cdr.detectChanges()),this.emitValueChange()):this.addCustomValue(this.text)},L.prototype.setState=function(e){var i=this,t=this.dataService.data;this.dataService.grouped&&(t=t.filter(function(e){return!e.header}).map(function(e){return e.value}));var n=h.selectedIndices(this.value,t,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&&(0<this.dataService.itemsCount?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(h.isObjectArray(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=h.resolveAllValues(e,t,this.valueField)),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map(function(t){var e=i.selectedDataItems.find(function(e){return h.getter(e,i.valueField)===h.getter(t,i.valueField)});return h.isPresent(e)?e:i.resolveDataItemFromTags(t)}).filter(function(e){return h.isPresent(e)})),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()},L.prototype.handleFilter=function(e){(this.text=e)&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()},L.prototype.pageChange=function(e){this.virtual.skip=e.skip},L.prototype.clearFilter=function(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()},L.prototype.handleNavigate=function(e){var t=this.text&&e.keyCode!==c.Keys.ArrowDown&&e.keyCode!==c.Keys.ArrowUp,i=this.text&&e.keyCode===c.Keys.Enter||e.keyCode===c.Keys.Escape;!this.text&&e.keyCode===c.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||t&&!i||(t=e,i=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,(t=this.navigationService.process({current:i,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:t}))!==d.NavigationAction.Undefined&&(t===d.NavigationAction.Enter&&this.isOpen||t!==d.NavigationAction.Enter)&&e.preventDefault())},L.prototype.handleRemoveTag=function(e){var t=e.tag,e=new O.RemoveTagEvent(t);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(e),e.isDefaultPrevented()||(t instanceof Array?this.removeGroupTag(t):this.removeSingleTag(t),this.cdr.detectChanges()))},L.prototype.clearAll=function(e){var i=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter();var n=this.selectionService.selected;this.value=this.value.filter(function(e,t){return i.disabledItemsService.isIndexDisabled(n[t])}),this.emitValueChange()},L.prototype.addCustomValue=function(e){this.customValueSubject.next(e)},L.prototype.ngAfterContentChecked=function(){this.verifySettings()},L.prototype.ngDoCheck=function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1},L.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages(),this.setState(this.value),this.setComponentClasses(),this.initialized=!0},L.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),s.isChanged("valueNormalizer",e)&&this.createCustomValueStream(),s.anyChanged(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)},L.prototype.ngAfterViewInit=function(){this.searchbar.setInputSize()},L.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout)},L.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=h.isPresent(t)?t:!i._open;i._toggle(e),i.cdr.markForCheck()})},Object.defineProperty(L.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),L.prototype.reset=function(){this.text="",this.value=[]},L.prototype.writeValue=function(e){this.value=e||[]},L.prototype.registerOnChange=function(e){this.onChangeCallback=e},L.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},L.prototype.setDisabledState=function(e){this.disabled=e},L.prototype.onTagMapperChange=function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},Object.defineProperty(L.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}),L.prototype.subscribeEvents=function(){var e,t,i,n=this;s.isDocumentAvailable()&&(e=function(){return n.isOpen},t=function(){return!n.isOpen},i=function(){return!n.isOpen&&void 0!==n.focusedTagIndex},[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(v.filter(e)).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(v.filter(e)).subscribe(function(e){return n.handleUp(e.index)}),this.navigationService.home.pipe(v.filter(function(){return t})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(v.filter(function(){return t})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(v.filter(i)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(v.filter(i)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe(("rtl"===this.direction?this.handleRightKey:this.handleLeftKey).bind(this)),this.navigationService.right.subscribe(("rtl"===this.direction?this.handleLeftKey:this.handleRightKey).bind(this)),this.navigationService.down.subscribe(function(e){return n.handleDownKey(e.index)})].forEach(function(e){return n.observableSubscriptions.add(e)}))},L.prototype.subscribeTouchEvents=function(){var t=this;s.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;!t.isFocused&&!t.isOpen||h.inDropDown(t.wrapper,e,t.popupRef)||t._zone.run(function(){t.blur(),t.isOpen&&t.togglePopup(!1)})})})},L.prototype.unsubscribeEvents=function(){s.isDocumentAvailable()&&(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},L.prototype.removeGroupTag=function(e){var i=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter(function(e){return!e.header}).map(function(e){return e.value}));var a=new Set(e.map(function(e){return h.getter(e,i.valueField)}));this.value=this.value.filter(function(e){var t=h.selectedIndices([e],n,i.valueField)[0],t=i.disabledItemsService.isIndexDisabled(t);return!a.has(h.getter(e,i.valueField))||t}),this.emitValueChange()},L.prototype.removeSingleTag=function(t){var i=this,e=this.dataService.data;this.dataService.grouped&&(e=e.filter(function(e){return!e.header}).map(function(e){return e.value}));e=h.selectedIndices([t],e,this.valueField)[0];this.disabledItemsService.isIndexDisabled(e)||(h.isNumber(e)?(this.selectionService.unselect(e),this.selectionService.focused=e,this.togglePopup(!1)):(this.value=this.value.filter(function(e){return h.getter(e,i.valueField)!==h.getter(t,i.valueField)}),this.emitValueChange()))},L.prototype.disabledItemsMapper=function(){var n=this,a=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(e,t,i){return n.disabledItemsService.isIndexDisabled(a[i])&&e.push(i),e},[]))},L.prototype.createCustomValueStream=function(){var a=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(v.tap(function(){a.loading=!0,a.disabled=!0,a.cdr.detectChanges()}),this.valueNormalizer,v.catchError(function(){return a.loading=!1,a.disabled=!1,a.autoClose&&a.togglePopup(!1),!a.autoClose&&a.filterable||a.clearFilter(),a.nextTick(function(){a.searchbar.focus()}),a.createCustomValueStream(),g.of(null)})).subscribe(function(e){var t,i,n;a.loading=!1,a.disabled=!1,h.isPresent(e)&&(t=a.valuePrimitive?h.getter(e,a.valueField):e,n=-1===(i=a.dataService.indexOf(t)),-1===a.value.indexOf(t)?(a.tags=a.tagMapper(a.selectedDataItems.concat([e])),n?a.value=a.value.concat([t]):a.selectionService.add(i)):!n&&a.selectionService.isSelected(i)?(a.selectionService.unselect(i),a.selectionService.focused=i):a.value=a.value.filter(function(e){return h.getter(e,a.valueField)!==t}),a.emitValueChange()),a.autoClose&&a.togglePopup(!1),!a.autoClose&&a.filterable||a.clearFilter(),a.nextTick(function(){a.searchbar.focus()})})},L.prototype.handleItemChange=function(e){this.change(e),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()},L.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)},L.prototype.handleClose=function(){this.closePopup(),this.searchbar.focus()},L.prototype.handleEnd=function(){this.focusedTagIndex=this.tags.length-1},L.prototype.handleHome=function(){this.focusedTagIndex=0},L.prototype.handleUp=function(e){this.selectionService.focused=e},L.prototype.handleBackspace=function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())},L.prototype.handleDelete=function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},L.prototype.handleLeftKey=function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},L.prototype.handleDownKey=function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()},L.prototype.handleRightKey=function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e&&this.focusedTagIndex++},L.prototype.findIndex=function(t,e){var i,n=this;void 0===e&&(e=0),t=t.toLowerCase();e=this.dataService.findIndex(function(e){return i=n.dataService.grouped?h.getter(e.value,n.textField):h.getter(e,n.textField),i=h.isPresent(i)?i.toString().toLowerCase():"",t&&i.startsWith(t)},e);return this.disabledItemsService.isIndexDisabled(e)?e+1>this.dataService.itemsCount?-1:this.findIndex(t,e+1):e},L.prototype.searchTextAndFocus=function(e){e=this.findIndex(e);this.selectionService.focused=e},L.prototype.closePopup=function(){this.togglePopup(!1),this.focusedTagIndex=void 0},L.prototype.openPopup=function(){this.togglePopup(!0),this.focusedTagIndex=void 0},L.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||this._toggle(e)},L.prototype.triggerPopupEvents=function(e){var t=new E.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},L.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},L.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},L.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:t,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});var i=this.popupRef.popupElement,n=this.width,t=n.min,n=n.max;i.addEventListener("mousedown",this.popupMouseDownHandler),i.style.minWidth=t,i.style.width=n,i.style.height=this.height,i.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)})},L.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)},L.prototype.resolveDataItemFromTags=function(t){var i=this;if(this.tags&&this.tags.length&&h.isPresent(t))return this.tags.reduce(function(e,t){t=h.isArray(t)?t:[t];return e.push.apply(e,t),e},[]).find(function(e){return h.getter(e,i.valueField)===h.getter(t,i.valueField)})},L.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},L.prototype.nextTick=function(e){var t=this;this._zone.runOutsideAngular(function(){setTimeout(function(){return t._zone.run(e)})})},L.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()})})},L.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,h.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,h.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,h.getFillModeClass("input",this.fillMode))},a.__decorate([m.Input(),a.__metadata("design:type",String)],L.prototype,"focusableId",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"autoClose",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"loading",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],L.prototype,"data",null),a.__decorate([m.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],L.prototype,"value",null),a.__decorate([m.Input(),a.__metadata("design:type",String)],L.prototype,"valueField",void 0),a.__decorate([m.Input(),a.__metadata("design:type",String)],L.prototype,"textField",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Number)],L.prototype,"tabindex",void 0),a.__decorate([m.Input("tabIndex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],L.prototype,"tabIndex",null),a.__decorate([m.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],L.prototype,"size",null),a.__decorate([m.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],L.prototype,"rounded",null),a.__decorate([m.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],L.prototype,"fillMode",null),a.__decorate([m.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],L.prototype,"placeholder",null),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"disabled",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Function])],L.prototype,"itemDisabled",null),a.__decorate([m.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],L.prototype,"checkboxes",null),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"readonly",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"filterable",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],L.prototype,"virtual",null),a.__decorate([m.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],L.prototype,"popupSettings",null),a.__decorate([m.Input(),a.__metadata("design:type",Number)],L.prototype,"listHeight",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[Boolean])],L.prototype,"valuePrimitive",null),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"clearButton",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Object)],L.prototype,"tagMapper",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"allowCustom",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Function)],L.prototype,"valueNormalizer",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"filterChange",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"valueChange",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"open",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"opened",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"close",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"closed",void 0),a.__decorate([m.Output("focus"),a.__metadata("design:type",m.EventEmitter)],L.prototype,"onFocus",void 0),a.__decorate([m.Output("blur"),a.__metadata("design:type",m.EventEmitter)],L.prototype,"onBlur",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"removeTag",void 0),a.__decorate([m.ViewChild("container",{read:m.ViewContainerRef,static:!0}),a.__metadata("design:type",m.ViewContainerRef)],L.prototype,"container",void 0),a.__decorate([m.ViewChild(o.SearchBarComponent,{static:!0}),a.__metadata("design:type",o.SearchBarComponent)],L.prototype,"searchbar",void 0),a.__decorate([m.ViewChild("popupTemplate",{static:!0}),a.__metadata("design:type",m.TemplateRef)],L.prototype,"popupTemplate",void 0),a.__decorate([m.ViewChild("optionsList",{static:!1}),a.__metadata("design:type",B.ListComponent)],L.prototype,"optionsList",void 0),a.__decorate([m.ContentChild(b.ItemTemplateDirective,{static:!1}),a.__metadata("design:type",b.ItemTemplateDirective)],L.prototype,"template",void 0),a.__decorate([m.ContentChild(y.CustomItemTemplateDirective,{static:!1}),a.__metadata("design:type",y.CustomItemTemplateDirective)],L.prototype,"customItemTemplate",void 0),a.__decorate([m.ContentChild(C.GroupTemplateDirective,{static:!1}),a.__metadata("design:type",C.GroupTemplateDirective)],L.prototype,"groupTemplate",void 0),a.__decorate([m.ContentChild(S.FixedGroupTemplateDirective,{static:!1}),a.__metadata("design:type",S.FixedGroupTemplateDirective)],L.prototype,"fixedGroupTemplate",void 0),a.__decorate([m.ContentChild(I.HeaderTemplateDirective,{static:!1}),a.__metadata("design:type",I.HeaderTemplateDirective)],L.prototype,"headerTemplate",void 0),a.__decorate([m.ContentChild(x.FooterTemplateDirective,{static:!1}),a.__metadata("design:type",x.FooterTemplateDirective)],L.prototype,"footerTemplate",void 0),a.__decorate([m.ContentChild(w.TagTemplateDirective,{static:!1}),a.__metadata("design:type",w.TagTemplateDirective)],L.prototype,"tagTemplate",void 0),a.__decorate([m.ContentChild(D.GroupTagTemplateDirective,{static:!1}),a.__metadata("design:type",D.GroupTagTemplateDirective)],L.prototype,"groupTagTemplate",void 0),a.__decorate([m.ContentChild(T.NoDataTemplateDirective,{static:!1}),a.__metadata("design:type",T.NoDataTemplateDirective)],L.prototype,"noDataTemplate",void 0),a.__decorate([m.HostBinding("class.k-multiselect"),m.HostBinding("class.k-input"),a.__metadata("design:type",Boolean)],L.prototype,"hostClasses",void 0),a.__decorate([m.HostBinding("attr.dir"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],L.prototype,"dir",null),a.__decorate([m.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],L.prototype,"disabledClass",null),a.__decorate([m.HostBinding("class.k-loading"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],L.prototype,"isLoading",null),a.__decorate([m.HostListener("mousedown",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],L.prototype,"hostMousedown",null),n=a.__decorate([m.Component({exportAs:"kendoMultiSelect",providers:[r,j.DataService,p.SelectionService,l.NavigationService,u.DisabledItemsService,P.LocalizationService,{provide:P.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:M.FilterableComponent,useExisting:m.forwardRef(function(){return n})},{provide:s.KendoInput,useExisting:m.forwardRef(function(){return n})}],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 '}),a.__param(11,m.Optional()),a.__param(11,m.Inject(A.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[m.ElementRef,P.LocalizationService,F.PopupService,j.DataService,p.SelectionService,l.NavigationService,u.DisabledItemsService,m.ChangeDetectorRef,m.KeyValueDiffers,m.Renderer2,m.NgZone,Boolean])],L));function L(e,t,i,n,a,o,s,r,p,l,d,u){var c=this;this.wrapper=e,this.localization=t,this.popupService=i,this.dataService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this.cdr=r,this.differs=p,this.renderer=l,this._zone=d,this.touchEnabled=u,this.listBoxId=h.guid(),this.tagListId=h.guid(),this.tagPrefix="tag-"+h.guid(),this.optionPrefix="option-"+h.guid(),this.focusedTagIndex=void 0,this.focusableId="k-"+h.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(v.map(function(t){function e(e){return"string"==typeof e&&t.toLowerCase()===e.toLowerCase()}var i=c.value.find(e);return i||c.dataService.find(e)||t}))},this.filterChange=new m.EventEmitter,this.valueChange=new m.EventEmitter,this.open=new m.EventEmitter,this.opened=new m.EventEmitter,this.close=new m.EventEmitter,this.closed=new m.EventEmitter,this.onFocus=new m.EventEmitter,this.onBlur=new m.EventEmitter,this.removeTag=new m.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 g.Subject,this.observableSubscriptions=new g.Subscription,f.validatePackage(_.packageMetadata),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}t.MultiSelectComponent=N},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),u=i(1),a=i(15),c=i(36),h=i(35),o=i(34),s=i(22),r=i(14),p=i(13),l=i(21),d=i(20),m=i(18),g=i(6),v=i(19),f=i(10),_=i(12),b=i(17),y=i(3),C=i(2),S=i(27),I=i(3),x=i(11),w=i(4),D=i(8),T=i(7),k=i(24),E=i(26),O=i(9),P=i(25),F=i(33),M=i(29);t.COMBOBOX_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return j})};var A,j=(A=B,Object.defineProperty(B.prototype,"text",{get:function(){return this._text},set:function(e){this._text=C.isPresent(e)?e.toString():""},enumerable:!0,configurable:!0}),B.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(B.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(B.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.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(),this._filtering&&(e=0<this.text.length&&0<this.dataService.itemsCount?this.firstFocusableIndex(0):-1,this.selectionService.focused=e),this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=C.getter(this.dataService.itemAt(0),this.textField))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.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(B.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(B.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(B.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.prototype,"popupHeight",{get:function(){var e=this.popupSettings.height;return C.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),B.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages(),this.setComponentClasses()},B.prototype.createValueStream=function(){var n=this,e=this.valueSubject.pipe(b.filter(function(e){var t=C.getter(n.value,n.valueField),i=C.getter(e,n.valueField),e=C.getter(e,n.textField);return!(!C.isPresent(n.value)&&!C.isPresent(i)||(C.isPresent(e)&&(e=e.toString()),t===i&&n.text===e&&(n.clearFilter(),1)))}),b.map(function(e){var t=C.getter(e,n.valueField);return{dataItem:e,text:C.getter(e,n.textField),value:n.valuePrimitive?t:e}})),t=b.partition(function(){return n.allowCustom})(this.customValueSubject.pipe(b.throttleTime(300))),i=t[0].pipe(b.tap(function(){n.loading=!0,n.disabled=!0,n.cdr.detectChanges()}),b.filter(function(){var e=n.text!==C.getter(n.value,n.valueField);return n.loading=e,(n.disabled=e)||n.clearFilter(),e}),this.valueNormalizer,b.map(function(e){return{custom:!0,dataItem:e,text:n.text,value:e}})),a=t[1].pipe(b.map(function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}})),t=this.clearValueSubject.pipe(b.map(function(){return{dataItem:void 0,text:void 0,value:void 0}}));this.valueSubscription&&this.valueSubscription.unsubscribe();t=_.merge(e,i,a,t);this.valueSubscription=t.pipe(b.catchError(function(){var e=void 0!==C.getter(n.dataItem,n.valueField);return n.dataItem=void 0,n.value=void 0,n.text=void 0,n.loading=!1,n.disabled=!1,e&&n.selectionChange.emit(void 0),n.emitValueChange(),n.createValueStream(),_.of(null)})).subscribe(function(e){var t=C.getter(n.dataItem,n.valueField)!==C.getter(e.dataItem,n.valueField);n.dataItem=e.dataItem,n.value=e.value,n.text=e.text,n.loading=!1,n.disabled=!1,n.clearFilter(),e.custom&&(n.selectionService.focused=-1),t&&(e=e.custom?void 0:n.dataItem,n.selectionChange.emit(e)),n.emitValueChange()})},B.prototype.attachStreams=function(){var i=this;y.isDocumentAvailable()&&(this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;i.direction=e?"rtl":"ltr",i.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(e){return i.navigate(e.index)})),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(function(){return i.togglePopup(!1)})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(b.tap(function(e){i.isOpen&&e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(_.merge(this.selectionService.onChange,this.selectionService.onSelect.pipe(b.filter(function(e){return!i.isOpen}))).pipe(b.tap(function(e){i._filtering=!1,i.togglePopup(!1)}),b.map(function(e){return i.dataService.itemAt(e.indices[0])})).subscribe(function(e){i.change(e)})),this.subs.add(this.selectionService.onSelect.pipe(b.filter(function(e){return i.isOpen}),b.tap(function(e){return i._filtering=!1}),b.map(function(e){return i.dataService.itemAt(e.indices[0])})).subscribe(function(e){var t=C.getter(e,i.valueField)!==C.getter(i.dataItem,i.valueField);i.updateState({dataItem:e}),t&&i.selectionChange.emit(e)})))},B.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()},B.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()},B.prototype.ngAfterContentChecked=function(){this.verifySettings()},B.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;C.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},B.prototype.focus=function(){this.disabled||this.searchbar.focus()},B.prototype.blur=function(){this.disabled||this.searchbar.blur()},B.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=C.isPresent(t)?t:!i._open;i._toggle(e),i.cdr.markForCheck()})},Object.defineProperty(B.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),B.prototype.reset=function(){this.value=void 0,this.clearState(),this.resetSelection()},B.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},B.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1},B.prototype.writeValue=function(e){this.value=null===e?void 0:e},B.prototype.registerOnChange=function(e){this.onChangeCallback=e},B.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},B.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(B.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(B.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}),B.prototype.onResize=function(){var e,t,i;this.isOpen&&(e=this.popupRef.popupElement,t=(i=this.popupWidth).min,i=i.max,e.style.minWidth=t,e.style.width=i)},B.prototype.verifySettings=function(){if(u.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(k.ComboBoxMessages.primitive);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(k.ComboBoxMessages.object);if(!C.isPresent(this.valueField)!=!C.isPresent(this.textField))throw new Error(k.ComboBoxMessages.textAndValue);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(k.ComboBoxMessages.noItemHeight)}},B.prototype.setState=function(){var e,t;this._filtering||(e=this.value,t=this.valueField,t=this.findDataItem({valueField:t,value:e}),C.isPresent(t.index)&&-1!==t.index?(this.updateState({dataItem:t.dataItem,confirm:!0}),this.resetSelection(t.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)))},B.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=C.getter(t,this.textField),e&&(this._previousDataItem=t)},B.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},B.prototype.resetSelection=function(e){var t=!C.isPresent(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e},B.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},B.prototype.findIndexPredicate=function(t){var i=this;return this.dataService.grouped?function(e){e=C.getter(e.value,i.textField);return(e=C.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=C.getter(e,i.textField);return(e=C.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},B.prototype.findDataItem=function(e){var t=this,i=e.valueField,n=e.value,a={dataItem:null,index:-1},e=this.dataService.findIndex(function(e){e=t.dataService.grouped?e.value:e;return C.getter(e,i)===C.getter(n,i)});return a.dataItem=this.dataService.itemAt(e),a.index=e,a},B.prototype.search=function(e,t){void 0===t&&(t=0),t=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(t)?t+1<this.dataService.itemsCount?this.search(e,t+1):this.selectionService.focus(-1):(this.selectionService.focus(t),this.suggest&&(this.suggestedText=C.getter(this.dataService.itemAt(t),this.textField)))},B.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},B.prototype.navigate=function(e){0!==this.dataService.itemsCount&&(this.text=C.getter(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},B.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;this.disabled||this.readonly||e.keyCode===I.Keys.Home||e.keyCode===I.Keys.End||(t||(e.keyCode===I.Keys.ArrowDown?n=-1:e.keyCode===I.Keys.ArrowUp&&(n=1)),(i=this.navigationService.process({current:n+i,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==S.NavigationAction.Undefined&&i!==S.NavigationAction.Left&&i!==S.NavigationAction.Right&&i!==S.NavigationAction.Backspace&&i!==S.NavigationAction.Delete&&(i===S.NavigationAction.Enter&&this.isOpen||i!==S.NavigationAction.Enter)&&e.preventDefault())},B.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),n=e!==n;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&n&&(e===a||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(i?this.selectionService.change(t):n&&this.change(e,!0))},B.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)},B.prototype.handleEscape=function(){this.togglePopup(!1),0<this.selectionService.selected.length||(this.suggestedText=null,this.selectionService.focused=-1)},B.prototype.handleNavigationOpen=function(){this.restoreItemFocus(),this.togglePopup(!0)},B.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)},B.prototype.handleFocus=function(){var e=this;this.isFocused=!0,y.hasObservers(this.onFocus)&&this.zone.run(function(){return e.onFocus.emit()})},B.prototype.pageChange=function(e){this.virtual.skip=e.skip},B.prototype.change=function(e,t){((t=void 0===t?!1:t)?this.customValueSubject:this.valueSubject).next(e)},B.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem},B.prototype.selectClick=function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)},Object.defineProperty(B.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),B.prototype.preventEventDefault=function(e){e.preventDefault()},Object.defineProperty(B.prototype,"focusedItemText",{get:function(){var e=this.selectionService.focused;if(!C.isPresent(e)||-1===e)return null;e=C.getter(this.dataService.itemAt(e),this.textField);return C.isPresent(e)?e.toString():""},enumerable:!0,configurable:!0}),B.prototype.restoreItemFocus=function(){C.isPresent(this.selectionService.focused)&&-1<this.selectionService.focused||!this.text||!this.dataService.itemsCount||(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))},B.prototype.useSuggestion=function(){if(!this.suggest||!C.isPresent(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),e=C.getter(e,this.textField);return!!C.isPresent(e)&&this.searchbar.value.toLowerCase()===e.toLowerCase()},B.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},B.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:t,vertical:"bottom"},popupAlign:{horizontal:t,vertical:"top"}});var i=this.popupRef.popupElement,n=this.popupWidth,t=n.min,n=n.max;i.addEventListener("mousedown",this.popupMouseDownHandler),i.style.minWidth=t,i.style.width=n,i.style.height=this.popupHeight,i.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)})},B.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},B.prototype.triggerPopupEvents=function(e){var t=new x.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},B.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))},B.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()})})},B.prototype.subscribeTouchEvents=function(){var t=this;y.isDocumentAvailable()&&this.touchEnabled&&this.zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target,e=C.inDropDown(t.wrapper,e,t.popupRef);t.isFocused&&!e?t.zone.run(function(){return t.blur()}):t.isOpen&&!e&&t.zone.run(function(){return t.togglePopup(!1)})})})},B.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=M.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},B.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([u.Input(),n.__metadata("design:type",String)],B.prototype,"focusableId",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"allowCustom",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"data",null),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"value",null),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"textField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"valueField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],B.prototype,"valuePrimitive",null),n.__decorate([u.Input(),n.__metadata("design:type",Function)],B.prototype,"valueNormalizer",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"placeholder",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"popupSettings",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],B.prototype,"listHeight",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"iconClass",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"loading",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"suggest",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"clearButton",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"disabled",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],B.prototype,"itemDisabled",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"readonly",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Number)],B.prototype,"tabindex",void 0),n.__decorate([u.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],B.prototype,"tabIndex",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"filterable",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"virtual",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"size",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"rounded",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"fillMode",null),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"valueChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"selectionChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"filterChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"open",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"opened",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"close",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"closed",void 0),n.__decorate([u.Output("focus"),n.__metadata("design:type",u.EventEmitter)],B.prototype,"onFocus",void 0),n.__decorate([u.Output("blur"),n.__metadata("design:type",u.EventEmitter)],B.prototype,"onBlur",void 0),n.__decorate([u.ContentChild(s.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",s.ItemTemplateDirective)],B.prototype,"template",void 0),n.__decorate([u.ContentChild(r.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",r.HeaderTemplateDirective)],B.prototype,"headerTemplate",void 0),n.__decorate([u.ContentChild(p.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",p.FooterTemplateDirective)],B.prototype,"footerTemplate",void 0),n.__decorate([u.ContentChild(m.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",m.NoDataTemplateDirective)],B.prototype,"noDataTemplate",void 0),n.__decorate([u.ContentChild(l.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",l.GroupTemplateDirective)],B.prototype,"groupTemplate",void 0),n.__decorate([u.ContentChild(d.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",d.FixedGroupTemplateDirective)],B.prototype,"fixedGroupTemplate",void 0),n.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),n.__metadata("design:type",u.ViewContainerRef)],B.prototype,"container",void 0),n.__decorate([u.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",u.TemplateRef)],B.prototype,"popupTemplate",void 0),n.__decorate([u.ViewChild(o.SearchBarComponent,{static:!0}),n.__metadata("design:type",o.SearchBarComponent)],B.prototype,"searchbar",void 0),n.__decorate([u.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],B.prototype,"optionsList",void 0),n.__decorate([u.ViewChild("select",{static:!0}),n.__metadata("design:type",u.ElementRef)],B.prototype,"select",void 0),n.__decorate([u.HostBinding("class.k-combobox"),u.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],B.prototype,"widgetClasses",void 0),n.__decorate([u.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"isDisabled",null),n.__decorate([u.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"isLoading",null),n.__decorate([u.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],B.prototype,"dir",null),A=n.__decorate([u.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:u.forwardRef(function(){return A})},{provide:y.KendoInput,useExisting:u.forwardRef(function(){return A})}],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,u.Optional()),n.__param(10,u.Inject(T.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[u.ElementRef,w.LocalizationService,D.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,O.DataService,u.NgZone,u.ChangeDetectorRef,u.Renderer2,Boolean])],B));function B(e,t,i,n,a,o,s,r,p,l,d){this.wrapper=e,this.localization=t,this.popupService=i,this.selectionService=n,this.navigationService=a,this.disabledItemsService=o,this.dataService=s,this.zone=r,this.cdr=p,this.renderer=l,this.touchEnabled=d,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 u.EventEmitter,this.selectionChange=new u.EventEmitter,this.filterChange=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.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",c.validatePackage(h.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[]}t.ComboBoxComponent=j},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(29),s=i(43),r=i(42),p=i(49),l=i(23),d=i(16),i=i(7),r=[s.MultiSelectComponent,p.SummaryTagDirective,r.CustomItemTemplateDirective],o=n.__decorate([a.NgModule({declarations:[r],exports:[r,d.SharedDirectivesModule],imports:[l.SharedModule],providers:[{provide:i.TOUCH_ENABLED,useValue:o.touchEnabled}]})],u);function u(){}t.MultiSelectModule=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(63),s=i(23),i=i(16),o=[o.DropDownListComponent],s=n.__decorate([a.NgModule({declarations:[o],exports:[o,i.SharedDirectivesModule],imports:[s.SharedModule]})],r);function r(){}t.DropDownListModule=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(29),s=i(44),r=i(62),p=i(40),l=i(23),d=i(16),u=i(7),c=i(38),i=i(39),i=[s.ComboBoxComponent,r.MultiColumnComboBoxComponent,p.ComboBoxColumnComponent,c.ColumnHeaderTemplateDirective,i.ColumnCellTemplateDirective],o=n.__decorate([a.NgModule({declarations:[i],exports:[i,d.SharedDirectivesModule],imports:[l.SharedModule],providers:[{provide:u.TOUCH_ENABLED,useValue:o.touchEnabled}]})],h);function h(){}t.ComboBoxModule=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(65),s=i(23),i=i(16),o=[o.AutoCompleteComponent],s=n.__decorate([a.NgModule({declarations:[o],exports:[o,i.SharedDirectivesModule],imports:[s.SharedModule]})],r);function r(){}t.AutoCompleteModule=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),i=i(43),i=(s.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},s.prototype.createTagMapper=function(){var i=o.parseNumber(this.showAfter);this.multiSelectComponent.tagMapper=function(e){if(e.length>i){var t=void 0;return(t=e.slice(0,i)).push(e.slice(i,e.length)),t}return e}},n.__decorate([a.Input("kendoMultiSelectSummaryTag"),n.__metadata("design:type",Object)],s.prototype,"showAfter",void 0),n.__decorate([a.Directive({selector:"[kendoMultiSelectSummaryTag]"}),n.__metadata("design:paramtypes",[i.MultiSelectComponent])],s));function s(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}t.SummaryTagDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(0),n=i(1),o=i(2),n=(s.prototype.addItem=function(e){var t;this.isItemChecked(e)||(t=o.getHierarchicalItemLevel(e.index),t=a.__assign({},e,{level:t}),this.checkedItems.push(t),this.checkedKeys.add(o.valueFrom(t,this.valueField)))},s.prototype.removeItem=function(e){var t,i,n=this;this.isItemChecked(e)&&(t=o.getHierarchicalItemLevel(e.index),i=a.__assign({},e,{level:t}),this.checkedItems=this.checkedItems.filter(function(e){return o.valueFrom(e,n.valueField)!==o.valueFrom(i,n.valueField)}),this.checkedKeys.delete(o.valueFrom(i,this.valueField)))},s.prototype.isItemChecked=function(e){return this.checkedKeys.has(o.valueFrom(e,this.valueField))},s.prototype.updateItems=function(){var t=this;this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(function(e){return o.valueFrom(e,t.valueField)}))},a.__decorate([n.Input(),a.__metadata("design:type",Object)],s.prototype,"valueField",void 0),a.__decorate([n.Input(),a.__metadata("design:type",Array)],s.prototype,"checkedItems",void 0),s);function s(){}t.BaseCheckDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=(Object.defineProperty(a.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([i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],a.prototype,"templateContext",null),n.__decorate([i.Directive({selector:"[templateContext]"}),n.__metadata("design:paramtypes",[i.ViewContainerRef])],a));function a(e){this.viewContainerRef=e}t.TemplateContextDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),i=i(6),i=(Object.defineProperty(o.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!0,configurable:!0}),o.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)],o.prototype,"index",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],o.prototype,"checkboxes",void 0),n.__decorate([a.HostBinding("style.height.px"),a.HostBinding("style.minHeight.px"),a.Input(),n.__metadata("design:type",Number)],o.prototype,"height",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],o.prototype,"multipleSelection",void 0),n.__decorate([a.HostBinding("class.k-focus"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],o.prototype,"focusedClassName",null),n.__decorate([a.HostBinding("class.k-selected"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],o.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)],o.prototype,"onClick",null),n.__decorate([a.Directive({selector:"[kendoDropDownsSelectable]"}),n.__metadata("design:paramtypes",[i.SelectionService])],o));function o(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}t.SelectableDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(26),s=i(2),r={caseSensitive:!1,operator:"startsWith"},o=(Object.defineProperty(p.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),p.prototype.ngOnInit=function(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))},p.prototype.ngOnDestroy=function(){s.isPresent(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},p.prototype.handleFilterChange=function(t){var i=this;this.component.data=this.data.filter(function(e){return i.matchesAnyField(e,t)})},p.prototype.matchesAnyField=function(t,e){var i=this,n=this.normalizeValue(e),e=this.filterSettings.fields;return 0===e.length?this.checkItem(t,n):e.some(function(e){return i.checkItem(s.getter(t,e),n)})},p.prototype.checkItem=function(e,t){return e=this.normalizeValue(e),"contains"===this.filterSettings.operator?-1!==e.indexOf(t):0===e.indexOf(t)},p.prototype.normalizeValue=function(e){e=s.isPresent(e)?e.toString():"";return this.filterSettings.caseSensitive?e:e.toLowerCase()},p.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?s.isArray(e)&&0<e.length?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(p.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=s.isPresent(e)&&"object"==typeof e?e.fields:[];return Object.assign({},r,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],p.prototype,"data",null),n.__decorate([a.Input("kendoDropDownFilter"),n.__metadata("design:type",Object)],p.prototype,"rawSettings",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],p.prototype,"filterable",void 0),n.__decorate([a.Directive({selector:"[kendoDropDownFilter]"}),n.__metadata("design:paramtypes",[o.FilterableComponent])],p));function p(e){this.component=e,this.filterable=!0,this._data=[]}t.FilterDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),a=(n=i(4).ComponentMessages,a.__extends(s,n),a.__decorate([o.Input(),a.__metadata("design:type",String)],s.prototype,"noDataText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],s.prototype,"clearTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],s.prototype,"checkAllText",void 0),s);function s(){return null!==n&&n.apply(this,arguments)||this}t.Messages=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(23),s=i(5),r=i(16),p=i(61),l=i(37),d=i(60),u=i(59),c=i(58),h=i(57),m=i(56),g=i(30),i=i(67),i=[p.DropDownTreeComponent,l.MultiSelectTreeComponent,d.DropDownTreeFlatBindingDirective,u.DropDownTreeHierarchyBindingDirective,c.MultiSelectTreeFlatBindingDirective,h.MultiSelectTreeHierarchyBindingDirective,m.DropDownTreesExpandDirective,g.NodeTemplateDirective,i.MultiSelectTreeSummaryTagDirective],s=n.__decorate([a.NgModule({declarations:[i],exports:[i,r.SharedDirectivesModule],imports:[o.SharedModule,s.TreeViewModule]})],v);function v(){}t.DropDownTreesModule=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),i=(n=i.ExpandDirective,a.__extends(s,n),a.__decorate([o.Input("isNodeExpanded"),a.__metadata("design:type",Function)],s.prototype,"isExpanded",void 0),a.__decorate([o.Directive({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),a.__metadata("design:paramtypes",[i.ExpandableComponent])],s));function s(e){return n.call(this,e)||this}t.DropDownTreesExpandDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),i=(n=i.HierarchyBindingDirective,a.__extends(s,n),Object.defineProperty(s.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),a.__decorate([o.Input("kendoMultiSelectTreeHierarchyBinding"),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],s.prototype,"data",null),a.__decorate([o.Directive({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){var t=n.call(this,e)||this;return t.multiSelectTree=e,t}t.MultiSelectTreeHierarchyBindingDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),i=(n=i.FlatDataBindingDirective,a.__extends(s,n),a.__decorate([o.Input("kendoMultiSelectTreeFlatBinding"),a.__metadata("design:type",Array)],s.prototype,"nodes",void 0),a.__decorate([o.Input("valueField"),a.__metadata("design:type",String)],s.prototype,"idField",void 0),a.__decorate([o.Directive({selector:"[kendoMultiSelectTreeFlatBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){return n.call(this,e)||this}t.MultiSelectTreeFlatBindingDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),i=(n=i.HierarchyBindingDirective,a.__extends(s,n),Object.defineProperty(s.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),a.__decorate([o.Input("kendoDropDownTreeHierarchyBinding"),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],s.prototype,"data",null),a.__decorate([o.Directive({selector:"[kendoDropDownTreeHierarchyBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){var t=n.call(this,e)||this;return t.dropDownTree=e,t}t.DropDownTreeHierarchyBindingDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),i=(n=i.FlatDataBindingDirective,a.__extends(s,n),a.__decorate([o.Input("kendoDropDownTreeFlatBinding"),a.__metadata("design:type",Array)],s.prototype,"nodes",void 0),a.__decorate([o.Input("valueField"),a.__metadata("design:type",String)],s.prototype,"idField",void 0),a.__decorate([o.Directive({selector:"[kendoDropDownTreeFlatBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){return n.call(this,e)||this}t.DropDownTreeFlatBindingDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function p(){return!1}function l(){return I.of([])}function d(){return!1}function u(){return!0}var n,a=i(0),c=i(1),h=i(3),o=i(8),s=i(5),r=i(29),m=i(15),g=i(9),v=i(10),f=i(19),_=i(4),b=i(6),y=i(11),C=i(2),S=i(18),I=i(12),x=i(17),w=i(14),D=i(13),T=i(30),k=i(24),E=i(7),i=i(32),O={animate:!0},_=(n=P,Object.defineProperty(P.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),P.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},P.prototype.handleKeydown=function(e){this.disabled||this.readonly||this.navigationService.process({originalEvent:e})},Object.defineProperty(P.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(P.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},O,e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"dataItem",{get:function(){return this._dataItem||this.value},set:function(e){this._dataItem=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.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(P.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}),Object.defineProperty(P.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(P.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(P.prototype,"height",{get:function(){var e=this.popupSettings.height;return C.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isOpen",{get:function(){return C.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),P.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()})),this.setComponentClasses()},P.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},P.prototype.ngOnChanges=function(e){h.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},P.prototype.ngAfterContentChecked=function(){this.verifySettings()},P.prototype.isEmpty=function(){return!this.text&&!this.placeholder},P.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup())},P.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,h.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()})))},P.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.wrapper.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,h.hasObservers(this.onBlur)||C.isUntouched(this.wrapper.nativeElement)?this._zone.run(function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()}):this.togglePopup(!1))},P.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),!C.isPresent(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e))},P.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},P.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},P.prototype.reset=function(){this.value=void 0,this.dataItem=void 0},P.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=C.isPresent(t)?t:!C.isPresent(i.popupRef);i.destroyPopup(),e&&i.createPopup()})},Object.defineProperty(P.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),P.prototype.onSelectionChange=function(e){var t=e.dataItem,e=e.index;this.valueDepth=e.split("_").length-1;e=this.getField(this.valueField,t),e=this.valuePrimitive?r.getter(e)(t):t;e!==this.value&&(this.value=e,this.dataItem=t,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()},P.prototype.messageFor=function(e){return this.localization.get(e)},P.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(P.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),P.prototype.preventEventDefault=function(e){e.preventDefault()},P.prototype.writeValue=function(e){!C.isPresent(e)&&C.isPresent(this.value)&&(this.dataItem=null),this.value=null===e?void 0:e},P.prototype.registerOnChange=function(e){this.onChangeCallback=e},P.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},P.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},P.prototype.handleFilterInputChange=function(e){var i=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every(function(e,t){return!i.isVisible(e,String(t))})},Object.defineProperty(P.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.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}),P.prototype.verifySettings=function(){if(c.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(k.DropDownTreeMessages.primitive);if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.dataItem)throw new Error(k.DropDownTreeMessages.dataItem);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(k.DropDownTreeMessages.object);if(!C.isPresent(this.valueField)||!C.isPresent(this.textField))throw new Error(k.DropDownTreeMessages.textAndValue);if((C.isArray(this.valueField)||C.isArray(this.textField))&&C.isPresent(this.value)&&!C.isPresent(this.valueDepth))throw new Error(k.DropDownTreeMessages.valueDepth)}},P.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},P.prototype.getText=function(e,t){if(C.isPresent(t)&&C.isPresent(e)){e=this.getField(e,t);return r.getter(e)(t)}return null},P.prototype.getField=function(e,t){var i=e.length-1;return"string"==typeof e?e:C.isPresent(this.valueDepth)?i<this.valueDepth?e[i]:e[this.valueDepth]:e.find(function(e){return e in t})},P.prototype.triggerPopupEvents=function(e){var t=new y.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},P.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:t,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});var i=this.popupRef.popupElement,n=this.width,t=n.min,n=n.max;i.style.minWidth=t,i.style.width=n,i.style.height=this.height,i.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()})},P.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,h.hasObservers(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},P.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},P.prototype.setState=function(){var e;C.isPresent(this.value)&&C.isPresent(this.dataItem)&&C.isPresent(this.valueField)?(this.text=this.getText(this.textField,this.dataItem),e=this.getField(this.valueField,this.dataItem),this.selectBy=e,this.selectedKeys=[r.getter(e)(this.dataItem)]):this.clearState(),this.cdr.markForCheck()},P.prototype.clearState=function(){this.text=void 0,this.selectedKeys=[]},P.prototype.subscribeEvents=function(){var t=this;this.subscriptions.push(this.navigationService.open.subscribe(function(){return t.togglePopup(!0)}),this.navigationService.close.subscribe(function(){t.togglePopup(!1),t.focus()}),this.navigationService.enter.pipe(x.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(function(){return t.togglePopup(!0)}),this.navigationService.esc.subscribe(function(){return t.handleEscape()}),this.navigationService.tab.subscribe(function(){return t.focus()}),this.navigationService.down.subscribe(function(e){t.treeview&&(e.originalEvent.preventDefault(),t.treeview.isActive||t.treeview.focus())}),this.navigationService.up.subscribe(function(e){t.treeview&&(e.originalEvent.preventDefault(),t.filterable&&"0"===t.treeview.navigationService.activeIndex&&t.filterInput.nativeElement.focus())}))},P.prototype.subscribeTouchEvents=function(){var t=this;h.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!C.inDropDown(t.wrapper,e,t.popupRef)&&t._zone.run(function(){t.isOpen&&t.treeview.blur(),t.blur()})})})},P.prototype.subscribeFocusEvents=function(){var e=this;h.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)}))},P.prototype.unSubscribeFocusEvents=function(){h.isDocumentAvailable()&&(document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0))},P.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},P.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},P.prototype.assignAriaDescribedBy=function(){var e=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",e=(this.valueLabelId+" "+e.trim()).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)},P.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))},a.__decorate([c.HostBinding("class.k-dropdowntree"),c.HostBinding("class.k-picker"),a.__metadata("design:type",Boolean)],P.prototype,"hostClasses",void 0),a.__decorate([c.HostBinding("class.k-disabled"),c.HostBinding("attr.aria-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isDisabled",null),a.__decorate([c.HostBinding("class.k-loading"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isLoading",null),a.__decorate([c.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],P.prototype,"id",null),a.__decorate([c.HostBinding("attr.dir"),a.__metadata("design:type",String)],P.prototype,"direction",void 0),a.__decorate([c.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],P.prototype,"hostTabIndex",null),a.__decorate([c.HostBinding("attr.role"),a.__metadata("design:type",String)],P.prototype,"role",void 0),a.__decorate([c.HostBinding("attr.aria-haspopup"),a.__metadata("design:type",String)],P.prototype,"ariaHasPopup",void 0),a.__decorate([c.HostBinding("attr.aria-expanded"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isAriaExpanded",null),a.__decorate([c.HostBinding("attr.readonly"),c.HostBinding("attr.aria-readonly"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isReadonly",null),a.__decorate([c.HostListener("click"),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],P.prototype,"handleClick",null),a.__decorate([c.HostListener("keydown",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],P.prototype,"handleKeydown",null),a.__decorate([c.ContentChild(S.NoDataTemplateDirective,{static:!1}),a.__metadata("design:type",S.NoDataTemplateDirective)],P.prototype,"noDataTemplate",void 0),a.__decorate([c.ContentChild(w.HeaderTemplateDirective,{static:!1}),a.__metadata("design:type",w.HeaderTemplateDirective)],P.prototype,"headerTemplate",void 0),a.__decorate([c.ContentChild(D.FooterTemplateDirective,{static:!1}),a.__metadata("design:type",D.FooterTemplateDirective)],P.prototype,"footerTemplate",void 0),a.__decorate([c.ContentChild(T.NodeTemplateDirective,{static:!1}),a.__metadata("design:type",T.NodeTemplateDirective)],P.prototype,"nodeTemplate",void 0),a.__decorate([c.ContentChild(i.ValueTemplateDirective,{static:!1}),a.__metadata("design:type",i.ValueTemplateDirective)],P.prototype,"valueTemplate",void 0),a.__decorate([c.ViewChild("popupTemplate",{static:!0}),a.__metadata("design:type",c.TemplateRef)],P.prototype,"popupTemplate",void 0),a.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),a.__metadata("design:type",c.ViewContainerRef)],P.prototype,"container",void 0),a.__decorate([c.ViewChild("treeview",{static:!1}),a.__metadata("design:type",s.TreeViewComponent),a.__metadata("design:paramtypes",[s.TreeViewComponent])],P.prototype,"treeview",null),a.__decorate([c.ViewChild("filterInput",{static:!1}),a.__metadata("design:type",c.ElementRef)],P.prototype,"filterInput",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"open",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"opened",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"close",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"closed",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"nodeExpand",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"nodeCollapse",void 0),a.__decorate([c.Output("focus"),a.__metadata("design:type",c.EventEmitter)],P.prototype,"onFocus",void 0),a.__decorate([c.Output("blur"),a.__metadata("design:type",c.EventEmitter)],P.prototype,"onBlur",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"valueChange",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"filterChange",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"loading",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"clearButton",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],P.prototype,"data",null),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"value",null),a.__decorate([c.Input(),a.__metadata("design:type",Object)],P.prototype,"textField",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Object)],P.prototype,"valueField",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Number)],P.prototype,"valueDepth",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"hasChildren",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"fetchChildren",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],P.prototype,"placeholder",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"dataItem",null),a.__decorate([c.Input(),a.__metadata("design:type",Number)],P.prototype,"listHeight",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"valuePrimitive",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],P.prototype,"tabindex",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"size",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"rounded",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"fillMode",null),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"itemDisabled",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"isNodeExpanded",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"isNodeVisible",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"loadOnDemand",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"filterable",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],P.prototype,"filter",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],P.prototype,"focusableId",void 0),n=a.__decorate([c.Component({exportAs:"kendoDropDownTree",providers:[g.DataService,b.SelectionService,f.NavigationService,v.DisabledItemsService,_.LocalizationService,{provide:_.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:m.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return n})},{provide:h.KendoInput,useExisting:c.forwardRef(function(){return n})},{provide:s.DataBoundComponent,useExisting:c.forwardRef(function(){return n})},{provide:s.ExpandableComponent,useExisting:c.forwardRef(function(){return n})}],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:c.ChangeDetectionStrategy.OnPush}),a.__param(7,c.Optional()),a.__param(7,c.Inject(E.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[c.ElementRef,o.PopupService,f.NavigationService,c.Renderer2,c.NgZone,c.ChangeDetectorRef,_.LocalizationService,Boolean])],P));function P(e,t,i,n,a,o,s,r){this.wrapper=e,this.popupService=t,this.navigationService=i,this.renderer=n,this._zone=a,this.cdr=o,this.localization=s,this.touchEnabled=r,this.hostClasses=!0,this.role="listbox",this.ariaHasPopup="tree",this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.nodeExpand=new c.EventEmitter,this.nodeCollapse=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.filterChange=new c.EventEmitter,this.clearButton=!0,this.hasChildren=p,this.fetchChildren=l,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=d,this.isNodeVisible=u,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+h.guid(),this.selectedKeys=[],this.filterStateChange=new c.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+h.guid(),this._popupSettings=O,this._tabindex=0,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.onTouchedCallback=C.noop,this.onChangeCallback=C.noop,this.direction=s.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents()}t.DropDownTreeComponent=_},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u,n,a=i(0),o=i(1),s=i(15),r=i(3),p=i(4),l=i(8),d=i(44),c=i(40),h=i(9),m=i(10),g=i(19),v=i(6),f=i(7),_=i(2),b=i(75),y=i(26),C=i(24),h=(u=d.ComboBoxComponent,a.__extends(S,u),n=S,Object.defineProperty(S.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"header",{set:function(e){this.updateHeaderPadding(e&&e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"popupWidth",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=e+"px",e=this.popupSettings.width||b.getRowWidthFromColumnsMeta(this.columns)||e;return{min:t,max:isNaN(e)?e:e+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"tableSizeClass",{get:function(){return""+(this.size?_.getSizeClass("table",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"listContainerClasses",{get:function(){return["k-popup","k-dropdowngrid-popup"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),S.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},S.prototype.ngOnDestroy=function(){u.prototype.ngOnDestroy.call(this),this.removeWindowResizeListener()},S.prototype.textFrom=function(e,t){return _.getter(e,t)},S.prototype.updateHeaderPadding=function(e){var t;_.isPresent(e)&&(t=this.localization.rtl?"padding-left":"padding-right",this.optionsList.hasScrollbar()&&0<b.scrollbarWidth()?this.renderer.setStyle(e,t,b.scrollbarWidth()+"px"):this.renderer.removeStyle(e,t))},S.prototype.verifySettings=function(){if(o.isDevMode()){if(_.isPresent(this.data)&&0<this.data.length&&this.data.some(function(e){return!_.isObject(e)}))throw new Error(C.MultiColumnComboBoxMessages.data);if(!_.isPresent(this.valueField)||!_.isPresent(this.textField))throw new Error(C.MultiColumnComboBoxMessages.textAndValue);u.prototype.verifySettings.call(this)}},S.prototype.addWindowResizeListener=function(){var e=this;r.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))})},S.prototype.updateColumnsMediaState=function(){var i=this;_.isPresent(this.columns)&&r.isDocumentAvailable()&&this.columns.forEach(function(e){var t=!e.media||window.matchMedia(e.media).matches;e.matchesMedia!==t&&(e.matchesMedia=t,i.isOpen&&i.zone.run(function(){return i.popupRef.popupElement.style.width=i.popupWidth.max}))})},a.__decorate([o.HostBinding("class.k-dropdowngrid"),a.__metadata("design:type",Boolean)],S.prototype,"hostClasses",void 0),a.__decorate([o.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],S.prototype,"isDisabled",null),a.__decorate([o.ContentChildren(c.ComboBoxColumnComponent),a.__metadata("design:type",o.QueryList)],S.prototype,"columns",void 0),a.__decorate([o.ViewChild("header",{static:!1}),a.__metadata("design:type",o.ElementRef),a.__metadata("design:paramtypes",[o.ElementRef])],S.prototype,"header",null),n=a.__decorate([o.Component({providers:[v.SelectionService,h.DataService,g.NavigationService,m.DisabledItemsService,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:s.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return n})},{provide:r.KendoInput,useExisting:o.forwardRef(function(){return n})},{provide:y.FilterableComponent,useExisting:o.forwardRef(function(){return n})}],selector:"kendo-multicolumncombobox",template:'\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText="kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multicolumncombobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <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 '}),a.__param(10,o.Inject(f.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[p.LocalizationService,l.PopupService,v.SelectionService,g.NavigationService,m.DisabledItemsService,h.DataService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.ElementRef,Boolean])],S));function S(e,t,i,n,a,o,s,r,p,l,d){d=u.call(this,l,e,t,i,n,a,o,s,r,p,d)||this;return d.hostClasses=!0,d.removeWindowResizeListener=_.noop,d.defaultVirtualItemHeight=36,d.defaultVirtualPageSize=30,d}t.MultiColumnComboBoxComponent=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),u=i(1),a=i(15),c=i(36),h=i(35),m=i(12),o=i(17),s=i(3),r=i(3),g=i(2),p=i(6),l=i(19),d=i(22),v=i(21),f=i(20),_=i(32),b=i(14),y=i(13),C=i(18),S=i(27),I=i(11),x=i(4),w=i(8),D=i(7),T=i(24),k=i(10),E=i(9),O=i(26),P=i(25),F=i(33);t.DROPDOWNLIST_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return A})};var M,A=(M=j,Object.defineProperty(j.prototype,"width",{get:function(){var e=s.isDocumentAvailable()?this.wrapper.nativeElement.offsetWidth:0,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"height",{get:function(){var e=this.popupSettings.height;return g.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"widgetTabIndex",{get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaOwns",{get:function(){if(this.isOpen)return this.listBoxId},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaActivedescendant",{get:function(){if(g.isPresent(this.dataItem))return this.optionPrefix+"-"+g.getter(this.dataItem,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.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(j.prototype,"value",{get:function(){return this._value},set:function(e){g.isPresent(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=F.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"valuePrimitive",{get:function(){return g.isPresent(this._valuePrimitive)?this._valuePrimitive:!g.isPresent(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,g.getSizeClass("picker",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,g.getSizeClass("picker",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,g.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,g.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,g.getFillModeClass("picker",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,g.getFillModeClass("picker",e)),this._fillMode=e},enumerable:!0,configurable:!0}),j.prototype.blurComponent=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())},j.prototype.blurFilterInput=function(){this.filterBlurred.emit()},j.prototype.focusComponent=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,s.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()})))},j.prototype.onResize=function(){var e,t,i;this._open&&(e=this.popupRef.popupElement,t=(i=this.width).min,i=i.max,e.style.minWidth=t,e.style.width=i)},Object.defineProperty(j.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"hostTabIndex",{get:function(){return this.widgetTabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isAriaExpanded",{get:function(){return this.ariaExpanded},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"hostAriaOwns",{get:function(){return this.ariaOwns},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"hostAriaActivedescendant",{get:function(){return this.ariaActivedescendant},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"hostNoDataLabel",{get:function(){return this.noDataLabel},enumerable:!0,configurable:!0}),j.prototype.keydown=function(e){var t,i=g.isPresent(this.defaultItem)?-1:0,n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(i):this.selectionService.focused,a=0;this.disabled||this.readonly||(t=e.keyCode===r.Keys.Home||e.keyCode===r.Keys.End,this.filterable&&this.isFocused&&this.isOpen&&t||(i=g.isPresent(this.selectionService.selected[0]),t=g.isPresent(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused),i&&!t||(e.keyCode===r.Keys.ArrowDown||e.keyCode===r.Keys.ArrowRight?a=-1:e.keyCode!==r.Keys.ArrowUp&&e.keyCode!==r.Keys.ArrowLeft||(a=1)),e=(a=this.navigationService.process({current:n+a,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:n=e}))===S.NavigationAction.Left||a===S.NavigationAction.Right,a===S.NavigationAction.Undefined||a===S.NavigationAction.Tab||a===S.NavigationAction.Backspace||a===S.NavigationAction.Delete||e&&this.filterable||a===S.NavigationAction.Enter||n.preventDefault()))},j.prototype.keypress=function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)},j.prototype.click=function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)},Object.defineProperty(j.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}),j.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages(),this.assignAriaDescribedBy(),this.setComponentClasses()},j.prototype.isEmpty=function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)},j.prototype.onFilterFocus=function(){this.filterFocused.emit()},j.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()},j.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),s.isChanged("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),s.anyChanged(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},j.prototype.ngAfterContentChecked=function(){this.verifySettings()},j.prototype.focusItemAt=function(e){var t=(g.isPresent(this.defaultItem)?-1:0)<=e&&e<this.data.length;g.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},j.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},j.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},j.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=g.isPresent(t)?t:!i._open;i._toggle(e)})},j.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},j.prototype.triggerPopupEvents=function(e){var t=new I.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},j.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(j.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),j.prototype.reset=function(){this.value=void 0},j.prototype.writeValue=function(e){this.value=null===e?void 0:e},j.prototype.registerOnChange=function(e){this.onChangeCallback=e},j.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},j.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(j.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"selectButtonClasses",{get:function(){return(this.size?g.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"filterInputClasses",{get:function(){return(this.size?g.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?g.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"optionLabelSizeClass",{get:function(){return""+(this.size?g.getSizeClass("list",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.prototype,"isDisabledDefaultItem",{get:function(){return this.disabledItemsService.isItemDisabled(this.defaultItem)},enumerable:!0,configurable:!0}),j.prototype.getText=function(){return this.text},j.prototype.getDefaultItemText=function(){return g.getter(this.defaultItem,this.textField)},j.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:t,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});var i=this.popupRef.popupElement,n=this.width,t=n.min,n=n.max;i.addEventListener("mousedown",this.popupMouseDownHandler),i.style.minWidth=t,i.style.width=n,i.style.height=this.height,i.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)})},j.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},j.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=g.getter(t,this.textField),e&&(this._previousDataItem=t)},j.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},j.prototype.resetSelection=function(e){var t=!g.isPresent(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e},j.prototype.onSelectionChange=function(e){e=e.dataItem;this.updateState({dataItem:e}),this.selectionChange.emit(e),this.assignAriaDescribedBy()},j.prototype.subscribeEvents=function(){var a=this;s.isDocumentAvailable()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(o.filter(function(e){return a.isOpen}),o.map(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(m.merge(this.selectionService.onSelect.pipe(o.filter(function(e){return!a.isOpen})),this.selectionService.onChange).pipe(o.map(this.itemFromEvent.bind(this)),o.tap(function(e){return a.togglePopup(!1)})).subscribe(function(e){var t=e.dataItem,i=e.value;e.newSelection&&a.onSelectionChange({dataItem:t});var n=!g.isPresent(t)&&a._previousDataItem,e=i!==g.getter(a.value,a.valueField);n?(a.updateState({dataItem:a._previousDataItem}),a.resetSelection()):e&&(a.value=a.valuePrimitive?i:t,a._previousDataItem=t,a.emitChange(a.value)),a.clearFilter()})),this.navigationSubscription=m.merge(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(o.skipWhile(function(){return a.filterable})),this.navigationService.right.pipe(o.skipWhile(function(){return a.filterable})),this.navigationService.home,this.navigationService.end).pipe(o.filter(function(e){return!isNaN(e.index)})).subscribe(function(e){return a.selectionService.select(e.index)}),this.openSubscription=this.navigationService.open.subscribe(function(){return a.togglePopup(!0)}),this.closeSubscription=this.navigationService.close.subscribe(function(){a.togglePopup(!1),a.focus()}),this.enterSubscription=this.navigationService.enter.pipe(o.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(o.concatMap(function(){return m.interval(10).pipe(o.take(1),o.takeUntil(a.hostElementFocused))})).subscribe(function(){a.hostElementBlurred.emit()}),this._zone.runOutsideAngular(function(){a.componentBlurredSubscription=m.merge(a.hostElementBlurred.pipe(o.concatMap(function(){return m.interval(10).pipe(o.take(1),o.takeUntil(a.filterFocused))})),a.navigationService.tab).pipe(o.tap(function(e){return e instanceof l.NavigationEvent&&a.focus()}),o.filter(function(){return a.isFocused})).subscribe(function(){return a.componentBlur()})}))},j.prototype.subscribeTouchEvents=function(){var t=this;s.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!g.inDropDown(t.wrapper,e,t.popupRef)&&t._zone.run(function(){t.filterFocused&&t.togglePopup(!1),t.blur()})})})},j.prototype.subscribeFocusEvents=function(){var e=this;s.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)}))},j.prototype.unSubscribeFocusEvents=function(){s.isDocumentAvailable()&&(document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0))},j.prototype.unsubscribeEvents=function(){s.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())},j.prototype.itemFromEvent=function(e){var t=e.indices[0],i=this.dataService.itemAt(t),i=g.isPresent(i)?i:this.currentOrDefault(t),n=g.getter(i,this.valueField);return{dataItem:i,index:t,newSelection:e.newSelection,value:n}},j.prototype.currentOrDefault=function(e){return g.isPresent(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem},j.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},j.prototype.handleEnter=function(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)},j.prototype.handleEscape=function(){g.isPresent(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()},j.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))},j.prototype.verifySettings=function(){if(u.isDevMode()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(T.DropDownListMessages.defaultItem);if(!0===this.valuePrimitive&&g.isPresent(this.value)&&"object"==typeof this.value)throw new Error(T.DropDownListMessages.primitive);if(!1===this.valuePrimitive&&g.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(T.DropDownListMessages.object);if(!g.isPresent(this.valueField)!=!g.isPresent(this.textField))throw new Error(T.DropDownListMessages.textAndValue)}},j.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=g.isPresent(this.selectionService.selected[0])&&g.getter(this.value,this.valueField)!==g.getter(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||s.hasObservers(this.close)||s.hasObservers(this.onBlur)||s.hasObservers(this.filterChange)||g.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)},j.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},j.prototype.onKeyPress=function(e){var t;0!==e.which&&e.keyCode!==r.Keys.Enter&&(t=String.fromCharCode(e.charCode||e.keyCode)," "===(t=this.ignoreCase?t.toLowerCase():t)&&e.preventDefault(),this.word+=t,this.last=t,this.search())},j.prototype.search=function(){var e=this;clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(function(){e.word=""},this.delay),this.selectNext())},j.prototype.selectNext=function(){var e,t,i=this,n=this.dataService.filter(function(e){return g.isPresent(e)&&!e.header&&!i.disabledItemsService.isItemDisabled(e)}).map(function(e){return i.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:i.dataService.indexOf(e)}}),a=g.sameCharsOnly(this.word,this.last),o=n.length,s=!isNaN(this.selectionService.selected[0]),r=s?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(t={item:this.defaultItem,itemIndex:-1},o+=1,r+=1),n=g.shuffleData(n,r+=a&&s?1:0,t),e=0;e<o;e++){var p=g.getter(n[e].item,this.textField),l=Boolean(a&&g.matchText(p,this.last,this.ignoreCase)),p=Boolean(g.matchText(p,this.word,this.ignoreCase));if(l||p){e=n[e].itemIndex;break}}e!==o&&this.navigate(e)},j.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},j.prototype.navigate=function(e){this.selectionService.select(e)},j.prototype.findDataItem=function(e){function t(e){return g.getter(e,i)}var i=e.valueField,n=e.value,a={dataItem:null,index:-1},e=this.dataService.grouped?function(e){return t(e.value)===t(n)}:function(e){return t(e)===t(n)},e=this.dataService.findIndex(e);return a.dataItem=this.dataService.itemAt(e),a.index=e,a},j.prototype.setState=function(){var e=this.value,t=this.valueField,i=this.textField,n=this.valuePrimitive;if(this.defaultItem){var a=g.getter(this.defaultItem,t),o=g.getter(e,t);if(!g.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)))}t=this.findDataItem({valueField:t,value:e}),i=!(n&&i);t.dataItem?(this.updateState({dataItem:t.dataItem,confirm:!0}),this.resetSelection(t.index)):(g.isPresent(e)&&i?this.updateState({dataItem:e}):this._previousDataItem?this.updateState({dataItem:this._previousDataItem}):this.clearState(),this.resetSelection())},j.prototype.handleFilter=function(e){this.filterChange.emit(e.target.value)},j.prototype.pageChange=function(e){this.virtual.skip=e.skip},j.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()})})},j.prototype.assignAriaDescribedBy=function(){var e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=g.guid();e=(this.valueLabelId+" "+e).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)},j.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,g.getSizeClass("picker",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,g.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,g.getFillModeClass("picker",this.fillMode))},n.__decorate([u.Input(),n.__metadata("design:type",String)],j.prototype,"focusableId",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],j.prototype,"iconClass",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],j.prototype,"loading",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"data",null),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"value",null),n.__decorate([u.Input(),n.__metadata("design:type",String)],j.prototype,"textField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],j.prototype,"valueField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"popupSettings",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],j.prototype,"listHeight",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object)],j.prototype,"defaultItem",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],j.prototype,"disabled",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],j.prototype,"itemDisabled",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],j.prototype,"readonly",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],j.prototype,"filterable",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"virtual",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],j.prototype,"ignoreCase",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Number)],j.prototype,"delay",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],j.prototype,"valuePrimitive",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],j.prototype,"tabindex",void 0),n.__decorate([u.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],j.prototype,"tabIndex",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],j.prototype,"size",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],j.prototype,"rounded",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],j.prototype,"fillMode",null),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"valueChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"filterChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"selectionChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"open",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"opened",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"close",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"closed",void 0),n.__decorate([u.Output("focus"),n.__metadata("design:type",u.EventEmitter)],j.prototype,"onFocus",void 0),n.__decorate([u.Output("blur"),n.__metadata("design:type",u.EventEmitter)],j.prototype,"onBlur",void 0),n.__decorate([u.ContentChild(d.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",d.ItemTemplateDirective)],j.prototype,"itemTemplate",void 0),n.__decorate([u.ContentChild(v.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",v.GroupTemplateDirective)],j.prototype,"groupTemplate",void 0),n.__decorate([u.ContentChild(f.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",f.FixedGroupTemplateDirective)],j.prototype,"fixedGroupTemplate",void 0),n.__decorate([u.ContentChild(_.ValueTemplateDirective,{static:!1}),n.__metadata("design:type",_.ValueTemplateDirective)],j.prototype,"valueTemplate",void 0),n.__decorate([u.ContentChild(b.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",b.HeaderTemplateDirective)],j.prototype,"headerTemplate",void 0),n.__decorate([u.ContentChild(y.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",y.FooterTemplateDirective)],j.prototype,"footerTemplate",void 0),n.__decorate([u.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],j.prototype,"noDataTemplate",void 0),n.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),n.__metadata("design:type",u.ViewContainerRef)],j.prototype,"container",void 0),n.__decorate([u.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",u.TemplateRef)],j.prototype,"popupTemplate",void 0),n.__decorate([u.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],j.prototype,"optionsList",void 0),n.__decorate([u.HostBinding("class.k-dropdownlist"),u.HostBinding("class.k-picker"),n.__metadata("design:type",Boolean)],j.prototype,"hostClasses",void 0),n.__decorate([u.HostBinding("class.k-disabled"),u.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],j.prototype,"isDisabled",null),n.__decorate([u.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],j.prototype,"isLoading",null),n.__decorate([u.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"id",null),n.__decorate([u.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"dir",null),n.__decorate([u.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],j.prototype,"hostTabIndex",null),n.__decorate([u.HostBinding("attr.readonly"),u.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],j.prototype,"isReadonly",null),n.__decorate([u.HostBinding("attr.role"),u.HostBinding("attr.aria-haspopup"),n.__metadata("design:type",String)],j.prototype,"role",void 0),n.__decorate([u.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],j.prototype,"isAriaExpanded",null),n.__decorate([u.HostBinding("attr.aria-owns"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"hostAriaOwns",null),n.__decorate([u.HostBinding("attr.aria-activedescendant"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"hostAriaActivedescendant",null),n.__decorate([u.HostBinding("attr.aria-label"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"hostNoDataLabel",null),n.__decorate([u.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],j.prototype,"keydown",null),n.__decorate([u.HostListener("keypress",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],j.prototype,"keypress",null),n.__decorate([u.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[MouseEvent]),n.__metadata("design:returntype",void 0)],j.prototype,"click",null),M=n.__decorate([u.Component({exportAs:"kendoDropDownList",providers:[t.DROPDOWNLIST_VALUE_ACCESSOR,E.DataService,p.SelectionService,l.NavigationService,k.DisabledItemsService,x.LocalizationService,{provide:x.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:O.FilterableComponent,useExisting:u.forwardRef(function(){return M})},{provide:s.KendoInput,useExisting:u.forwardRef(function(){return M})}],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,u.Optional()),n.__param(10,u.Inject(D.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[u.ElementRef,x.LocalizationService,w.PopupService,p.SelectionService,l.NavigationService,k.DisabledItemsService,E.DataService,u.NgZone,u.Renderer2,u.ChangeDetectorRef,Boolean])],j));function j(e,t,i,n,a,o,s,r,p,l,d){this.wrapper=e,this.localization=t,this.popupService=i,this.selectionService=n,this.navigationService=a,this.disabledItemsService=o,this.dataService=s,this._zone=r,this.renderer=p,this.cdr=l,this.touchEnabled=d,this.focusableId="k-"+g.guid(),this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new u.EventEmitter,this.filterChange=new u.EventEmitter,this.selectionChange=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.EventEmitter,this.hostClasses=!0,this.role="listbox",this.groupIndices=[],this.listBoxId=g.guid(),this.optionPrefix=g.guid(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.word="",this.last="",this.filterFocused=new u.EventEmitter,this.filterBlurred=new u.EventEmitter,this.hostElementFocused=new u.EventEmitter,this.hostElementBlurred=new u.EventEmitter,this.selectionSubscription=new m.Subscription,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",c.validatePackage(h.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}t.DropDownListComponent=A},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:'"li[role=option], li[role=group]"'}),n.__metadata("design:paramtypes",[i.ElementRef])],a);function a(e){this.element=e}t.ListItemDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),u=i(1),a=i(3),o=i(15),c=i(36),h=i(35),s=i(34),r=i(22),p=i(14),l=i(13),d=i(21),m=i(20),g=i(6),v=i(19),f=i(10),_=i(12),b=i(2),y=i(27),C=i(18),S=i(11),I=i(4),x=i(8),w=i(26),D=i(9),T=i(25),k=i(33),i=i(7);t.AUTOCOMPLETE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return O})};var E,O=(E=P,Object.defineProperty(P.prototype,"width",{get:function(){var e=0;a.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(P.prototype,"height",{get:function(){var e=this.popupSettings.height;return b.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.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(P.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(P.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),P.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=b.isPresent(t)?t:!i._open;i._toggle(e)})},Object.defineProperty(P.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),P.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(P.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(P.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(P.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&&0<this.dataService.itemsCount&&(this.suggestedText=b.getter(this.dataService.itemAt(0),this.valueField))},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=k.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.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(P.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(P.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(P.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),P.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages(),this.setComponentClasses()},P.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},P.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})},P.prototype.reset=function(){this.value=""},P.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])},P.prototype.writeValue=function(e){this.value=e},P.prototype.registerOnChange=function(e){this.onChangeCallback=e},P.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},P.prototype.setDisabledState=function(e){this.disabled=e},P.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;b.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},P.prototype.focus=function(){this.disabled||this.searchbar.focus()},P.prototype.blur=function(){this.disabled||this.searchbar.blur()},P.prototype.onResize=function(){var e,t,i;this._open&&(e=this.popupRef.popupElement,t=(i=this.width).min,i=i.max,e.style.minWidth=t,e.style.width=i)},P.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},P.prototype.verifySettings=function(e){if(u.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/")},P.prototype.search=function(e,t){void 0===t&&(t=0),t=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(t)?t+1<this.dataService.itemsCount?this.search(e,t+1):this.selectionService.focus(-1):(this.selectionService.focus(t),this.suggest&&(this.suggestedText=b.getter(this.dataService.itemAt(t),this.valueField)))},P.prototype.navigate=function(e){this.isOpen&&this.selectionService.focus(e)},P.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;this.disabled||this.readonly||isNaN(t)||(t=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==y.NavigationAction.Undefined&&t!==y.NavigationAction.Backspace&&t!==y.NavigationAction.Delete&&t!==y.NavigationAction.Home&&t!==y.NavigationAction.End&&t!==y.NavigationAction.Left&&t!==y.NavigationAction.Right&&(t===y.NavigationAction.Enter&&this.isOpen||t!==y.NavigationAction.Enter)&&e.preventDefault()},P.prototype.handleEnter=function(e){var t,i=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),t=0<=i?b.getter(this.dataService.itemAt(i),this.valueField):(t=this.suggest&&this.suggestedText&&this.data.length&&b.getter(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase(),this.isOpen&&t?this.suggestedText:this.searchbar.value),this.change(t)},P.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null},P.prototype.searchBarChange=function(e){var t=b.isPresent(this.text)?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.togglePopup(0<e.length),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)},P.prototype.handleFocus=function(){var e=this;this.isFocused=!0,a.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()})},P.prototype.handleBlur=function(){var e=this,t=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0;var i=(t=-1!==t?(i=this.dataService.itemAt(t),b.getter(i,this.valueField)||""):this.searchbar.value)===this.searchbar.value,t=t.toLowerCase()===this.searchbar.value.toLowerCase();!i&&t&&this.selectionService.resetSelection([]),this.isFocused=!1;var n=this.value!==this.text;a.hasObservers(this.onBlur)||a.hasObservers(this.close)||b.isUntouched(this.wrapper)||n?this._zone.run(function(){n&&e.change(e.searchbar.value),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)},P.prototype.pageChange=function(e){this.virtual.skip=e.skip},P.prototype.change=function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)},P.prototype.subscribeEvents=function(){var i=this;a.isDocumentAvailable()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe(function(e){var t=i.value!==e;i.value=e,i.text=e,t&&i.emitChange(e)}),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(e){return i.navigate(e.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return i.togglePopup(!1)}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))},P.prototype.subscribeTouchEvents=function(){var t=this;a.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!b.inDropDown(t.hostElement,e,t.popupRef)&&t._zone.run(function(){return t.blur()})})})},P.prototype.unsubscribeEvents=function(){a.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())},P.prototype.handleItemChange=function(e){var e=e.indices.length?e.indices[0]:void 0;this.selectionService.resetSelection([-1]),b.isPresent(e)&&(e=b.getter(this.dataService.itemAt(e),this.valueField),this.change(e))},P.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&0<=t)&&(this.suggestedText=b.getter(this.dataService.itemAt(t),this.valueField))},P.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:t,vertical:"top"},anchorAlign:{horizontal:t,vertical:"bottom"}});var i=this.popupRef.popupElement,n=this.width,t=n.min,n=n.max;i.addEventListener("mousedown",this.popupMouseDownHandler),i.style.minWidth=t,i.style.width=n,i.style.height=this.height,i.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)})},P.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},P.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},P.prototype.triggerPopupEvents=function(e){var t=new S.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},P.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},P.prototype.findIndexPredicate=function(t){var i=this;return this.dataService.grouped?function(e){e=b.getter(e.value,i.valueField);return(e=b.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=b.getter(e,i.valueField);return(e=b.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},P.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()})})},P.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([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"highlightFirst",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],P.prototype,"focusableId",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"data",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],P.prototype,"value",null),n.__decorate([u.Input(),n.__metadata("design:type",String)],P.prototype,"valueField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],P.prototype,"placeholder",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],P.prototype,"listHeight",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"loading",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"clearButton",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"suggest",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],P.prototype,"itemDisabled",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Number)],P.prototype,"tabindex",void 0),n.__decorate([u.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],P.prototype,"tabIndex",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"filterable",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"virtual",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],P.prototype,"size",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],P.prototype,"rounded",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],P.prototype,"fillMode",null),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"valueChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"filterChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"open",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"opened",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"close",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"closed",void 0),n.__decorate([u.Output("focus"),n.__metadata("design:type",u.EventEmitter)],P.prototype,"onFocus",void 0),n.__decorate([u.Output("blur"),n.__metadata("design:type",u.EventEmitter)],P.prototype,"onBlur",void 0),n.__decorate([u.ContentChild(r.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",r.ItemTemplateDirective)],P.prototype,"template",void 0),n.__decorate([u.ContentChild(p.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",p.HeaderTemplateDirective)],P.prototype,"headerTemplate",void 0),n.__decorate([u.ContentChild(l.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",l.FooterTemplateDirective)],P.prototype,"footerTemplate",void 0),n.__decorate([u.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],P.prototype,"noDataTemplate",void 0),n.__decorate([u.ContentChild(d.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",d.GroupTemplateDirective)],P.prototype,"groupTemplate",void 0),n.__decorate([u.ContentChild(m.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",m.FixedGroupTemplateDirective)],P.prototype,"fixedGroupTemplate",void 0),n.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),n.__metadata("design:type",u.ViewContainerRef)],P.prototype,"container",void 0),n.__decorate([u.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",u.TemplateRef)],P.prototype,"popupTemplate",void 0),n.__decorate([u.ViewChild(s.SearchBarComponent,{static:!0}),n.__metadata("design:type",s.SearchBarComponent)],P.prototype,"searchbar",void 0),n.__decorate([u.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",T.ListComponent)],P.prototype,"optionsList",void 0),n.__decorate([u.HostBinding("class.k-autocomplete"),u.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],P.prototype,"widgetClasses",void 0),n.__decorate([u.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],P.prototype,"isDisabled",null),n.__decorate([u.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],P.prototype,"isLoading",null),n.__decorate([u.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],P.prototype,"dir",null),E=n.__decorate([u.Component({exportAs:"kendoAutoComplete",providers:[t.AUTOCOMPLETE_VALUE_ACCESSOR,D.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,I.LocalizationService,{provide:I.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:w.FilterableComponent,useExisting:u.forwardRef(function(){return E})},{provide:a.KendoInput,useExisting:u.forwardRef(function(){return E})}],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,u.Optional()),n.__param(10,u.Inject(i.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[I.LocalizationService,D.DataService,x.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,u.NgZone,u.ChangeDetectorRef,u.Renderer2,u.ElementRef,Boolean])],P));function P(e,t,i,n,a,o,s,r,p,l,d){this.localization=e,this.dataService=t,this.popupService=i,this.selectionService=n,this.navigationService=a,this.disabledItemsService=o,this._zone=s,this.cdr=r,this.renderer=p,this.hostElement=l,this.touchEnabled=d,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 u.EventEmitter,this.filterChange=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.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",c.validatePackage(h.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}t.AutoCompleteComponent=O},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(48),s=i(47),r=i(46),p=i(45),i=i(55),i=n.__decorate([a.NgModule({exports:[o.AutoCompleteModule,s.ComboBoxModule,r.DropDownListModule,p.MultiSelectModule,i.DropDownTreesModule]})],l);function l(){}t.DropDownsModule=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),i=i(37),i=(s.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},s.prototype.createTagMapper=function(){var t=o.parseNumber(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(e){return e.length>t?e.slice(0,t).concat([e.slice(t)]):e}},n.__decorate([a.Input("kendoMultiSelectTreeSummaryTag"),n.__metadata("design:type",Object)],s.prototype,"showAfter",void 0),n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeSummaryTag]"}),n.__metadata("design:paramtypes",[i.MultiSelectTreeComponent])],s));function s(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}t.MultiSelectTreeSummaryTagDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,n=i(0),s=i(1),a=i(5),r=i(2),n=(o=i(50).BaseCheckDirective,n.__extends(p,o),p.prototype.handleChange=function(e){var i=this;this.currentCheckedState=e.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map(function(e,t){t=String(t),t=i.treeview.itemLookup(t);i.checkNode(t)}),this.checkedItemsChange.emit(this.checkedItems.slice())},Object.defineProperty(p.prototype,"isIndeterminate",{get:function(){var i=this,e=this.treeview.nodes.some(function(e,t){t=String(t),t=i.treeview.itemLookup(t);return i.someChecked(t)});return!this.isChecked&&e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"isChecked",{get:function(){var i=this;return this.treeview.nodes.every(function(e,t){t=String(t),t=i.treeview.itemLookup(t);return i.allChecked(t)})},enumerable:!0,configurable:!0}),p.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))},p.prototype.ngOnInit=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},p.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},p.prototype.checkNode=function(e){var t,i=this;this.treeview.isDisabled(e.item.dataItem,e.item.index)||((t=[]).push(e.item),r.fetchDescendentNodes(e,function(e){return i.treeview.isVisible(e.dataItem,e.index)&&!i.treeview.isDisabled(e.dataItem,e.index)}).forEach(function(e){return t.push(e.item)}),t.forEach(function(e){i.currentIndeterminateState?"check"===i.lastAction?i.addItem(e):i.removeItem(e):i.currentCheckedState?i.addItem(e):i.removeItem(e)}))},p.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)},p.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([s.Input(),n.__metadata("design:type",String)],p.prototype,"lastAction",void 0),n.__decorate([s.Input(),n.__metadata("design:type",a.TreeViewComponent)],p.prototype,"treeview",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Array)],p.prototype,"checkedItems",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Object)],p.prototype,"valueField",void 0),n.__decorate([s.Input("checkAll"),n.__metadata("design:type",Boolean)],p.prototype,"focused",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],p.prototype,"checkedItemsChange",void 0),n.__decorate([s.HostListener("change",["$event.target"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],p.prototype,"handleChange",null),n.__decorate([s.Directive({selector:"[checkAll]"}),n.__metadata("design:paramtypes",[s.ElementRef,s.NgZone,s.ChangeDetectorRef,s.Renderer2])],p));function p(e,t,i,n){var a=o.call(this)||this;return a.element=e,a.zone=t,a.cdr=i,a.renderer=n,a.checkedItemsChange=new s.EventEmitter,a.checkedKeys=new Set,a}t.CheckAllDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),s=i(5),r=i(12),p=i(17),l=i(2),s=(n=i(50).BaseCheckDirective,a.__extends(d,n),d.prototype.ngOnChanges=function(e){l.isPresent(e.checkable)&&this.toggleCheckOnClick(),l.isPresent(e.checkedItems)&&this.updateItems()},d.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},d.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},d.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},d.prototype.toggleCheckOnClick=function(){var t=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(p.filter(function(e){return"click"===e.type})).subscribe(function(e){e=t.treeView.itemLookup(e.item.index);t.handleCheckedChange(e)}))},d.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},d.prototype.checkNode=function(e){var t,i,n,a=this;this.treeView.isDisabled(e.item.dataItem,e.item.index)||(t=e.item,i=[t],this.checkable.checkChildren&&l.fetchDescendentNodes(e,function(e){return a.treeView.isVisible(e.dataItem,e.index)&&!a.treeView.isDisabled(e.dataItem,e.index)}).forEach(function(e){return i.push(e.item)}),n=!this.isItemChecked(t),i.forEach(function(e){n?a.addItem(e):a.removeItem(e)}))},d.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},d.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},a.__decorate([o.Input(),a.__metadata("design:type",Object)],d.prototype,"checkable",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object)],d.prototype,"valueField",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Array)],d.prototype,"checkedItems",void 0),a.__decorate([o.Output(),a.__metadata("design:type",o.EventEmitter)],d.prototype,"checkedItemsChange",void 0),a.__decorate([o.Directive({selector:"[kendoMultiSelectTreeCheckable]"}),a.__metadata("design:paramtypes",[s.TreeViewComponent])],d));function d(e){var t=n.call(this)||this;return t.treeView=e,t.checkedItemsChange=new o.EventEmitter,t.checkedKeys=new Set,t.subscriptions=new r.Subscription,t.subscriptions.add(t.treeView.checkedChange.subscribe(t.handleCheckedChange.bind(t))),t.treeView.isChecked=t.getCheckedState.bind(t),t}t.CheckDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=(a.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},a.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},n.__decorate([i.Input("filterInput"),n.__metadata("design:type",Boolean)],a.prototype,"focused",void 0),n.__decorate([i.Directive({selector:"[filterInput]"}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone])],a));function a(e,t){this.element=e,this.zone=t}t.FilterInputDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,o=i(0),s=i(1),r=i(4),i=i(54),r=(n=i.Messages,o.__extends(p,n),a=p,Object.defineProperty(p.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([s.Component({providers:[{provide:i.Messages,useExisting:s.forwardRef(function(){return a})}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),o.__metadata("design:paramtypes",[r.LocalizationService])],p));function p(e){var t=n.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,o=i(0),s=i(1),r=i(4),i=i(54),r=(n=i.Messages,o.__extends(p,n),a=p,a=o.__decorate([s.Directive({providers:[{provide:i.Messages,useExisting:s.forwardRef(function(){return a})}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),o.__metadata("design:paramtypes",[r.LocalizationService])],p));function p(e){var t=n.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(31),s=i(28),r=i(2),n=(Object.defineProperty(p.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.hostElement.nativeElement,r.getSizeClass("chip-list",this.size)),e&&this.renderer.addClass(this.hostElement.nativeElement,r.getSizeClass("chip-list",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hostId",{get:function(){return this.id},enumerable:!0,configurable:!0}),p.prototype.tagProp=function(e,t,i){i=t&&this.getPropField(e,t,i);return r.getter(e,i)},p.prototype.isTagDisabled=function(e,i){var n=this;return this.isGroupTag(e)?e.every(function(e,t){return n.disabledIndices.has(t+i)}):this.disabledIndices.has(i)},p.prototype.deleteTag=function(e,t,i){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:i})},p.prototype.itemId=function(e,t){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,t)},p.prototype.isGroupTag=function(e){return e instanceof Array},p.prototype.tagAriaHidden=function(e){return r.isPresent(this.focused)&&this.focused!==e},p.prototype.getPropField=function(t,e,i){var n=e.length-1;if("string"==typeof e)return e;if(this.valueDepth){i=this.valueDepth[i];return n<i?e[n]:e[i]}return e.find(function(e){return e in t})},n.__decorate([a.Input(),n.__metadata("design:type",Array)],p.prototype,"tags",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],p.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],p.prototype,"valueDepth",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],p.prototype,"focused",void 0),n.__decorate([a.Input(),n.__metadata("design:type",o.TagTemplateDirective)],p.prototype,"template",void 0),n.__decorate([a.Input(),n.__metadata("design:type",s.GroupTagTemplateDirective)],p.prototype,"groupTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"tagPrefix",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"rounded",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],p.prototype,"fillMode",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Set)],p.prototype,"disabledIndices",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],p.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)],p.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],p.prototype,"hostId",null),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])],p));function p(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"}t.TagListComponent=n},function(e,t){e.exports=u},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,a=t(2);i.scrollbarWidth=function(){var e;return isNaN(n)&&((e=document.createElement("div")).style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),n=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)),n},i.getRowWidthFromColumnsMeta=function(e){if(t=e,!a.isPresent(t)||0===t.length||!t.toArray().every(function(e){return!isNaN(e.width)&&0<e.width}))return null;var t=i.scrollbarWidth()+2;return e.reduce(function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e},t)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);t.normalizeCheckboxesSettings=function(e){return n.isObject(e)?Object.assign({},{enabled:!0,checkOnClick:!0},e):{enabled:Boolean(e),checkOnClick:!0}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(65);t.AutoCompleteComponent=n.AutoCompleteComponent;n=i(44);t.ComboBoxComponent=n.ComboBoxComponent;n=i(63);t.DropDownListComponent=n.DropDownListComponent;n=i(43);t.MultiSelectComponent=n.MultiSelectComponent;n=i(62);t.MultiColumnComboBoxComponent=n.MultiColumnComboBoxComponent;n=i(40);t.ComboBoxColumnComponent=n.ComboBoxColumnComponent;n=i(39);t.ColumnCellTemplateDirective=n.ColumnCellTemplateDirective;n=i(38);t.ColumnHeaderTemplateDirective=n.ColumnHeaderTemplateDirective;n=i(61);t.DropDownTreeComponent=n.DropDownTreeComponent;n=i(37);t.MultiSelectTreeComponent=n.MultiSelectTreeComponent;n=i(60);t.DropDownTreeFlatBindingDirective=n.DropDownTreeFlatBindingDirective;n=i(59);t.DropDownTreeHierarchyBindingDirective=n.DropDownTreeHierarchyBindingDirective;n=i(58);t.MultiSelectTreeFlatBindingDirective=n.MultiSelectTreeFlatBindingDirective;n=i(57);t.MultiSelectTreeHierarchyBindingDirective=n.MultiSelectTreeHierarchyBindingDirective;n=i(56);t.DropDownTreesExpandDirective=n.DropDownTreesExpandDirective;n=i(55);t.DropDownTreesModule=n.DropDownTreesModule;n=i(30);t.NodeTemplateDirective=n.NodeTemplateDirective;n=i(22);t.ItemTemplateDirective=n.ItemTemplateDirective;n=i(21);t.GroupTemplateDirective=n.GroupTemplateDirective;n=i(20);t.FixedGroupTemplateDirective=n.FixedGroupTemplateDirective;n=i(42);t.CustomItemTemplateDirective=n.CustomItemTemplateDirective;n=i(14);t.HeaderTemplateDirective=n.HeaderTemplateDirective;n=i(13);t.FooterTemplateDirective=n.FooterTemplateDirective;n=i(32);t.ValueTemplateDirective=n.ValueTemplateDirective;n=i(51);t.TemplateContextDirective=n.TemplateContextDirective;n=i(28);t.GroupTagTemplateDirective=n.GroupTagTemplateDirective;n=i(52);t.SelectableDirective=n.SelectableDirective;n=i(49);t.SummaryTagDirective=n.SummaryTagDirective;n=i(53);t.FilterDirective=n.FilterDirective;n=i(66);t.DropDownsModule=n.DropDownsModule;n=i(45);t.MultiSelectModule=n.MultiSelectModule;n=i(23);t.SharedModule=n.SharedModule;n=i(48);t.AutoCompleteModule=n.AutoCompleteModule;n=i(47);t.ComboBoxModule=n.ComboBoxModule;n=i(46);t.DropDownListModule=n.DropDownListModule;n=i(16);t.SharedDirectivesModule=n.SharedDirectivesModule;n=i(25);t.ListComponent=n.ListComponent;n=i(8);t.PopupComponent=n.PopupComponent;n=i(11);t.PreventableEvent=n.PreventableEvent;i=i(41);t.RemoveTagEvent=i.RemoveTagEvent,function(e){for(var t in e)o(t,e[t])}(t)}],n.c=a,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=77)}}});
|
|
5
|
+
System.register("@progress/kendo-angular-dropdowns",["@progress/kendo-angular-popup","@angular/core","tslib","@progress/kendo-common","@progress/kendo-angular-treeview","@angular/common","@angular/forms","@progress/kendo-angular-common","@progress/kendo-angular-l10n","rxjs/operators","@progress/kendo-licensing","rxjs"],function(o){var s,r,l,p,d,u,c,h,m,g,v,f;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){r=t(e)},function(e){l=t(e)},function(e){p=t(e)},function(e){d=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){h=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){v=t(e)},function(e){f=t(e)}],execute:function(){function n(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,a;a={},n.m=i=[function(e,t){e.exports=l},function(e,t){e.exports=r},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=t(3),o=t(29);a.isPresent=function(e){return null!=e},a.isNumber=function(e){return!isNaN(e)},a.guid=function(){for(var e,t="",i=0;i<32;i++)e=16*Math.random()|0,8!==i&&12!==i&&16!==i&&20!==i||(t+="-"),t+=(12===i?4:16===i?3&e|8:e).toString(16);return t},a.combineStr=function(e,t){return e.concat(t.substr(t.toLowerCase().indexOf(e.toLowerCase())+e.length))},a.isWindowAvailable=function(){return"undefined"!=typeof window},a.isArray=function(e){return Array.isArray(e)},a.isObject=function(e){return a.isPresent(e)&&"object"==typeof e},a.isEmptyString=function(e){return"string"==typeof e&&0===e.length},a.resolveValuesInArray=function(e,i,n){return void 0===i&&(i=[]),e.map(function(t){return i.find(function(e){return a.getter(e,n)===t})}).filter(function(e){return void 0!==e})},a.validateComplexValues=function(e,t){return a.isArray(e)&&e.filter(function(e){return a.isObject(e)&&a.isPresent(a.getter(e,t))})},a.resolveAllValues=function(e,t,i){var n=a.validateComplexValues(e,i)||[];return(a.resolveValuesInArray(e,t,i)||[]).concat(n)},a.isObjectArray=function(e){return a.isArray(e)&&e.every(function(e){return a.isObject(e)})},a.selectedIndices=function(e,t,i){var n=t.map(function(e){return a.isPresent(e)&&a.isPresent(a.getter(e,i))?a.getter(e,i):e});return e.reduce(function(e,t){t=a.isPresent(t)&&a.isPresent(a.getter(t,i))?a.getter(t,i):t,t=n.indexOf(t);return-1!==t&&e.push(t),e},[])},a.getter=function(e,t){return a.isPresent(e)?a.isPresent(t)&&a.isObject(e)?o.getter(t)(e):e:null},a.resolveValue=function(t){var e;return a.isPresent(t.value)?{dataItem:e=[t.defaultItem].concat(t.data).find(function(e){return a.getter(e,t.valueField)===t.value}),focused:t.data.indexOf(e),selected:t.data.indexOf(e)}:t.index?(e=t.data[t.index],{dataItem:t.data[t.index],focused:t.index,selected:t.index}):{dataItem:t.defaultItem,focused:-1,selected:-1}},a.sameCharsOnly=function(e,t){for(var i=0;i<e.length;i++)if(e.charAt(i)!==t)return!1;return!0},a.shuffleData=function(e,t,i){return(e=i?[i].concat(e):e).slice(t).concat(e.slice(0,t))},a.matchText=function(e,t,i){if(!a.isPresent(e))return!1;e=String(e);return 0===(e=i?e.toLowerCase():e).indexOf(t)},a.elementFromPoint=function(e,t){if(i.isDocumentAvailable())return document.elementFromPoint(e,t)},a.hasProps=function(t,e){return!!a.isPresent(t)&&e.every(function(e){return t.hasOwnProperty(e)})},a.isUntouched=function(e){return e.className.includes("ng-untouched")},a.noop=function(e){};a.closest=function(e,t){for(var i,n,a,o=e;null!==o&&1===o.nodeType;){if(n=t,a=void 0,!!(a=(i=o).matches||i.msMatchesSelector||i.webkitMatchesSelector)&&a.call(i,n))return o;o=o.parentElement||o.parentNode}return null},a.parseNumber=function(e,t){void 0===t&&(t=0);e=Number(e);return isNaN(e)?t:e},a.inDropDown=function(e,t,i){return e.nativeElement.contains(t)||i&&i.popupElement.contains(t)},a.getHierarchicalItemLevel=function(e){return(e||"").split("_").length-1},a.fetchDescendentNodes=function(e,t){if(!a.isPresent(e)||0===e.children.length)return[];var i=e.children;return(i=a.isPresent(t)?i.filter(function(e){return t(e.item)}):i).forEach(function(e){return i=i.concat(a.fetchDescendentNodes(e,t))}),i},a.valueFrom=function(e,t){var i=e.dataItem,n=e.index,e=e.level,t=Array.isArray(t)?t:[t],n=a.isPresent(e)?e:a.getHierarchicalItemLevel(n),t=t[Math.min(n,t.length-1)];return o.getter(t)(i)},a.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]},a.getRoundedClass=function(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]},a.getFillModeClass=function(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}},function(e,t){e.exports=h},function(e,t){e.exports=m},function(e,t){e.exports=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),n=(s.prototype.getTotal=function(){return this.total},s.prototype.isSelected=function(t){return o.isPresent(this.selectedIndices.find(function(e){return e===t}))},s.prototype.isFocused=function(e){return e===this.focused},s.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},s.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:o.isPresent(e)}))},s.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},s.prototype.unselect=function(e){var t;this.isSelected(e)&&(t=this.selectedIndices.indexOf(e),this.selectedIndices.splice(t,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e}))},s.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})},s.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(s.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!0,configurable:!0}),n.__decorate([a.Injectable()],s));function s(){this.onSelect=new a.EventEmitter,this.onChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.total=0,this.selectedIndices=[]}t.SelectionService=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(1);t.TOUCH_ENABLED=new i.InjectionToken("dropdowns-touch-enabled")},function(e,t){e.exports=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),r=i(2),a=(Object.defineProperty(o.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(o.prototype,"itemsCount",{get:function(){return r.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}),o.prototype.isGrouped=function(e){return r.isPresent(e)&&0!==e.length&&r.isPresent(e[0])&&r.hasProps(e[0],["aggregates","field","items","value"])},o.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},o.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},o.prototype.indexOf=function(t,e){var i=function(e){return e===t};return this.grouped&&(i=function(e){return e.value===t}),this.findIndex(i,e=void 0===e?0:e)},o.prototype.findIndex=function(e,t){void 0===t&&(t=0);var i,n=-1;return n=this.grouped?(i=this._flatData.filter(function(e){return!e.header&&e.offsetIndex>=t}))[n=i.findIndex(e)]?i[n].offsetIndex:-1:-1!==(e=(i=this.data.slice(t)).findIndex(e))?e+t:-1},o.prototype.closestGroup=function(e){for(var t=e;0<=t;t--)if(this._flatData[t].header)return this._flatData[t]},o.prototype.find=function(e){e=this.findIndex(e);return this.itemAt(e)},o.prototype.flatIndex=function(t){if(0===this.itemsCount)return-1;if(!this.grouped)return t;var e=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t});return e?e.index:-1},o.prototype.itemAt=function(t){var e,i;return 0===this.itemsCount||(this.grouped?(i=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t}))&&(e=i.value):e=this.data[t]),e},o.prototype.groupAt=function(t){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(e){return e.header&&e.index===t})},o.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},o.prototype.itemGroup=function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var t=this.groupField();return t?r.getter(e,t):void 0}},o.prototype.flatten=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=0);var a=[];r.isPresent(t=void 0===t?void 0:t)&&a.push({header:!0,index:n+i,offsetIndex:n,value:t});for(var o=0;o<e.length;o++){var s=[];e[o].items?(s=this.flatten(e[o].items,e[o].value,i,o),i+=e[o].items.length):s.push({header:!1,index:n+i+o+1,offsetIndex:i+o,value:e[o]}),a=a.concat(s)}return a},n.__decorate([a.Injectable()],o));function o(){this.grouped=!1,this.groupIndices=[]}t.DataService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),i=i(9),i=(s.prototype.isIndexDisabled=function(e){if(this.itemDisabled){var t=this.dataService.itemAt(e);return o.isPresent(t)?this.itemDisabled({dataItem:t,index:e}):o.isPresent(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0}},s.prototype.isItemDisabled=function(e){if(this.itemDisabled){var t=this.dataService.indexOf(e);return-1!==t?this.itemDisabled({dataItem:e,index:t}):o.isPresent(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0}},n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[i.DataService])],s));function s(e){this.dataService=e,this.itemDisabled=null}t.DisabledItemsService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(a.prototype.preventDefault=function(){this.prevented=!0},a.prototype.isDefaultPrevented=function(){return this.prevented},a);function a(){this.prevented=!1}t.PreventableEvent=n},function(e,t){e.exports=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.FooterTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.HeaderTemplateDirective=i},function(e,t){e.exports=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(22),s=i(21),r=i(20),l=i(14),p=i(13),d=i(18),u=i(32),c=i(31),h=i(28),m=i(72),g=i(71),v=i(53),i=i(70),i=[l.HeaderTemplateDirective,p.FooterTemplateDirective,o.ItemTemplateDirective,s.GroupTemplateDirective,r.FixedGroupTemplateDirective,d.NoDataTemplateDirective,u.ValueTemplateDirective,c.TagTemplateDirective,h.GroupTagTemplateDirective,m.LocalizedMessagesDirective,g.CustomMessagesComponent,v.FilterDirective,i.FilterInputDirective],i=n.__decorate([a.NgModule({declarations:[i],exports:[i]})],f);function f(){}t.SharedDirectivesModule=i},function(e,t){e.exports=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.NoDataTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),s=i(2),o=i(3),r=i(27),l=i(10),i=i(6),p=function(e,t){this.index=e,this.originalEvent=t};t.NavigationEvent=p;d.prototype.process=function(e){var t,i=e.originalEvent.keyCode,n=e.originalEvent.altKey,a=r.NavigationAction.Undefined;n&&i===o.Keys.ArrowDown?a=r.NavigationAction.Open:n&&i===o.Keys.ArrowUp?a=r.NavigationAction.Close:i===o.Keys.Enter?a=r.NavigationAction.Enter:i===o.Keys.Escape?a=r.NavigationAction.Esc:i===o.Keys.Tab?a=r.NavigationAction.Tab:i===o.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=r.NavigationAction.Up):i===o.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=r.NavigationAction.Left):i===o.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=r.NavigationAction.Down):i===o.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=r.NavigationAction.Right):i===o.Keys.Home?(t=this.isDisabled(0)?e.current:0,a=r.NavigationAction.Home):i===o.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,a=r.NavigationAction.End):i===o.Keys.Delete?a=r.NavigationAction.Delete:i===o.Keys.Backspace&&(a=r.NavigationAction.Backspace);e=new p(t,e.originalEvent);return a!==r.NavigationAction.Undefined&&this[r.NavigationAction[a].toLowerCase()].emit(e),a},d.prototype.next=function(e){var t=e.current,i=e.start,n=e.end,a=e.step,o=s.isPresent(t)?this.clampIndex(t+a,i,n):i,e=this.firstFocusableIndex(o,i,n,a);return s.isPresent(e)?e:this.selectionService.isSelected(t)&&i<=t?t:this.firstFocusableIndex(o,i,n,-1*a)},d.prototype.clampIndex=function(e,t,i){return!s.isPresent(e)||e<t?t:i<e?i:e},d.prototype.firstFocusableIndex=function(e,t,i,n){for(;t<=e&&e<=i;){if(!this.isDisabled(e))return e;e+=n}},d.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},i=n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[l.DisabledItemsService,i.SelectionService])],d);function d(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}t.NavigationService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.FixedGroupTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.GroupTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ItemTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(74),s=i(15),r=i(25),l=i(34),p=i(73),d=i(8),u=i(3),c=i(16),h=i(64),m=i(52),g=i(51),v=i(69),i=i(68),i=[r.ListComponent,h.ListItemDirective,m.SelectableDirective,l.SearchBarComponent,g.TemplateContextDirective,p.TagListComponent,v.CheckDirective,i.CheckAllDirective],u=n.__decorate([a.NgModule({declarations:[i],exports:[i,o.CommonModule,s.FormsModule,d.PopupModule,u.ResizeSensorModule,c.SharedDirectivesModule,u.EventsModule],imports:[o.CommonModule,s.FormsModule,d.PopupModule,u.ResizeSensorModule,c.SharedDirectivesModule,u.EventsModule]})],f);function f(){}t.SharedModule=u},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),l=i(1),a=i(3),o=i(64),s=i(22),r=i(21),p=i(20),d=i(2),u=i(6),c=i(12),h=i(17),m=i(10),i=i(9),m=(Object.defineProperty(g.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(g.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(g.prototype,"pageSize",{get:function(){return this.virtual.pageSize||Math.round(this.height/this.virtual.itemHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"scrollHeight",{get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"overflowY",{get:function(){if(d.isPresent(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"checkboxClasses",{get:function(){return(this.size?d.getSizeClass("checkbox",this.size):"")+" "+(this.rounded?d.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),g.prototype.ngOnChanges=function(e){a.isChanged("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),a.isChanged("virtual",e,!1)&&this.setOverflow(),a.isChanged("type",e,!1)&&this.prepareClasses()},g.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()},g.prototype.ngAfterViewChecked=function(){var e;this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,e=this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused,this.scrollToItem(e)),this.dataService.grouped&&this.findCurrentGroup()},g.prototype.ngOnDestroy=function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},g.prototype.onCheckedChange=function(e,t){e=e.target.checked;e&&!this.selectionService.isSelected(t)&&this.selectionService.add(t),!e&&this.selectionService.isSelected(t)&&this.selectionService.unselect(t)},g.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")},g.prototype.isChecked=function(e){e=this.virtual?e+this.virtual.skip:e;return this.selectionService.isSelected(e)},g.prototype.firstVisibleItem=function(){var t=this,e=this.content.nativeElement,i=e.getBoundingClientRect(),e=Array.prototype.slice.call(e.querySelectorAll(".k-disabled"));e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","auto")});i=document.elementFromPoint(i.left+1,i.top+1);return e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","none")}),d.closest(i,"li")},g.prototype.findCurrentGroup=function(){var e,t;this.dataService.grouped?((e=this.firstVisibleItem())?(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)))):this.currentGroup=void 0,this.cdr.detectChanges()):this.currentGroup=void 0},g.prototype.prefetchData=function(){var e,t,i,n,a;this.virtual&&(e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),a=this.content.nativeElement.scrollTop,t=Math.trunc(a/this.virtual.itemHeight),i=a>this.lastScrollTop,n=t+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,a=this.pageSize-(this.lastLoaded-this.startFrom),a=this.lastLoaded-this.pageSize+e>=t-a,i&&n&&this.changePage(t),!i&&a&&this.changePage(t-this.pageSize+e+1))},g.prototype.changePage=function(t){var i=this;this.zone.run(function(){var e=i.pageSize+t;e>i.virtual.total&&(t--,e=i.virtual.total),t<0&&(t=0),i.startFrom=t,i.lastLoaded=e,i.pageChange.emit({skip:t,take:i.pageSize})})},g.prototype.index=function(e,t){return 0<e?this.dataService.groupIndices[e-1]+t:t},g.prototype.getText=function(e){return d.getter(e,this.textField)},g.prototype.getValue=function(e){return d.getter(e,this.valueField)},g.prototype.isDisabled=function(e){return d.isPresent(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},g.prototype.isAltRow=function(e){return"dropdowngrid"===this.type&&e%2!=0},g.prototype.scrollToItem=function(e){var t=e;this.dataService.grouped&&(t=this.dataService.flatIndex(e),t+=this.firstGroupHeaderInTargetedPage(t)?-1:0),this.virtual&&-1<t?this.scrollToIndex(t):(e=this.items.toArray(),d.isPresent(e[t])&&-1!==t&&this.scroll(e[t].element))},g.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,i=t.scrollTop,n=e*this.virtual.itemHeight,a=this.virtual.itemHeight,e=t.clientHeight,a=n+a;n<i?i=n:i+e<a&&(i=a-e),t.scrollTop=i},g.prototype.scroll=function(e){var t,i,n,a;e&&(n=e.nativeElement,t=this.content.nativeElement,i=n.offsetTop,a=n.offsetHeight,e=t.scrollTop,n=t.clientHeight,a=i+a,i<e?e=i:e+n<a&&(e=a-n),t.scrollTop=e)},g.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)},g.prototype.setOverflow=function(){var e;this.virtual&&(e=this.hasVirtualScrollbar()?"scroll":"hidden",this.renderer.setStyle(this.content.nativeElement,"overflow-y",e))},g.prototype.hasVirtualScrollbar=function(){var e=this.content.nativeElement.offsetHeight,t=this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight;return this.virtualContainer&&e<t},g.prototype.positionItems=function(){var i=this;this.items.forEach(function(e,t){t=(t+i.startFrom)*i.virtual.itemHeight;i.renderer.setStyle(e.element.nativeElement,"transform","translateY("+t+"px")})},g.prototype.firstGroupHeaderInTargetedPage=function(e){return!d.isPresent(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},g.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([l.Input(),n.__metadata("design:type",Array)],g.prototype,"selected",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],g.prototype,"focused",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],g.prototype,"textField",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],g.prototype,"valueField",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],g.prototype,"height",void 0),n.__decorate([l.Input(),n.__metadata("design:type",s.ItemTemplateDirective)],g.prototype,"template",void 0),n.__decorate([l.Input(),n.__metadata("design:type",r.GroupTemplateDirective)],g.prototype,"groupTemplate",void 0),n.__decorate([l.Input(),n.__metadata("design:type",p.FixedGroupTemplateDirective)],g.prototype,"fixedGroupTemplate",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],g.prototype,"show",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],g.prototype,"id",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],g.prototype,"optionPrefix",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],g.prototype,"multipleSelection",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Object)],g.prototype,"virtual",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],g.prototype,"type",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Object)],g.prototype,"checkboxes",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],g.prototype,"data",null),n.__decorate([l.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],g.prototype,"size",null),n.__decorate([l.Input(),n.__metadata("design:type",String)],g.prototype,"rounded",void 0),n.__decorate([l.Output(),n.__metadata("design:type",l.EventEmitter)],g.prototype,"onClick",void 0),n.__decorate([l.Output(),n.__metadata("design:type",l.EventEmitter)],g.prototype,"pageChange",void 0),n.__decorate([l.Output(),n.__metadata("design:type",l.EventEmitter)],g.prototype,"listResize",void 0),n.__decorate([l.ViewChildren(o.ListItemDirective),n.__metadata("design:type",l.QueryList)],g.prototype,"items",void 0),n.__decorate([l.ViewChild("content",{static:!0}),n.__metadata("design:type",l.ElementRef)],g.prototype,"content",void 0),n.__decorate([l.ViewChild("list",{static:!0}),n.__metadata("design:type",l.ElementRef)],g.prototype,"list",void 0),n.__decorate([l.ViewChild("virtualContainer",{static:!1}),n.__metadata("design:type",l.ElementRef)],g.prototype,"virtualContainer",void 0),n.__decorate([l.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",[i.DataService,l.ElementRef,u.SelectionService,m.DisabledItemsService,l.ChangeDetectorRef,l.NgZone,l.Renderer2])],g));function g(e,t,i,n,a,o,s){var r=this;this.dataService=e,this.wrapper=t,this.selectionService=i,this.disabledItemsService=n,this.cdr=a,this.zone=o,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 l.EventEmitter,this.pageChange=new l.EventEmitter,this.listResize=new l.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 r.zone.onStable.pipe(h.take(1),h.map(function(){return e}))})).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}t.ListComponent=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterableComponent=function(){}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.NavigationAction||(t.NavigationAction={}))[t.Undefined=0]="Undefined",t[t.Open=1]="Open",t[t.Close=2]="Close",t[t.Enter=3]="Enter",t[t.Tab=4]="Tab",t[t.Esc=5]="Esc",t[t.Delete=6]="Delete",t[t.Backspace=7]="Backspace",t[t.Home=8]="Home",t[t.End=9]="End",t[t.Up=10]="Up",t[t.Down=11]="Down",t[t.Left=12]="Left",t[t.Right=13]="Right"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.GroupTagTemplateDirective=i},function(e,t){e.exports=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.NodeTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.TagTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ValueTemplateDirective=i},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){t=Object.assign({},a,t);return!0===e?t: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=i(3),s=i(3),r=i(2),i=i(4),i=(Object.defineProperty(l.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()},enumerable:!0,configurable:!0}),l.prototype.ngOnInit=function(){var t=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"})},l.prototype.ngOnChanges=function(e){var t;this.input&&(e.userInput||e.suggestedText)&&(t=!e.userInput||!e.userInput.previousValue||this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"",e=this.input.nativeElement.selectionStart,t=t.length===e,this.writeInputValue(this.suggestedText?r.combineStr(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):t?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(e,e),this._previousValue=this.userInput)},l.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},l.prototype.writeInputValue=function(e){o.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},l.prototype.setInputSelection=function(e,t){if(o.isDocumentAvailable()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},l.prototype.handleInput=function(e){e=e.target.value;e!==this.userInput&&(this._previousValue=e,this.valueChange.emit(e))},l.prototype.handleFocus=function(e){this.onFocus.emit(e)},l.prototype.handleBlur=function(e){this.onBlur.emit(e)},l.prototype.handleKeydown=function(e){var t=e.keyCode;-1<[s.Keys.ArrowUp,s.Keys.ArrowDown,s.Keys.ArrowLeft,s.Keys.ArrowRight,s.Keys.Enter,s.Keys.Escape,s.Keys.Delete,s.Keys.Backspace,s.Keys.Home,s.Keys.End].indexOf(t)&&this.onNavigate.emit(e)},l.prototype.focus=function(){o.isDocumentAvailable()&&this.input.nativeElement.focus()},l.prototype.blur=function(){o.isDocumentAvailable()&&this.input.nativeElement.blur()},l.prototype.setInputSize=function(){function e(e){return e?e.length:0}var t=this.input.nativeElement,i=e(this.placeholder),n=e(this.value),n=Math.max(i,n,1);this.renderer.setAttribute(t,"size",n.toString())},n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"listId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"tagListId",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"activeDescendant",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"noDataLabel",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],l.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],l.prototype,"readonly",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],l.prototype,"tabIndex",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],l.prototype,"popupOpen",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"role",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],l.prototype,"userInput",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"suggestedText",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],l.prototype,"valueChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],l.prototype,"onBlur",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],l.prototype,"onFocus",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],l.prototype,"onClick",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],l.prototype,"onNavigate",void 0),n.__decorate([a.ViewChild("input",{static:!0}),n.__metadata("design:type",a.ElementRef)],l.prototype,"input",void 0),n.__decorate([a.HostBinding("class.k-searchbar"),n.__metadata("design:type",Boolean)],l.prototype,"searchBarClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],l.prototype,"placeholder",null),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",[i.LocalizationService,a.Renderer2])],l));function l(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}t.SearchBarComponent=i},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:1642682344,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function l(){return!1}function p(){return P.of([])}function d(){return!1}function u(){return!0}var n,a=i(0),c=i(1),o=i(15),h=i(3),s=i(4),r=i(19),m=i(8),g=i(5),v=i(9),f=i(10),_=i(6),b=i(11),y=i(27),C=i(2),S=i(41),I=i(24),x=i(14),w=i(13),D=i(30),T=i(18),k=i(31),E=i(28),O=i(7),P=i(12),F=i(17),M={animate:!0},A={checkChildren:!0,checkOnClick:!0},s=(n=j,Object.defineProperty(j.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaDescribedBy",{get:function(){return this.tagListId},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaActiveDescendant",{get:function(){return this.focusedTagId},enumerable:!0,configurable:!0}),j.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},j.prototype.handleKeydown=function(e){this.isWrapperActive&&e.keyCode===h.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||this.readonly||this.navigationService.process({originalEvent:e=e})===y.NavigationAction.Open&&e.preventDefault()},Object.defineProperty(j.prototype,"treeview",{get:function(){return this._treeview},set:function(e){var t=this;(this._treeview=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(j.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=C.parseNumber(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.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(j.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(j.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},M,e),this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"checkableSettings",{get:function(){return this._checkableSettings},set:function(e){this._checkableSettings=Object.assign({},A,e)},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"dataItems",{get:function(){var i=this;return this._dataItems||this.value.map(function(e,t){return{dataItem:e,index:null,level:i.valueDepth[t]||0}})},set:function(e){var i=this;this._dataItems=(e||[]).map(function(e,t){return C.hasProps(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:i.valueDepth[t]||0}}),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"focusedTagId",{get:function(){if(!C.isPresent(this.focusedTagIndex)||this.isOpen)return null;var e=this.tags[this.focusedTagIndex];return this.tagPrefix+"-"+C.valueFrom({dataItem:e},this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.prototype,"isOpen",{get:function(){return C.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.prototype,"height",{get:function(){var e=this.popupSettings.height;return C.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.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(j.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isTagFocused",{get:function(){return!this.isOpen&&void 0!==this.focusedTagIndex},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isTreeViewActive",{get:function(){return this.treeview&&this.treeview.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isWrapperActive",{get:function(){return document.activeElement===this.wrapper.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isFilterActive",{get:function(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isCheckAllActive",{get:function(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement},enumerable:!0,configurable:!0}),j.prototype.ngOnInit=function(){var t=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(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()})),this.setComponentClasses()},j.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},j.prototype.ngOnChanges=function(e){var i=this;h.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState(),h.anyChanged(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map(function(e,t){return a.__assign({},e,{level:i.valueDepth[t]||0})}):this.dataItems=this.value)},j.prototype.ngAfterContentChecked=function(){this.verifySettings()},j.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||C.isPresent(this.value)&&0!==this.value.length)},j.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},j.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},j.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),!C.isPresent(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e))},j.prototype.reset=function(){this.value=[],this.dataItems=[],this.valueDepth=[]},j.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=C.isPresent(t)?t:!C.isPresent(i.popupRef);i.destroyPopup(),e&&i.createPopup()})},j.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,h.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus&&this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus())))},j.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.wrapper.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,this.togglePopup(!1),(h.hasObservers(this.onBlur)||C.isUntouched(this.wrapper.nativeElement))&&this._zone.run(function(){t.onBlur.emit(),t.onTouchedCallback()}))},j.prototype.handleNodeClick=function(e){this.isFocused||(e=e.originalEvent.target.parentElement.parentElement,this.lastNodeOnFocus=e,this.focus())},j.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())},j.prototype.messageFor=function(e){return this.localization.get(e)},j.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)},j.prototype.handleRemoveTag=function(e){var i=this,t=e.tag,n=e.index;this.disabled||this.readonly||(e=new S.RemoveTagEvent(t),this.removeTag.emit(e),e.isDefaultPrevented()||(t instanceof Array?(this.dataItems=this.dataItems.filter(function(e,t){return t<i.showAfter||i.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return t<i.showAfter||i.disabledIndices.has(t)})):(this.dataItems=this.dataItems.filter(function(e,t){return t!==n||i.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return t!==n||i.disabledIndices.has(t)})),this.updateValue(this.dataItems),this.isFocused||this.focus()))},j.prototype.handleTagMapperChange=function(e){this.showAfter=C.parseNumber(e),this.setTags()},j.prototype.clearAll=function(e){var i=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter(function(e,t){return i.disabledIndices.has(t)}),this.dataItems=this.dataItems.filter(function(e,t){return i.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return i.disabledIndices.has(t)}),this.emitValueChange(this.value)},j.prototype.writeValue=function(e){this.value=e||[],this.valuePrimitive||(this.dataItems=this.value)},j.prototype.registerOnChange=function(e){this.onChangeCallback=e},j.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},j.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},j.prototype.handleFilterInputChange=function(e){var i=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every(function(e,t){return!i.isVisible(e,String(t))})},Object.defineProperty(j.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(j.prototype,"checkAllCheckboxClasses",{get:function(){return""+(this.size?C.getSizeClass("checkbox",this.size):"")},enumerable:!0,configurable:!0}),j.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},j.prototype.verifySettings=function(){if(c.isDevMode()){if(!C.isPresent(this.valueField)||!C.isPresent(this.textField))throw new Error(I.MultiSelectTreeMessages.textAndValue);if(!C.isArray(this.value))throw new Error(I.MultiSelectTreeMessages.array);if(0<this.value.length){if(this.valuePrimitive&&this.value.some(function(e){return C.isObject(e)}))throw new Error(I.MultiSelectTreeMessages.primitive);var e=this.dataItems.every(function(e){return C.isObject(e.dataItem)});if(this.valuePrimitive&&!C.isArray(this.dataItems))throw new Error(I.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&!e)throw new Error(I.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error(I.MultiSelectTreeMessages.dataItemsLength);if(!this.valuePrimitive&&!C.isObjectArray(this.value))throw new Error(I.MultiSelectTreeMessages.object);if((C.isArray(this.valueField)||C.isArray(this.textField))&&!C.isArray(this.valueDepth))throw new Error(I.MultiSelectTreeMessages.valueDepth);if((C.isArray(this.valueField)||C.isArray(this.textField))&&0===this.valueDepth.length)throw new Error(I.MultiSelectTreeMessages.valueDepth);if((C.isArray(this.valueField)||C.isArray(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error(I.MultiSelectTreeMessages.valueDepthLength)}}},j.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},j.prototype.triggerPopupEvents=function(e){var t=new b.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},j.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:t,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});var i=this.popupRef.popupElement,n=this.width,t=n.min,n=n.max;i.style.minWidth=t,i.style.width=n,i.style.height=this.height,this.renderer.setAttribute(i,"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()})},j.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,h.hasObservers(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},j.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe(function(){return e.togglePopup(!0)}),this.navigationService.enter.pipe(F.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(function(){return e.togglePopup(!0)}),P.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(F.filter(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleRightKey:this.handleLeftKey).bind(this)),this.navigationService.right.pipe(F.filter(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleLeftKey:this.handleRightKey).bind(this)),this.navigationService.home.pipe(F.filter(function(){return!e.isOpen})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(F.filter(function(){return!e.isOpen})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(F.filter(function(){return e.isTagFocused})).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(F.filter(function(){return e.isTagFocused})).subscribe(this.handleDelete.bind(this)))},j.prototype.subscribeFocusEvents=function(){var e=this;h.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)}))},j.prototype.unSubscribeFocusEvents=function(){h.isDocumentAvailable()&&(document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0))},j.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},j.prototype.handleTabKey=function(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())},j.prototype.handleUpKey=function(e){this.treeview&&(e.originalEvent.preventDefault(),!this.isWrapperActive)&&(e="0"===this.treeview.navigationService.activeIndex,this.filterable&&this.isFilterActive?this.focus():this.checkAll&&!this.isCheckAllActive&&e?this.checkAllInput.nativeElement.focus():(this.isCheckAllActive||e)&&(this.filterable?this.filterInput.nativeElement:this).focus())},j.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)},j.prototype.handleRightKey=function(e){e.originalEvent.preventDefault();e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e?this.focusedTagIndex++:this.focusedTagIndex||(this.focusedTagIndex=0)},j.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--},j.prototype.handleEnd=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=this.tags.length-1},j.prototype.handleHome=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=0},j.prototype.handleBackspace=function(){var e,t;void 0!==this.focusedTagIndex?this.handleDelete():(e=this.tags[this.tags.length-1],t=this.tags.length-1,this.handleRemoveTag({tag:e,index:t}))},j.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)},j.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.unSubscribeFocusEvents()},j.prototype.removeTreeViewFromTabOrder=function(){var t=this;this.treeview.element.nativeElement.querySelectorAll("li").forEach(function(e){"0"===e.getAttribute("tabindex")&&(t.lastNodeOnFocus=e,t.lastNodeOnFocus.setAttribute("tabindex","-1"))})},j.prototype.setState=function(){C.isPresent(this.dataItems)&&C.isPresent(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()},j.prototype.setTags=function(){var e=this.dataItems.map(function(e){return e.dataItem});this.tags=this.tagMapper(e),this.disabledIndices=this.disabledItemsMapper()},j.prototype.updateValue=function(e){var t=this,e=this.valuePrimitive?e.map(function(e){return C.valueFrom(e,t.valueField)}):e.map(function(e){return e.dataItem});this.value=e,this.emitValueChange(this.value)},j.prototype.disabledItemsMapper=function(){var n=this;return new Set(this.dataItems.reduce(function(e,t,i){return n.itemDisabled(t.dataItem,t.index)&&e.push(i),e},[]))},j.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))},a.__decorate([c.HostBinding("class.k-dropdowntree"),c.HostBinding("class.k-input"),a.__metadata("design:type",Boolean)],j.prototype,"hostClasses",void 0),a.__decorate([c.HostBinding("class.k-disabled"),c.HostBinding("attr.aria-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],j.prototype,"isDisabled",null),a.__decorate([c.HostBinding("class.k-loading"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],j.prototype,"isLoading",null),a.__decorate([c.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],j.prototype,"id",null),a.__decorate([c.HostBinding("attr.dir"),a.__metadata("design:type",String)],j.prototype,"direction",void 0),a.__decorate([c.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],j.prototype,"hostTabIndex",null),a.__decorate([c.HostBinding("attr.role"),a.__metadata("design:type",String)],j.prototype,"role",void 0),a.__decorate([c.HostBinding("attr.aria-haspopup"),a.__metadata("design:type",String)],j.prototype,"ariaHasPopup",void 0),a.__decorate([c.HostBinding("attr.readonly"),c.HostBinding("attr.aria-readonly"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],j.prototype,"isReadonly",null),a.__decorate([c.HostBinding("attr.aria-describedby"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],j.prototype,"ariaDescribedBy",null),a.__decorate([c.HostBinding("attr.aria-activedescendant"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],j.prototype,"ariaActiveDescendant",null),a.__decorate([c.HostListener("click"),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],j.prototype,"handleClick",null),a.__decorate([c.HostListener("keydown",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],j.prototype,"handleKeydown",null),a.__decorate([c.ContentChild(x.HeaderTemplateDirective,{static:!1}),a.__metadata("design:type",x.HeaderTemplateDirective)],j.prototype,"headerTemplate",void 0),a.__decorate([c.ContentChild(w.FooterTemplateDirective,{static:!1}),a.__metadata("design:type",w.FooterTemplateDirective)],j.prototype,"footerTemplate",void 0),a.__decorate([c.ContentChild(D.NodeTemplateDirective,{static:!1}),a.__metadata("design:type",D.NodeTemplateDirective)],j.prototype,"nodeTemplate",void 0),a.__decorate([c.ContentChild(T.NoDataTemplateDirective,{static:!1}),a.__metadata("design:type",T.NoDataTemplateDirective)],j.prototype,"noDataTemplate",void 0),a.__decorate([c.ContentChild(k.TagTemplateDirective,{static:!1}),a.__metadata("design:type",k.TagTemplateDirective)],j.prototype,"tagTemplate",void 0),a.__decorate([c.ContentChild(E.GroupTagTemplateDirective,{static:!1}),a.__metadata("design:type",E.GroupTagTemplateDirective)],j.prototype,"groupTagTemplate",void 0),a.__decorate([c.ViewChild("popupTemplate",{static:!0}),a.__metadata("design:type",c.TemplateRef)],j.prototype,"popupTemplate",void 0),a.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),a.__metadata("design:type",c.ViewContainerRef)],j.prototype,"container",void 0),a.__decorate([c.ViewChild("treeview",{static:!1}),a.__metadata("design:type",g.TreeViewComponent),a.__metadata("design:paramtypes",[g.TreeViewComponent])],j.prototype,"treeview",null),a.__decorate([c.ViewChild("filterInput",{static:!1}),a.__metadata("design:type",c.ElementRef)],j.prototype,"filterInput",void 0),a.__decorate([c.ViewChild("checkAllInput",{static:!1}),a.__metadata("design:type",c.ElementRef)],j.prototype,"checkAllInput",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],j.prototype,"tabindex",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],j.prototype,"size",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],j.prototype,"rounded",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],j.prototype,"fillMode",null),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],j.prototype,"popupSettings",null),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],j.prototype,"checkableSettings",null),a.__decorate([c.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],j.prototype,"data",null),a.__decorate([c.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],j.prototype,"value",null),a.__decorate([c.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],j.prototype,"dataItems",null),a.__decorate([c.Input(),a.__metadata("design:type",Object)],j.prototype,"textField",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Object)],j.prototype,"valueField",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Array)],j.prototype,"valueDepth",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"loading",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],j.prototype,"placeholder",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Number)],j.prototype,"listHeight",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"disabled",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"readonly",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"valuePrimitive",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"loadOnDemand",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],j.prototype,"focusableId",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"clearButton",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"filterable",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],j.prototype,"checkAll",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],j.prototype,"hasChildren",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],j.prototype,"fetchChildren",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],j.prototype,"isNodeExpanded",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],j.prototype,"isNodeVisible",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],j.prototype,"itemDisabled",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Object)],j.prototype,"tagMapper",void 0),a.__decorate([c.Output("focus"),a.__metadata("design:type",c.EventEmitter)],j.prototype,"onFocus",void 0),a.__decorate([c.Output("blur"),a.__metadata("design:type",c.EventEmitter)],j.prototype,"onBlur",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"open",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"opened",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"close",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"closed",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"nodeExpand",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"nodeCollapse",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"valueChange",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"removeTag",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],j.prototype,"filterChange",void 0),n=a.__decorate([c.Component({exportAs:"kendoMultiSelectTree",providers:[s.LocalizationService,r.NavigationService,v.DataService,f.DisabledItemsService,_.SelectionService,{provide:s.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return n})},{provide:g.DataBoundComponent,useExisting:c.forwardRef(function(){return n})},{provide:g.ExpandableComponent,useExisting:c.forwardRef(function(){return n})},{provide:h.KendoInput,useExisting:c.forwardRef(function(){return n})}],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 '}),a.__param(7,c.Optional()),a.__param(7,c.Inject(O.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[c.ElementRef,m.PopupService,c.Renderer2,r.NavigationService,c.NgZone,s.LocalizationService,c.ChangeDetectorRef,Boolean])],j));function j(e,t,i,n,a,o,s,r){this.wrapper=e,this.popupService=t,this.renderer=i,this.navigationService=n,this._zone=a,this.localization=o,this.cdr=s,this.touchEnabled=r,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-"+h.guid(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=l,this.fetchChildren=p,this.isNodeVisible=u,this.itemDisabled=d,this.tagMapper=function(e){return e||[]},this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.nodeExpand=new c.EventEmitter,this.nodeCollapse=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.removeTag=new c.EventEmitter,this.filterChange=new c.EventEmitter,this.filterStateChange=new c.EventEmitter,this.checkedItems=[],this.checkBy=function(e){return e},this.showAfter=0,this.allNodesHidden=!1,this.tagListId=h.guid(),this.tagPrefix="tag-"+h.guid(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=M,this._checkableSettings=A,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=C.noop,this.onChangeCallback=C.noop,this.direction=o.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeFocusEvents()}t.MultiSelectTreeComponent=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ColumnHeaderTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.ColumnCellTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(39),i=i(38),a=(n.__decorate([a.ContentChild(o.ColumnCellTemplateDirective,{static:!1}),n.__metadata("design:type",o.ColumnCellTemplateDirective)],s.prototype,"cellTemplate",void 0),n.__decorate([a.ContentChild(i.ColumnHeaderTemplateDirective,{static:!1}),n.__metadata("design:type",i.ColumnHeaderTemplateDirective)],s.prototype,"headerTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],s.prototype,"field",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],s.prototype,"title",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],s.prototype,"width",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],s.prototype,"hidden",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"style",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"headerStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"class",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],s.prototype,"headerClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],s.prototype,"media",void 0),n.__decorate([a.Component({selector:"kendo-combobox-column",template:""})],s));function s(){this.hidden=!1,this.matchesMedia=!0}t.ComboBoxColumnComponent=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),a=(n=i(11).PreventableEvent,a.__extends(o,n),o);function o(e){var t=n.call(this)||this;return t.dataItem=e,t}t.RemoveTagEvent=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:"[kendoMultiSelectCustomItemTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],a);function a(e){this.templateRef=e}t.CustomItemTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),h=i(2),o=i(34),m=i(1),g=i(12),v=i(17),s=i(3),r=i(15),f=i(36),_=i(35),l=i(6),p=i(19),d=i(27),u=i(10),c=i(3),b=i(22),y=i(42),C=i(21),S=i(20),I=i(14),x=i(13),w=i(31),D=i(28),T=i(18),k=i(24),E=i(11),O=i(41),P=i(4),F=i(8),M=i(26),A=i(7),j=i(9),B=i(25),z=i(76),R=i(33),r={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:m.forwardRef(function(){return N})},N=((n=L).prototype.focusItemAt=function(e){var t=(this.allowCustom?-1:0)<=0&&e<this.data.length;h.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},L.prototype.focus=function(){this.disabled||this.searchbar.focus()},L.prototype.onSearchBarFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,s.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},L.prototype.blur=function(){this.disabled||this.searchbar.blur()},L.prototype.onSearchBarBlur=function(){var e=this;this.isFocused&&(this.isFocused=!1,s.hasObservers(this.onBlur)||s.hasObservers(this.filterChange)||s.hasObservers(this.close)||h.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()))},L.prototype.onMouseDown=function(e){e.preventDefault()},L.prototype.onResize=function(){var e,t,i;this._open&&(e=this.popupRef.popupElement,t=(i=this.width).min,i=i.max,e.style.minWidth=t,e.style.width=i)},Object.defineProperty(L.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(L.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(L.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(L.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,h.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,h.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,h.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,h.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,h.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,h.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"placeholder",{get:function(){return this.selectedDataItems.length?"":this._placeholder},set:function(e){this._placeholder=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(L.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(L.prototype,"checkboxes",{get:function(){return this._checkboxes},set:function(e){this._checkboxes=z.normalizeCheckboxesSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=R.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"valuePrimitive",{get:function(){return h.isPresent(this._valuePrimitive)?this._valuePrimitive:!h.isPresent(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),L.prototype.hostMousedown=function(e){var t=this.searchbar.input.nativeElement;0===e.button&&(this.isFocused&&this.isOpen&&e.target===t||((!this.touchEnabled||this.touchEnabled&&"SPAN"!==e.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),e.preventDefault()))},Object.defineProperty(L.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(L.prototype,"customItemSizeClass",{get:function(){return""+(this.size?h.getSizeClass("list",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"width",{get:function(){var e=0;s.isDocumentAvailable()&&(e=this.wrapper.nativeElement.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"height",{get:function(){var e=this.popupSettings.height;return h.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"activeDescendant",{get:function(){var e,t,i=this.focusedTagIndex,n=this.selectionService.focused;if(h.isPresent(i)&&!this.isOpen)t=this.tags[i],e=this.tagPrefix;else{if(!h.isPresent(n)||-1===n||!this.isOpen)return null;t=this.dataService.itemAt(n),e=this.optionPrefix}return e+"-"+h.getter(t,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),L.prototype.verifySettings=function(){if(m.isDevMode()&&0!==this.value.length){if(!h.isArray(this.value))throw new Error(k.MultiselectMessages.array);if(!0===this.valuePrimitive&&h.isObjectArray(this.value))throw new Error(k.MultiselectMessages.primitive);if(!1===this.valuePrimitive&&!h.isObjectArray(this.value))throw new Error(k.MultiselectMessages.object);if(!h.isPresent(this.valueField)!=!h.isPresent(this.textField))throw new Error(k.MultiselectMessages.textAndValue)}},L.prototype.change=function(e){var t,i,n=this;!h.isPresent(e.added)&&!h.isPresent(e.removed)||-1!==e.added&&-1!==e.removed?(h.isPresent(e.added)&&(t=this.dataService.itemAt(e.added),t=this.valuePrimitive&&h.isPresent(t)&&h.isPresent(t[this.valueField])?t[this.valueField]:t,this.value=this.value.concat([t])),h.isPresent(e.removed)&&(i=this.dataService.itemAt(e.removed),this.value=this.value.filter(function(e){return h.getter(e,n.valueField)!==h.getter(i,n.valueField)}),this.selectionService.focused=e.removed,this.cdr.detectChanges()),this.emitValueChange()):this.addCustomValue(this.text)},L.prototype.setState=function(e){var i=this,t=this.dataService.data;this.dataService.grouped&&(t=t.filter(function(e){return!e.header}).map(function(e){return e.value}));var n=h.selectedIndices(this.value,t,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&&(0<this.dataService.itemsCount?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(h.isObjectArray(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=h.resolveAllValues(e,t,this.valueField)),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map(function(t){var e=i.selectedDataItems.find(function(e){return h.getter(e,i.valueField)===h.getter(t,i.valueField)});return h.isPresent(e)?e:i.resolveDataItemFromTags(t)}).filter(function(e){return h.isPresent(e)})),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()},L.prototype.handleFilter=function(e){(this.text=e)&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()},L.prototype.pageChange=function(e){this.virtual.skip=e.skip},L.prototype.clearFilter=function(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()},L.prototype.handleNavigate=function(e){var t=this.text&&e.keyCode!==c.Keys.ArrowDown&&e.keyCode!==c.Keys.ArrowUp,i=this.text&&e.keyCode===c.Keys.Enter||e.keyCode===c.Keys.Escape;!this.text&&e.keyCode===c.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||t&&!i||(t=e,i=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,(t=this.navigationService.process({current:i,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:t}))!==d.NavigationAction.Undefined&&(t===d.NavigationAction.Enter&&this.isOpen||t!==d.NavigationAction.Enter)&&e.preventDefault())},L.prototype.handleRemoveTag=function(e){var t=e.tag,e=new O.RemoveTagEvent(t);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(e),e.isDefaultPrevented()||(t instanceof Array?this.removeGroupTag(t):this.removeSingleTag(t),this.cdr.detectChanges()))},L.prototype.clearAll=function(e){var i=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter();var n=this.selectionService.selected;this.value=this.value.filter(function(e,t){return i.disabledItemsService.isIndexDisabled(n[t])}),this.emitValueChange()},L.prototype.addCustomValue=function(e){this.customValueSubject.next(e)},L.prototype.ngAfterContentChecked=function(){this.verifySettings()},L.prototype.ngDoCheck=function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1},L.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages(),this.setState(this.value),this.setComponentClasses(),this.initialized=!0},L.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),s.isChanged("valueNormalizer",e)&&this.createCustomValueStream(),s.anyChanged(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)},L.prototype.ngAfterViewInit=function(){this.searchbar.setInputSize()},L.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout)},L.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=h.isPresent(t)?t:!i._open;i._toggle(e),i.cdr.markForCheck()})},Object.defineProperty(L.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),L.prototype.reset=function(){this.text="",this.value=[]},L.prototype.writeValue=function(e){this.value=e||[]},L.prototype.registerOnChange=function(e){this.onChangeCallback=e},L.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},L.prototype.setDisabledState=function(e){this.disabled=e},L.prototype.onTagMapperChange=function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},Object.defineProperty(L.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}),L.prototype.subscribeEvents=function(){var e,t,i,n=this;s.isDocumentAvailable()&&(e=function(){return n.isOpen},t=function(){return!n.isOpen},i=function(){return!n.isOpen&&void 0!==n.focusedTagIndex},[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(v.filter(e)).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(v.filter(e)).subscribe(function(e){return n.handleUp(e.index)}),this.navigationService.home.pipe(v.filter(function(){return t})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(v.filter(function(){return t})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(v.filter(i)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(v.filter(i)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe(("rtl"===this.direction?this.handleRightKey:this.handleLeftKey).bind(this)),this.navigationService.right.subscribe(("rtl"===this.direction?this.handleLeftKey:this.handleRightKey).bind(this)),this.navigationService.down.subscribe(function(e){return n.handleDownKey(e.index)})].forEach(function(e){return n.observableSubscriptions.add(e)}))},L.prototype.subscribeTouchEvents=function(){var t=this;s.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;!t.isFocused&&!t.isOpen||h.inDropDown(t.wrapper,e,t.popupRef)||t._zone.run(function(){t.blur(),t.isOpen&&t.togglePopup(!1)})})})},L.prototype.unsubscribeEvents=function(){s.isDocumentAvailable()&&(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},L.prototype.removeGroupTag=function(e){var i=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter(function(e){return!e.header}).map(function(e){return e.value}));var a=new Set(e.map(function(e){return h.getter(e,i.valueField)}));this.value=this.value.filter(function(e){var t=h.selectedIndices([e],n,i.valueField)[0],t=i.disabledItemsService.isIndexDisabled(t);return!a.has(h.getter(e,i.valueField))||t}),this.emitValueChange()},L.prototype.removeSingleTag=function(t){var i=this,e=this.dataService.data;this.dataService.grouped&&(e=e.filter(function(e){return!e.header}).map(function(e){return e.value}));e=h.selectedIndices([t],e,this.valueField)[0];this.disabledItemsService.isIndexDisabled(e)||(h.isNumber(e)?(this.selectionService.unselect(e),this.selectionService.focused=e,this.togglePopup(!1)):(this.value=this.value.filter(function(e){return h.getter(e,i.valueField)!==h.getter(t,i.valueField)}),this.emitValueChange()))},L.prototype.disabledItemsMapper=function(){var n=this,a=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(e,t,i){return n.disabledItemsService.isIndexDisabled(a[i])&&e.push(i),e},[]))},L.prototype.createCustomValueStream=function(){var a=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(v.tap(function(){a.loading=!0,a.disabled=!0,a.cdr.detectChanges()}),this.valueNormalizer,v.catchError(function(){return a.loading=!1,a.disabled=!1,a.autoClose&&a.togglePopup(!1),!a.autoClose&&a.filterable||a.clearFilter(),a.nextTick(function(){a.searchbar.focus()}),a.createCustomValueStream(),g.of(null)})).subscribe(function(e){var t,i,n;a.loading=!1,a.disabled=!1,h.isPresent(e)&&(t=a.valuePrimitive?h.getter(e,a.valueField):e,n=-1===(i=a.dataService.indexOf(t)),-1===a.value.indexOf(t)?(a.tags=a.tagMapper(a.selectedDataItems.concat([e])),n?a.value=a.value.concat([t]):a.selectionService.add(i)):!n&&a.selectionService.isSelected(i)?(a.selectionService.unselect(i),a.selectionService.focused=i):a.value=a.value.filter(function(e){return h.getter(e,a.valueField)!==t}),a.emitValueChange()),a.autoClose&&a.togglePopup(!1),!a.autoClose&&a.filterable||a.clearFilter(),a.nextTick(function(){a.searchbar.focus()})})},L.prototype.handleItemChange=function(e){this.change(e),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()},L.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)},L.prototype.handleClose=function(){this.closePopup(),this.searchbar.focus()},L.prototype.handleEnd=function(){this.focusedTagIndex=this.tags.length-1},L.prototype.handleHome=function(){this.focusedTagIndex=0},L.prototype.handleUp=function(e){this.selectionService.focused=e},L.prototype.handleBackspace=function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())},L.prototype.handleDelete=function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},L.prototype.handleLeftKey=function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},L.prototype.handleDownKey=function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()},L.prototype.handleRightKey=function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e&&this.focusedTagIndex++},L.prototype.findIndex=function(t,e){var i,n=this;void 0===e&&(e=0),t=t.toLowerCase();e=this.dataService.findIndex(function(e){return i=n.dataService.grouped?h.getter(e.value,n.textField):h.getter(e,n.textField),i=h.isPresent(i)?i.toString().toLowerCase():"",t&&i.startsWith(t)},e);return this.disabledItemsService.isIndexDisabled(e)?e+1>this.dataService.itemsCount?-1:this.findIndex(t,e+1):e},L.prototype.searchTextAndFocus=function(e){e=this.findIndex(e);this.selectionService.focused=e},L.prototype.closePopup=function(){this.togglePopup(!1),this.focusedTagIndex=void 0},L.prototype.openPopup=function(){this.togglePopup(!0),this.focusedTagIndex=void 0},L.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||this._toggle(e)},L.prototype.triggerPopupEvents=function(e){var t=new E.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},L.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},L.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},L.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:t,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});var i=this.popupRef.popupElement,n=this.width,t=n.min,n=n.max;i.addEventListener("mousedown",this.popupMouseDownHandler),i.style.minWidth=t,i.style.width=n,i.style.height=this.height,i.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)})},L.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)},L.prototype.resolveDataItemFromTags=function(t){var i=this;if(this.tags&&this.tags.length&&h.isPresent(t))return this.tags.reduce(function(e,t){t=h.isArray(t)?t:[t];return e.push.apply(e,t),e},[]).find(function(e){return h.getter(e,i.valueField)===h.getter(t,i.valueField)})},L.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},L.prototype.nextTick=function(e){var t=this;this._zone.runOutsideAngular(function(){setTimeout(function(){return t._zone.run(e)})})},L.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()})})},L.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,h.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,h.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,h.getFillModeClass("input",this.fillMode))},a.__decorate([m.Input(),a.__metadata("design:type",String)],L.prototype,"focusableId",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"autoClose",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"loading",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],L.prototype,"data",null),a.__decorate([m.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],L.prototype,"value",null),a.__decorate([m.Input(),a.__metadata("design:type",String)],L.prototype,"valueField",void 0),a.__decorate([m.Input(),a.__metadata("design:type",String)],L.prototype,"textField",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Number)],L.prototype,"tabindex",void 0),a.__decorate([m.Input("tabIndex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],L.prototype,"tabIndex",null),a.__decorate([m.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],L.prototype,"size",null),a.__decorate([m.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],L.prototype,"rounded",null),a.__decorate([m.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],L.prototype,"fillMode",null),a.__decorate([m.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],L.prototype,"placeholder",null),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"disabled",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Function])],L.prototype,"itemDisabled",null),a.__decorate([m.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],L.prototype,"checkboxes",null),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"readonly",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"filterable",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],L.prototype,"virtual",null),a.__decorate([m.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],L.prototype,"popupSettings",null),a.__decorate([m.Input(),a.__metadata("design:type",Number)],L.prototype,"listHeight",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[Boolean])],L.prototype,"valuePrimitive",null),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"clearButton",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Object)],L.prototype,"tagMapper",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Boolean)],L.prototype,"allowCustom",void 0),a.__decorate([m.Input(),a.__metadata("design:type",Function)],L.prototype,"valueNormalizer",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"filterChange",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"valueChange",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"open",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"opened",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"close",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"closed",void 0),a.__decorate([m.Output("focus"),a.__metadata("design:type",m.EventEmitter)],L.prototype,"onFocus",void 0),a.__decorate([m.Output("blur"),a.__metadata("design:type",m.EventEmitter)],L.prototype,"onBlur",void 0),a.__decorate([m.Output(),a.__metadata("design:type",m.EventEmitter)],L.prototype,"removeTag",void 0),a.__decorate([m.ViewChild("container",{read:m.ViewContainerRef,static:!0}),a.__metadata("design:type",m.ViewContainerRef)],L.prototype,"container",void 0),a.__decorate([m.ViewChild(o.SearchBarComponent,{static:!0}),a.__metadata("design:type",o.SearchBarComponent)],L.prototype,"searchbar",void 0),a.__decorate([m.ViewChild("popupTemplate",{static:!0}),a.__metadata("design:type",m.TemplateRef)],L.prototype,"popupTemplate",void 0),a.__decorate([m.ViewChild("optionsList",{static:!1}),a.__metadata("design:type",B.ListComponent)],L.prototype,"optionsList",void 0),a.__decorate([m.ContentChild(b.ItemTemplateDirective,{static:!1}),a.__metadata("design:type",b.ItemTemplateDirective)],L.prototype,"template",void 0),a.__decorate([m.ContentChild(y.CustomItemTemplateDirective,{static:!1}),a.__metadata("design:type",y.CustomItemTemplateDirective)],L.prototype,"customItemTemplate",void 0),a.__decorate([m.ContentChild(C.GroupTemplateDirective,{static:!1}),a.__metadata("design:type",C.GroupTemplateDirective)],L.prototype,"groupTemplate",void 0),a.__decorate([m.ContentChild(S.FixedGroupTemplateDirective,{static:!1}),a.__metadata("design:type",S.FixedGroupTemplateDirective)],L.prototype,"fixedGroupTemplate",void 0),a.__decorate([m.ContentChild(I.HeaderTemplateDirective,{static:!1}),a.__metadata("design:type",I.HeaderTemplateDirective)],L.prototype,"headerTemplate",void 0),a.__decorate([m.ContentChild(x.FooterTemplateDirective,{static:!1}),a.__metadata("design:type",x.FooterTemplateDirective)],L.prototype,"footerTemplate",void 0),a.__decorate([m.ContentChild(w.TagTemplateDirective,{static:!1}),a.__metadata("design:type",w.TagTemplateDirective)],L.prototype,"tagTemplate",void 0),a.__decorate([m.ContentChild(D.GroupTagTemplateDirective,{static:!1}),a.__metadata("design:type",D.GroupTagTemplateDirective)],L.prototype,"groupTagTemplate",void 0),a.__decorate([m.ContentChild(T.NoDataTemplateDirective,{static:!1}),a.__metadata("design:type",T.NoDataTemplateDirective)],L.prototype,"noDataTemplate",void 0),a.__decorate([m.HostBinding("class.k-multiselect"),m.HostBinding("class.k-input"),a.__metadata("design:type",Boolean)],L.prototype,"hostClasses",void 0),a.__decorate([m.HostBinding("attr.dir"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],L.prototype,"dir",null),a.__decorate([m.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],L.prototype,"disabledClass",null),a.__decorate([m.HostBinding("class.k-loading"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],L.prototype,"isLoading",null),a.__decorate([m.HostListener("mousedown",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],L.prototype,"hostMousedown",null),n=a.__decorate([m.Component({exportAs:"kendoMultiSelect",providers:[r,j.DataService,l.SelectionService,p.NavigationService,u.DisabledItemsService,P.LocalizationService,{provide:P.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:M.FilterableComponent,useExisting:m.forwardRef(function(){return n})},{provide:s.KendoInput,useExisting:m.forwardRef(function(){return n})}],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 '}),a.__param(11,m.Optional()),a.__param(11,m.Inject(A.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[m.ElementRef,P.LocalizationService,F.PopupService,j.DataService,l.SelectionService,p.NavigationService,u.DisabledItemsService,m.ChangeDetectorRef,m.KeyValueDiffers,m.Renderer2,m.NgZone,Boolean])],L));function L(e,t,i,n,a,o,s,r,l,p,d,u){var c=this;this.wrapper=e,this.localization=t,this.popupService=i,this.dataService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this.cdr=r,this.differs=l,this.renderer=p,this._zone=d,this.touchEnabled=u,this.listBoxId=h.guid(),this.tagListId=h.guid(),this.tagPrefix="tag-"+h.guid(),this.optionPrefix="option-"+h.guid(),this.focusedTagIndex=void 0,this.focusableId="k-"+h.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(v.map(function(t){function e(e){return"string"==typeof e&&t.toLowerCase()===e.toLowerCase()}var i=c.value.find(e);return i||c.dataService.find(e)||t}))},this.filterChange=new m.EventEmitter,this.valueChange=new m.EventEmitter,this.open=new m.EventEmitter,this.opened=new m.EventEmitter,this.close=new m.EventEmitter,this.closed=new m.EventEmitter,this.onFocus=new m.EventEmitter,this.onBlur=new m.EventEmitter,this.removeTag=new m.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 g.Subject,this.observableSubscriptions=new g.Subscription,f.validatePackage(_.packageMetadata),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}t.MultiSelectComponent=N},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),u=i(1),a=i(15),c=i(36),h=i(35),o=i(34),s=i(22),r=i(14),l=i(13),p=i(21),d=i(20),m=i(18),g=i(6),v=i(19),f=i(10),_=i(12),b=i(17),y=i(3),C=i(2),S=i(27),I=i(3),x=i(11),w=i(4),D=i(8),T=i(7),k=i(24),E=i(26),O=i(9),P=i(25),F=i(33),M=i(29);t.COMBOBOX_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return j})};var A,j=(A=B,Object.defineProperty(B.prototype,"text",{get:function(){return this._text},set:function(e){this._text=C.isPresent(e)?e.toString():""},enumerable:!0,configurable:!0}),B.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(B.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(B.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.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(),this._filtering&&(e=0<this.text.length&&0<this.dataService.itemsCount?this.firstFocusableIndex(0):-1,this.selectionService.focused=e),this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=C.getter(this.dataService.itemAt(0),this.textField))},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.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(B.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(B.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(B.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(B.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(B.prototype,"popupHeight",{get:function(){var e=this.popupSettings.height;return C.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),B.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages(),this.setComponentClasses()},B.prototype.createValueStream=function(){var n=this,e=this.valueSubject.pipe(b.filter(function(e){var t=C.getter(n.value,n.valueField),i=C.getter(e,n.valueField),e=C.getter(e,n.textField);return!(!C.isPresent(n.value)&&!C.isPresent(i)||(C.isPresent(e)&&(e=e.toString()),t===i&&n.text===e&&(n.clearFilter(),1)))}),b.map(function(e){var t=C.getter(e,n.valueField);return{dataItem:e,text:C.getter(e,n.textField),value:n.valuePrimitive?t:e}})),t=b.partition(function(){return n.allowCustom})(this.customValueSubject.pipe(b.throttleTime(300))),i=t[0].pipe(b.tap(function(){n.loading=!0,n.disabled=!0,n.cdr.detectChanges()}),b.filter(function(){var e=n.text!==C.getter(n.value,n.valueField);return n.loading=e,(n.disabled=e)||n.clearFilter(),e}),this.valueNormalizer,b.map(function(e){return{custom:!0,dataItem:e,text:n.text,value:e}})),a=t[1].pipe(b.map(function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}})),t=this.clearValueSubject.pipe(b.map(function(){return{dataItem:void 0,text:void 0,value:void 0}}));this.valueSubscription&&this.valueSubscription.unsubscribe();t=_.merge(e,i,a,t);this.valueSubscription=t.pipe(b.catchError(function(){var e=void 0!==C.getter(n.dataItem,n.valueField);return n.dataItem=void 0,n.value=void 0,n.text=void 0,n.loading=!1,n.disabled=!1,e&&n.selectionChange.emit(void 0),n.emitValueChange(),n.createValueStream(),_.of(null)})).subscribe(function(e){var t=C.getter(n.dataItem,n.valueField)!==C.getter(e.dataItem,n.valueField);n.dataItem=e.dataItem,n.value=e.value,n.text=e.text,n.loading=!1,n.disabled=!1,n.clearFilter(),e.custom&&(n.selectionService.focused=-1),t&&(e=e.custom?void 0:n.dataItem,n.selectionChange.emit(e)),n.emitValueChange()})},B.prototype.attachStreams=function(){var i=this;y.isDocumentAvailable()&&(this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;i.direction=e?"rtl":"ltr",i.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(e){return i.navigate(e.index)})),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(function(){return i.togglePopup(!1)})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(b.tap(function(e){i.isOpen&&e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(_.merge(this.selectionService.onChange,this.selectionService.onSelect.pipe(b.filter(function(e){return!i.isOpen}))).pipe(b.tap(function(e){i._filtering=!1,i.togglePopup(!1)}),b.map(function(e){return i.dataService.itemAt(e.indices[0])})).subscribe(function(e){i.change(e)})),this.subs.add(this.selectionService.onSelect.pipe(b.filter(function(e){return i.isOpen}),b.tap(function(e){return i._filtering=!1}),b.map(function(e){return i.dataService.itemAt(e.indices[0])})).subscribe(function(e){var t=C.getter(e,i.valueField)!==C.getter(i.dataItem,i.valueField);i.updateState({dataItem:e}),t&&i.selectionChange.emit(e)})))},B.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()},B.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()},B.prototype.ngAfterContentChecked=function(){this.verifySettings()},B.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;C.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},B.prototype.focus=function(){this.disabled||this.searchbar.focus()},B.prototype.blur=function(){this.disabled||this.searchbar.blur()},B.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=C.isPresent(t)?t:!i._open;i._toggle(e),i.cdr.markForCheck()})},Object.defineProperty(B.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),B.prototype.reset=function(){this.value=void 0,this.clearState(),this.resetSelection()},B.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},B.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1},B.prototype.writeValue=function(e){this.value=null===e?void 0:e},B.prototype.registerOnChange=function(e){this.onChangeCallback=e},B.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},B.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(B.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(B.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}),B.prototype.onResize=function(){var e,t,i;this.isOpen&&(e=this.popupRef.popupElement,t=(i=this.popupWidth).min,i=i.max,e.style.minWidth=t,e.style.width=i)},B.prototype.verifySettings=function(){if(u.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(k.ComboBoxMessages.primitive);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(k.ComboBoxMessages.object);if(!C.isPresent(this.valueField)!=!C.isPresent(this.textField))throw new Error(k.ComboBoxMessages.textAndValue);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(k.ComboBoxMessages.noItemHeight)}},B.prototype.setState=function(){var e,t;this._filtering||(e=this.value,t=this.valueField,t=this.findDataItem({valueField:t,value:e}),C.isPresent(t.index)&&-1!==t.index?(this.updateState({dataItem:t.dataItem,confirm:!0}),this.resetSelection(t.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)))},B.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=C.getter(t,this.textField),e&&(this._previousDataItem=t)},B.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},B.prototype.resetSelection=function(e){var t=!C.isPresent(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e},B.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},B.prototype.findIndexPredicate=function(t){var i=this;return this.dataService.grouped?function(e){e=C.getter(e.value,i.textField);return(e=C.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=C.getter(e,i.textField);return(e=C.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},B.prototype.findDataItem=function(e){var t=this,i=e.valueField,n=e.value,a={dataItem:null,index:-1},e=this.dataService.findIndex(function(e){e=t.dataService.grouped?e.value:e;return C.getter(e,i)===C.getter(n,i)});return a.dataItem=this.dataService.itemAt(e),a.index=e,a},B.prototype.search=function(e,t){void 0===t&&(t=0),t=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(t)?t+1<this.dataService.itemsCount?this.search(e,t+1):this.selectionService.focus(-1):(this.selectionService.focus(t),this.suggest&&(this.suggestedText=C.getter(this.dataService.itemAt(t),this.textField)))},B.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},B.prototype.navigate=function(e){0!==this.dataService.itemsCount&&(this.text=C.getter(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},B.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;this.disabled||this.readonly||e.keyCode===I.Keys.Home||e.keyCode===I.Keys.End||(t||(e.keyCode===I.Keys.ArrowDown?n=-1:e.keyCode===I.Keys.ArrowUp&&(n=1)),(i=this.navigationService.process({current:n+i,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==S.NavigationAction.Undefined&&i!==S.NavigationAction.Left&&i!==S.NavigationAction.Right&&i!==S.NavigationAction.Backspace&&i!==S.NavigationAction.Delete&&(i===S.NavigationAction.Enter&&this.isOpen||i!==S.NavigationAction.Enter)&&e.preventDefault())},B.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),n=e!==n;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&n&&(e===a||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(i?this.selectionService.change(t):n&&this.change(e,!0))},B.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)},B.prototype.handleEscape=function(){this.togglePopup(!1),0<this.selectionService.selected.length||(this.suggestedText=null,this.selectionService.focused=-1)},B.prototype.handleNavigationOpen=function(){this.restoreItemFocus(),this.togglePopup(!0)},B.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)},B.prototype.handleFocus=function(){var e=this;this.isFocused=!0,y.hasObservers(this.onFocus)&&this.zone.run(function(){return e.onFocus.emit()})},B.prototype.pageChange=function(e){this.virtual.skip=e.skip},B.prototype.change=function(e,t){((t=void 0===t?!1:t)?this.customValueSubject:this.valueSubject).next(e)},B.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem},B.prototype.selectClick=function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)},Object.defineProperty(B.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),B.prototype.preventEventDefault=function(e){e.preventDefault()},Object.defineProperty(B.prototype,"focusedItemText",{get:function(){var e=this.selectionService.focused;if(!C.isPresent(e)||-1===e)return null;e=C.getter(this.dataService.itemAt(e),this.textField);return C.isPresent(e)?e.toString():""},enumerable:!0,configurable:!0}),B.prototype.restoreItemFocus=function(){C.isPresent(this.selectionService.focused)&&-1<this.selectionService.focused||!this.text||!this.dataService.itemsCount||(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))},B.prototype.useSuggestion=function(){if(!this.suggest||!C.isPresent(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),e=C.getter(e,this.textField);return!!C.isPresent(e)&&this.searchbar.value.toLowerCase()===e.toLowerCase()},B.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},B.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:t,vertical:"bottom"},popupAlign:{horizontal:t,vertical:"top"}});var i=this.popupRef.popupElement,n=this.popupWidth,t=n.min,n=n.max;i.addEventListener("mousedown",this.popupMouseDownHandler),i.style.minWidth=t,i.style.width=n,i.style.height=this.popupHeight,i.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)})},B.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},B.prototype.triggerPopupEvents=function(e){var t=new x.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},B.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))},B.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()})})},B.prototype.subscribeTouchEvents=function(){var t=this;y.isDocumentAvailable()&&this.touchEnabled&&this.zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target,e=C.inDropDown(t.wrapper,e,t.popupRef);t.isFocused&&!e?t.zone.run(function(){return t.blur()}):t.isOpen&&!e&&t.zone.run(function(){return t.togglePopup(!1)})})})},B.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=M.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},B.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([u.Input(),n.__metadata("design:type",String)],B.prototype,"focusableId",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"allowCustom",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"data",null),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"value",null),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"textField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"valueField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],B.prototype,"valuePrimitive",null),n.__decorate([u.Input(),n.__metadata("design:type",Function)],B.prototype,"valueNormalizer",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"placeholder",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"popupSettings",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],B.prototype,"listHeight",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],B.prototype,"iconClass",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"loading",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"suggest",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"clearButton",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"disabled",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],B.prototype,"itemDisabled",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"readonly",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Number)],B.prototype,"tabindex",void 0),n.__decorate([u.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],B.prototype,"tabIndex",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],B.prototype,"filterable",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"virtual",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"size",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"rounded",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],B.prototype,"fillMode",null),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"valueChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"selectionChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"filterChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"open",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"opened",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"close",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],B.prototype,"closed",void 0),n.__decorate([u.Output("focus"),n.__metadata("design:type",u.EventEmitter)],B.prototype,"onFocus",void 0),n.__decorate([u.Output("blur"),n.__metadata("design:type",u.EventEmitter)],B.prototype,"onBlur",void 0),n.__decorate([u.ContentChild(s.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",s.ItemTemplateDirective)],B.prototype,"template",void 0),n.__decorate([u.ContentChild(r.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",r.HeaderTemplateDirective)],B.prototype,"headerTemplate",void 0),n.__decorate([u.ContentChild(l.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",l.FooterTemplateDirective)],B.prototype,"footerTemplate",void 0),n.__decorate([u.ContentChild(m.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",m.NoDataTemplateDirective)],B.prototype,"noDataTemplate",void 0),n.__decorate([u.ContentChild(p.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",p.GroupTemplateDirective)],B.prototype,"groupTemplate",void 0),n.__decorate([u.ContentChild(d.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",d.FixedGroupTemplateDirective)],B.prototype,"fixedGroupTemplate",void 0),n.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),n.__metadata("design:type",u.ViewContainerRef)],B.prototype,"container",void 0),n.__decorate([u.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",u.TemplateRef)],B.prototype,"popupTemplate",void 0),n.__decorate([u.ViewChild(o.SearchBarComponent,{static:!0}),n.__metadata("design:type",o.SearchBarComponent)],B.prototype,"searchbar",void 0),n.__decorate([u.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],B.prototype,"optionsList",void 0),n.__decorate([u.ViewChild("select",{static:!0}),n.__metadata("design:type",u.ElementRef)],B.prototype,"select",void 0),n.__decorate([u.HostBinding("class.k-combobox"),u.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],B.prototype,"widgetClasses",void 0),n.__decorate([u.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"isDisabled",null),n.__decorate([u.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"isLoading",null),n.__decorate([u.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],B.prototype,"dir",null),A=n.__decorate([u.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:u.forwardRef(function(){return A})},{provide:y.KendoInput,useExisting:u.forwardRef(function(){return A})}],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,u.Optional()),n.__param(10,u.Inject(T.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[u.ElementRef,w.LocalizationService,D.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,O.DataService,u.NgZone,u.ChangeDetectorRef,u.Renderer2,Boolean])],B));function B(e,t,i,n,a,o,s,r,l,p,d){this.wrapper=e,this.localization=t,this.popupService=i,this.selectionService=n,this.navigationService=a,this.disabledItemsService=o,this.dataService=s,this.zone=r,this.cdr=l,this.renderer=p,this.touchEnabled=d,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 u.EventEmitter,this.selectionChange=new u.EventEmitter,this.filterChange=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.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",c.validatePackage(h.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[]}t.ComboBoxComponent=j},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(29),s=i(43),r=i(42),l=i(49),p=i(23),d=i(16),i=i(7),r=[s.MultiSelectComponent,l.SummaryTagDirective,r.CustomItemTemplateDirective],o=n.__decorate([a.NgModule({declarations:[r],exports:[r,d.SharedDirectivesModule],imports:[p.SharedModule],providers:[{provide:i.TOUCH_ENABLED,useValue:o.touchEnabled}]})],u);function u(){}t.MultiSelectModule=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(63),s=i(23),i=i(16),o=[o.DropDownListComponent],s=n.__decorate([a.NgModule({declarations:[o],exports:[o,i.SharedDirectivesModule],imports:[s.SharedModule]})],r);function r(){}t.DropDownListModule=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(29),s=i(44),r=i(62),l=i(40),p=i(23),d=i(16),u=i(7),c=i(38),i=i(39),i=[s.ComboBoxComponent,r.MultiColumnComboBoxComponent,l.ComboBoxColumnComponent,c.ColumnHeaderTemplateDirective,i.ColumnCellTemplateDirective],o=n.__decorate([a.NgModule({declarations:[i],exports:[i,d.SharedDirectivesModule],imports:[p.SharedModule],providers:[{provide:u.TOUCH_ENABLED,useValue:o.touchEnabled}]})],h);function h(){}t.ComboBoxModule=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(65),s=i(23),i=i(16),o=[o.AutoCompleteComponent],s=n.__decorate([a.NgModule({declarations:[o],exports:[o,i.SharedDirectivesModule],imports:[s.SharedModule]})],r);function r(){}t.AutoCompleteModule=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),i=i(43),i=(s.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},s.prototype.createTagMapper=function(){var i=o.parseNumber(this.showAfter);this.multiSelectComponent.tagMapper=function(e){if(e.length>i){var t=void 0;return(t=e.slice(0,i)).push(e.slice(i,e.length)),t}return e}},n.__decorate([a.Input("kendoMultiSelectSummaryTag"),n.__metadata("design:type",Object)],s.prototype,"showAfter",void 0),n.__decorate([a.Directive({selector:"[kendoMultiSelectSummaryTag]"}),n.__metadata("design:paramtypes",[i.MultiSelectComponent])],s));function s(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}t.SummaryTagDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(0),n=i(1),o=i(2),n=(s.prototype.addItem=function(e){var t;this.isItemChecked(e)||(t=o.getHierarchicalItemLevel(e.index),t=a.__assign({},e,{level:t}),this.checkedItems.push(t),this.checkedKeys.add(o.valueFrom(t,this.valueField)))},s.prototype.removeItem=function(e){var t,i,n=this;this.isItemChecked(e)&&(t=o.getHierarchicalItemLevel(e.index),i=a.__assign({},e,{level:t}),this.checkedItems=this.checkedItems.filter(function(e){return o.valueFrom(e,n.valueField)!==o.valueFrom(i,n.valueField)}),this.checkedKeys.delete(o.valueFrom(i,this.valueField)))},s.prototype.isItemChecked=function(e){return this.checkedKeys.has(o.valueFrom(e,this.valueField))},s.prototype.updateItems=function(){var t=this;this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(function(e){return o.valueFrom(e,t.valueField)}))},a.__decorate([n.Input(),a.__metadata("design:type",Object)],s.prototype,"valueField",void 0),a.__decorate([n.Input(),a.__metadata("design:type",Array)],s.prototype,"checkedItems",void 0),s);function s(){}t.BaseCheckDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=(Object.defineProperty(a.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([i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],a.prototype,"templateContext",null),n.__decorate([i.Directive({selector:"[templateContext]"}),n.__metadata("design:paramtypes",[i.ViewContainerRef])],a));function a(e){this.viewContainerRef=e}t.TemplateContextDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),i=i(6),i=(Object.defineProperty(o.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!0,configurable:!0}),o.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)],o.prototype,"index",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],o.prototype,"checkboxes",void 0),n.__decorate([a.HostBinding("style.height.px"),a.HostBinding("style.minHeight.px"),a.Input(),n.__metadata("design:type",Number)],o.prototype,"height",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],o.prototype,"multipleSelection",void 0),n.__decorate([a.HostBinding("class.k-focus"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],o.prototype,"focusedClassName",null),n.__decorate([a.HostBinding("class.k-selected"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],o.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)],o.prototype,"onClick",null),n.__decorate([a.Directive({selector:"[kendoDropDownsSelectable]"}),n.__metadata("design:paramtypes",[i.SelectionService])],o));function o(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}t.SelectableDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(26),s=i(2),r={caseSensitive:!1,operator:"startsWith"},o=(Object.defineProperty(l.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),l.prototype.ngOnInit=function(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))},l.prototype.ngOnDestroy=function(){s.isPresent(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},l.prototype.handleFilterChange=function(t){var i=this;this.component.data=this.data.filter(function(e){return i.matchesAnyField(e,t)})},l.prototype.matchesAnyField=function(t,e){var i=this,n=this.normalizeValue(e),e=this.filterSettings.fields;return 0===e.length?this.checkItem(t,n):e.some(function(e){return i.checkItem(s.getter(t,e),n)})},l.prototype.checkItem=function(e,t){return e=this.normalizeValue(e),"contains"===this.filterSettings.operator?-1!==e.indexOf(t):0===e.indexOf(t)},l.prototype.normalizeValue=function(e){e=s.isPresent(e)?e.toString():"";return this.filterSettings.caseSensitive?e:e.toLowerCase()},l.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?s.isArray(e)&&0<e.length?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(l.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=s.isPresent(e)&&"object"==typeof e?e.fields:[];return Object.assign({},r,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],l.prototype,"data",null),n.__decorate([a.Input("kendoDropDownFilter"),n.__metadata("design:type",Object)],l.prototype,"rawSettings",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],l.prototype,"filterable",void 0),n.__decorate([a.Directive({selector:"[kendoDropDownFilter]"}),n.__metadata("design:paramtypes",[o.FilterableComponent])],l));function l(e){this.component=e,this.filterable=!0,this._data=[]}t.FilterDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),a=(n=i(4).ComponentMessages,a.__extends(s,n),a.__decorate([o.Input(),a.__metadata("design:type",String)],s.prototype,"noDataText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],s.prototype,"clearTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],s.prototype,"checkAllText",void 0),s);function s(){return null!==n&&n.apply(this,arguments)||this}t.Messages=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(23),s=i(5),r=i(16),l=i(61),p=i(37),d=i(60),u=i(59),c=i(58),h=i(57),m=i(56),g=i(30),i=i(67),i=[l.DropDownTreeComponent,p.MultiSelectTreeComponent,d.DropDownTreeFlatBindingDirective,u.DropDownTreeHierarchyBindingDirective,c.MultiSelectTreeFlatBindingDirective,h.MultiSelectTreeHierarchyBindingDirective,m.DropDownTreesExpandDirective,g.NodeTemplateDirective,i.MultiSelectTreeSummaryTagDirective],s=n.__decorate([a.NgModule({declarations:[i],exports:[i,r.SharedDirectivesModule],imports:[o.SharedModule,s.TreeViewModule]})],v);function v(){}t.DropDownTreesModule=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),i=(n=i.ExpandDirective,a.__extends(s,n),a.__decorate([o.Input("isNodeExpanded"),a.__metadata("design:type",Function)],s.prototype,"isExpanded",void 0),a.__decorate([o.Directive({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),a.__metadata("design:paramtypes",[i.ExpandableComponent])],s));function s(e){return n.call(this,e)||this}t.DropDownTreesExpandDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),i=(n=i.HierarchyBindingDirective,a.__extends(s,n),Object.defineProperty(s.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),a.__decorate([o.Input("kendoMultiSelectTreeHierarchyBinding"),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],s.prototype,"data",null),a.__decorate([o.Directive({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){var t=n.call(this,e)||this;return t.multiSelectTree=e,t}t.MultiSelectTreeHierarchyBindingDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),i=(n=i.FlatDataBindingDirective,a.__extends(s,n),a.__decorate([o.Input("kendoMultiSelectTreeFlatBinding"),a.__metadata("design:type",Array)],s.prototype,"nodes",void 0),a.__decorate([o.Input("valueField"),a.__metadata("design:type",String)],s.prototype,"idField",void 0),a.__decorate([o.Directive({selector:"[kendoMultiSelectTreeFlatBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){return n.call(this,e)||this}t.MultiSelectTreeFlatBindingDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),i=(n=i.HierarchyBindingDirective,a.__extends(s,n),Object.defineProperty(s.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),a.__decorate([o.Input("kendoDropDownTreeHierarchyBinding"),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],s.prototype,"data",null),a.__decorate([o.Directive({selector:"[kendoDropDownTreeHierarchyBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){var t=n.call(this,e)||this;return t.dropDownTree=e,t}t.DropDownTreeHierarchyBindingDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),i=i(5),i=(n=i.FlatDataBindingDirective,a.__extends(s,n),a.__decorate([o.Input("kendoDropDownTreeFlatBinding"),a.__metadata("design:type",Array)],s.prototype,"nodes",void 0),a.__decorate([o.Input("valueField"),a.__metadata("design:type",String)],s.prototype,"idField",void 0),a.__decorate([o.Directive({selector:"[kendoDropDownTreeFlatBinding]"}),a.__metadata("design:paramtypes",[i.DataBoundComponent])],s));function s(e){return n.call(this,e)||this}t.DropDownTreeFlatBindingDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function l(){return!1}function p(){return I.of([])}function d(){return!1}function u(){return!0}var n,a=i(0),c=i(1),h=i(3),o=i(8),s=i(5),r=i(29),m=i(15),g=i(9),v=i(10),f=i(19),_=i(4),b=i(6),y=i(11),C=i(2),S=i(18),I=i(12),x=i(17),w=i(14),D=i(13),T=i(30),k=i(24),E=i(7),i=i(32),O={animate:!0},_=(n=P,Object.defineProperty(P.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),P.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},P.prototype.handleKeydown=function(e){this.disabled||this.readonly||this.navigationService.process({originalEvent:e})},Object.defineProperty(P.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(P.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},O,e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"dataItem",{get:function(){return this._dataItem||this.value},set:function(e){this._dataItem=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.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(P.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}),Object.defineProperty(P.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(P.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(P.prototype,"height",{get:function(){var e=this.popupSettings.height;return C.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isOpen",{get:function(){return C.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),P.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()})),this.setComponentClasses()},P.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},P.prototype.ngOnChanges=function(e){h.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},P.prototype.ngAfterContentChecked=function(){this.verifySettings()},P.prototype.isEmpty=function(){return!this.text&&!this.placeholder},P.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup())},P.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,h.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()})))},P.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.wrapper.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,h.hasObservers(this.onBlur)||C.isUntouched(this.wrapper.nativeElement)?this._zone.run(function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()}):this.togglePopup(!1))},P.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),!C.isPresent(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e))},P.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},P.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},P.prototype.reset=function(){this.value=void 0,this.dataItem=void 0},P.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=C.isPresent(t)?t:!C.isPresent(i.popupRef);i.destroyPopup(),e&&i.createPopup()})},Object.defineProperty(P.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),P.prototype.onSelectionChange=function(e){var t=e.dataItem,e=e.index;this.valueDepth=e.split("_").length-1;e=this.getField(this.valueField,t),e=this.valuePrimitive?r.getter(e)(t):t;e!==this.value&&(this.value=e,this.dataItem=t,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()},P.prototype.messageFor=function(e){return this.localization.get(e)},P.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(P.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),P.prototype.preventEventDefault=function(e){e.preventDefault()},P.prototype.writeValue=function(e){!C.isPresent(e)&&C.isPresent(this.value)&&(this.dataItem=null),this.value=null===e?void 0:e},P.prototype.registerOnChange=function(e){this.onChangeCallback=e},P.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},P.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},P.prototype.handleFilterInputChange=function(e){var i=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every(function(e,t){return!i.isVisible(e,String(t))})},Object.defineProperty(P.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.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}),P.prototype.verifySettings=function(){if(c.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(k.DropDownTreeMessages.primitive);if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.dataItem)throw new Error(k.DropDownTreeMessages.dataItem);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(k.DropDownTreeMessages.object);if(!C.isPresent(this.valueField)||!C.isPresent(this.textField))throw new Error(k.DropDownTreeMessages.textAndValue);if((C.isArray(this.valueField)||C.isArray(this.textField))&&C.isPresent(this.value)&&!C.isPresent(this.valueDepth))throw new Error(k.DropDownTreeMessages.valueDepth)}},P.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},P.prototype.getText=function(e,t){if(C.isPresent(t)&&C.isPresent(e)){e=this.getField(e,t);return r.getter(e)(t)}return null},P.prototype.getField=function(e,t){var i=e.length-1;return"string"==typeof e?e:C.isPresent(this.valueDepth)?i<this.valueDepth?e[i]:e[this.valueDepth]:e.find(function(e){return e in t})},P.prototype.triggerPopupEvents=function(e){var t=new y.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},P.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:t,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});var i=this.popupRef.popupElement,n=this.width,t=n.min,n=n.max;i.style.minWidth=t,i.style.width=n,i.style.height=this.height,i.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()})},P.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,h.hasObservers(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},P.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},P.prototype.setState=function(){var e;C.isPresent(this.value)&&C.isPresent(this.dataItem)&&C.isPresent(this.valueField)?(this.text=this.getText(this.textField,this.dataItem),e=this.getField(this.valueField,this.dataItem),this.selectBy=e,this.selectedKeys=[r.getter(e)(this.dataItem)]):this.clearState(),this.cdr.markForCheck()},P.prototype.clearState=function(){this.text=void 0,this.selectedKeys=[]},P.prototype.subscribeEvents=function(){var t=this;this.subscriptions.push(this.navigationService.open.subscribe(function(){return t.togglePopup(!0)}),this.navigationService.close.subscribe(function(){t.togglePopup(!1),t.focus()}),this.navigationService.enter.pipe(x.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(function(){return t.togglePopup(!0)}),this.navigationService.esc.subscribe(function(){return t.handleEscape()}),this.navigationService.tab.subscribe(function(){return t.focus()}),this.navigationService.down.subscribe(function(e){t.treeview&&(e.originalEvent.preventDefault(),t.treeview.isActive||t.treeview.focus())}),this.navigationService.up.subscribe(function(e){t.treeview&&(e.originalEvent.preventDefault(),t.filterable&&"0"===t.treeview.navigationService.activeIndex&&t.filterInput.nativeElement.focus())}))},P.prototype.subscribeTouchEvents=function(){var t=this;h.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!C.inDropDown(t.wrapper,e,t.popupRef)&&t._zone.run(function(){t.isOpen&&t.treeview.blur(),t.blur()})})})},P.prototype.subscribeFocusEvents=function(){var e=this;h.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)}))},P.prototype.unSubscribeFocusEvents=function(){h.isDocumentAvailable()&&(document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0))},P.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},P.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},P.prototype.assignAriaDescribedBy=function(){var e=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",e=(this.valueLabelId+" "+e.trim()).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)},P.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))},a.__decorate([c.HostBinding("class.k-dropdowntree"),c.HostBinding("class.k-picker"),a.__metadata("design:type",Boolean)],P.prototype,"hostClasses",void 0),a.__decorate([c.HostBinding("class.k-disabled"),c.HostBinding("attr.aria-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isDisabled",null),a.__decorate([c.HostBinding("class.k-loading"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isLoading",null),a.__decorate([c.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],P.prototype,"id",null),a.__decorate([c.HostBinding("attr.dir"),a.__metadata("design:type",String)],P.prototype,"direction",void 0),a.__decorate([c.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],P.prototype,"hostTabIndex",null),a.__decorate([c.HostBinding("attr.role"),a.__metadata("design:type",String)],P.prototype,"role",void 0),a.__decorate([c.HostBinding("attr.aria-haspopup"),a.__metadata("design:type",String)],P.prototype,"ariaHasPopup",void 0),a.__decorate([c.HostBinding("attr.aria-expanded"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isAriaExpanded",null),a.__decorate([c.HostBinding("attr.readonly"),c.HostBinding("attr.aria-readonly"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"isReadonly",null),a.__decorate([c.HostListener("click"),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],P.prototype,"handleClick",null),a.__decorate([c.HostListener("keydown",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],P.prototype,"handleKeydown",null),a.__decorate([c.ContentChild(S.NoDataTemplateDirective,{static:!1}),a.__metadata("design:type",S.NoDataTemplateDirective)],P.prototype,"noDataTemplate",void 0),a.__decorate([c.ContentChild(w.HeaderTemplateDirective,{static:!1}),a.__metadata("design:type",w.HeaderTemplateDirective)],P.prototype,"headerTemplate",void 0),a.__decorate([c.ContentChild(D.FooterTemplateDirective,{static:!1}),a.__metadata("design:type",D.FooterTemplateDirective)],P.prototype,"footerTemplate",void 0),a.__decorate([c.ContentChild(T.NodeTemplateDirective,{static:!1}),a.__metadata("design:type",T.NodeTemplateDirective)],P.prototype,"nodeTemplate",void 0),a.__decorate([c.ContentChild(i.ValueTemplateDirective,{static:!1}),a.__metadata("design:type",i.ValueTemplateDirective)],P.prototype,"valueTemplate",void 0),a.__decorate([c.ViewChild("popupTemplate",{static:!0}),a.__metadata("design:type",c.TemplateRef)],P.prototype,"popupTemplate",void 0),a.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),a.__metadata("design:type",c.ViewContainerRef)],P.prototype,"container",void 0),a.__decorate([c.ViewChild("treeview",{static:!1}),a.__metadata("design:type",s.TreeViewComponent),a.__metadata("design:paramtypes",[s.TreeViewComponent])],P.prototype,"treeview",null),a.__decorate([c.ViewChild("filterInput",{static:!1}),a.__metadata("design:type",c.ElementRef)],P.prototype,"filterInput",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"open",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"opened",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"close",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"closed",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"nodeExpand",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"nodeCollapse",void 0),a.__decorate([c.Output("focus"),a.__metadata("design:type",c.EventEmitter)],P.prototype,"onFocus",void 0),a.__decorate([c.Output("blur"),a.__metadata("design:type",c.EventEmitter)],P.prototype,"onBlur",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"valueChange",void 0),a.__decorate([c.Output(),a.__metadata("design:type",c.EventEmitter)],P.prototype,"filterChange",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"loading",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"clearButton",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],P.prototype,"data",null),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"value",null),a.__decorate([c.Input(),a.__metadata("design:type",Object)],P.prototype,"textField",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Object)],P.prototype,"valueField",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Number)],P.prototype,"valueDepth",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"hasChildren",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"fetchChildren",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],P.prototype,"placeholder",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),a.__decorate([c.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"dataItem",null),a.__decorate([c.Input(),a.__metadata("design:type",Number)],P.prototype,"listHeight",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"valuePrimitive",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],P.prototype,"tabindex",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"size",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"rounded",null),a.__decorate([c.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"fillMode",null),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"itemDisabled",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"isNodeExpanded",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Function)],P.prototype,"isNodeVisible",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"loadOnDemand",void 0),a.__decorate([c.Input(),a.__metadata("design:type",Boolean)],P.prototype,"filterable",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],P.prototype,"filter",void 0),a.__decorate([c.Input(),a.__metadata("design:type",String)],P.prototype,"focusableId",void 0),n=a.__decorate([c.Component({exportAs:"kendoDropDownTree",providers:[g.DataService,b.SelectionService,f.NavigationService,v.DisabledItemsService,_.LocalizationService,{provide:_.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:m.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return n})},{provide:h.KendoInput,useExisting:c.forwardRef(function(){return n})},{provide:s.DataBoundComponent,useExisting:c.forwardRef(function(){return n})},{provide:s.ExpandableComponent,useExisting:c.forwardRef(function(){return n})}],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:c.ChangeDetectionStrategy.OnPush}),a.__param(7,c.Optional()),a.__param(7,c.Inject(E.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[c.ElementRef,o.PopupService,f.NavigationService,c.Renderer2,c.NgZone,c.ChangeDetectorRef,_.LocalizationService,Boolean])],P));function P(e,t,i,n,a,o,s,r){this.wrapper=e,this.popupService=t,this.navigationService=i,this.renderer=n,this._zone=a,this.cdr=o,this.localization=s,this.touchEnabled=r,this.hostClasses=!0,this.role="listbox",this.ariaHasPopup="tree",this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.nodeExpand=new c.EventEmitter,this.nodeCollapse=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.filterChange=new c.EventEmitter,this.clearButton=!0,this.hasChildren=l,this.fetchChildren=p,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=d,this.isNodeVisible=u,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+h.guid(),this.selectedKeys=[],this.filterStateChange=new c.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+h.guid(),this._popupSettings=O,this._tabindex=0,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.onTouchedCallback=C.noop,this.onChangeCallback=C.noop,this.direction=s.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents()}t.DropDownTreeComponent=_},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u,n,a=i(0),o=i(1),s=i(15),r=i(3),l=i(4),p=i(8),d=i(44),c=i(40),h=i(9),m=i(10),g=i(19),v=i(6),f=i(7),_=i(2),b=i(75),y=i(26),C=i(24),h=(u=d.ComboBoxComponent,a.__extends(S,u),n=S,Object.defineProperty(S.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"header",{set:function(e){this.updateHeaderPadding(e&&e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"popupWidth",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=e+"px",e=this.popupSettings.width||b.getRowWidthFromColumnsMeta(this.columns)||e;return{min:t,max:isNaN(e)?e:e+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"tableSizeClass",{get:function(){return""+(this.size?_.getSizeClass("table",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"listContainerClasses",{get:function(){return["k-popup","k-dropdowngrid-popup"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),S.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},S.prototype.ngOnDestroy=function(){u.prototype.ngOnDestroy.call(this),this.removeWindowResizeListener()},S.prototype.textFrom=function(e,t){return _.getter(e,t)},S.prototype.updateHeaderPadding=function(e){var t;_.isPresent(e)&&(t=this.localization.rtl?"padding-left":"padding-right",this.optionsList.hasScrollbar()&&0<b.scrollbarWidth()?this.renderer.setStyle(e,t,b.scrollbarWidth()+"px"):this.renderer.removeStyle(e,t))},S.prototype.verifySettings=function(){if(o.isDevMode()){if(_.isPresent(this.data)&&0<this.data.length&&this.data.some(function(e){return!_.isObject(e)}))throw new Error(C.MultiColumnComboBoxMessages.data);if(!_.isPresent(this.valueField)||!_.isPresent(this.textField))throw new Error(C.MultiColumnComboBoxMessages.textAndValue);u.prototype.verifySettings.call(this)}},S.prototype.addWindowResizeListener=function(){var e=this;r.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))})},S.prototype.updateColumnsMediaState=function(){var i=this;_.isPresent(this.columns)&&r.isDocumentAvailable()&&this.columns.forEach(function(e){var t=!e.media||window.matchMedia(e.media).matches;e.matchesMedia!==t&&(e.matchesMedia=t,i.isOpen&&i.zone.run(function(){return i.popupRef.popupElement.style.width=i.popupWidth.max}))})},a.__decorate([o.HostBinding("class.k-dropdowngrid"),a.__metadata("design:type",Boolean)],S.prototype,"hostClasses",void 0),a.__decorate([o.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],S.prototype,"isDisabled",null),a.__decorate([o.ContentChildren(c.ComboBoxColumnComponent),a.__metadata("design:type",o.QueryList)],S.prototype,"columns",void 0),a.__decorate([o.ViewChild("header",{static:!1}),a.__metadata("design:type",o.ElementRef),a.__metadata("design:paramtypes",[o.ElementRef])],S.prototype,"header",null),n=a.__decorate([o.Component({providers:[v.SelectionService,h.DataService,g.NavigationService,m.DisabledItemsService,l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:s.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return n})},{provide:r.KendoInput,useExisting:o.forwardRef(function(){return n})},{provide:y.FilterableComponent,useExisting:o.forwardRef(function(){return n})}],selector:"kendo-multicolumncombobox",template:'\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText="kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multicolumncombobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <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 '}),a.__param(10,o.Inject(f.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[l.LocalizationService,p.PopupService,v.SelectionService,g.NavigationService,m.DisabledItemsService,h.DataService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.ElementRef,Boolean])],S));function S(e,t,i,n,a,o,s,r,l,p,d){d=u.call(this,p,e,t,i,n,a,o,s,r,l,d)||this;return d.hostClasses=!0,d.removeWindowResizeListener=_.noop,d.defaultVirtualItemHeight=36,d.defaultVirtualPageSize=30,d}t.MultiColumnComboBoxComponent=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),u=i(1),a=i(15),c=i(36),h=i(35),m=i(12),o=i(17),s=i(3),r=i(3),g=i(2),l=i(6),p=i(19),d=i(22),v=i(21),f=i(20),_=i(32),b=i(14),y=i(13),C=i(18),S=i(27),I=i(11),x=i(4),w=i(8),D=i(7),T=i(24),k=i(10),E=i(9),O=i(26),P=i(25),F=i(33);t.DROPDOWNLIST_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return A})};var M,A=(M=j,Object.defineProperty(j.prototype,"width",{get:function(){var e=s.isDocumentAvailable()?this.wrapper.nativeElement.offsetWidth:0,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"height",{get:function(){var e=this.popupSettings.height;return g.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"widgetTabIndex",{get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaOwns",{get:function(){if(this.isOpen)return this.listBoxId},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaActivedescendant",{get:function(){if(g.isPresent(this.dataItem))return this.optionPrefix+"-"+g.getter(this.dataItem,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.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(j.prototype,"value",{get:function(){return this._value},set:function(e){g.isPresent(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=F.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"valuePrimitive",{get:function(){return g.isPresent(this._valuePrimitive)?this._valuePrimitive:!g.isPresent(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,g.getSizeClass("picker",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,g.getSizeClass("picker",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,g.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,g.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,g.getFillModeClass("picker",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,g.getFillModeClass("picker",e)),this._fillMode=e},enumerable:!0,configurable:!0}),j.prototype.blurComponent=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())},j.prototype.blurFilterInput=function(){this.filterBlurred.emit()},j.prototype.focusComponent=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,s.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()})))},j.prototype.onResize=function(){var e,t,i;this._open&&(e=this.popupRef.popupElement,t=(i=this.width).min,i=i.max,e.style.minWidth=t,e.style.width=i)},Object.defineProperty(j.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"hostTabIndex",{get:function(){return this.widgetTabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isAriaExpanded",{get:function(){return this.ariaExpanded},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"hostAriaOwns",{get:function(){return this.ariaOwns},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"hostAriaActivedescendant",{get:function(){return this.ariaActivedescendant},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"hostNoDataLabel",{get:function(){return this.noDataLabel},enumerable:!0,configurable:!0}),j.prototype.keydown=function(e){var t,i=g.isPresent(this.defaultItem)?-1:0,n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(i):this.selectionService.focused,a=0;this.disabled||this.readonly||(t=e.keyCode===r.Keys.Home||e.keyCode===r.Keys.End,this.filterable&&this.isFocused&&this.isOpen&&t||(i=g.isPresent(this.selectionService.selected[0]),t=g.isPresent(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused),i&&!t||(e.keyCode===r.Keys.ArrowDown||e.keyCode===r.Keys.ArrowRight?a=-1:e.keyCode!==r.Keys.ArrowUp&&e.keyCode!==r.Keys.ArrowLeft||(a=1)),e=(a=this.navigationService.process({current:n+a,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:n=e}))===S.NavigationAction.Left||a===S.NavigationAction.Right,a===S.NavigationAction.Undefined||a===S.NavigationAction.Tab||a===S.NavigationAction.Backspace||a===S.NavigationAction.Delete||e&&this.filterable||a===S.NavigationAction.Enter||n.preventDefault()))},j.prototype.keypress=function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)},j.prototype.click=function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)},Object.defineProperty(j.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}),j.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages(),this.assignAriaDescribedBy(),this.setComponentClasses()},j.prototype.isEmpty=function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)},j.prototype.onFilterFocus=function(){this.filterFocused.emit()},j.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()},j.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),s.isChanged("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),s.anyChanged(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},j.prototype.ngAfterContentChecked=function(){this.verifySettings()},j.prototype.focusItemAt=function(e){var t=(g.isPresent(this.defaultItem)?-1:0)<=e&&e<this.data.length;g.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},j.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},j.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},j.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=g.isPresent(t)?t:!i._open;i._toggle(e)})},j.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},j.prototype.triggerPopupEvents=function(e){var t=new I.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},j.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(j.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),j.prototype.reset=function(){this.value=void 0},j.prototype.writeValue=function(e){this.value=null===e?void 0:e},j.prototype.registerOnChange=function(e){this.onChangeCallback=e},j.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},j.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(j.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"selectButtonClasses",{get:function(){return(this.size?g.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"filterInputClasses",{get:function(){return(this.size?g.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?g.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"optionLabelSizeClass",{get:function(){return""+(this.size?g.getSizeClass("list",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.prototype,"isDisabledDefaultItem",{get:function(){return this.disabledItemsService.isItemDisabled(this.defaultItem)},enumerable:!0,configurable:!0}),j.prototype.getText=function(){return this.text},j.prototype.getDefaultItemText=function(){return g.getter(this.defaultItem,this.textField)},j.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:t,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});var i=this.popupRef.popupElement,n=this.width,t=n.min,n=n.max;i.addEventListener("mousedown",this.popupMouseDownHandler),i.style.minWidth=t,i.style.width=n,i.style.height=this.height,i.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)})},j.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},j.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=g.getter(t,this.textField),e&&(this._previousDataItem=t)},j.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},j.prototype.resetSelection=function(e){var t=!g.isPresent(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e},j.prototype.onSelectionChange=function(e){e=e.dataItem;this.updateState({dataItem:e}),this.selectionChange.emit(e),this.assignAriaDescribedBy()},j.prototype.subscribeEvents=function(){var a=this;s.isDocumentAvailable()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(o.filter(function(e){return a.isOpen}),o.map(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(m.merge(this.selectionService.onSelect.pipe(o.filter(function(e){return!a.isOpen})),this.selectionService.onChange).pipe(o.map(this.itemFromEvent.bind(this)),o.tap(function(e){return a.togglePopup(!1)})).subscribe(function(e){var t=e.dataItem,i=e.value;e.newSelection&&a.onSelectionChange({dataItem:t});var n=!g.isPresent(t)&&a._previousDataItem,e=i!==g.getter(a.value,a.valueField);n?(a.updateState({dataItem:a._previousDataItem}),a.resetSelection()):e&&(a.value=a.valuePrimitive?i:t,a._previousDataItem=t,a.emitChange(a.value)),a.clearFilter()})),this.navigationSubscription=m.merge(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(o.skipWhile(function(){return a.filterable})),this.navigationService.right.pipe(o.skipWhile(function(){return a.filterable})),this.navigationService.home,this.navigationService.end).pipe(o.filter(function(e){return!isNaN(e.index)})).subscribe(function(e){return a.selectionService.select(e.index)}),this.openSubscription=this.navigationService.open.subscribe(function(){return a.togglePopup(!0)}),this.closeSubscription=this.navigationService.close.subscribe(function(){a.togglePopup(!1),a.focus()}),this.enterSubscription=this.navigationService.enter.pipe(o.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(o.concatMap(function(){return m.interval(10).pipe(o.take(1),o.takeUntil(a.hostElementFocused))})).subscribe(function(){a.hostElementBlurred.emit()}),this._zone.runOutsideAngular(function(){a.componentBlurredSubscription=m.merge(a.hostElementBlurred.pipe(o.concatMap(function(){return m.interval(10).pipe(o.take(1),o.takeUntil(a.filterFocused))})),a.navigationService.tab).pipe(o.tap(function(e){return e instanceof p.NavigationEvent&&a.focus()}),o.filter(function(){return a.isFocused})).subscribe(function(){return a.componentBlur()})}))},j.prototype.subscribeTouchEvents=function(){var t=this;s.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!g.inDropDown(t.wrapper,e,t.popupRef)&&t._zone.run(function(){t.filterFocused&&t.togglePopup(!1),t.blur()})})})},j.prototype.subscribeFocusEvents=function(){var e=this;s.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)}))},j.prototype.unSubscribeFocusEvents=function(){s.isDocumentAvailable()&&(document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0))},j.prototype.unsubscribeEvents=function(){s.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())},j.prototype.itemFromEvent=function(e){var t=e.indices[0],i=this.dataService.itemAt(t),i=g.isPresent(i)?i:this.currentOrDefault(t),n=g.getter(i,this.valueField);return{dataItem:i,index:t,newSelection:e.newSelection,value:n}},j.prototype.currentOrDefault=function(e){return g.isPresent(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem},j.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},j.prototype.handleEnter=function(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)},j.prototype.handleEscape=function(){g.isPresent(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()},j.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))},j.prototype.verifySettings=function(){if(u.isDevMode()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(T.DropDownListMessages.defaultItem);if(!0===this.valuePrimitive&&g.isPresent(this.value)&&"object"==typeof this.value)throw new Error(T.DropDownListMessages.primitive);if(!1===this.valuePrimitive&&g.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(T.DropDownListMessages.object);if(!g.isPresent(this.valueField)!=!g.isPresent(this.textField))throw new Error(T.DropDownListMessages.textAndValue)}},j.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=g.isPresent(this.selectionService.selected[0])&&g.getter(this.value,this.valueField)!==g.getter(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||s.hasObservers(this.close)||s.hasObservers(this.onBlur)||s.hasObservers(this.filterChange)||g.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)},j.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},j.prototype.onKeyPress=function(e){var t;0!==e.which&&e.keyCode!==r.Keys.Enter&&(t=String.fromCharCode(e.charCode||e.keyCode)," "===(t=this.ignoreCase?t.toLowerCase():t)&&e.preventDefault(),this.word+=t,this.last=t,this.search())},j.prototype.search=function(){var e=this;clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(function(){e.word=""},this.delay),this.selectNext())},j.prototype.selectNext=function(){var e,t,i=this,n=this.dataService.filter(function(e){return g.isPresent(e)&&!e.header&&!i.disabledItemsService.isItemDisabled(e)}).map(function(e){return i.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:i.dataService.indexOf(e)}}),a=g.sameCharsOnly(this.word,this.last),o=n.length,s=!isNaN(this.selectionService.selected[0]),r=s?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(t={item:this.defaultItem,itemIndex:-1},o+=1,r+=1),n=g.shuffleData(n,r+=a&&s?1:0,t),e=0;e<o;e++){var l=g.getter(n[e].item,this.textField),p=Boolean(a&&g.matchText(l,this.last,this.ignoreCase)),l=Boolean(g.matchText(l,this.word,this.ignoreCase));if(p||l){e=n[e].itemIndex;break}}e!==o&&this.navigate(e)},j.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},j.prototype.navigate=function(e){this.selectionService.select(e)},j.prototype.findDataItem=function(e){function t(e){return g.getter(e,i)}var i=e.valueField,n=e.value,a={dataItem:null,index:-1},e=this.dataService.grouped?function(e){return t(e.value)===t(n)}:function(e){return t(e)===t(n)},e=this.dataService.findIndex(e);return a.dataItem=this.dataService.itemAt(e),a.index=e,a},j.prototype.setState=function(){var e=this.value,t=this.valueField,i=this.textField,n=this.valuePrimitive;if(this.defaultItem){var a=g.getter(this.defaultItem,t),o=g.getter(e,t);if(!g.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)))}t=this.findDataItem({valueField:t,value:e}),i=!(n&&i);t.dataItem?(this.updateState({dataItem:t.dataItem,confirm:!0}),this.resetSelection(t.index)):(g.isPresent(e)&&i?this.updateState({dataItem:e}):this._previousDataItem?this.updateState({dataItem:this._previousDataItem}):this.clearState(),this.resetSelection())},j.prototype.handleFilter=function(e){this.filterChange.emit(e.target.value)},j.prototype.pageChange=function(e){this.virtual.skip=e.skip},j.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()})})},j.prototype.assignAriaDescribedBy=function(){var e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=g.guid();e=(this.valueLabelId+" "+e).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)},j.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,g.getSizeClass("picker",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,g.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,g.getFillModeClass("picker",this.fillMode))},n.__decorate([u.Input(),n.__metadata("design:type",String)],j.prototype,"iconClass",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],j.prototype,"loading",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"data",null),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"value",null),n.__decorate([u.Input(),n.__metadata("design:type",String)],j.prototype,"textField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],j.prototype,"valueField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"popupSettings",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],j.prototype,"listHeight",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object)],j.prototype,"defaultItem",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],j.prototype,"disabled",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],j.prototype,"itemDisabled",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],j.prototype,"readonly",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],j.prototype,"filterable",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"virtual",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],j.prototype,"ignoreCase",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Number)],j.prototype,"delay",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],j.prototype,"valuePrimitive",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],j.prototype,"tabindex",void 0),n.__decorate([u.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],j.prototype,"tabIndex",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],j.prototype,"size",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],j.prototype,"rounded",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],j.prototype,"fillMode",null),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"valueChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"filterChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"selectionChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"open",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"opened",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"close",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],j.prototype,"closed",void 0),n.__decorate([u.Output("focus"),n.__metadata("design:type",u.EventEmitter)],j.prototype,"onFocus",void 0),n.__decorate([u.Output("blur"),n.__metadata("design:type",u.EventEmitter)],j.prototype,"onBlur",void 0),n.__decorate([u.ContentChild(d.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",d.ItemTemplateDirective)],j.prototype,"itemTemplate",void 0),n.__decorate([u.ContentChild(v.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",v.GroupTemplateDirective)],j.prototype,"groupTemplate",void 0),n.__decorate([u.ContentChild(f.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",f.FixedGroupTemplateDirective)],j.prototype,"fixedGroupTemplate",void 0),n.__decorate([u.ContentChild(_.ValueTemplateDirective,{static:!1}),n.__metadata("design:type",_.ValueTemplateDirective)],j.prototype,"valueTemplate",void 0),n.__decorate([u.ContentChild(b.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",b.HeaderTemplateDirective)],j.prototype,"headerTemplate",void 0),n.__decorate([u.ContentChild(y.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",y.FooterTemplateDirective)],j.prototype,"footerTemplate",void 0),n.__decorate([u.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],j.prototype,"noDataTemplate",void 0),n.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),n.__metadata("design:type",u.ViewContainerRef)],j.prototype,"container",void 0),n.__decorate([u.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",u.TemplateRef)],j.prototype,"popupTemplate",void 0),n.__decorate([u.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],j.prototype,"optionsList",void 0),n.__decorate([u.HostBinding("class.k-dropdownlist"),u.HostBinding("class.k-picker"),n.__metadata("design:type",Boolean)],j.prototype,"hostClasses",void 0),n.__decorate([u.HostBinding("class.k-disabled"),u.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],j.prototype,"isDisabled",null),n.__decorate([u.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],j.prototype,"isLoading",null),n.__decorate([u.Input("id"),u.HostBinding("attr.id"),n.__metadata("design:type",String)],j.prototype,"focusableId",void 0),n.__decorate([u.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"dir",null),n.__decorate([u.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],j.prototype,"hostTabIndex",null),n.__decorate([u.HostBinding("attr.readonly"),u.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],j.prototype,"isReadonly",null),n.__decorate([u.HostBinding("attr.role"),u.HostBinding("attr.aria-haspopup"),n.__metadata("design:type",String)],j.prototype,"role",void 0),n.__decorate([u.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],j.prototype,"isAriaExpanded",null),n.__decorate([u.HostBinding("attr.aria-owns"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"hostAriaOwns",null),n.__decorate([u.HostBinding("attr.aria-activedescendant"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"hostAriaActivedescendant",null),n.__decorate([u.HostBinding("attr.aria-label"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"hostNoDataLabel",null),n.__decorate([u.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],j.prototype,"keydown",null),n.__decorate([u.HostListener("keypress",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],j.prototype,"keypress",null),n.__decorate([u.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],j.prototype,"click",null),M=n.__decorate([u.Component({exportAs:"kendoDropDownList",providers:[t.DROPDOWNLIST_VALUE_ACCESSOR,E.DataService,l.SelectionService,p.NavigationService,k.DisabledItemsService,x.LocalizationService,{provide:x.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:O.FilterableComponent,useExisting:u.forwardRef(function(){return M})},{provide:s.KendoInput,useExisting:u.forwardRef(function(){return M})}],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,u.Optional()),n.__param(10,u.Inject(D.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[u.ElementRef,x.LocalizationService,w.PopupService,l.SelectionService,p.NavigationService,k.DisabledItemsService,E.DataService,u.NgZone,u.Renderer2,u.ChangeDetectorRef,Boolean])],j));function j(e,t,i,n,a,o,s,r,l,p,d){this.wrapper=e,this.localization=t,this.popupService=i,this.selectionService=n,this.navigationService=a,this.disabledItemsService=o,this.dataService=s,this._zone=r,this.renderer=l,this.cdr=p,this.touchEnabled=d,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new u.EventEmitter,this.filterChange=new u.EventEmitter,this.selectionChange=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.EventEmitter,this.hostClasses=!0,this.focusableId="k-"+g.guid(),this.role="listbox",this.groupIndices=[],this.listBoxId=g.guid(),this.optionPrefix=g.guid(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.word="",this.last="",this.filterFocused=new u.EventEmitter,this.filterBlurred=new u.EventEmitter,this.hostElementFocused=new u.EventEmitter,this.hostElementBlurred=new u.EventEmitter,this.selectionSubscription=new m.Subscription,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",c.validatePackage(h.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}t.DropDownListComponent=A},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=n.__decorate([i.Directive({selector:'"li[role=option], li[role=group]"'}),n.__metadata("design:paramtypes",[i.ElementRef])],a);function a(e){this.element=e}t.ListItemDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),u=i(1),a=i(3),o=i(15),c=i(36),h=i(35),s=i(34),r=i(22),l=i(14),p=i(13),d=i(21),m=i(20),g=i(6),v=i(19),f=i(10),_=i(12),b=i(2),y=i(27),C=i(18),S=i(11),I=i(4),x=i(8),w=i(26),D=i(9),T=i(25),k=i(33),i=i(7);t.AUTOCOMPLETE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return O})};var E,O=(E=P,Object.defineProperty(P.prototype,"width",{get:function(){var e=0;a.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(P.prototype,"height",{get:function(){var e=this.popupSettings.height;return b.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.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(P.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(P.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),P.prototype.toggle=function(t){var i=this;Promise.resolve(null).then(function(){var e=b.isPresent(t)?t:!i._open;i._toggle(e)})},Object.defineProperty(P.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),P.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,i=this.isOpen===e;t||i||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(P.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(P.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(P.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&&0<this.dataService.itemsCount&&(this.suggestedText=b.getter(this.dataService.itemAt(0),this.valueField))},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=k.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.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(P.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(P.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(P.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),P.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages(),this.setComponentClasses()},P.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},P.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})},P.prototype.reset=function(){this.value=""},P.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])},P.prototype.writeValue=function(e){this.value=e},P.prototype.registerOnChange=function(e){this.onChangeCallback=e},P.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},P.prototype.setDisabledState=function(e){this.disabled=e},P.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;b.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},P.prototype.focus=function(){this.disabled||this.searchbar.focus()},P.prototype.blur=function(){this.disabled||this.searchbar.blur()},P.prototype.onResize=function(){var e,t,i;this._open&&(e=this.popupRef.popupElement,t=(i=this.width).min,i=i.max,e.style.minWidth=t,e.style.width=i)},P.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},P.prototype.verifySettings=function(e){if(u.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/")},P.prototype.search=function(e,t){void 0===t&&(t=0),t=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(t)?t+1<this.dataService.itemsCount?this.search(e,t+1):this.selectionService.focus(-1):(this.selectionService.focus(t),this.suggest&&(this.suggestedText=b.getter(this.dataService.itemAt(t),this.valueField)))},P.prototype.navigate=function(e){this.isOpen&&this.selectionService.focus(e)},P.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;this.disabled||this.readonly||isNaN(t)||(t=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==y.NavigationAction.Undefined&&t!==y.NavigationAction.Backspace&&t!==y.NavigationAction.Delete&&t!==y.NavigationAction.Home&&t!==y.NavigationAction.End&&t!==y.NavigationAction.Left&&t!==y.NavigationAction.Right&&(t===y.NavigationAction.Enter&&this.isOpen||t!==y.NavigationAction.Enter)&&e.preventDefault()},P.prototype.handleEnter=function(e){var t,i=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),t=0<=i?b.getter(this.dataService.itemAt(i),this.valueField):(t=this.suggest&&this.suggestedText&&this.data.length&&b.getter(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase(),this.isOpen&&t?this.suggestedText:this.searchbar.value),this.change(t)},P.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null},P.prototype.searchBarChange=function(e){var t=b.isPresent(this.text)?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.togglePopup(0<e.length),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)},P.prototype.handleFocus=function(){var e=this;this.isFocused=!0,a.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()})},P.prototype.handleBlur=function(){var e=this,t=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0;var i=(t=-1!==t?(i=this.dataService.itemAt(t),b.getter(i,this.valueField)||""):this.searchbar.value)===this.searchbar.value,t=t.toLowerCase()===this.searchbar.value.toLowerCase();!i&&t&&this.selectionService.resetSelection([]),this.isFocused=!1;var n=this.value!==this.text;a.hasObservers(this.onBlur)||a.hasObservers(this.close)||b.isUntouched(this.wrapper)||n?this._zone.run(function(){n&&e.change(e.searchbar.value),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)},P.prototype.pageChange=function(e){this.virtual.skip=e.skip},P.prototype.change=function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)},P.prototype.subscribeEvents=function(){var i=this;a.isDocumentAvailable()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe(function(e){var t=i.value!==e;i.value=e,i.text=e,t&&i.emitChange(e)}),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(e){return i.navigate(e.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return i.togglePopup(!1)}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))},P.prototype.subscribeTouchEvents=function(){var t=this;a.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!b.inDropDown(t.hostElement,e,t.popupRef)&&t._zone.run(function(){return t.blur()})})})},P.prototype.unsubscribeEvents=function(){a.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())},P.prototype.handleItemChange=function(e){var e=e.indices.length?e.indices[0]:void 0;this.selectionService.resetSelection([-1]),b.isPresent(e)&&(e=b.getter(this.dataService.itemAt(e),this.valueField),this.change(e))},P.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&0<=t)&&(this.suggestedText=b.getter(this.dataService.itemAt(t),this.valueField))},P.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:t,vertical:"top"},anchorAlign:{horizontal:t,vertical:"bottom"}});var i=this.popupRef.popupElement,n=this.width,t=n.min,n=n.max;i.addEventListener("mousedown",this.popupMouseDownHandler),i.style.minWidth=t,i.style.width=n,i.style.height=this.height,i.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)})},P.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},P.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},P.prototype.triggerPopupEvents=function(e){var t=new S.PreventableEvent;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},P.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},P.prototype.findIndexPredicate=function(t){var i=this;return this.dataService.grouped?function(e){e=b.getter(e.value,i.valueField);return(e=b.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=b.getter(e,i.valueField);return(e=b.isPresent(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},P.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()})})},P.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([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"highlightFirst",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],P.prototype,"focusableId",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"data",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],P.prototype,"value",null),n.__decorate([u.Input(),n.__metadata("design:type",String)],P.prototype,"valueField",void 0),n.__decorate([u.Input(),n.__metadata("design:type",String)],P.prototype,"placeholder",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),n.__decorate([u.Input(),n.__metadata("design:type",Number)],P.prototype,"listHeight",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"loading",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"clearButton",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"suggest",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],P.prototype,"itemDisabled",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Number)],P.prototype,"tabindex",void 0),n.__decorate([u.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],P.prototype,"tabIndex",null),n.__decorate([u.Input(),n.__metadata("design:type",Boolean)],P.prototype,"filterable",void 0),n.__decorate([u.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"virtual",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],P.prototype,"size",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],P.prototype,"rounded",null),n.__decorate([u.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],P.prototype,"fillMode",null),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"valueChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"filterChange",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"open",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"opened",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"close",void 0),n.__decorate([u.Output(),n.__metadata("design:type",u.EventEmitter)],P.prototype,"closed",void 0),n.__decorate([u.Output("focus"),n.__metadata("design:type",u.EventEmitter)],P.prototype,"onFocus",void 0),n.__decorate([u.Output("blur"),n.__metadata("design:type",u.EventEmitter)],P.prototype,"onBlur",void 0),n.__decorate([u.ContentChild(r.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",r.ItemTemplateDirective)],P.prototype,"template",void 0),n.__decorate([u.ContentChild(l.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",l.HeaderTemplateDirective)],P.prototype,"headerTemplate",void 0),n.__decorate([u.ContentChild(p.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",p.FooterTemplateDirective)],P.prototype,"footerTemplate",void 0),n.__decorate([u.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],P.prototype,"noDataTemplate",void 0),n.__decorate([u.ContentChild(d.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",d.GroupTemplateDirective)],P.prototype,"groupTemplate",void 0),n.__decorate([u.ContentChild(m.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",m.FixedGroupTemplateDirective)],P.prototype,"fixedGroupTemplate",void 0),n.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),n.__metadata("design:type",u.ViewContainerRef)],P.prototype,"container",void 0),n.__decorate([u.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",u.TemplateRef)],P.prototype,"popupTemplate",void 0),n.__decorate([u.ViewChild(s.SearchBarComponent,{static:!0}),n.__metadata("design:type",s.SearchBarComponent)],P.prototype,"searchbar",void 0),n.__decorate([u.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",T.ListComponent)],P.prototype,"optionsList",void 0),n.__decorate([u.HostBinding("class.k-autocomplete"),u.HostBinding("class.k-input"),n.__metadata("design:type",Boolean)],P.prototype,"widgetClasses",void 0),n.__decorate([u.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],P.prototype,"isDisabled",null),n.__decorate([u.HostBinding("class.k-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],P.prototype,"isLoading",null),n.__decorate([u.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],P.prototype,"dir",null),E=n.__decorate([u.Component({exportAs:"kendoAutoComplete",providers:[t.AUTOCOMPLETE_VALUE_ACCESSOR,D.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,I.LocalizationService,{provide:I.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:w.FilterableComponent,useExisting:u.forwardRef(function(){return E})},{provide:a.KendoInput,useExisting:u.forwardRef(function(){return E})}],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,u.Optional()),n.__param(10,u.Inject(i.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[I.LocalizationService,D.DataService,x.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,u.NgZone,u.ChangeDetectorRef,u.Renderer2,u.ElementRef,Boolean])],P));function P(e,t,i,n,a,o,s,r,l,p,d){this.localization=e,this.dataService=t,this.popupService=i,this.selectionService=n,this.navigationService=a,this.disabledItemsService=o,this._zone=s,this.cdr=r,this.renderer=l,this.hostElement=p,this.touchEnabled=d,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 u.EventEmitter,this.filterChange=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.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",c.validatePackage(h.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}t.AutoCompleteComponent=O},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(48),s=i(47),r=i(46),l=i(45),i=i(55),i=n.__decorate([a.NgModule({exports:[o.AutoCompleteModule,s.ComboBoxModule,r.DropDownListModule,l.MultiSelectModule,i.DropDownTreesModule]})],p);function p(){}t.DropDownsModule=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(2),i=i(37),i=(s.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},s.prototype.createTagMapper=function(){var t=o.parseNumber(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(e){return e.length>t?e.slice(0,t).concat([e.slice(t)]):e}},n.__decorate([a.Input("kendoMultiSelectTreeSummaryTag"),n.__metadata("design:type",Object)],s.prototype,"showAfter",void 0),n.__decorate([a.Directive({selector:"[kendoMultiSelectTreeSummaryTag]"}),n.__metadata("design:paramtypes",[i.MultiSelectTreeComponent])],s));function s(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}t.MultiSelectTreeSummaryTagDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,n=i(0),s=i(1),a=i(5),r=i(2),n=(o=i(50).BaseCheckDirective,n.__extends(l,o),l.prototype.handleChange=function(e){var i=this;this.currentCheckedState=e.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map(function(e,t){t=String(t),t=i.treeview.itemLookup(t);i.checkNode(t)}),this.checkedItemsChange.emit(this.checkedItems.slice())},Object.defineProperty(l.prototype,"isIndeterminate",{get:function(){var i=this,e=this.treeview.nodes.some(function(e,t){t=String(t),t=i.treeview.itemLookup(t);return i.someChecked(t)});return!this.isChecked&&e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"isChecked",{get:function(){var i=this;return this.treeview.nodes.every(function(e,t){t=String(t),t=i.treeview.itemLookup(t);return i.allChecked(t)})},enumerable:!0,configurable:!0}),l.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))},l.prototype.ngOnInit=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},l.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},l.prototype.checkNode=function(e){var t,i=this;this.treeview.isDisabled(e.item.dataItem,e.item.index)||((t=[]).push(e.item),r.fetchDescendentNodes(e,function(e){return i.treeview.isVisible(e.dataItem,e.index)&&!i.treeview.isDisabled(e.dataItem,e.index)}).forEach(function(e){return t.push(e.item)}),t.forEach(function(e){i.currentIndeterminateState?"check"===i.lastAction?i.addItem(e):i.removeItem(e):i.currentCheckedState?i.addItem(e):i.removeItem(e)}))},l.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)},l.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([s.Input(),n.__metadata("design:type",String)],l.prototype,"lastAction",void 0),n.__decorate([s.Input(),n.__metadata("design:type",a.TreeViewComponent)],l.prototype,"treeview",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Array)],l.prototype,"checkedItems",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Object)],l.prototype,"valueField",void 0),n.__decorate([s.Input("checkAll"),n.__metadata("design:type",Boolean)],l.prototype,"focused",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],l.prototype,"checkedItemsChange",void 0),n.__decorate([s.HostListener("change",["$event.target"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],l.prototype,"handleChange",null),n.__decorate([s.Directive({selector:"[checkAll]"}),n.__metadata("design:paramtypes",[s.ElementRef,s.NgZone,s.ChangeDetectorRef,s.Renderer2])],l));function l(e,t,i,n){var a=o.call(this)||this;return a.element=e,a.zone=t,a.cdr=i,a.renderer=n,a.checkedItemsChange=new s.EventEmitter,a.checkedKeys=new Set,a}t.CheckAllDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=i(1),s=i(5),r=i(12),l=i(17),p=i(2),s=(n=i(50).BaseCheckDirective,a.__extends(d,n),d.prototype.ngOnChanges=function(e){p.isPresent(e.checkable)&&this.toggleCheckOnClick(),p.isPresent(e.checkedItems)&&this.updateItems()},d.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},d.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},d.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},d.prototype.toggleCheckOnClick=function(){var t=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(l.filter(function(e){return"click"===e.type})).subscribe(function(e){e=t.treeView.itemLookup(e.item.index);t.handleCheckedChange(e)}))},d.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},d.prototype.checkNode=function(e){var t,i,n,a=this;this.treeView.isDisabled(e.item.dataItem,e.item.index)||(t=e.item,i=[t],this.checkable.checkChildren&&p.fetchDescendentNodes(e,function(e){return a.treeView.isVisible(e.dataItem,e.index)&&!a.treeView.isDisabled(e.dataItem,e.index)}).forEach(function(e){return i.push(e.item)}),n=!this.isItemChecked(t),i.forEach(function(e){n?a.addItem(e):a.removeItem(e)}))},d.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},d.prototype.isItemIndeterminate=function(e){var t=e.children;if(!Array.isArray(t)||0===t.length)return!1;for(var i=0,n=t[i];p.isPresent(n);){if(this.isItemChecked(n.item)||this.isItemIndeterminate(n))return!0;n=t[i+=1]}return!1},a.__decorate([o.Input(),a.__metadata("design:type",Object)],d.prototype,"checkable",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object)],d.prototype,"valueField",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Array)],d.prototype,"checkedItems",void 0),a.__decorate([o.Output(),a.__metadata("design:type",o.EventEmitter)],d.prototype,"checkedItemsChange",void 0),a.__decorate([o.Directive({selector:"[kendoMultiSelectTreeCheckable]"}),a.__metadata("design:paramtypes",[s.TreeViewComponent])],d));function d(e){var t=n.call(this)||this;return t.treeView=e,t.checkedItemsChange=new o.EventEmitter,t.checkedKeys=new Set,t.subscriptions=new r.Subscription,t.subscriptions.add(t.treeView.checkedChange.subscribe(t.handleCheckedChange.bind(t))),t.treeView.isChecked=t.getCheckedState.bind(t),t}t.CheckDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=(a.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},a.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},n.__decorate([i.Input("filterInput"),n.__metadata("design:type",Boolean)],a.prototype,"focused",void 0),n.__decorate([i.Directive({selector:"[filterInput]"}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone])],a));function a(e,t){this.element=e,this.zone=t}t.FilterInputDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,o=i(0),s=i(1),r=i(4),i=i(54),r=(n=i.Messages,o.__extends(l,n),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([s.Component({providers:[{provide:i.Messages,useExisting:s.forwardRef(function(){return a})}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),o.__metadata("design:paramtypes",[r.LocalizationService])],l));function l(e){var t=n.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,o=i(0),s=i(1),r=i(4),i=i(54),r=(n=i.Messages,o.__extends(l,n),a=l,a=o.__decorate([s.Directive({providers:[{provide:i.Messages,useExisting:s.forwardRef(function(){return a})}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),o.__metadata("design:paramtypes",[r.LocalizationService])],l));function l(e){var t=n.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i(1),o=i(31),s=i(28),r=i(2),n=(Object.defineProperty(l.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.hostElement.nativeElement,r.getSizeClass("chip-list",this.size)),e&&this.renderer.addClass(this.hostElement.nativeElement,r.getSizeClass("chip-list",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"hostId",{get:function(){return this.id},enumerable:!0,configurable:!0}),l.prototype.tagProp=function(e,t,i){i=t&&this.getPropField(e,t,i);return r.getter(e,i)},l.prototype.isTagDisabled=function(e,i){var n=this;return this.isGroupTag(e)?e.every(function(e,t){return n.disabledIndices.has(t+i)}):this.disabledIndices.has(i)},l.prototype.deleteTag=function(e,t,i){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:i})},l.prototype.itemId=function(e,t){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,t)},l.prototype.isGroupTag=function(e){return e instanceof Array},l.prototype.tagAriaHidden=function(e){return r.isPresent(this.focused)&&this.focused!==e},l.prototype.getPropField=function(t,e,i){var n=e.length-1;if("string"==typeof e)return e;if(this.valueDepth){i=this.valueDepth[i];return n<i?e[n]:e[i]}return e.find(function(e){return e in t})},n.__decorate([a.Input(),n.__metadata("design:type",Array)],l.prototype,"tags",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],l.prototype,"textField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"valueField",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],l.prototype,"valueDepth",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],l.prototype,"focused",void 0),n.__decorate([a.Input(),n.__metadata("design:type",o.TagTemplateDirective)],l.prototype,"template",void 0),n.__decorate([a.Input(),n.__metadata("design:type",s.GroupTagTemplateDirective)],l.prototype,"groupTemplate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],l.prototype,"disabled",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"tagPrefix",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"id",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],l.prototype,"size",null),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"rounded",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],l.prototype,"fillMode",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Set)],l.prototype,"disabledIndices",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],l.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)],l.prototype,"hostClasses",void 0),n.__decorate([a.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],l.prototype,"hostId",null),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])],l));function l(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"}t.TagListComponent=n},function(e,t){e.exports=u},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,a=t(2);i.scrollbarWidth=function(){var e;return isNaN(n)&&((e=document.createElement("div")).style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),n=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)),n},i.getRowWidthFromColumnsMeta=function(e){if(t=e,!a.isPresent(t)||0===t.length||!t.toArray().every(function(e){return!isNaN(e.width)&&0<e.width}))return null;var t=i.scrollbarWidth()+2;return e.reduce(function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e},t)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);t.normalizeCheckboxesSettings=function(e){return n.isObject(e)?Object.assign({},{enabled:!0,checkOnClick:!0},e):{enabled:Boolean(e),checkOnClick:!0}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(65);t.AutoCompleteComponent=n.AutoCompleteComponent;n=i(44);t.ComboBoxComponent=n.ComboBoxComponent;n=i(63);t.DropDownListComponent=n.DropDownListComponent;n=i(43);t.MultiSelectComponent=n.MultiSelectComponent;n=i(62);t.MultiColumnComboBoxComponent=n.MultiColumnComboBoxComponent;n=i(40);t.ComboBoxColumnComponent=n.ComboBoxColumnComponent;n=i(39);t.ColumnCellTemplateDirective=n.ColumnCellTemplateDirective;n=i(38);t.ColumnHeaderTemplateDirective=n.ColumnHeaderTemplateDirective;n=i(61);t.DropDownTreeComponent=n.DropDownTreeComponent;n=i(37);t.MultiSelectTreeComponent=n.MultiSelectTreeComponent;n=i(60);t.DropDownTreeFlatBindingDirective=n.DropDownTreeFlatBindingDirective;n=i(59);t.DropDownTreeHierarchyBindingDirective=n.DropDownTreeHierarchyBindingDirective;n=i(58);t.MultiSelectTreeFlatBindingDirective=n.MultiSelectTreeFlatBindingDirective;n=i(57);t.MultiSelectTreeHierarchyBindingDirective=n.MultiSelectTreeHierarchyBindingDirective;n=i(56);t.DropDownTreesExpandDirective=n.DropDownTreesExpandDirective;n=i(55);t.DropDownTreesModule=n.DropDownTreesModule;n=i(30);t.NodeTemplateDirective=n.NodeTemplateDirective;n=i(22);t.ItemTemplateDirective=n.ItemTemplateDirective;n=i(21);t.GroupTemplateDirective=n.GroupTemplateDirective;n=i(20);t.FixedGroupTemplateDirective=n.FixedGroupTemplateDirective;n=i(42);t.CustomItemTemplateDirective=n.CustomItemTemplateDirective;n=i(14);t.HeaderTemplateDirective=n.HeaderTemplateDirective;n=i(13);t.FooterTemplateDirective=n.FooterTemplateDirective;n=i(32);t.ValueTemplateDirective=n.ValueTemplateDirective;n=i(51);t.TemplateContextDirective=n.TemplateContextDirective;n=i(28);t.GroupTagTemplateDirective=n.GroupTagTemplateDirective;n=i(52);t.SelectableDirective=n.SelectableDirective;n=i(49);t.SummaryTagDirective=n.SummaryTagDirective;n=i(53);t.FilterDirective=n.FilterDirective;n=i(66);t.DropDownsModule=n.DropDownsModule;n=i(45);t.MultiSelectModule=n.MultiSelectModule;n=i(23);t.SharedModule=n.SharedModule;n=i(48);t.AutoCompleteModule=n.AutoCompleteModule;n=i(47);t.ComboBoxModule=n.ComboBoxModule;n=i(46);t.DropDownListModule=n.DropDownListModule;n=i(16);t.SharedDirectivesModule=n.SharedDirectivesModule;n=i(25);t.ListComponent=n.ListComponent;n=i(8);t.PopupComponent=n.PopupComponent;n=i(11);t.PreventableEvent=n.PreventableEvent;i=i(41);t.RemoveTagEvent=i.RemoveTagEvent,function(e){for(var t in e)o(t,e[t])}(t)}],n.c=a,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=77)}}});
|