@progress/kendo-angular-dropdowns 5.5.1-dev.202111191410 → 5.5.1
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/package-metadata.js +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +1 -1
- package/dist/fesm5/index.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-dropdowns.js +1 -1
- package/package.json +1 -1
|
@@ -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/operators","rxjs","@progress/kendo-licensing"],function(a){var r,s,p,l,d,c,u,h,m,g,v,f;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=t(e)},function(e){s=t(e)},function(e){p=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){c=t(e)},function(e){u=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(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,o;i=[function(e,t){e.exports=s},function(e,t){e.exports=p},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=t(3),a=t(29);o.isPresent=function(e){return null!=e},o.isNumber=function(e){return!isNaN(e)},o.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},o.combineStr=function(e,t){return e.concat(t.substr(t.toLowerCase().indexOf(e.toLowerCase())+e.length))},o.isWindowAvailable=function(){return"undefined"!=typeof window},o.isArray=function(e){return Array.isArray(e)},o.isObject=function(e){return o.isPresent(e)&&"object"==typeof e},o.isEmptyString=function(e){return"string"==typeof e&&0===e.length},o.resolveValuesInArray=function(e,i,n){return void 0===i&&(i=[]),e.map(function(t){return i.find(function(e){return o.getter(e,n)===t})}).filter(function(e){return void 0!==e})},o.validateComplexValues=function(e,t){return o.isArray(e)&&e.filter(function(e){return o.isObject(e)&&o.isPresent(o.getter(e,t))})},o.resolveAllValues=function(e,t,i){var n=o.validateComplexValues(e,i)||[];return(o.resolveValuesInArray(e,t,i)||[]).concat(n)},o.isObjectArray=function(e){return o.isArray(e)&&e.every(function(e){return o.isObject(e)})},o.selectedIndices=function(e,t,i){var n=t.map(function(e){return o.isPresent(e)&&o.isPresent(o.getter(e,i))?o.getter(e,i):e});return e.reduce(function(e,t){t=o.isPresent(t)&&o.isPresent(o.getter(t,i))?o.getter(t,i):t,t=n.indexOf(t);return-1!==t&&e.push(t),e},[])},o.getter=function(e,t){return o.isPresent(e)?o.isPresent(t)&&o.isObject(e)?a.getter(t)(e):e:null},o.resolveValue=function(t){var e;return o.isPresent(t.value)?{dataItem:e=[t.defaultItem].concat(t.data).find(function(e){return o.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}},o.sameCharsOnly=function(e,t){for(var i=0;i<e.length;i++)if(e.charAt(i)!==t)return!1;return!0},o.shuffleData=function(e,t,i){return(e=i?[i].concat(e):e).slice(t).concat(e.slice(0,t))},o.matchText=function(e,t,i){if(!o.isPresent(e))return!1;e=String(e);return 0===(e=i?e.toLowerCase():e).indexOf(t)},o.elementFromPoint=function(e,t){if(i.isDocumentAvailable())return document.elementFromPoint(e,t)},o.hasProps=function(t,e){return!!o.isPresent(t)&&e.every(function(e){return t.hasOwnProperty(e)})},o.isUntouched=function(e){return e.className.includes("ng-untouched")},o.noop=function(e){};o.closest=function(e,t){for(var i,n,o,a=e;null!==a&&1===a.nodeType;){if(n=t,o=void 0,!!(o=(i=a).matches||i.msMatchesSelector||i.webkitMatchesSelector)&&o.call(i,n))return a;a=a.parentElement||a.parentNode}return null},o.parseNumber=function(e,t){void 0===t&&(t=0);e=Number(e);return isNaN(e)?t:e},o.inDropDown=function(e,t,i){return e.nativeElement.contains(t)||i&&i.popupElement.contains(t)},o.getHierarchicalItemLevel=function(e){return(e||"").split("_").length-1},o.fetchDescendentNodes=function(e,t){if(!o.isPresent(e)||0===e.children.length)return[];var i=e.children;return(i=o.isPresent(t)?i.filter(function(e){return t(e.item)}):i).forEach(function(e){return i=i.concat(o.fetchDescendentNodes(e,t))}),i},o.valueFrom=function(e,t){var i=e.dataItem,n=e.index,e=e.level,t=Array.isArray(t)?t:[t],n=o.isPresent(e)?e:o.getHierarchicalItemLevel(n),t=t[Math.min(n,t.length-1)];return a.getter(t)(i)}},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),o=i(1),a=i(2),n=(r.prototype.getTotal=function(){return this.total},r.prototype.isSelected=function(t){return a.isPresent(this.selectedIndices.find(function(e){return e===t}))},r.prototype.isFocused=function(e){return e===this.focused},r.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},r.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:a.isPresent(e)}))},r.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},r.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}))},r.prototype.change=function(e){var t=a.isPresent(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})},r.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(r.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(r.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([o.Injectable()],r));function r(){this.onSelect=new o.EventEmitter,this.onChange=new o.EventEmitter,this.onFocus=new o.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=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),s=i(2),o=(Object.defineProperty(a.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(a.prototype,"itemsCount",{get:function(){return s.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}),a.prototype.isGrouped=function(e){return s.isPresent(e)&&0!==e.length&&s.isPresent(e[0])&&s.hasProps(e[0],["aggregates","field","items","value"])},a.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},a.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},a.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)},a.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},a.prototype.closestGroup=function(e){for(var t=e;0<=t;t--)if(this._flatData[t].header)return this._flatData[t]},a.prototype.find=function(e){e=this.findIndex(e);return this.itemAt(e)},a.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},a.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},a.prototype.groupAt=function(t){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(e){return e.header&&e.index===t})},a.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},a.prototype.itemGroup=function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var t=this.groupField();return t?s.getter(e,t):void 0}},a.prototype.flatten=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=0);var o=[];s.isPresent(t=void 0===t?void 0:t)&&o.push({header:!0,index:n+i,offsetIndex:n,value:t});for(var a=0;a<e.length;a++){var r=[];e[a].items?(r=this.flatten(e[a].items,e[a].value,i,a),i+=e[a].items.length):r.push({header:!1,index:n+i+a+1,offsetIndex:i+a,value:e[a]}),o=o.concat(r)}return o},n.__decorate([o.Injectable()],a));function a(){this.grouped=!1,this.groupIndices=[]}t.DataService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(2),i=i(9),i=(r.prototype.isIndexDisabled=function(e){if(this.itemDisabled){var t=this.dataService.itemAt(e);return a.isPresent(t)?this.itemDisabled({dataItem:t,index:e}):a.isPresent(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0}},r.prototype.isItemDisabled=function(e){if(this.itemDisabled){var t=this.dataService.indexOf(e);return-1!==t?this.itemDisabled({dataItem:e,index:t}):a.isPresent(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0}},n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[i.DataService])],r));function r(e){this.dataService=e,this.itemDisabled=null}t.DisabledItemsService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(o.prototype.preventDefault=function(){this.prevented=!0},o.prototype.isDefaultPrevented=function(){return this.prevented},o);function o(){this.prevented=!1}t.PreventableEvent=n},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:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}),n.__metadata("design:paramtypes",[i.TemplateRef])],o);function o(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])],o);function o(e){this.templateRef=e}t.HeaderTemplateDirective=i},function(e,t){e.exports=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(22),r=i(21),s=i(20),p=i(14),l=i(13),d=i(18),c=i(32),u=i(31),h=i(28),m=i(72),g=i(71),v=i(53),i=i(70),i=[p.HeaderTemplateDirective,l.FooterTemplateDirective,a.ItemTemplateDirective,r.GroupTemplateDirective,s.FixedGroupTemplateDirective,d.NoDataTemplateDirective,c.ValueTemplateDirective,u.TagTemplateDirective,h.GroupTagTemplateDirective,m.LocalizedMessagesDirective,g.CustomMessagesComponent,v.FilterDirective,i.FilterInputDirective],i=n.__decorate([o.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])],o);function o(e){this.templateRef=e}t.NoDataTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(2),a=i(3),s=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,o=s.NavigationAction.Undefined;n&&i===a.Keys.ArrowDown?o=s.NavigationAction.Open:n&&i===a.Keys.ArrowUp?o=s.NavigationAction.Close:i===a.Keys.Enter?o=s.NavigationAction.Enter:i===a.Keys.Escape?o=s.NavigationAction.Esc:i===a.Keys.Tab?o=s.NavigationAction.Tab:i===a.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=s.NavigationAction.Up):i===a.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=s.NavigationAction.Left):i===a.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=s.NavigationAction.Down):i===a.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=s.NavigationAction.Right):i===a.Keys.Home?(t=this.isDisabled(0)?e.current:0,o=s.NavigationAction.Home):i===a.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,o=s.NavigationAction.End):i===a.Keys.Delete?o=s.NavigationAction.Delete:i===a.Keys.Backspace&&(o=s.NavigationAction.Backspace);e=new l(t,e.originalEvent);return o!==s.NavigationAction.Undefined&&this[s.NavigationAction[o].toLowerCase()].emit(e),o},d.prototype.next=function(e){var t=e.current,i=e.start,n=e.end,o=e.step,a=r.isPresent(t)?this.clampIndex(t+o,i,n):i,e=this.firstFocusableIndex(a,i,n,o);return r.isPresent(e)?e:this.selectionService.isSelected(t)&&i<=t?t:this.firstFocusableIndex(a,i,n,-1*o)},d.prototype.clampIndex=function(e,t,i){return!r.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([o.Injectable(),n.__metadata("design:paramtypes",[p.DisabledItemsService,i.SelectionService])],d);function d(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.enter=new o.EventEmitter,this.tab=new o.EventEmitter,this.esc=new o.EventEmitter,this.up=new o.EventEmitter,this.right=new o.EventEmitter,this.down=new o.EventEmitter,this.left=new o.EventEmitter,this.delete=new o.EventEmitter,this.backspace=new o.EventEmitter,this.home=new o.EventEmitter,this.end=new o.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])],o);function o(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])],o);function o(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])],o);function o(e){this.templateRef=e}t.ItemTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(74),r=i(15),s=i(25),p=i(34),l=i(73),d=i(8),c=i(3),u=i(16),h=i(64),m=i(52),g=i(51),v=i(69),i=i(68),i=[s.ListComponent,h.ListItemDirective,m.SelectableDirective,p.SearchBarComponent,g.TemplateContextDirective,l.TagListComponent,v.CheckDirective,i.CheckAllDirective],c=n.__decorate([o.NgModule({declarations:[i],exports:[i,a.CommonModule,r.FormsModule,d.PopupModule,c.ResizeSensorModule,u.SharedDirectivesModule,c.EventsModule],imports:[a.CommonModule,r.FormsModule,d.PopupModule,c.ResizeSensorModule,u.SharedDirectivesModule,c.EventsModule]})],f);function f(){}t.SharedModule=c},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),o=i(3),a=i(64),r=i(22),s=i(21),l=i(20),d=i(2),c=i(6),u=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,"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}),g.prototype.ngOnChanges=function(e){o.isChanged("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),o.isChanged("virtual",e,!1)&&this.setOverflow()},g.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular(function(){e.scrollSubscription=u.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.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-state-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,o;this.virtual&&(e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),o=this.content.nativeElement.scrollTop,t=Math.trunc(o/this.virtual.itemHeight),i=o>this.lastScrollTop,n=t+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,o=this.pageSize-(this.lastLoaded-this.startFrom),o=this.lastLoaded-this.pageSize+e>=t-o,i&&n&&this.changePage(t),!i&&o&&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.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,o=this.virtual.itemHeight,e=t.clientHeight,o=n+o;n<i?i=n:i+e<o&&(i=o-e),t.scrollTop=i},g.prototype.scroll=function(e){var t,i,n,o;e&&(n=e.nativeElement,t=this.content.nativeElement,i=n.offsetTop,o=n.offsetHeight,e=t.scrollTop,n=t.clientHeight,o=i+o,i<e?e=i:e+n<o&&(e=o-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},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",r.ItemTemplateDirective)],g.prototype,"template",void 0),n.__decorate([p.Input(),n.__metadata("design:type",s.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,"listClass",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.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(a.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=\'k-outer-group-header k-first\'\n [ngClass]="{\'k-virtual-item\': virtual}"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><strong>{{ currentGroup }}</strong> </ng-template>\n </div>\n <div #content\n [ngClass]="{ \'k-virtual-content\': virtual, \'k-list-scroller\': !virtual }"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [ngClass]="{ \'k-virtual-list\': virtual }"\n [attr.id]="id"\n [attr.aria-hidden]="!show">\n <ng-template *ngIf="!dataService.grouped && show" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n role="option"\n kendoDropDownsSelectable\n [checkboxes]="checkboxes"\n [height]="virtual?.itemHeight"\n [index]="itemIndex + startFrom"\n [multipleSelection]="multipleSelection"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem)"\n [attr.tabIndex]="-1"\n class="k-item"\n [ngClass]="{ \'k-virtual-item\': virtual, \'k-state-disabled\': isDisabled(itemIndex) }">\n <label *ngIf="checkboxes.enabled"\n class="k-checkbox-label">\n <input type="checkbox"\n class="k-checkbox"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n </label>\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ getText(dataItem) }}</ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n class=\'k-outer-group-header\'\n [ngClass]="{ \'k-virtual-item\': virtual }"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate"><strong> {{ dataItem.value }}</strong> </ng-template>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n class="k-item"\n [ngClass]="{ \'k-virtual-item\': virtual, \'k-state-disabled\': isDisabled(dataItem.offsetIndex) }">\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ getText(dataItem.value) }}</ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" #virtualContainer class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n '}),n.__metadata("design:paramtypes",[i.DataService,p.ElementRef,c.SelectionService,m.DisabledItemsService,p.ChangeDetectorRef,p.NgZone,p.Renderer2])],g));function g(e,t,i,n,o,a,r){var s=this;this.dataService=e,this.wrapper=t,this.selectionService=i,this.disabledItemsService=n,this.cdr=o,this.zone=a,this.renderer=r,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.listClass="k-list k-reset",this.checkboxes={enabled:!1},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.selectSubscription=u.merge(this.selectionService.onSelect.pipe(h.map(function(e){return e.indices[0]})),this.selectionService.onFocus).pipe(h.switchMap(function(e){return s.zone.onStable.pipe(h.take(1),h.map(function(){return e}))})).subscribe(this.scrollToItem.bind(this))}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])],o);function o(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])],o);function o(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])],o);function o(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])],o);function o(e){this.templateRef=e}t.ValueTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o={pageSize:50,itemHeight:28};t.normalizeVirtualizationSettings=function(e,t){t=Object.assign({},o,t);return!0===e?t:e?n.__assign({pageSize:o.pageSize},e):null}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(3),r=i(3),s=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?s.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){a.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},p.prototype.setInputSelection=function(e,t){if(a.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<[r.Keys.ArrowUp,r.Keys.ArrowDown,r.Keys.ArrowLeft,r.Keys.ArrowRight,r.Keys.Enter,r.Keys.Escape,r.Keys.Delete,r.Keys.Backspace,r.Keys.Home,r.Keys.End].indexOf(t)&&this.onNavigate.emit(e)},p.prototype.focus=function(){a.isDocumentAvailable()&&this.input.nativeElement.focus()},p.prototype.blur=function(){a.isDocumentAvailable()&&this.input.nativeElement.blur()},p.prototype.setInputSize=function(){var e=function(e){return e?e.length:0},t=this.input.nativeElement,i=e(this.placeholder),e=e(this.value),e=Math.max(i,e,1);this.renderer.setAttribute(t,"size",e.toString())},n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"id",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"listId",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"tagListId",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"activeDescendant",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"noDataLabel",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"readonly",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],p.prototype,"tabIndex",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"popupOpen",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"role",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"userInput",null),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"suggestedText",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"valueChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onBlur",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onFocus",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onClick",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onNavigate",void 0),n.__decorate([o.ViewChild("input",{static:!0}),n.__metadata("design:type",o.ElementRef)],p.prototype,"input",void 0),n.__decorate([o.HostBinding("class.k-searchbar"),n.__metadata("design:type",Boolean)],p.prototype,"searchBarClass",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"placeholder",null),n.__decorate([o.Component({selector:"kendo-searchbar",template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="popupOpen"\n [attr.aria-owns]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-label]="noDataLabel"\n />\n '}),n.__metadata("design:paramtypes",[i.LocalizationService,o.Renderer2])],p));function p(e,t){this.localization=e,this.valueChange=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onClick=new o.EventEmitter,this.onNavigate=new o.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:1637330850,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 c(){return!0}var n,o=i(0),u=i(1),a=i(15),h=i(3),r=i(4),s=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),T=i(13),w=i(30),D=i(18),E=i(31),k=i(28),O=i(7),P=i(12),F=i(17),A={animate:!0},M={checkChildren:!0,checkOnClick:!0},r=(n=j,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,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},A,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({},M,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.hostElement.nativeElement,"k-state-focused"),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","k-reset","k-group","k-list-container"];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.hostElement.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()}))},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 o.__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(){var e=this;this.isFocused||(this.isFocused=!0,h.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus()))},j.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.hostElement.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,this.togglePopup(!1),(h.hasObservers(this.onBlur)||C.isUntouched(this.hostElement.nativeElement))&&this._zone.run(function(){t.onBlur.emit(),t.onTouchedCallback()}))},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()},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))})},j.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},j.prototype.verifySettings=function(){if(u.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.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()})},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},[]))},o.__decorate([u.HostBinding("class.k-widget"),u.HostBinding("class.k-dropdowntree"),o.__metadata("design:type",Boolean)],j.prototype,"hostClasses",void 0),o.__decorate([u.HostBinding("attr.dir"),o.__metadata("design:type",String)],j.prototype,"direction",void 0),o.__decorate([u.ContentChild(x.HeaderTemplateDirective,{static:!1}),o.__metadata("design:type",x.HeaderTemplateDirective)],j.prototype,"headerTemplate",void 0),o.__decorate([u.ContentChild(T.FooterTemplateDirective,{static:!1}),o.__metadata("design:type",T.FooterTemplateDirective)],j.prototype,"footerTemplate",void 0),o.__decorate([u.ContentChild(w.NodeTemplateDirective,{static:!1}),o.__metadata("design:type",w.NodeTemplateDirective)],j.prototype,"nodeTemplate",void 0),o.__decorate([u.ContentChild(D.NoDataTemplateDirective,{static:!1}),o.__metadata("design:type",D.NoDataTemplateDirective)],j.prototype,"noDataTemplate",void 0),o.__decorate([u.ContentChild(E.TagTemplateDirective,{static:!1}),o.__metadata("design:type",E.TagTemplateDirective)],j.prototype,"tagTemplate",void 0),o.__decorate([u.ContentChild(k.GroupTagTemplateDirective,{static:!1}),o.__metadata("design:type",k.GroupTagTemplateDirective)],j.prototype,"groupTagTemplate",void 0),o.__decorate([u.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",u.TemplateRef)],j.prototype,"popupTemplate",void 0),o.__decorate([u.ViewChild("wrapper",{static:!0}),o.__metadata("design:type",u.ElementRef)],j.prototype,"wrapper",void 0),o.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),o.__metadata("design:type",u.ViewContainerRef)],j.prototype,"container",void 0),o.__decorate([u.ViewChild("treeview",{static:!1}),o.__metadata("design:type",g.TreeViewComponent),o.__metadata("design:paramtypes",[g.TreeViewComponent])],j.prototype,"treeview",null),o.__decorate([u.ViewChild("filterInput",{static:!1}),o.__metadata("design:type",u.ElementRef)],j.prototype,"filterInput",void 0),o.__decorate([u.ViewChild("checkAllInput",{static:!1}),o.__metadata("design:type",u.ElementRef)],j.prototype,"checkAllInput",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],j.prototype,"tabindex",null),o.__decorate([u.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],j.prototype,"popupSettings",null),o.__decorate([u.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],j.prototype,"checkableSettings",null),o.__decorate([u.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],j.prototype,"data",null),o.__decorate([u.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],j.prototype,"value",null),o.__decorate([u.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],j.prototype,"dataItems",null),o.__decorate([u.Input(),o.__metadata("design:type",Object)],j.prototype,"textField",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Object)],j.prototype,"valueField",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Array)],j.prototype,"valueDepth",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"loading",void 0),o.__decorate([u.Input(),o.__metadata("design:type",String)],j.prototype,"placeholder",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Number)],j.prototype,"listHeight",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"disabled",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"readonly",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"valuePrimitive",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"loadOnDemand",void 0),o.__decorate([u.Input(),o.__metadata("design:type",String)],j.prototype,"focusableId",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"clearButton",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"filterable",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"checkAll",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],j.prototype,"hasChildren",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],j.prototype,"fetchChildren",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],j.prototype,"isNodeExpanded",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],j.prototype,"isNodeVisible",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],j.prototype,"itemDisabled",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Object)],j.prototype,"tagMapper",void 0),o.__decorate([u.Output("focus"),o.__metadata("design:type",u.EventEmitter)],j.prototype,"onFocus",void 0),o.__decorate([u.Output("blur"),o.__metadata("design:type",u.EventEmitter)],j.prototype,"onBlur",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"open",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"opened",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"close",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"closed",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"nodeExpand",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"nodeCollapse",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"valueChange",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"removeTag",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"filterChange",void 0),n=o.__decorate([u.Component({exportAs:"kendoMultiSelectTree",providers:[r.LocalizationService,s.NavigationService,v.DataService,f.DisabledItemsService,_.SelectionService,{provide:r.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return n})},{provide:g.DataBoundComponent,useExisting:u.forwardRef(function(){return n})},{provide:g.ExpandableComponent,useExisting:u.forwardRef(function(){return n})},{provide:h.KendoInput,useExisting:u.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 <div #wrapper\n [ngClass]="{\n \'k-multiselect-wrap\': true,\n \'k-floatwrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n role="listbox"\n aria-haspopup="tree"\n [attr.aria-describedby]="tagListId"\n [attr.aria-readonly]="readonly"\n [attr.aria-activedescendant]="focusedTagId"\n [attr.tabindex]="tabindex"\n [attr.id]="focusableId"\n [attr.dir]="direction"\n (click)="handleClick()"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n >\n <kendo-taglist\n [id]="tagListId"\n [tags]="tags"\n [focused]="focusedTagIndex"\n [textField]="textField"\n [valueField]="valueField"\n [valueDepth]="valueDepth"\n [disabled]="disabled"\n [tagPrefix]="tagPrefix"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n </kendo-taglist>\n <span *ngIf="!tags || !tags.length"\n class="k-input k-readonly"\n >\n {{ placeholder }}\n </span>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-icon k-clear-value k-i-close"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n </div>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-textbox"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-zoom"></span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\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 [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n kendoMultiSelectTreeCheckable\n [checkable]="checkableSettings"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [textField]="textField"\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [loadOnDemand]="loadOnDemand"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (keydown)="handleKeydown($event)"\n (nodeClick)="handleNodeClick($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n [kendoEventsOutsideAngular]="{\n focusout: handleBlur\n }"\n [scope]="this"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data?.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n '}),o.__param(7,u.Optional()),o.__param(7,u.Inject(O.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[m.PopupService,u.Renderer2,u.ElementRef,s.NavigationService,u.NgZone,r.LocalizationService,u.ChangeDetectorRef,Boolean])],j));function j(e,t,i,n,o,a,r,s){this.popupService=e,this.renderer=t,this.hostElement=i,this.navigationService=n,this._zone=o,this.localization=a,this.cdr=r,this.touchEnabled=s,this.hostClasses=!0,this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId="k-"+h.guid(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=p,this.fetchChildren=l,this.isNodeVisible=c,this.itemDisabled=d,this.tagMapper=function(e){return e||[]},this.onFocus=new u.EventEmitter,this.onBlur=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.nodeExpand=new u.EventEmitter,this.nodeCollapse=new u.EventEmitter,this.valueChange=new u.EventEmitter,this.removeTag=new u.EventEmitter,this.filterChange=new u.EventEmitter,this.filterStateChange=new u.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=A,this._checkableSettings=M,this._isFocused=!1,this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=C.noop,this.onChangeCallback=C.noop,this.direction=a.rtl?"rtl":"ltr",this.subscribeEvents()}t.MultiSelectTreeComponent=r},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])],o);function o(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])],o);function o(e){this.templateRef=e}t.ColumnCellTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(39),i=i(38),o=(n.__decorate([o.ContentChild(a.ColumnCellTemplateDirective,{static:!1}),n.__metadata("design:type",a.ColumnCellTemplateDirective)],r.prototype,"cellTemplate",void 0),n.__decorate([o.ContentChild(i.ColumnHeaderTemplateDirective,{static:!1}),n.__metadata("design:type",i.ColumnHeaderTemplateDirective)],r.prototype,"headerTemplate",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],r.prototype,"field",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],r.prototype,"width",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],r.prototype,"hidden",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],r.prototype,"style",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],r.prototype,"headerStyle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],r.prototype,"class",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],r.prototype,"headerClass",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],r.prototype,"media",void 0),n.__decorate([o.Component({selector:"kendo-combobox-column",template:""})],r));function r(){this.hidden=!1,this.matchesMedia=!0}t.ComboBoxColumnComponent=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),o=(n=i(11).PreventableEvent,o.__extends(a,n),a);function a(e){var t=n.call(this)||this;return t.dataItem=e,t}t.RemoveTagEvent=o},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])],o);function o(e){this.templateRef=e}t.CustomItemTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),h=i(2),a=i(34),m=i(1),g=i(12),v=i(17),r=i(3),s=i(15),f=i(36),_=i(35),p=i(6),l=i(19),d=i(27),c=i(10),u=i(3),b=i(22),y=i(42),C=i(21),S=i(20),I=i(14),x=i(13),T=i(31),w=i(28),D=i(18),E=i(24),k=i(11),O=i(41),P=i(4),F=i(8),A=i(26),M=i(7),j=i(9),B=i(25),R=i(76),N=i(33),s={multi:!0,provide:s.NG_VALUE_ACCESSOR,useExisting:m.forwardRef(function(){return V})},V=((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,r.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,r.hasObservers(this.onBlur)||r.hasObservers(this.filterChange)||r.hasObservers(this.close)||h.isUntouched(this.hostElement.nativeElement)?this._zone.run(function(){e.closePopup(),e.isOpen&&e.allowCustom||e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup()))},L.prototype.wrapperMousedown=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()))},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,"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=R.normalizeCheckboxesSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=N.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,"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,"width",{get:function(){var e=0;r.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(E.MultiselectMessages.array);if(!0===this.valuePrimitive&&h.isObjectArray(this.value))throw new Error(E.MultiselectMessages.primitive);if(!1===this.valuePrimitive&&!h.isObjectArray(this.value))throw new Error(E.MultiselectMessages.object);if(!h.isPresent(this.valueField)!=!h.isPresent(this.textField))throw new Error(E.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!==u.Keys.ArrowDown&&e.keyCode!==u.Keys.ArrowUp,i=this.text&&e.keyCode===u.Keys.Enter||e.keyCode===u.Keys.Escape;!this.text&&e.keyCode===u.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.hostElement.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.initialized=!0},L.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),r.isChanged("valueNormalizer",e)&&this.createCustomValueStream(),r.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.hostElement.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),L.prototype.subscribeEvents=function(){var e,t,i,n=this;r.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;r.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.hostElement,e,t.popupRef)||t._zone.run(function(){t.blur(),t.isOpen&&t.togglePopup(!1)})})})},L.prototype.unsubscribeEvents=function(){r.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 o=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!o.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,o=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(e,t,i){return n.disabledItemsService.isIndexDisabled(o[i])&&e.push(i),e},[]))},L.prototype.createCustomValueStream=function(){var o=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(v.tap(function(){o.loading=!0,o.disabled=!0,o.cdr.detectChanges()}),this.valueNormalizer,v.catchError(function(){return o.loading=!1,o.disabled=!1,o.autoClose&&o.togglePopup(!1),!o.autoClose&&o.filterable||o.clearFilter(),o.nextTick(function(){o.searchbar.focus()}),o.createCustomValueStream(),g.of(null)})).subscribe(function(e){var t,i,n;o.loading=!1,o.disabled=!1,h.isPresent(e)&&(t=o.valuePrimitive?h.getter(e,o.valueField):e,n=-1===(i=o.dataService.indexOf(t)),-1===o.value.indexOf(t)?(o.tags=o.tagMapper(o.selectedDataItems.concat([e])),n?o.value=o.value.concat([t]):o.selectionService.add(i)):!n&&o.selectionService.isSelected(i)?(o.selectionService.unselect(i),o.selectionService.focused=i):o.value=o.value.filter(function(e){return h.getter(e,o.valueField)!==t}),o.emitValueChange()),o.autoClose&&o.togglePopup(!1),!o.autoClose&&o.filterable||o.clearFilter(),o.nextTick(function(){o.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 k.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()})})},o.__decorate([m.Input(),o.__metadata("design:type",String)],L.prototype,"focusableId",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"autoClose",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"loading",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],L.prototype,"data",null),o.__decorate([m.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],L.prototype,"value",null),o.__decorate([m.Input(),o.__metadata("design:type",String)],L.prototype,"valueField",void 0),o.__decorate([m.Input(),o.__metadata("design:type",String)],L.prototype,"textField",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Number)],L.prototype,"tabindex",void 0),o.__decorate([m.Input("tabIndex"),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],L.prototype,"tabIndex",null),o.__decorate([m.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],L.prototype,"placeholder",null),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"disabled",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Function])],L.prototype,"itemDisabled",null),o.__decorate([m.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],L.prototype,"checkboxes",null),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"readonly",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"filterable",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],L.prototype,"virtual",null),o.__decorate([m.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],L.prototype,"popupSettings",null),o.__decorate([m.Input(),o.__metadata("design:type",Number)],L.prototype,"listHeight",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[Boolean])],L.prototype,"valuePrimitive",null),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"clearButton",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Object)],L.prototype,"tagMapper",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"allowCustom",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Function)],L.prototype,"valueNormalizer",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"filterChange",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"valueChange",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"open",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"opened",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"close",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"closed",void 0),o.__decorate([m.Output("focus"),o.__metadata("design:type",m.EventEmitter)],L.prototype,"onFocus",void 0),o.__decorate([m.Output("blur"),o.__metadata("design:type",m.EventEmitter)],L.prototype,"onBlur",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"removeTag",void 0),o.__decorate([m.ViewChild("container",{read:m.ViewContainerRef,static:!0}),o.__metadata("design:type",m.ViewContainerRef)],L.prototype,"container",void 0),o.__decorate([m.ViewChild(a.SearchBarComponent,{static:!0}),o.__metadata("design:type",a.SearchBarComponent)],L.prototype,"searchbar",void 0),o.__decorate([m.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",m.TemplateRef)],L.prototype,"popupTemplate",void 0),o.__decorate([m.ViewChild("wrapper",{static:!0}),o.__metadata("design:type",m.ElementRef)],L.prototype,"wrapper",void 0),o.__decorate([m.ViewChild("optionsList",{static:!1}),o.__metadata("design:type",B.ListComponent)],L.prototype,"optionsList",void 0),o.__decorate([m.ContentChild(b.ItemTemplateDirective,{static:!1}),o.__metadata("design:type",b.ItemTemplateDirective)],L.prototype,"template",void 0),o.__decorate([m.ContentChild(y.CustomItemTemplateDirective,{static:!1}),o.__metadata("design:type",y.CustomItemTemplateDirective)],L.prototype,"customItemTemplate",void 0),o.__decorate([m.ContentChild(C.GroupTemplateDirective,{static:!1}),o.__metadata("design:type",C.GroupTemplateDirective)],L.prototype,"groupTemplate",void 0),o.__decorate([m.ContentChild(S.FixedGroupTemplateDirective,{static:!1}),o.__metadata("design:type",S.FixedGroupTemplateDirective)],L.prototype,"fixedGroupTemplate",void 0),o.__decorate([m.ContentChild(I.HeaderTemplateDirective,{static:!1}),o.__metadata("design:type",I.HeaderTemplateDirective)],L.prototype,"headerTemplate",void 0),o.__decorate([m.ContentChild(x.FooterTemplateDirective,{static:!1}),o.__metadata("design:type",x.FooterTemplateDirective)],L.prototype,"footerTemplate",void 0),o.__decorate([m.ContentChild(T.TagTemplateDirective,{static:!1}),o.__metadata("design:type",T.TagTemplateDirective)],L.prototype,"tagTemplate",void 0),o.__decorate([m.ContentChild(w.GroupTagTemplateDirective,{static:!1}),o.__metadata("design:type",w.GroupTagTemplateDirective)],L.prototype,"groupTagTemplate",void 0),o.__decorate([m.ContentChild(D.NoDataTemplateDirective,{static:!1}),o.__metadata("design:type",D.NoDataTemplateDirective)],L.prototype,"noDataTemplate",void 0),o.__decorate([m.HostBinding("class.k-widget"),m.HostBinding("class.k-multiselect"),o.__metadata("design:type",Boolean)],L.prototype,"widgetClasses",void 0),o.__decorate([m.HostBinding("attr.dir"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],L.prototype,"dir",null),o.__decorate([m.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],L.prototype,"disabledClass",null),n=o.__decorate([m.Component({exportAs:"kendoMultiSelect",providers:[s,j.DataService,p.SelectionService,l.NavigationService,c.DisabledItemsService,P.LocalizationService,{provide:P.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:A.FilterableComponent,useExisting:m.forwardRef(function(){return n})},{provide:r.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 <div class="k-multiselect-wrap k-floatwrap"\n #wrapper\n (mousedown)="wrapperMousedown($event)"\n >\n <kendo-taglist\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n </kendo-taglist>\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'listbox\'"\n [tagListId]="tagListId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n </div>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div class="k-list" *ngIf="allowCustom && text">\n <div class="k-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n [checkboxes]="checkboxes"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),o.__param(11,m.Optional()),o.__param(11,m.Inject(M.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[P.LocalizationService,F.PopupService,j.DataService,p.SelectionService,l.NavigationService,c.DisabledItemsService,m.ChangeDetectorRef,m.KeyValueDiffers,m.Renderer2,m.ElementRef,m.NgZone,Boolean])],L));function L(e,t,i,n,o,a,r,s,p,l,d,c){var u=this;this.localization=e,this.popupService=t,this.dataService=i,this.selectionService=n,this.navigationService=o,this.disabledItemsService=a,this.cdr=r,this.differs=s,this.renderer=p,this.hostElement=l,this._zone=d,this.touchEnabled=c,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=u.value.find(e);return i||u.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.widgetClasses=!0,this.initialized=!1,this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new 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=V},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),c=i(1),o=i(15),u=i(36),h=i(35),a=i(34),r=i(22),s=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),T=i(4),w=i(8),D=i(7),E=i(24),k=i(26),O=i(9),P=i(25),F=i(33),A=i(29);t.COMBOBOX_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return j})};var M,j=(M=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,"clearable",{get:function(){return this.clearButton},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-state-focused"),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.hostElement.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages()},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}})),o=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,o,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}),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(c.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(E.ComboBoxMessages.primitive);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(E.ComboBoxMessages.object);if(!C.isPresent(this.valueField)!=!C.isPresent(this.textField))throw new Error(E.ComboBoxMessages.textAndValue);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(E.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,o={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 o.dataItem=this.dataService.itemAt(e),o.index=e,o},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)||"",o=C.getter(this.dataService.itemAt(t),this.textField),n=e!==n;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&n&&(e===o||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)||""),o=t||n;o||y.hasObservers(this.onBlur)||y.hasObservers(this.close)||C.isUntouched(this.hostElement.nativeElement)?this.zone.run(function(){o&&(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.hostElement,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=A.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},n.__decorate([c.Input(),n.__metadata("design:type",String)],B.prototype,"focusableId",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"allowCustom",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"data",null),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"value",null),n.__decorate([c.Input(),n.__metadata("design:type",String)],B.prototype,"textField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],B.prototype,"valueField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],B.prototype,"valuePrimitive",null),n.__decorate([c.Input(),n.__metadata("design:type",Function)],B.prototype,"valueNormalizer",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],B.prototype,"placeholder",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"popupSettings",null),n.__decorate([c.Input(),n.__metadata("design:type",Number)],B.prototype,"listHeight",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],B.prototype,"iconClass",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"loading",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"suggest",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"clearButton",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"disabled",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],B.prototype,"itemDisabled",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"readonly",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Number)],B.prototype,"tabindex",void 0),n.__decorate([c.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],B.prototype,"tabIndex",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"filterable",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"virtual",null),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"valueChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"selectionChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"filterChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"open",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"opened",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"close",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"closed",void 0),n.__decorate([c.Output("focus"),n.__metadata("design:type",c.EventEmitter)],B.prototype,"onFocus",void 0),n.__decorate([c.Output("blur"),n.__metadata("design:type",c.EventEmitter)],B.prototype,"onBlur",void 0),n.__decorate([c.ContentChild(r.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",r.ItemTemplateDirective)],B.prototype,"template",void 0),n.__decorate([c.ContentChild(s.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",s.HeaderTemplateDirective)],B.prototype,"headerTemplate",void 0),n.__decorate([c.ContentChild(p.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",p.FooterTemplateDirective)],B.prototype,"footerTemplate",void 0),n.__decorate([c.ContentChild(m.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",m.NoDataTemplateDirective)],B.prototype,"noDataTemplate",void 0),n.__decorate([c.ContentChild(l.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",l.GroupTemplateDirective)],B.prototype,"groupTemplate",void 0),n.__decorate([c.ContentChild(d.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",d.FixedGroupTemplateDirective)],B.prototype,"fixedGroupTemplate",void 0),n.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),n.__metadata("design:type",c.ViewContainerRef)],B.prototype,"container",void 0),n.__decorate([c.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",c.TemplateRef)],B.prototype,"popupTemplate",void 0),n.__decorate([c.ViewChild(a.SearchBarComponent,{static:!0}),n.__metadata("design:type",a.SearchBarComponent)],B.prototype,"searchbar",void 0),n.__decorate([c.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],B.prototype,"optionsList",void 0),n.__decorate([c.ViewChild("wrapper",{static:!0}),n.__metadata("design:type",c.ElementRef)],B.prototype,"wrapper",void 0),n.__decorate([c.ViewChild("select",{static:!0}),n.__metadata("design:type",c.ElementRef)],B.prototype,"select",void 0),n.__decorate([c.HostBinding("class.k-widget"),c.HostBinding("class.k-combobox"),n.__metadata("design:type",Boolean)],B.prototype,"widgetClasses",void 0),n.__decorate([c.HostBinding("class.k-combobox-clearable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"clearable",null),n.__decorate([c.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],B.prototype,"dir",null),M=n.__decorate([c.Component({exportAs:"kendoComboBox",providers:[t.COMBOBOX_VALUE_ACCESSOR,O.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,T.LocalizationService,{provide:T.L10N_PREFIX,useValue:"kendo.combobox"},{provide:k.FilterableComponent,useExisting:c.forwardRef(function(){return M})},{provide:y.KendoInput,useExisting:c.forwardRef(function(){return M})}],selector:"kendo-combobox",template:'\n <ng-container kendoComboBoxLocalizedMessages\n i18n-noDataText="kendo.combobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.combobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span #wrapper unselectable="on"\n class="k-dropdown-wrap"\n [ngClass]="{\'k-state-disabled\': disabled }"\n >\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="clearTitle"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n <span\n #select\n aria-hidden="true"\n unselectable="on"\n class="k-select"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon" [ngClass]="buttonClasses">\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n </span>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),n.__param(10,c.Optional()),n.__param(10,c.Inject(D.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[T.LocalizationService,w.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,O.DataService,c.NgZone,c.ChangeDetectorRef,c.Renderer2,c.ElementRef,Boolean])],B));function B(e,t,i,n,o,a,r,s,p,l,d){this.localization=e,this.popupService=t,this.selectionService=i,this.navigationService=n,this.disabledItemsService=o,this.dataService=a,this.zone=r,this.cdr=s,this.renderer=p,this.hostElement=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 c.EventEmitter,this.selectionChange=new c.EventEmitter,this.filterChange=new c.EventEmitter,this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.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,u.validatePackage(h.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.data=[]}t.ComboBoxComponent=j},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(29),r=i(43),s=i(42),p=i(49),l=i(23),d=i(16),i=i(7),s=[r.MultiSelectComponent,p.SummaryTagDirective,s.CustomItemTemplateDirective],a=n.__decorate([o.NgModule({declarations:[s],exports:[s,d.SharedDirectivesModule],imports:[l.SharedModule],providers:[{provide:i.TOUCH_ENABLED,useValue:a.touchEnabled}]})],c);function c(){}t.MultiSelectModule=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(63),r=i(23),i=i(16),a=[a.DropDownListComponent],r=n.__decorate([o.NgModule({declarations:[a],exports:[a,i.SharedDirectivesModule],imports:[r.SharedModule]})],s);function s(){}t.DropDownListModule=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(29),r=i(44),s=i(62),p=i(40),l=i(23),d=i(16),c=i(7),u=i(38),i=i(39),i=[r.ComboBoxComponent,s.MultiColumnComboBoxComponent,p.ComboBoxColumnComponent,u.ColumnHeaderTemplateDirective,i.ColumnCellTemplateDirective],a=n.__decorate([o.NgModule({declarations:[i],exports:[i,d.SharedDirectivesModule],imports:[l.SharedModule],providers:[{provide:c.TOUCH_ENABLED,useValue:a.touchEnabled}]})],h);function h(){}t.ComboBoxModule=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(65),r=i(23),i=i(16),a=[a.AutoCompleteComponent],r=n.__decorate([o.NgModule({declarations:[a],exports:[a,i.SharedDirectivesModule],imports:[r.SharedModule]})],s);function s(){}t.AutoCompleteModule=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(2),i=i(43),i=(r.prototype.ngOnChanges=function(e){a.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},r.prototype.createTagMapper=function(){var i=a.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([o.Input("kendoMultiSelectSummaryTag"),n.__metadata("design:type",Object)],r.prototype,"showAfter",void 0),n.__decorate([o.Directive({selector:"[kendoMultiSelectSummaryTag]"}),n.__metadata("design:paramtypes",[i.MultiSelectComponent])],r));function r(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 o=i(0),n=i(1),a=i(2),n=(r.prototype.addItem=function(e){var t;this.isItemChecked(e)||(t=a.getHierarchicalItemLevel(e.index),t=o.__assign({},e,{level:t}),this.checkedItems.push(t),this.checkedKeys.add(a.valueFrom(t,this.valueField)))},r.prototype.removeItem=function(e){var t,i,n=this;this.isItemChecked(e)&&(t=a.getHierarchicalItemLevel(e.index),i=o.__assign({},e,{level:t}),this.checkedItems=this.checkedItems.filter(function(e){return a.valueFrom(e,n.valueField)!==a.valueFrom(i,n.valueField)}),this.checkedKeys.delete(a.valueFrom(i,this.valueField)))},r.prototype.isItemChecked=function(e){return this.checkedKeys.has(a.valueFrom(e,this.valueField))},r.prototype.updateItems=function(){var t=this;this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(function(e){return a.valueFrom(e,t.valueField)}))},o.__decorate([n.Input(),o.__metadata("design:type",Object)],r.prototype,"valueField",void 0),o.__decorate([n.Input(),o.__metadata("design:type",Array)],r.prototype,"checkedItems",void 0),r);function r(){}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(o.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])],o.prototype,"templateContext",null),n.__decorate([i.Directive({selector:"[templateContext]"}),n.__metadata("design:paramtypes",[i.ViewContainerRef])],o));function o(e){this.viewContainerRef=e}t.TemplateContextDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),i=i(6),i=(Object.defineProperty(a.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!0,configurable:!0}),a.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([o.HostBinding("attr.index"),o.Input(),n.__metadata("design:type",Number)],a.prototype,"index",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],a.prototype,"checkboxes",void 0),n.__decorate([o.HostBinding("style.height.px"),o.HostBinding("style.minHeight.px"),o.Input(),n.__metadata("design:type",Number)],a.prototype,"height",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],a.prototype,"multipleSelection",void 0),n.__decorate([o.HostBinding("class.k-state-focused"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],a.prototype,"focusedClassName",null),n.__decorate([o.HostBinding("class.k-state-selected"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],a.prototype,"selectedClassName",null),n.__decorate([o.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],a.prototype,"onClick",null),n.__decorate([o.Directive({selector:"[kendoDropDownsSelectable]"}),n.__metadata("design:paramtypes",[i.SelectionService])],a));function a(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),o=i(1),a=i(26),r=i(2),s={caseSensitive:!1,operator:"startsWith"},a=(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(){r.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(r.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=r.isPresent(e)?e.toString():"";return this.filterSettings.caseSensitive?e:e.toLowerCase()},p.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?r.isArray(e)&&0<e.length?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(p.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=r.isPresent(e)&&"object"==typeof e?e.fields:[];return Object.assign({},s,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],p.prototype,"data",null),n.__decorate([o.Input("kendoDropDownFilter"),n.__metadata("design:type",Object)],p.prototype,"rawSettings",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"filterable",void 0),n.__decorate([o.Directive({selector:"[kendoDropDownFilter]"}),n.__metadata("design:paramtypes",[a.FilterableComponent])],p));function p(e){this.component=e,this.filterable=!0,this._data=[]}t.FilterDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),a=i(1),o=(n=i(4).ComponentMessages,o.__extends(r,n),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"noDataText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"clearTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"checkAllText",void 0),r);function r(){return null!==n&&n.apply(this,arguments)||this}t.Messages=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(23),r=i(5),s=i(16),p=i(61),l=i(37),d=i(60),c=i(59),u=i(58),h=i(57),m=i(56),g=i(30),i=i(67),i=[p.DropDownTreeComponent,l.MultiSelectTreeComponent,d.DropDownTreeFlatBindingDirective,c.DropDownTreeHierarchyBindingDirective,u.MultiSelectTreeFlatBindingDirective,h.MultiSelectTreeHierarchyBindingDirective,m.DropDownTreesExpandDirective,g.NodeTemplateDirective,i.MultiSelectTreeSummaryTagDirective],r=n.__decorate([o.NgModule({declarations:[i],exports:[i,s.SharedDirectivesModule],imports:[a.SharedModule,r.TreeViewModule]})],v);function v(){}t.DropDownTreesModule=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),a=i(1),i=i(5),i=(n=i.ExpandDirective,o.__extends(r,n),o.__decorate([a.Input("isNodeExpanded"),o.__metadata("design:type",Function)],r.prototype,"isExpanded",void 0),o.__decorate([a.Directive({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),o.__metadata("design:paramtypes",[i.ExpandableComponent])],r));function r(e){return n.call(this,e)||this}t.DropDownTreesExpandDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),a=i(1),i=i(5),i=(n=i.HierarchyBindingDirective,o.__extends(r,n),Object.defineProperty(r.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),o.__decorate([a.Input("kendoMultiSelectTreeHierarchyBinding"),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],r.prototype,"data",null),o.__decorate([a.Directive({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),o.__metadata("design:paramtypes",[i.DataBoundComponent])],r));function r(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,o=i(0),a=i(1),i=i(5),i=(n=i.FlatDataBindingDirective,o.__extends(r,n),o.__decorate([a.Input("kendoMultiSelectTreeFlatBinding"),o.__metadata("design:type",Array)],r.prototype,"nodes",void 0),o.__decorate([a.Input("valueField"),o.__metadata("design:type",String)],r.prototype,"idField",void 0),o.__decorate([a.Directive({selector:"[kendoMultiSelectTreeFlatBinding]"}),o.__metadata("design:paramtypes",[i.DataBoundComponent])],r));function r(e){return n.call(this,e)||this}t.MultiSelectTreeFlatBindingDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),a=i(1),i=i(5),i=(n=i.HierarchyBindingDirective,o.__extends(r,n),Object.defineProperty(r.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),o.__decorate([a.Input("kendoDropDownTreeHierarchyBinding"),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],r.prototype,"data",null),o.__decorate([a.Directive({selector:"[kendoDropDownTreeHierarchyBinding]"}),o.__metadata("design:paramtypes",[i.DataBoundComponent])],r));function r(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,o=i(0),a=i(1),i=i(5),i=(n=i.FlatDataBindingDirective,o.__extends(r,n),o.__decorate([a.Input("kendoDropDownTreeFlatBinding"),o.__metadata("design:type",Array)],r.prototype,"nodes",void 0),o.__decorate([a.Input("valueField"),o.__metadata("design:type",String)],r.prototype,"idField",void 0),o.__decorate([a.Directive({selector:"[kendoDropDownTreeFlatBinding]"}),o.__metadata("design:paramtypes",[i.DataBoundComponent])],r));function r(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 c(){return!0}var n,o=i(0),u=i(1),h=i(3),a=i(8),r=i(5),s=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),T=i(14),w=i(13),D=i(30),E=i(24),k=i(7),i=i(32),O={animate:!0},_=(n=P,Object.defineProperty(P.prototype,"clearable",{get:function(){return this.clearButton},enumerable:!0,configurable:!0}),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,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(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.hostElement.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()}))},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(){var e=this;this.isFocused||(this.isFocused=!0,h.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},P.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.hostElement.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,h.hasObservers(this.onBlur)||C.isUntouched(this.hostElement.nativeElement)?this._zone.run(function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()}):this.togglePopup(!1))},P.prototype.handleKeydown=function(e){this.disabled||this.readonly||this.navigationService.process({originalEvent:e})},P.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},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","k-reset","k-group","k-list-container"];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?s.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}),P.prototype.verifySettings=function(){if(u.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(E.DropDownTreeMessages.primitive);if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.dataItem)throw new Error(E.DropDownTreeMessages.dataItem);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(E.DropDownTreeMessages.object);if(!C.isPresent(this.valueField)||!C.isPresent(this.textField))throw new Error(E.DropDownTreeMessages.textAndValue);if((C.isArray(this.valueField)||C.isArray(this.textField))&&C.isPresent(this.value)&&!C.isPresent(this.valueDepth))throw new Error(E.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 s.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=[s.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.hostElement,e,t.popupRef)&&t._zone.run(function(){t.isOpen&&t.treeview.blur(),t.blur()})})})},P.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},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)},o.__decorate([u.HostBinding("class.k-widget"),u.HostBinding("class.k-dropdowntree"),u.HostBinding("class.k-dropdowntree-clearable"),o.__metadata("design:type",Boolean)],P.prototype,"hostClasses",void 0),o.__decorate([u.HostBinding("attr.dir"),o.__metadata("design:type",String)],P.prototype,"direction",void 0),o.__decorate([u.HostBinding("class.k-dropdowntree-clearable"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],P.prototype,"clearable",null),o.__decorate([u.ContentChild(S.NoDataTemplateDirective,{static:!1}),o.__metadata("design:type",S.NoDataTemplateDirective)],P.prototype,"noDataTemplate",void 0),o.__decorate([u.ContentChild(T.HeaderTemplateDirective,{static:!1}),o.__metadata("design:type",T.HeaderTemplateDirective)],P.prototype,"headerTemplate",void 0),o.__decorate([u.ContentChild(w.FooterTemplateDirective,{static:!1}),o.__metadata("design:type",w.FooterTemplateDirective)],P.prototype,"footerTemplate",void 0),o.__decorate([u.ContentChild(D.NodeTemplateDirective,{static:!1}),o.__metadata("design:type",D.NodeTemplateDirective)],P.prototype,"nodeTemplate",void 0),o.__decorate([u.ContentChild(i.ValueTemplateDirective,{static:!1}),o.__metadata("design:type",i.ValueTemplateDirective)],P.prototype,"valueTemplate",void 0),o.__decorate([u.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",u.TemplateRef)],P.prototype,"popupTemplate",void 0),o.__decorate([u.ViewChild("wrapper",{static:!0}),o.__metadata("design:type",u.ElementRef)],P.prototype,"wrapper",void 0),o.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),o.__metadata("design:type",u.ViewContainerRef)],P.prototype,"container",void 0),o.__decorate([u.ViewChild("treeview",{static:!1}),o.__metadata("design:type",r.TreeViewComponent),o.__metadata("design:paramtypes",[r.TreeViewComponent])],P.prototype,"treeview",null),o.__decorate([u.ViewChild("filterInput",{static:!1}),o.__metadata("design:type",u.ElementRef)],P.prototype,"filterInput",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"open",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"opened",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"close",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"closed",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"nodeExpand",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"nodeCollapse",void 0),o.__decorate([u.Output("focus"),o.__metadata("design:type",u.EventEmitter)],P.prototype,"onFocus",void 0),o.__decorate([u.Output("blur"),o.__metadata("design:type",u.EventEmitter)],P.prototype,"onBlur",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"valueChange",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"filterChange",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"loading",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"clearButton",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],P.prototype,"data",null),o.__decorate([u.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],P.prototype,"value",null),o.__decorate([u.Input(),o.__metadata("design:type",Object)],P.prototype,"textField",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Object)],P.prototype,"valueField",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Number)],P.prototype,"valueDepth",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],P.prototype,"hasChildren",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],P.prototype,"fetchChildren",void 0),o.__decorate([u.Input(),o.__metadata("design:type",String)],P.prototype,"placeholder",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),o.__decorate([u.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],P.prototype,"dataItem",null),o.__decorate([u.Input(),o.__metadata("design:type",Number)],P.prototype,"listHeight",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"valuePrimitive",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],P.prototype,"tabindex",null),o.__decorate([u.Input(),o.__metadata("design:type",Function)],P.prototype,"itemDisabled",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],P.prototype,"isNodeExpanded",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],P.prototype,"isNodeVisible",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"loadOnDemand",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"filterable",void 0),o.__decorate([u.Input(),o.__metadata("design:type",String)],P.prototype,"filter",void 0),o.__decorate([u.Input(),o.__metadata("design:type",String)],P.prototype,"focusableId",void 0),n=o.__decorate([u.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:u.forwardRef(function(){return n})},{provide:h.KendoInput,useExisting:u.forwardRef(function(){return n})},{provide:r.DataBoundComponent,useExisting:u.forwardRef(function(){return n})},{provide:r.ExpandableComponent,useExisting:u.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 #wrapper\n [ngClass]="{\n \'k-dropdown-wrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n [attr.id]="focusableId"\n role="listbox"\n aria-haspopup="tree"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.tabindex]="tabindex"\n [attr.dir]="direction"\n (click)="handleClick()"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n [attr.id]="valueLabelId"\n class="k-input"\n >\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate"> {{ text || placeholder }} </ng-template>\n </span>\n <span\n *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n </span>\n <span class="k-select" aria-hidden="true">\n <span\n class="k-icon k-i-arrow-60-down"\n [ngClass]="buttonClasses"\n ></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown.arrowdown)="handleKeydown($event)"\n (keydown.alt.arrowup)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-textbox"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-zoom"></span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n *ngIf="data.length !== 0 && !allNodesHidden"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n [(selectedKeys)]="selectedKeys"\n [selectBy]="selectBy"\n [textField]="textField"\n kendoTreeViewSelectable\n [children]="children"\n [hasChildren]="hasChildren"\n [loadOnDemand]="loadOnDemand"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (focusout)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n (selectionChange)="onSelectionChange($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',changeDetection:u.ChangeDetectionStrategy.OnPush}),o.__param(7,u.Optional()),o.__param(7,u.Inject(k.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[a.PopupService,f.NavigationService,u.Renderer2,u.ElementRef,u.NgZone,u.ChangeDetectorRef,_.LocalizationService,Boolean])],P));function P(e,t,i,n,o,a,r,s){this.popupService=e,this.navigationService=t,this.renderer=i,this.hostElement=n,this._zone=o,this.cdr=a,this.localization=r,this.touchEnabled=s,this.hostClasses=!0,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.nodeExpand=new u.EventEmitter,this.nodeCollapse=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.EventEmitter,this.valueChange=new u.EventEmitter,this.filterChange=new u.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=c,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+h.guid(),this.selectedKeys=[],this.filterStateChange=new u.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+h.guid(),this._popupSettings=O,this._tabindex=0,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=C.noop,this.onChangeCallback=C.noop,this.direction=r.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}t.DropDownTreeComponent=_},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c,n,o=i(0),a=i(1),r=i(15),s=i(3),p=i(4),l=i(8),d=i(44),u=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=(c=d.ComboBoxComponent,o.__extends(S,c),n=S,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,"listContainerClasses",{get:function(){return["k-list-container","k-popup","k-reset","k-group","k-dropdowngrid-popup","k-popup-flush","k-state-border-up"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),S.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},S.prototype.ngOnDestroy=function(){c.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(a.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);c.prototype.verifySettings.call(this)}},S.prototype.addWindowResizeListener=function(){var e=this;s.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)&&s.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}))})},o.__decorate([a.HostBinding("class.k-dropdowngrid"),o.__metadata("design:type",Boolean)],S.prototype,"hostClasses",void 0),o.__decorate([a.ContentChildren(u.ComboBoxColumnComponent),o.__metadata("design:type",a.QueryList)],S.prototype,"columns",void 0),o.__decorate([a.ViewChild("header",{static:!1}),o.__metadata("design:type",a.ElementRef),o.__metadata("design:paramtypes",[a.ElementRef])],S.prototype,"header",null),n=o.__decorate([a.Component({providers:[v.SelectionService,h.DataService,g.NavigationService,m.DisabledItemsService,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return n})},{provide:s.KendoInput,useExisting:a.forwardRef(function(){return n})},{provide:y.FilterableComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-multicolumncombobox",template:'\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText="kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multicolumncombobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span\n #wrapper\n unselectable="on"\n class="k-dropdown-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="clearTitle"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n\n <span\n #select\n aria-hidden="true"\n unselectable="on"\n class="k-select"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span\n class="k-icon"\n [ngClass]="buttonClasses"\n >\n </span>\n </span>\n </span>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-grid-header"\n >\n <div class="k-grid-header-wrap">\n <table role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <tbody>\n <tr>\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-header"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-cell"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [listClass]="\'k-reset k-grid-list\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-nodata"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-footer">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </div>\n </ng-container>\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n '}),o.__param(10,a.Inject(f.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[p.LocalizationService,l.PopupService,v.SelectionService,g.NavigationService,m.DisabledItemsService,h.DataService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.ElementRef,Boolean])],S));function S(e,t,i,n,o,a,r,s,p,l,d){d=c.call(this,e,t,i,n,o,a,r,s,p,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),c=i(1),o=i(15),u=i(36),h=i(35),m=i(12),a=i(17),r=i(3),s=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),T=i(8),w=i(7),D=i(24),E=i(10),k=i(9),O=i(26),P=i(25),F=i(33);t.DROPDOWNLIST_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return M})};var A,M=(A=j,Object.defineProperty(j.prototype,"width",{get:function(){var e=r.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}),j.prototype.blurComponent=function(){this.wrapperBlurred.emit()},j.prototype.blurFilterInput=function(){this.filterBlurred.emit()},j.prototype.focusComponent=function(){var e=this;this.wrapperFocused.emit(),this.isFocused||(this.isFocused=!0,r.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},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,o=0;this.disabled||this.readonly||(t=e.keyCode===s.Keys.Home||e.keyCode===s.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===s.Keys.ArrowDown||e.keyCode===s.Keys.ArrowRight?o=-1:e.keyCode!==s.Keys.ArrowUp&&e.keyCode!==s.Keys.ArrowLeft||(o=1)),e=(o=this.navigationService.process({current:n+o,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:n=e}))===S.NavigationAction.Left||o===S.NavigationAction.Right,o===S.NavigationAction.Undefined||o===S.NavigationAction.Tab||o===S.NavigationAction.Backspace||o===S.NavigationAction.Delete||e&&this.filterable||o===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)},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,"dir",{get:function(){return this.direction},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-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),j.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages(),this.assignAriaDescribedBy()},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}),r.isChanged("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),r.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,"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 o=this;r.isDocumentAvailable()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(a.filter(function(e){return o.isOpen}),a.map(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(m.merge(this.selectionService.onSelect.pipe(a.filter(function(e){return!o.isOpen})),this.selectionService.onChange).pipe(a.map(this.itemFromEvent.bind(this)),a.tap(function(e){return o.togglePopup(!1)})).subscribe(function(e){var t=e.dataItem,i=e.value;e.newSelection&&o.onSelectionChange({dataItem:t});var n=!g.isPresent(t)&&o._previousDataItem,e=i!==g.getter(o.value,o.valueField);n?(o.updateState({dataItem:o._previousDataItem}),o.resetSelection()):e&&(o.value=o.valuePrimitive?i:t,o._previousDataItem=t,o.emitChange(o.value)),o.clearFilter()})),this.navigationSubscription=m.merge(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(a.skipWhile(function(){return o.filterable})),this.navigationService.right.pipe(a.skipWhile(function(){return o.filterable})),this.navigationService.home,this.navigationService.end).pipe(a.filter(function(e){return!isNaN(e.index)})).subscribe(function(e){return o.selectionService.select(e.index)}),this.openSubscription=this.navigationService.open.subscribe(function(){return o.togglePopup(!0)}),this.closeSubscription=this.navigationService.close.subscribe(function(){o.togglePopup(!1),o.focus()}),this.enterSubscription=this.navigationService.enter.pipe(a.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(a.concatMap(function(){return m.interval(10).pipe(a.take(1),a.takeUntil(o.wrapperFocused))})).subscribe(function(){o.wrapperBlurred.emit()}),this._zone.runOutsideAngular(function(){o.componentBlurredSubscription=m.merge(o.wrapperBlurred.pipe(a.concatMap(function(){return m.interval(10).pipe(a.take(1),a.takeUntil(o.filterFocused))})),o.navigationService.tab).pipe(a.tap(function(e){return e instanceof l.NavigationEvent&&o.focus()}),a.filter(function(){return o.isFocused})).subscribe(function(){return o.componentBlur()})}))},j.prototype.subscribeTouchEvents=function(){var t=this;r.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.hostElement,e,t.popupRef)&&t._zone.run(function(){t.filterFocused&&t.togglePopup(!1),t.blur()})})})},j.prototype.unsubscribeEvents=function(){r.isDocumentAvailable()&&(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())},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(c.isDevMode()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(D.DropDownListMessages.defaultItem);if(!0===this.valuePrimitive&&g.isPresent(this.value)&&"object"==typeof this.value)throw new Error(D.DropDownListMessages.primitive);if(!1===this.valuePrimitive&&g.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(D.DropDownListMessages.object);if(!g.isPresent(this.valueField)!=!g.isPresent(this.textField))throw new Error(D.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||r.hasObservers(this.close)||r.hasObservers(this.onBlur)||r.hasObservers(this.filterChange)||g.isUntouched(this.hostElement.nativeElement)?this._zone.run(function(){t&&e.selectionService.change(e.selectionService.selected[0]),e.togglePopup(!1),e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):this.togglePopup(!1)},j.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},j.prototype.onKeyPress=function(e){var t;0!==e.which&&e.keyCode!==s.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)}}),o=g.sameCharsOnly(this.word,this.last),a=n.length,r=!isNaN(this.selectionService.selected[0]),s=r?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(t={item:this.defaultItem,itemIndex:-1},a+=1,s+=1),n=g.shuffleData(n,s+=o&&r?1:0,t),e=0;e<a;e++){var p=g.getter(n[e].item,this.textField),l=Boolean(o&&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!==a&&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,o={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 o.dataItem=this.dataService.itemAt(e),o.index=e,o},j.prototype.setState=function(){var e=this.value,t=this.valueField,i=this.textField,n=this.valuePrimitive;if(this.defaultItem){var o=g.getter(this.defaultItem,t),a=g.getter(e,t);if(!g.isPresent(e)||a===o)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}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)},n.__decorate([c.Input(),n.__metadata("design:type",String)],j.prototype,"focusableId",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],j.prototype,"iconClass",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],j.prototype,"loading",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"data",null),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"value",null),n.__decorate([c.Input(),n.__metadata("design:type",String)],j.prototype,"textField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],j.prototype,"valueField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"popupSettings",null),n.__decorate([c.Input(),n.__metadata("design:type",Number)],j.prototype,"listHeight",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object)],j.prototype,"defaultItem",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],j.prototype,"disabled",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],j.prototype,"itemDisabled",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],j.prototype,"readonly",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],j.prototype,"filterable",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"virtual",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],j.prototype,"ignoreCase",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Number)],j.prototype,"delay",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],j.prototype,"valuePrimitive",null),n.__decorate([c.Input(),n.__metadata("design:type",Number)],j.prototype,"tabindex",void 0),n.__decorate([c.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],j.prototype,"tabIndex",null),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"valueChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"filterChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"selectionChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"open",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"opened",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"close",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"closed",void 0),n.__decorate([c.Output("focus"),n.__metadata("design:type",c.EventEmitter)],j.prototype,"onFocus",void 0),n.__decorate([c.Output("blur"),n.__metadata("design:type",c.EventEmitter)],j.prototype,"onBlur",void 0),n.__decorate([c.ContentChild(d.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",d.ItemTemplateDirective)],j.prototype,"itemTemplate",void 0),n.__decorate([c.ContentChild(v.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",v.GroupTemplateDirective)],j.prototype,"groupTemplate",void 0),n.__decorate([c.ContentChild(f.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",f.FixedGroupTemplateDirective)],j.prototype,"fixedGroupTemplate",void 0),n.__decorate([c.ContentChild(_.ValueTemplateDirective,{static:!1}),n.__metadata("design:type",_.ValueTemplateDirective)],j.prototype,"valueTemplate",void 0),n.__decorate([c.ContentChild(b.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",b.HeaderTemplateDirective)],j.prototype,"headerTemplate",void 0),n.__decorate([c.ContentChild(y.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",y.FooterTemplateDirective)],j.prototype,"footerTemplate",void 0),n.__decorate([c.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],j.prototype,"noDataTemplate",void 0),n.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),n.__metadata("design:type",c.ViewContainerRef)],j.prototype,"container",void 0),n.__decorate([c.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",c.TemplateRef)],j.prototype,"popupTemplate",void 0),n.__decorate([c.ViewChild("wrapper",{static:!0}),n.__metadata("design:type",c.ElementRef)],j.prototype,"wrapper",void 0),n.__decorate([c.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],j.prototype,"optionsList",void 0),n.__decorate([c.HostBinding("class.k-widget"),c.HostBinding("class.k-dropdown"),n.__metadata("design:type",Boolean)],j.prototype,"widgetClasses",void 0),n.__decorate([c.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"dir",null),A=n.__decorate([c.Component({exportAs:"kendoDropDownList",providers:[t.DROPDOWNLIST_VALUE_ACCESSOR,k.DataService,p.SelectionService,l.NavigationService,E.DisabledItemsService,x.LocalizationService,{provide:x.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:O.FilterableComponent,useExisting:c.forwardRef(function(){return A})},{provide:r.KendoInput,useExisting:c.forwardRef(function(){return A})}],selector:"kendo-dropdownlist",template:'\n <ng-container kendoDropDownListLocalizedMessages\n i18n-noDataText="kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n >\n </ng-container>\n <span #wrapper unselectable="on"\n role="listbox"\n [id]="focusableId"\n [ngClass]="{\n \'k-dropdown-wrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n [attr.dir]="direction"\n [attr.readonly]="readonly"\n [attr.tabindex]="widgetTabIndex"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n (keydown)="keydown($event)"\n (keypress)="keypress($event)"\n (click)="click($event)"\n [kendoEventsOutsideAngular]="{\n focus: focusComponent,\n blur: blurComponent\n }"\n [scope]="this"\n >\n <span class="k-input" unselectable="on" [id]="valueLabelId">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate">{{ getText() }}</ng-template>\n </span>\n <span class="k-select" unselectable="on">\n <span\n class="k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n >\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <span class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <input\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-textbox"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n <span class="k-icon k-i-search" unselectable="on"></span>\n </span>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div class="k-list-optionlabel" [ngClass]="{ \'k-state-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div class="k-list-optionlabel" [ngClass]="{ \'k-state-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n </span>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),n.__param(10,c.Optional()),n.__param(10,c.Inject(w.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[x.LocalizationService,T.PopupService,p.SelectionService,l.NavigationService,E.DisabledItemsService,k.DataService,c.NgZone,c.Renderer2,c.ElementRef,c.ChangeDetectorRef,Boolean])],j));function j(e,t,i,n,o,a,r,s,p,l,d){this.localization=e,this.popupService=t,this.selectionService=i,this.navigationService=n,this.disabledItemsService=o,this.dataService=a,this._zone=r,this.renderer=s,this.hostElement=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 c.EventEmitter,this.filterChange=new c.EventEmitter,this.selectionChange=new c.EventEmitter,this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.widgetClasses=!0,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 c.EventEmitter,this.filterBlurred=new c.EventEmitter,this.wrapperFocused=new c.EventEmitter,this.wrapperBlurred=new c.EventEmitter,this.selectionSubscription=new m.Subscription,this._open=!1,this._popupSettings={animate:!0},u.validatePackage(h.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}t.DropDownListComponent=M},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])],o);function o(e){this.element=e}t.ListItemDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),c=i(1),o=i(3),a=i(15),u=i(36),h=i(35),r=i(34),s=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),T=i(26),w=i(9),D=i(25),E=i(33),i=i(7);t.AUTOCOMPLETE_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return O})};var k,O=(k=P,Object.defineProperty(P.prototype,"width",{get:function(){var e=0;o.isDocumentAvailable()&&(e=this.wrapper.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(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=E.normalizeVirtualizationSettings(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-state-focused"),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,"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()},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(c.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,o.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;o.hasObservers(this.onBlur)||o.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;o.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;o.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(){o.isDocumentAvailable()&&(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},P.prototype.handleItemChange=function(e){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()})})},n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"highlightFirst",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],P.prototype,"focusableId",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"data",null),n.__decorate([c.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],P.prototype,"value",null),n.__decorate([c.Input(),n.__metadata("design:type",String)],P.prototype,"valueField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],P.prototype,"placeholder",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),n.__decorate([c.Input(),n.__metadata("design:type",Number)],P.prototype,"listHeight",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"loading",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"clearButton",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"suggest",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],P.prototype,"itemDisabled",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Number)],P.prototype,"tabindex",void 0),n.__decorate([c.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],P.prototype,"tabIndex",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"filterable",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"virtual",null),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"valueChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"filterChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"open",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"opened",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"close",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"closed",void 0),n.__decorate([c.Output("focus"),n.__metadata("design:type",c.EventEmitter)],P.prototype,"onFocus",void 0),n.__decorate([c.Output("blur"),n.__metadata("design:type",c.EventEmitter)],P.prototype,"onBlur",void 0),n.__decorate([c.ContentChild(s.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",s.ItemTemplateDirective)],P.prototype,"template",void 0),n.__decorate([c.ContentChild(p.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",p.HeaderTemplateDirective)],P.prototype,"headerTemplate",void 0),n.__decorate([c.ContentChild(l.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",l.FooterTemplateDirective)],P.prototype,"footerTemplate",void 0),n.__decorate([c.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],P.prototype,"noDataTemplate",void 0),n.__decorate([c.ContentChild(d.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",d.GroupTemplateDirective)],P.prototype,"groupTemplate",void 0),n.__decorate([c.ContentChild(m.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",m.FixedGroupTemplateDirective)],P.prototype,"fixedGroupTemplate",void 0),n.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),n.__metadata("design:type",c.ViewContainerRef)],P.prototype,"container",void 0),n.__decorate([c.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",c.TemplateRef)],P.prototype,"popupTemplate",void 0),n.__decorate([c.ViewChild(r.SearchBarComponent,{static:!0}),n.__metadata("design:type",r.SearchBarComponent)],P.prototype,"searchbar",void 0),n.__decorate([c.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",D.ListComponent)],P.prototype,"optionsList",void 0),n.__decorate([c.HostBinding("class.k-widget"),c.HostBinding("class.k-autocomplete"),n.__metadata("design:type",Boolean)],P.prototype,"widgetClasses",void 0),n.__decorate([c.HostBinding("class.k-state-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],P.prototype,"isDisabled",null),n.__decorate([c.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],P.prototype,"dir",null),k=n.__decorate([c.Component({exportAs:"kendoAutoComplete",providers:[t.AUTOCOMPLETE_VALUE_ACCESSOR,w.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,I.LocalizationService,{provide:I.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:T.FilterableComponent,useExisting:c.forwardRef(function(){return k})},{provide:o.KendoInput,useExisting:c.forwardRef(function(){return k})}],selector:"kendo-autocomplete",template:'\n <ng-container kendoAutoCompleteLocalizedMessages\n i18n-noDataText="kendo.autocomplete.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.autocomplete.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && (clearButton && text?.length)"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (click)="clearValue($event)"\n (mousedown)="$event.preventDefault()"\n >\n</span>\n <span *ngIf="loading" class="k-icon k-i-loading"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),n.__param(10,c.Optional()),n.__param(10,c.Inject(i.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[I.LocalizationService,w.DataService,x.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,c.NgZone,c.ChangeDetectorRef,c.Renderer2,c.ElementRef,Boolean])],P));function P(e,t,i,n,o,a,r,s,p,l,d){this.localization=e,this.dataService=t,this.popupService=i,this.selectionService=n,this.navigationService=o,this.disabledItemsService=a,this._zone=r,this.cdr=s,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 c.EventEmitter,this.filterChange=new c.EventEmitter,this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.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,u.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),o=i(1),a=i(48),r=i(47),s=i(46),p=i(45),i=i(55),i=n.__decorate([o.NgModule({exports:[a.AutoCompleteModule,r.ComboBoxModule,s.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),o=i(1),a=i(2),i=i(37),i=(r.prototype.ngOnChanges=function(e){a.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},r.prototype.createTagMapper=function(){var t=a.parseNumber(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(e){return e.length>t?e.slice(0,t).concat([e.slice(t)]):e}},n.__decorate([o.Input("kendoMultiSelectTreeSummaryTag"),n.__metadata("design:type",Object)],r.prototype,"showAfter",void 0),n.__decorate([o.Directive({selector:"[kendoMultiSelectTreeSummaryTag]"}),n.__metadata("design:paramtypes",[i.MultiSelectTreeComponent])],r));function r(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 a,n=i(0),r=i(1),o=i(5),s=i(2),n=(a=i(50).BaseCheckDirective,n.__extends(p,a),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){s.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),s.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([r.Input(),n.__metadata("design:type",String)],p.prototype,"lastAction",void 0),n.__decorate([r.Input(),n.__metadata("design:type",o.TreeViewComponent)],p.prototype,"treeview",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Array)],p.prototype,"checkedItems",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],p.prototype,"valueField",void 0),n.__decorate([r.Input("checkAll"),n.__metadata("design:type",Boolean)],p.prototype,"focused",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],p.prototype,"checkedItemsChange",void 0),n.__decorate([r.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([r.Directive({selector:"[checkAll]"}),n.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Renderer2])],p));function p(e,t,i,n){var o=a.call(this)||this;return o.element=e,o.zone=t,o.cdr=i,o.renderer=n,o.checkedItemsChange=new r.EventEmitter,o.checkedKeys=new Set,o}t.CheckAllDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),a=i(1),r=i(5),s=i(12),p=i(17),l=i(2),r=(n=i(50).BaseCheckDirective,o.__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,o=this;this.treeView.isDisabled(e.item.dataItem,e.item.index)||(t=e.item,i=[t],this.checkable.checkChildren&&l.fetchDescendentNodes(e,function(e){return o.treeView.isVisible(e.dataItem,e.index)&&!o.treeView.isDisabled(e.dataItem,e.index)}).forEach(function(e){return i.push(e.item)}),n=!this.isItemChecked(t),i.forEach(function(e){n?o.addItem(e):o.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},o.__decorate([a.Input(),o.__metadata("design:type",Object)],d.prototype,"checkable",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Object)],d.prototype,"valueField",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Array)],d.prototype,"checkedItems",void 0),o.__decorate([a.Output(),o.__metadata("design:type",a.EventEmitter)],d.prototype,"checkedItemsChange",void 0),o.__decorate([a.Directive({selector:"[kendoMultiSelectTreeCheckable]"}),o.__metadata("design:paramtypes",[r.TreeViewComponent])],d));function d(e){var t=n.call(this)||this;return t.treeView=e,t.checkedItemsChange=new a.EventEmitter,t.checkedKeys=new Set,t.subscriptions=new s.Subscription,t.subscriptions.add(t.treeView.checkedChange.subscribe(t.handleCheckedChange.bind(t))),t.treeView.isChecked=t.getCheckedState.bind(t),t}t.CheckDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=(o.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},o.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},n.__decorate([i.Input("filterInput"),n.__metadata("design:type",Boolean)],o.prototype,"focused",void 0),n.__decorate([i.Directive({selector:"[filterInput]"}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone])],o));function o(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,o,a=i(0),r=i(1),s=i(4),i=i(54),s=(n=i.Messages,a.__extends(p,n),o=p,Object.defineProperty(p.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=a.__decorate([r.Component({providers:[{provide:i.Messages,useExisting:r.forwardRef(function(){return o})}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],p));function p(e){var t=n.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o,a=i(0),r=i(1),s=i(4),i=i(54),s=(n=i.Messages,a.__extends(p,n),o=p,o=a.__decorate([r.Directive({providers:[{provide:i.Messages,useExisting:r.forwardRef(function(){return o})}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),a.__metadata("design:paramtypes",[s.LocalizationService])],p));function p(e){var t=n.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(31),r=i(28),s=i(2),n=(p.prototype.tagProp=function(e,t,i){i=t&&this.getPropField(e,t,i);return s.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 s.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([o.Input(),n.__metadata("design:type",Array)],p.prototype,"tags",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],p.prototype,"textField",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"valueField",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array)],p.prototype,"valueDepth",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],p.prototype,"focused",void 0),n.__decorate([o.Input(),n.__metadata("design:type",a.TagTemplateDirective)],p.prototype,"template",void 0),n.__decorate([o.Input(),n.__metadata("design:type",r.GroupTagTemplateDirective)],p.prototype,"groupTemplate",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"tagPrefix",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"id",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Set)],p.prototype,"disabledIndices",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"removeTag",void 0),n.__decorate([o.Component({selector:"kendo-taglist",template:'\n <ul [attr.id]="id" class="k-reset">\n <li\n *ngFor="let tag of tags; let index = index;"\n role="option"\n [attr.id]="itemId(tag, index)"\n [attr.aria-hidden]="tagAriaHidden(index)"\n aria-selected="true"\n [attr.aria-setsize]="tags?.length"\n class="k-button"\n [ngClass]="{\n \'k-state-focused\': index === focused,\n \'k-state-disabled\': isTagDisabled(tag, index)\n }"\n >\n <ng-template *ngIf="isGroupTag(tag); then groupTag else singleTag"></ng-template>\n <ng-template #groupTag>\n <span>\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ tag.length }} {{ tag.length === 1 ? \'item\' : \'items\' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span>\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: tag\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ tagProp(tag, textField, index) }}</ng-template>\n </span>\n </ng-template>\n\n <span aria-label="delete" [attr.aria-hidden]="index !== focused" class="k-select">\n <span class="k-icon k-i-close" (mousedown)="deleteTag($event, tag, index)">\n </span>\n </span>\n </li>\n </ul>\n '})],p));function p(){this.disabledIndices=new Set,this.removeTag=new o.EventEmitter}t.TagListComponent=n},function(e,t){e.exports=c},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,o=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,!o.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)a(t,e[t])}(t)}],o={},n.m=i,n.c=o,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","rxjs/operators","@progress/kendo-licensing"],function(a){var r,s,p,l,d,c,u,h,m,g,v,f;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=t(e)},function(e){s=t(e)},function(e){p=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){c=t(e)},function(e){u=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(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,o;o={},n.m=i=[function(e,t){e.exports=p},function(e,t){e.exports=s},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=t(3),a=t(29);o.isPresent=function(e){return null!=e},o.isNumber=function(e){return!isNaN(e)},o.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},o.combineStr=function(e,t){return e.concat(t.substr(t.toLowerCase().indexOf(e.toLowerCase())+e.length))},o.isWindowAvailable=function(){return"undefined"!=typeof window},o.isArray=function(e){return Array.isArray(e)},o.isObject=function(e){return o.isPresent(e)&&"object"==typeof e},o.isEmptyString=function(e){return"string"==typeof e&&0===e.length},o.resolveValuesInArray=function(e,i,n){return void 0===i&&(i=[]),e.map(function(t){return i.find(function(e){return o.getter(e,n)===t})}).filter(function(e){return void 0!==e})},o.validateComplexValues=function(e,t){return o.isArray(e)&&e.filter(function(e){return o.isObject(e)&&o.isPresent(o.getter(e,t))})},o.resolveAllValues=function(e,t,i){var n=o.validateComplexValues(e,i)||[];return(o.resolveValuesInArray(e,t,i)||[]).concat(n)},o.isObjectArray=function(e){return o.isArray(e)&&e.every(function(e){return o.isObject(e)})},o.selectedIndices=function(e,t,i){var n=t.map(function(e){return o.isPresent(e)&&o.isPresent(o.getter(e,i))?o.getter(e,i):e});return e.reduce(function(e,t){t=o.isPresent(t)&&o.isPresent(o.getter(t,i))?o.getter(t,i):t,t=n.indexOf(t);return-1!==t&&e.push(t),e},[])},o.getter=function(e,t){return o.isPresent(e)?o.isPresent(t)&&o.isObject(e)?a.getter(t)(e):e:null},o.resolveValue=function(t){var e;return o.isPresent(t.value)?{dataItem:e=[t.defaultItem].concat(t.data).find(function(e){return o.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}},o.sameCharsOnly=function(e,t){for(var i=0;i<e.length;i++)if(e.charAt(i)!==t)return!1;return!0},o.shuffleData=function(e,t,i){return(e=i?[i].concat(e):e).slice(t).concat(e.slice(0,t))},o.matchText=function(e,t,i){if(!o.isPresent(e))return!1;e=String(e);return 0===(e=i?e.toLowerCase():e).indexOf(t)},o.elementFromPoint=function(e,t){if(i.isDocumentAvailable())return document.elementFromPoint(e,t)},o.hasProps=function(t,e){return!!o.isPresent(t)&&e.every(function(e){return t.hasOwnProperty(e)})},o.isUntouched=function(e){return e.className.includes("ng-untouched")},o.noop=function(e){};o.closest=function(e,t){for(var i,n,o,a=e;null!==a&&1===a.nodeType;){if(n=t,o=void 0,!!(o=(i=a).matches||i.msMatchesSelector||i.webkitMatchesSelector)&&o.call(i,n))return a;a=a.parentElement||a.parentNode}return null},o.parseNumber=function(e,t){void 0===t&&(t=0);e=Number(e);return isNaN(e)?t:e},o.inDropDown=function(e,t,i){return e.nativeElement.contains(t)||i&&i.popupElement.contains(t)},o.getHierarchicalItemLevel=function(e){return(e||"").split("_").length-1},o.fetchDescendentNodes=function(e,t){if(!o.isPresent(e)||0===e.children.length)return[];var i=e.children;return(i=o.isPresent(t)?i.filter(function(e){return t(e.item)}):i).forEach(function(e){return i=i.concat(o.fetchDescendentNodes(e,t))}),i},o.valueFrom=function(e,t){var i=e.dataItem,n=e.index,e=e.level,t=Array.isArray(t)?t:[t],n=o.isPresent(e)?e:o.getHierarchicalItemLevel(n),t=t[Math.min(n,t.length-1)];return a.getter(t)(i)}},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),o=i(1),a=i(2),n=(r.prototype.getTotal=function(){return this.total},r.prototype.isSelected=function(t){return a.isPresent(this.selectedIndices.find(function(e){return e===t}))},r.prototype.isFocused=function(e){return e===this.focused},r.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},r.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:a.isPresent(e)}))},r.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},r.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}))},r.prototype.change=function(e){var t=a.isPresent(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})},r.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(r.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(r.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([o.Injectable()],r));function r(){this.onSelect=new o.EventEmitter,this.onChange=new o.EventEmitter,this.onFocus=new o.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=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),s=i(2),o=(Object.defineProperty(a.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(a.prototype,"itemsCount",{get:function(){return s.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}),a.prototype.isGrouped=function(e){return s.isPresent(e)&&0!==e.length&&s.isPresent(e[0])&&s.hasProps(e[0],["aggregates","field","items","value"])},a.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},a.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},a.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)},a.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},a.prototype.closestGroup=function(e){for(var t=e;0<=t;t--)if(this._flatData[t].header)return this._flatData[t]},a.prototype.find=function(e){e=this.findIndex(e);return this.itemAt(e)},a.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},a.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},a.prototype.groupAt=function(t){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(e){return e.header&&e.index===t})},a.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},a.prototype.itemGroup=function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var t=this.groupField();return t?s.getter(e,t):void 0}},a.prototype.flatten=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=0);var o=[];s.isPresent(t=void 0===t?void 0:t)&&o.push({header:!0,index:n+i,offsetIndex:n,value:t});for(var a=0;a<e.length;a++){var r=[];e[a].items?(r=this.flatten(e[a].items,e[a].value,i,a),i+=e[a].items.length):r.push({header:!1,index:n+i+a+1,offsetIndex:i+a,value:e[a]}),o=o.concat(r)}return o},n.__decorate([o.Injectable()],a));function a(){this.grouped=!1,this.groupIndices=[]}t.DataService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(2),i=i(9),i=(r.prototype.isIndexDisabled=function(e){if(this.itemDisabled){var t=this.dataService.itemAt(e);return a.isPresent(t)?this.itemDisabled({dataItem:t,index:e}):a.isPresent(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0}},r.prototype.isItemDisabled=function(e){if(this.itemDisabled){var t=this.dataService.indexOf(e);return-1!==t?this.itemDisabled({dataItem:e,index:t}):a.isPresent(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0}},n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[i.DataService])],r));function r(e){this.dataService=e,this.itemDisabled=null}t.DisabledItemsService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(o.prototype.preventDefault=function(){this.prevented=!0},o.prototype.isDefaultPrevented=function(){return this.prevented},o);function o(){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])],o);function o(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])],o);function o(e){this.templateRef=e}t.HeaderTemplateDirective=i},function(e,t){e.exports=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(22),r=i(21),s=i(20),p=i(14),l=i(13),d=i(18),c=i(32),u=i(31),h=i(28),m=i(72),g=i(71),v=i(53),i=i(70),i=[p.HeaderTemplateDirective,l.FooterTemplateDirective,a.ItemTemplateDirective,r.GroupTemplateDirective,s.FixedGroupTemplateDirective,d.NoDataTemplateDirective,c.ValueTemplateDirective,u.TagTemplateDirective,h.GroupTagTemplateDirective,m.LocalizedMessagesDirective,g.CustomMessagesComponent,v.FilterDirective,i.FilterInputDirective],i=n.__decorate([o.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])],o);function o(e){this.templateRef=e}t.NoDataTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(2),a=i(3),s=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,o=s.NavigationAction.Undefined;n&&i===a.Keys.ArrowDown?o=s.NavigationAction.Open:n&&i===a.Keys.ArrowUp?o=s.NavigationAction.Close:i===a.Keys.Enter?o=s.NavigationAction.Enter:i===a.Keys.Escape?o=s.NavigationAction.Esc:i===a.Keys.Tab?o=s.NavigationAction.Tab:i===a.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=s.NavigationAction.Up):i===a.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=s.NavigationAction.Left):i===a.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=s.NavigationAction.Down):i===a.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=s.NavigationAction.Right):i===a.Keys.Home?(t=this.isDisabled(0)?e.current:0,o=s.NavigationAction.Home):i===a.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,o=s.NavigationAction.End):i===a.Keys.Delete?o=s.NavigationAction.Delete:i===a.Keys.Backspace&&(o=s.NavigationAction.Backspace);e=new l(t,e.originalEvent);return o!==s.NavigationAction.Undefined&&this[s.NavigationAction[o].toLowerCase()].emit(e),o},d.prototype.next=function(e){var t=e.current,i=e.start,n=e.end,o=e.step,a=r.isPresent(t)?this.clampIndex(t+o,i,n):i,e=this.firstFocusableIndex(a,i,n,o);return r.isPresent(e)?e:this.selectionService.isSelected(t)&&i<=t?t:this.firstFocusableIndex(a,i,n,-1*o)},d.prototype.clampIndex=function(e,t,i){return!r.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([o.Injectable(),n.__metadata("design:paramtypes",[p.DisabledItemsService,i.SelectionService])],d);function d(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.enter=new o.EventEmitter,this.tab=new o.EventEmitter,this.esc=new o.EventEmitter,this.up=new o.EventEmitter,this.right=new o.EventEmitter,this.down=new o.EventEmitter,this.left=new o.EventEmitter,this.delete=new o.EventEmitter,this.backspace=new o.EventEmitter,this.home=new o.EventEmitter,this.end=new o.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])],o);function o(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])],o);function o(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])],o);function o(e){this.templateRef=e}t.ItemTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(74),r=i(15),s=i(25),p=i(34),l=i(73),d=i(8),c=i(3),u=i(16),h=i(64),m=i(52),g=i(51),v=i(69),i=i(68),i=[s.ListComponent,h.ListItemDirective,m.SelectableDirective,p.SearchBarComponent,g.TemplateContextDirective,l.TagListComponent,v.CheckDirective,i.CheckAllDirective],c=n.__decorate([o.NgModule({declarations:[i],exports:[i,a.CommonModule,r.FormsModule,d.PopupModule,c.ResizeSensorModule,u.SharedDirectivesModule,c.EventsModule],imports:[a.CommonModule,r.FormsModule,d.PopupModule,c.ResizeSensorModule,u.SharedDirectivesModule,c.EventsModule]})],f);function f(){}t.SharedModule=c},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),o=i(3),a=i(64),r=i(22),s=i(21),l=i(20),d=i(2),c=i(6),u=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,"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}),g.prototype.ngOnChanges=function(e){o.isChanged("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),o.isChanged("virtual",e,!1)&&this.setOverflow()},g.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular(function(){e.scrollSubscription=u.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.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-state-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,o;this.virtual&&(e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),o=this.content.nativeElement.scrollTop,t=Math.trunc(o/this.virtual.itemHeight),i=o>this.lastScrollTop,n=t+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,o=this.pageSize-(this.lastLoaded-this.startFrom),o=this.lastLoaded-this.pageSize+e>=t-o,i&&n&&this.changePage(t),!i&&o&&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.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,o=this.virtual.itemHeight,e=t.clientHeight,o=n+o;n<i?i=n:i+e<o&&(i=o-e),t.scrollTop=i},g.prototype.scroll=function(e){var t,i,n,o;e&&(n=e.nativeElement,t=this.content.nativeElement,i=n.offsetTop,o=n.offsetHeight,e=t.scrollTop,n=t.clientHeight,o=i+o,i<e?e=i:e+n<o&&(e=o-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},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",r.ItemTemplateDirective)],g.prototype,"template",void 0),n.__decorate([p.Input(),n.__metadata("design:type",s.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,"listClass",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.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(a.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=\'k-outer-group-header k-first\'\n [ngClass]="{\'k-virtual-item\': virtual}"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><strong>{{ currentGroup }}</strong> </ng-template>\n </div>\n <div #content\n [ngClass]="{ \'k-virtual-content\': virtual, \'k-list-scroller\': !virtual }"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [ngClass]="{ \'k-virtual-list\': virtual }"\n [attr.id]="id"\n [attr.aria-hidden]="!show">\n <ng-template *ngIf="!dataService.grouped && show" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n role="option"\n kendoDropDownsSelectable\n [checkboxes]="checkboxes"\n [height]="virtual?.itemHeight"\n [index]="itemIndex + startFrom"\n [multipleSelection]="multipleSelection"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem)"\n [attr.tabIndex]="-1"\n class="k-item"\n [ngClass]="{ \'k-virtual-item\': virtual, \'k-state-disabled\': isDisabled(itemIndex) }">\n <label *ngIf="checkboxes.enabled"\n class="k-checkbox-label">\n <input type="checkbox"\n class="k-checkbox"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n </label>\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ getText(dataItem) }}</ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n class=\'k-outer-group-header\'\n [ngClass]="{ \'k-virtual-item\': virtual }"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate"><strong> {{ dataItem.value }}</strong> </ng-template>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n class="k-item"\n [ngClass]="{ \'k-virtual-item\': virtual, \'k-state-disabled\': isDisabled(dataItem.offsetIndex) }">\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ getText(dataItem.value) }}</ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" #virtualContainer class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n '}),n.__metadata("design:paramtypes",[i.DataService,p.ElementRef,c.SelectionService,m.DisabledItemsService,p.ChangeDetectorRef,p.NgZone,p.Renderer2])],g));function g(e,t,i,n,o,a,r){var s=this;this.dataService=e,this.wrapper=t,this.selectionService=i,this.disabledItemsService=n,this.cdr=o,this.zone=a,this.renderer=r,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.listClass="k-list k-reset",this.checkboxes={enabled:!1},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.selectSubscription=u.merge(this.selectionService.onSelect.pipe(h.map(function(e){return e.indices[0]})),this.selectionService.onFocus).pipe(h.switchMap(function(e){return s.zone.onStable.pipe(h.take(1),h.map(function(){return e}))})).subscribe(this.scrollToItem.bind(this))}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])],o);function o(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])],o);function o(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])],o);function o(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])],o);function o(e){this.templateRef=e}t.ValueTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o={pageSize:50,itemHeight:28};t.normalizeVirtualizationSettings=function(e,t){t=Object.assign({},o,t);return!0===e?t:e?n.__assign({pageSize:o.pageSize},e):null}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(3),r=i(3),s=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?s.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){a.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},p.prototype.setInputSelection=function(e,t){if(a.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<[r.Keys.ArrowUp,r.Keys.ArrowDown,r.Keys.ArrowLeft,r.Keys.ArrowRight,r.Keys.Enter,r.Keys.Escape,r.Keys.Delete,r.Keys.Backspace,r.Keys.Home,r.Keys.End].indexOf(t)&&this.onNavigate.emit(e)},p.prototype.focus=function(){a.isDocumentAvailable()&&this.input.nativeElement.focus()},p.prototype.blur=function(){a.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([o.Input(),n.__metadata("design:type",String)],p.prototype,"id",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"listId",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"tagListId",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"activeDescendant",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"noDataLabel",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"readonly",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],p.prototype,"tabIndex",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"popupOpen",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"role",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"userInput",null),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"suggestedText",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"valueChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onBlur",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onFocus",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onClick",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onNavigate",void 0),n.__decorate([o.ViewChild("input",{static:!0}),n.__metadata("design:type",o.ElementRef)],p.prototype,"input",void 0),n.__decorate([o.HostBinding("class.k-searchbar"),n.__metadata("design:type",Boolean)],p.prototype,"searchBarClass",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"placeholder",null),n.__decorate([o.Component({selector:"kendo-searchbar",template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="popupOpen"\n [attr.aria-owns]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-label]="noDataLabel"\n />\n '}),n.__metadata("design:paramtypes",[i.LocalizationService,o.Renderer2])],p));function p(e,t){this.localization=e,this.valueChange=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onClick=new o.EventEmitter,this.onNavigate=new o.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:1639043976,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 c(){return!0}var n,o=i(0),u=i(1),a=i(15),h=i(3),r=i(4),s=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),T=i(13),w=i(30),D=i(18),E=i(31),k=i(28),O=i(7),P=i(12),F=i(17),A={animate:!0},M={checkChildren:!0,checkOnClick:!0},r=(n=j,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,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},A,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({},M,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.hostElement.nativeElement,"k-state-focused"),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","k-reset","k-group","k-list-container"];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.hostElement.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()}))},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 o.__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(){var e=this;this.isFocused||(this.isFocused=!0,h.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus()))},j.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.hostElement.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,this.togglePopup(!1),(h.hasObservers(this.onBlur)||C.isUntouched(this.hostElement.nativeElement))&&this._zone.run(function(){t.onBlur.emit(),t.onTouchedCallback()}))},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()},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))})},j.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},j.prototype.verifySettings=function(){if(u.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.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()})},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},[]))},o.__decorate([u.HostBinding("class.k-widget"),u.HostBinding("class.k-dropdowntree"),o.__metadata("design:type",Boolean)],j.prototype,"hostClasses",void 0),o.__decorate([u.HostBinding("attr.dir"),o.__metadata("design:type",String)],j.prototype,"direction",void 0),o.__decorate([u.ContentChild(x.HeaderTemplateDirective,{static:!1}),o.__metadata("design:type",x.HeaderTemplateDirective)],j.prototype,"headerTemplate",void 0),o.__decorate([u.ContentChild(T.FooterTemplateDirective,{static:!1}),o.__metadata("design:type",T.FooterTemplateDirective)],j.prototype,"footerTemplate",void 0),o.__decorate([u.ContentChild(w.NodeTemplateDirective,{static:!1}),o.__metadata("design:type",w.NodeTemplateDirective)],j.prototype,"nodeTemplate",void 0),o.__decorate([u.ContentChild(D.NoDataTemplateDirective,{static:!1}),o.__metadata("design:type",D.NoDataTemplateDirective)],j.prototype,"noDataTemplate",void 0),o.__decorate([u.ContentChild(E.TagTemplateDirective,{static:!1}),o.__metadata("design:type",E.TagTemplateDirective)],j.prototype,"tagTemplate",void 0),o.__decorate([u.ContentChild(k.GroupTagTemplateDirective,{static:!1}),o.__metadata("design:type",k.GroupTagTemplateDirective)],j.prototype,"groupTagTemplate",void 0),o.__decorate([u.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",u.TemplateRef)],j.prototype,"popupTemplate",void 0),o.__decorate([u.ViewChild("wrapper",{static:!0}),o.__metadata("design:type",u.ElementRef)],j.prototype,"wrapper",void 0),o.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),o.__metadata("design:type",u.ViewContainerRef)],j.prototype,"container",void 0),o.__decorate([u.ViewChild("treeview",{static:!1}),o.__metadata("design:type",g.TreeViewComponent),o.__metadata("design:paramtypes",[g.TreeViewComponent])],j.prototype,"treeview",null),o.__decorate([u.ViewChild("filterInput",{static:!1}),o.__metadata("design:type",u.ElementRef)],j.prototype,"filterInput",void 0),o.__decorate([u.ViewChild("checkAllInput",{static:!1}),o.__metadata("design:type",u.ElementRef)],j.prototype,"checkAllInput",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],j.prototype,"tabindex",null),o.__decorate([u.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],j.prototype,"popupSettings",null),o.__decorate([u.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],j.prototype,"checkableSettings",null),o.__decorate([u.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],j.prototype,"data",null),o.__decorate([u.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],j.prototype,"value",null),o.__decorate([u.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],j.prototype,"dataItems",null),o.__decorate([u.Input(),o.__metadata("design:type",Object)],j.prototype,"textField",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Object)],j.prototype,"valueField",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Array)],j.prototype,"valueDepth",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"loading",void 0),o.__decorate([u.Input(),o.__metadata("design:type",String)],j.prototype,"placeholder",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Number)],j.prototype,"listHeight",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"disabled",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"readonly",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"valuePrimitive",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"loadOnDemand",void 0),o.__decorate([u.Input(),o.__metadata("design:type",String)],j.prototype,"focusableId",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"clearButton",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"filterable",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],j.prototype,"checkAll",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],j.prototype,"hasChildren",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],j.prototype,"fetchChildren",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],j.prototype,"isNodeExpanded",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],j.prototype,"isNodeVisible",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],j.prototype,"itemDisabled",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Object)],j.prototype,"tagMapper",void 0),o.__decorate([u.Output("focus"),o.__metadata("design:type",u.EventEmitter)],j.prototype,"onFocus",void 0),o.__decorate([u.Output("blur"),o.__metadata("design:type",u.EventEmitter)],j.prototype,"onBlur",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"open",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"opened",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"close",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"closed",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"nodeExpand",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"nodeCollapse",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"valueChange",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"removeTag",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],j.prototype,"filterChange",void 0),n=o.__decorate([u.Component({exportAs:"kendoMultiSelectTree",providers:[r.LocalizationService,s.NavigationService,v.DataService,f.DisabledItemsService,_.SelectionService,{provide:r.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:u.forwardRef(function(){return n})},{provide:g.DataBoundComponent,useExisting:u.forwardRef(function(){return n})},{provide:g.ExpandableComponent,useExisting:u.forwardRef(function(){return n})},{provide:h.KendoInput,useExisting:u.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 <div #wrapper\n [ngClass]="{\n \'k-multiselect-wrap\': true,\n \'k-floatwrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n role="listbox"\n aria-haspopup="tree"\n [attr.aria-describedby]="tagListId"\n [attr.aria-readonly]="readonly"\n [attr.aria-activedescendant]="focusedTagId"\n [attr.tabindex]="tabindex"\n [attr.id]="focusableId"\n [attr.dir]="direction"\n (click)="handleClick()"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n >\n <kendo-taglist\n [id]="tagListId"\n [tags]="tags"\n [focused]="focusedTagIndex"\n [textField]="textField"\n [valueField]="valueField"\n [valueDepth]="valueDepth"\n [disabled]="disabled"\n [tagPrefix]="tagPrefix"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n </kendo-taglist>\n <span *ngIf="!tags || !tags.length"\n class="k-input k-readonly"\n >\n {{ placeholder }}\n </span>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-icon k-clear-value k-i-close"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n </div>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-textbox"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-zoom"></span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\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 [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n kendoMultiSelectTreeCheckable\n [checkable]="checkableSettings"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [textField]="textField"\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [loadOnDemand]="loadOnDemand"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (keydown)="handleKeydown($event)"\n (nodeClick)="handleNodeClick($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n [kendoEventsOutsideAngular]="{\n focusout: handleBlur\n }"\n [scope]="this"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data?.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n '}),o.__param(7,u.Optional()),o.__param(7,u.Inject(O.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[m.PopupService,u.Renderer2,u.ElementRef,s.NavigationService,u.NgZone,r.LocalizationService,u.ChangeDetectorRef,Boolean])],j));function j(e,t,i,n,o,a,r,s){this.popupService=e,this.renderer=t,this.hostElement=i,this.navigationService=n,this._zone=o,this.localization=a,this.cdr=r,this.touchEnabled=s,this.hostClasses=!0,this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId="k-"+h.guid(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=p,this.fetchChildren=l,this.isNodeVisible=c,this.itemDisabled=d,this.tagMapper=function(e){return e||[]},this.onFocus=new u.EventEmitter,this.onBlur=new u.EventEmitter,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.nodeExpand=new u.EventEmitter,this.nodeCollapse=new u.EventEmitter,this.valueChange=new u.EventEmitter,this.removeTag=new u.EventEmitter,this.filterChange=new u.EventEmitter,this.filterStateChange=new u.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=A,this._checkableSettings=M,this._isFocused=!1,this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=C.noop,this.onChangeCallback=C.noop,this.direction=a.rtl?"rtl":"ltr",this.subscribeEvents()}t.MultiSelectTreeComponent=r},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])],o);function o(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])],o);function o(e){this.templateRef=e}t.ColumnCellTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(39),i=i(38),o=(n.__decorate([o.ContentChild(a.ColumnCellTemplateDirective,{static:!1}),n.__metadata("design:type",a.ColumnCellTemplateDirective)],r.prototype,"cellTemplate",void 0),n.__decorate([o.ContentChild(i.ColumnHeaderTemplateDirective,{static:!1}),n.__metadata("design:type",i.ColumnHeaderTemplateDirective)],r.prototype,"headerTemplate",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],r.prototype,"field",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],r.prototype,"title",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],r.prototype,"width",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],r.prototype,"hidden",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],r.prototype,"style",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],r.prototype,"headerStyle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],r.prototype,"class",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],r.prototype,"headerClass",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],r.prototype,"media",void 0),n.__decorate([o.Component({selector:"kendo-combobox-column",template:""})],r));function r(){this.hidden=!1,this.matchesMedia=!0}t.ComboBoxColumnComponent=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),o=(n=i(11).PreventableEvent,o.__extends(a,n),a);function a(e){var t=n.call(this)||this;return t.dataItem=e,t}t.RemoveTagEvent=o},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])],o);function o(e){this.templateRef=e}t.CustomItemTemplateDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),h=i(2),a=i(34),m=i(1),g=i(12),v=i(17),r=i(3),s=i(15),f=i(36),_=i(35),p=i(6),l=i(19),d=i(27),c=i(10),u=i(3),b=i(22),y=i(42),C=i(21),S=i(20),I=i(14),x=i(13),T=i(31),w=i(28),D=i(18),E=i(24),k=i(11),O=i(41),P=i(4),F=i(8),A=i(26),M=i(7),j=i(9),B=i(25),R=i(76),N=i(33),s={multi:!0,provide:s.NG_VALUE_ACCESSOR,useExisting:m.forwardRef(function(){return V})},V=((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,r.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,r.hasObservers(this.onBlur)||r.hasObservers(this.filterChange)||r.hasObservers(this.close)||h.isUntouched(this.hostElement.nativeElement)?this._zone.run(function(){e.closePopup(),e.isOpen&&e.allowCustom||e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup()))},L.prototype.wrapperMousedown=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()))},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,"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=R.normalizeCheckboxesSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=N.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,"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,"width",{get:function(){var e=0;r.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(E.MultiselectMessages.array);if(!0===this.valuePrimitive&&h.isObjectArray(this.value))throw new Error(E.MultiselectMessages.primitive);if(!1===this.valuePrimitive&&!h.isObjectArray(this.value))throw new Error(E.MultiselectMessages.object);if(!h.isPresent(this.valueField)!=!h.isPresent(this.textField))throw new Error(E.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!==u.Keys.ArrowDown&&e.keyCode!==u.Keys.ArrowUp,i=this.text&&e.keyCode===u.Keys.Enter||e.keyCode===u.Keys.Escape;!this.text&&e.keyCode===u.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.hostElement.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.initialized=!0},L.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),r.isChanged("valueNormalizer",e)&&this.createCustomValueStream(),r.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.hostElement.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),L.prototype.subscribeEvents=function(){var e,t,i,n=this;r.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;r.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.hostElement,e,t.popupRef)||t._zone.run(function(){t.blur(),t.isOpen&&t.togglePopup(!1)})})})},L.prototype.unsubscribeEvents=function(){r.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 o=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!o.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,o=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(e,t,i){return n.disabledItemsService.isIndexDisabled(o[i])&&e.push(i),e},[]))},L.prototype.createCustomValueStream=function(){var o=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(v.tap(function(){o.loading=!0,o.disabled=!0,o.cdr.detectChanges()}),this.valueNormalizer,v.catchError(function(){return o.loading=!1,o.disabled=!1,o.autoClose&&o.togglePopup(!1),!o.autoClose&&o.filterable||o.clearFilter(),o.nextTick(function(){o.searchbar.focus()}),o.createCustomValueStream(),g.of(null)})).subscribe(function(e){var t,i,n;o.loading=!1,o.disabled=!1,h.isPresent(e)&&(t=o.valuePrimitive?h.getter(e,o.valueField):e,n=-1===(i=o.dataService.indexOf(t)),-1===o.value.indexOf(t)?(o.tags=o.tagMapper(o.selectedDataItems.concat([e])),n?o.value=o.value.concat([t]):o.selectionService.add(i)):!n&&o.selectionService.isSelected(i)?(o.selectionService.unselect(i),o.selectionService.focused=i):o.value=o.value.filter(function(e){return h.getter(e,o.valueField)!==t}),o.emitValueChange()),o.autoClose&&o.togglePopup(!1),!o.autoClose&&o.filterable||o.clearFilter(),o.nextTick(function(){o.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 k.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()})})},o.__decorate([m.Input(),o.__metadata("design:type",String)],L.prototype,"focusableId",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"autoClose",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"loading",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],L.prototype,"data",null),o.__decorate([m.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],L.prototype,"value",null),o.__decorate([m.Input(),o.__metadata("design:type",String)],L.prototype,"valueField",void 0),o.__decorate([m.Input(),o.__metadata("design:type",String)],L.prototype,"textField",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Number)],L.prototype,"tabindex",void 0),o.__decorate([m.Input("tabIndex"),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],L.prototype,"tabIndex",null),o.__decorate([m.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],L.prototype,"placeholder",null),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"disabled",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Function])],L.prototype,"itemDisabled",null),o.__decorate([m.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],L.prototype,"checkboxes",null),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"readonly",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"filterable",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],L.prototype,"virtual",null),o.__decorate([m.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],L.prototype,"popupSettings",null),o.__decorate([m.Input(),o.__metadata("design:type",Number)],L.prototype,"listHeight",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[Boolean])],L.prototype,"valuePrimitive",null),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"clearButton",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Object)],L.prototype,"tagMapper",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Boolean)],L.prototype,"allowCustom",void 0),o.__decorate([m.Input(),o.__metadata("design:type",Function)],L.prototype,"valueNormalizer",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"filterChange",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"valueChange",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"open",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"opened",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"close",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"closed",void 0),o.__decorate([m.Output("focus"),o.__metadata("design:type",m.EventEmitter)],L.prototype,"onFocus",void 0),o.__decorate([m.Output("blur"),o.__metadata("design:type",m.EventEmitter)],L.prototype,"onBlur",void 0),o.__decorate([m.Output(),o.__metadata("design:type",m.EventEmitter)],L.prototype,"removeTag",void 0),o.__decorate([m.ViewChild("container",{read:m.ViewContainerRef,static:!0}),o.__metadata("design:type",m.ViewContainerRef)],L.prototype,"container",void 0),o.__decorate([m.ViewChild(a.SearchBarComponent,{static:!0}),o.__metadata("design:type",a.SearchBarComponent)],L.prototype,"searchbar",void 0),o.__decorate([m.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",m.TemplateRef)],L.prototype,"popupTemplate",void 0),o.__decorate([m.ViewChild("wrapper",{static:!0}),o.__metadata("design:type",m.ElementRef)],L.prototype,"wrapper",void 0),o.__decorate([m.ViewChild("optionsList",{static:!1}),o.__metadata("design:type",B.ListComponent)],L.prototype,"optionsList",void 0),o.__decorate([m.ContentChild(b.ItemTemplateDirective,{static:!1}),o.__metadata("design:type",b.ItemTemplateDirective)],L.prototype,"template",void 0),o.__decorate([m.ContentChild(y.CustomItemTemplateDirective,{static:!1}),o.__metadata("design:type",y.CustomItemTemplateDirective)],L.prototype,"customItemTemplate",void 0),o.__decorate([m.ContentChild(C.GroupTemplateDirective,{static:!1}),o.__metadata("design:type",C.GroupTemplateDirective)],L.prototype,"groupTemplate",void 0),o.__decorate([m.ContentChild(S.FixedGroupTemplateDirective,{static:!1}),o.__metadata("design:type",S.FixedGroupTemplateDirective)],L.prototype,"fixedGroupTemplate",void 0),o.__decorate([m.ContentChild(I.HeaderTemplateDirective,{static:!1}),o.__metadata("design:type",I.HeaderTemplateDirective)],L.prototype,"headerTemplate",void 0),o.__decorate([m.ContentChild(x.FooterTemplateDirective,{static:!1}),o.__metadata("design:type",x.FooterTemplateDirective)],L.prototype,"footerTemplate",void 0),o.__decorate([m.ContentChild(T.TagTemplateDirective,{static:!1}),o.__metadata("design:type",T.TagTemplateDirective)],L.prototype,"tagTemplate",void 0),o.__decorate([m.ContentChild(w.GroupTagTemplateDirective,{static:!1}),o.__metadata("design:type",w.GroupTagTemplateDirective)],L.prototype,"groupTagTemplate",void 0),o.__decorate([m.ContentChild(D.NoDataTemplateDirective,{static:!1}),o.__metadata("design:type",D.NoDataTemplateDirective)],L.prototype,"noDataTemplate",void 0),o.__decorate([m.HostBinding("class.k-widget"),m.HostBinding("class.k-multiselect"),o.__metadata("design:type",Boolean)],L.prototype,"widgetClasses",void 0),o.__decorate([m.HostBinding("attr.dir"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],L.prototype,"dir",null),o.__decorate([m.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],L.prototype,"disabledClass",null),n=o.__decorate([m.Component({exportAs:"kendoMultiSelect",providers:[s,j.DataService,p.SelectionService,l.NavigationService,c.DisabledItemsService,P.LocalizationService,{provide:P.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:A.FilterableComponent,useExisting:m.forwardRef(function(){return n})},{provide:r.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 <div class="k-multiselect-wrap k-floatwrap"\n #wrapper\n (mousedown)="wrapperMousedown($event)"\n >\n <kendo-taglist\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n </kendo-taglist>\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'listbox\'"\n [tagListId]="tagListId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n </div>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div class="k-list" *ngIf="allowCustom && text">\n <div class="k-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n [checkboxes]="checkboxes"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),o.__param(11,m.Optional()),o.__param(11,m.Inject(M.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[P.LocalizationService,F.PopupService,j.DataService,p.SelectionService,l.NavigationService,c.DisabledItemsService,m.ChangeDetectorRef,m.KeyValueDiffers,m.Renderer2,m.ElementRef,m.NgZone,Boolean])],L));function L(e,t,i,n,o,a,r,s,p,l,d,c){var u=this;this.localization=e,this.popupService=t,this.dataService=i,this.selectionService=n,this.navigationService=o,this.disabledItemsService=a,this.cdr=r,this.differs=s,this.renderer=p,this.hostElement=l,this._zone=d,this.touchEnabled=c,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=u.value.find(e);return i||u.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.widgetClasses=!0,this.initialized=!1,this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new 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=V},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),c=i(1),o=i(15),u=i(36),h=i(35),a=i(34),r=i(22),s=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),T=i(4),w=i(8),D=i(7),E=i(24),k=i(26),O=i(9),P=i(25),F=i(33),A=i(29);t.COMBOBOX_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return j})};var M,j=(M=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,"clearable",{get:function(){return this.clearButton},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-state-focused"),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.hostElement.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages()},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}})),o=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,o,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}),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(c.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(E.ComboBoxMessages.primitive);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(E.ComboBoxMessages.object);if(!C.isPresent(this.valueField)!=!C.isPresent(this.textField))throw new Error(E.ComboBoxMessages.textAndValue);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(E.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,o={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 o.dataItem=this.dataService.itemAt(e),o.index=e,o},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)||"",o=C.getter(this.dataService.itemAt(t),this.textField),n=e!==n;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&n&&(e===o||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)||""),o=t||n;o||y.hasObservers(this.onBlur)||y.hasObservers(this.close)||C.isUntouched(this.hostElement.nativeElement)?this.zone.run(function(){o&&(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.hostElement,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=A.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},n.__decorate([c.Input(),n.__metadata("design:type",String)],B.prototype,"focusableId",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"allowCustom",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"data",null),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"value",null),n.__decorate([c.Input(),n.__metadata("design:type",String)],B.prototype,"textField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],B.prototype,"valueField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],B.prototype,"valuePrimitive",null),n.__decorate([c.Input(),n.__metadata("design:type",Function)],B.prototype,"valueNormalizer",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],B.prototype,"placeholder",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"popupSettings",null),n.__decorate([c.Input(),n.__metadata("design:type",Number)],B.prototype,"listHeight",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],B.prototype,"iconClass",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"loading",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"suggest",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"clearButton",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"disabled",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],B.prototype,"itemDisabled",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"readonly",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Number)],B.prototype,"tabindex",void 0),n.__decorate([c.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],B.prototype,"tabIndex",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],B.prototype,"filterable",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],B.prototype,"virtual",null),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"valueChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"selectionChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"filterChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"open",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"opened",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"close",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],B.prototype,"closed",void 0),n.__decorate([c.Output("focus"),n.__metadata("design:type",c.EventEmitter)],B.prototype,"onFocus",void 0),n.__decorate([c.Output("blur"),n.__metadata("design:type",c.EventEmitter)],B.prototype,"onBlur",void 0),n.__decorate([c.ContentChild(r.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",r.ItemTemplateDirective)],B.prototype,"template",void 0),n.__decorate([c.ContentChild(s.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",s.HeaderTemplateDirective)],B.prototype,"headerTemplate",void 0),n.__decorate([c.ContentChild(p.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",p.FooterTemplateDirective)],B.prototype,"footerTemplate",void 0),n.__decorate([c.ContentChild(m.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",m.NoDataTemplateDirective)],B.prototype,"noDataTemplate",void 0),n.__decorate([c.ContentChild(l.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",l.GroupTemplateDirective)],B.prototype,"groupTemplate",void 0),n.__decorate([c.ContentChild(d.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",d.FixedGroupTemplateDirective)],B.prototype,"fixedGroupTemplate",void 0),n.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),n.__metadata("design:type",c.ViewContainerRef)],B.prototype,"container",void 0),n.__decorate([c.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",c.TemplateRef)],B.prototype,"popupTemplate",void 0),n.__decorate([c.ViewChild(a.SearchBarComponent,{static:!0}),n.__metadata("design:type",a.SearchBarComponent)],B.prototype,"searchbar",void 0),n.__decorate([c.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],B.prototype,"optionsList",void 0),n.__decorate([c.ViewChild("wrapper",{static:!0}),n.__metadata("design:type",c.ElementRef)],B.prototype,"wrapper",void 0),n.__decorate([c.ViewChild("select",{static:!0}),n.__metadata("design:type",c.ElementRef)],B.prototype,"select",void 0),n.__decorate([c.HostBinding("class.k-widget"),c.HostBinding("class.k-combobox"),n.__metadata("design:type",Boolean)],B.prototype,"widgetClasses",void 0),n.__decorate([c.HostBinding("class.k-combobox-clearable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],B.prototype,"clearable",null),n.__decorate([c.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],B.prototype,"dir",null),M=n.__decorate([c.Component({exportAs:"kendoComboBox",providers:[t.COMBOBOX_VALUE_ACCESSOR,O.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,T.LocalizationService,{provide:T.L10N_PREFIX,useValue:"kendo.combobox"},{provide:k.FilterableComponent,useExisting:c.forwardRef(function(){return M})},{provide:y.KendoInput,useExisting:c.forwardRef(function(){return M})}],selector:"kendo-combobox",template:'\n <ng-container kendoComboBoxLocalizedMessages\n i18n-noDataText="kendo.combobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.combobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span #wrapper unselectable="on"\n class="k-dropdown-wrap"\n [ngClass]="{\'k-state-disabled\': disabled }"\n >\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="clearTitle"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n <span\n #select\n aria-hidden="true"\n unselectable="on"\n class="k-select"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon" [ngClass]="buttonClasses">\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n </span>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),n.__param(10,c.Optional()),n.__param(10,c.Inject(D.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[T.LocalizationService,w.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,O.DataService,c.NgZone,c.ChangeDetectorRef,c.Renderer2,c.ElementRef,Boolean])],B));function B(e,t,i,n,o,a,r,s,p,l,d){this.localization=e,this.popupService=t,this.selectionService=i,this.navigationService=n,this.disabledItemsService=o,this.dataService=a,this.zone=r,this.cdr=s,this.renderer=p,this.hostElement=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 c.EventEmitter,this.selectionChange=new c.EventEmitter,this.filterChange=new c.EventEmitter,this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.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,u.validatePackage(h.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.data=[]}t.ComboBoxComponent=j},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(29),r=i(43),s=i(42),p=i(49),l=i(23),d=i(16),i=i(7),s=[r.MultiSelectComponent,p.SummaryTagDirective,s.CustomItemTemplateDirective],a=n.__decorate([o.NgModule({declarations:[s],exports:[s,d.SharedDirectivesModule],imports:[l.SharedModule],providers:[{provide:i.TOUCH_ENABLED,useValue:a.touchEnabled}]})],c);function c(){}t.MultiSelectModule=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(63),r=i(23),i=i(16),a=[a.DropDownListComponent],r=n.__decorate([o.NgModule({declarations:[a],exports:[a,i.SharedDirectivesModule],imports:[r.SharedModule]})],s);function s(){}t.DropDownListModule=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(29),r=i(44),s=i(62),p=i(40),l=i(23),d=i(16),c=i(7),u=i(38),i=i(39),i=[r.ComboBoxComponent,s.MultiColumnComboBoxComponent,p.ComboBoxColumnComponent,u.ColumnHeaderTemplateDirective,i.ColumnCellTemplateDirective],a=n.__decorate([o.NgModule({declarations:[i],exports:[i,d.SharedDirectivesModule],imports:[l.SharedModule],providers:[{provide:c.TOUCH_ENABLED,useValue:a.touchEnabled}]})],h);function h(){}t.ComboBoxModule=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(65),r=i(23),i=i(16),a=[a.AutoCompleteComponent],r=n.__decorate([o.NgModule({declarations:[a],exports:[a,i.SharedDirectivesModule],imports:[r.SharedModule]})],s);function s(){}t.AutoCompleteModule=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(2),i=i(43),i=(r.prototype.ngOnChanges=function(e){a.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},r.prototype.createTagMapper=function(){var i=a.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([o.Input("kendoMultiSelectSummaryTag"),n.__metadata("design:type",Object)],r.prototype,"showAfter",void 0),n.__decorate([o.Directive({selector:"[kendoMultiSelectSummaryTag]"}),n.__metadata("design:paramtypes",[i.MultiSelectComponent])],r));function r(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 o=i(0),n=i(1),a=i(2),n=(r.prototype.addItem=function(e){var t;this.isItemChecked(e)||(t=a.getHierarchicalItemLevel(e.index),t=o.__assign({},e,{level:t}),this.checkedItems.push(t),this.checkedKeys.add(a.valueFrom(t,this.valueField)))},r.prototype.removeItem=function(e){var t,i,n=this;this.isItemChecked(e)&&(t=a.getHierarchicalItemLevel(e.index),i=o.__assign({},e,{level:t}),this.checkedItems=this.checkedItems.filter(function(e){return a.valueFrom(e,n.valueField)!==a.valueFrom(i,n.valueField)}),this.checkedKeys.delete(a.valueFrom(i,this.valueField)))},r.prototype.isItemChecked=function(e){return this.checkedKeys.has(a.valueFrom(e,this.valueField))},r.prototype.updateItems=function(){var t=this;this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(function(e){return a.valueFrom(e,t.valueField)}))},o.__decorate([n.Input(),o.__metadata("design:type",Object)],r.prototype,"valueField",void 0),o.__decorate([n.Input(),o.__metadata("design:type",Array)],r.prototype,"checkedItems",void 0),r);function r(){}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(o.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])],o.prototype,"templateContext",null),n.__decorate([i.Directive({selector:"[templateContext]"}),n.__metadata("design:paramtypes",[i.ViewContainerRef])],o));function o(e){this.viewContainerRef=e}t.TemplateContextDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),i=i(6),i=(Object.defineProperty(a.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!0,configurable:!0}),a.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([o.HostBinding("attr.index"),o.Input(),n.__metadata("design:type",Number)],a.prototype,"index",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],a.prototype,"checkboxes",void 0),n.__decorate([o.HostBinding("style.height.px"),o.HostBinding("style.minHeight.px"),o.Input(),n.__metadata("design:type",Number)],a.prototype,"height",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],a.prototype,"multipleSelection",void 0),n.__decorate([o.HostBinding("class.k-state-focused"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],a.prototype,"focusedClassName",null),n.__decorate([o.HostBinding("class.k-state-selected"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],a.prototype,"selectedClassName",null),n.__decorate([o.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],a.prototype,"onClick",null),n.__decorate([o.Directive({selector:"[kendoDropDownsSelectable]"}),n.__metadata("design:paramtypes",[i.SelectionService])],a));function a(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),o=i(1),a=i(26),r=i(2),s={caseSensitive:!1,operator:"startsWith"},a=(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(){r.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(r.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=r.isPresent(e)?e.toString():"";return this.filterSettings.caseSensitive?e:e.toLowerCase()},p.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?r.isArray(e)&&0<e.length?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(p.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=r.isPresent(e)&&"object"==typeof e?e.fields:[];return Object.assign({},s,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],p.prototype,"data",null),n.__decorate([o.Input("kendoDropDownFilter"),n.__metadata("design:type",Object)],p.prototype,"rawSettings",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"filterable",void 0),n.__decorate([o.Directive({selector:"[kendoDropDownFilter]"}),n.__metadata("design:paramtypes",[a.FilterableComponent])],p));function p(e){this.component=e,this.filterable=!0,this._data=[]}t.FilterDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),a=i(1),o=(n=i(4).ComponentMessages,o.__extends(r,n),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"noDataText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"clearTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"checkAllText",void 0),r);function r(){return null!==n&&n.apply(this,arguments)||this}t.Messages=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(23),r=i(5),s=i(16),p=i(61),l=i(37),d=i(60),c=i(59),u=i(58),h=i(57),m=i(56),g=i(30),i=i(67),i=[p.DropDownTreeComponent,l.MultiSelectTreeComponent,d.DropDownTreeFlatBindingDirective,c.DropDownTreeHierarchyBindingDirective,u.MultiSelectTreeFlatBindingDirective,h.MultiSelectTreeHierarchyBindingDirective,m.DropDownTreesExpandDirective,g.NodeTemplateDirective,i.MultiSelectTreeSummaryTagDirective],r=n.__decorate([o.NgModule({declarations:[i],exports:[i,s.SharedDirectivesModule],imports:[a.SharedModule,r.TreeViewModule]})],v);function v(){}t.DropDownTreesModule=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),a=i(1),i=i(5),i=(n=i.ExpandDirective,o.__extends(r,n),o.__decorate([a.Input("isNodeExpanded"),o.__metadata("design:type",Function)],r.prototype,"isExpanded",void 0),o.__decorate([a.Directive({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),o.__metadata("design:paramtypes",[i.ExpandableComponent])],r));function r(e){return n.call(this,e)||this}t.DropDownTreesExpandDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),a=i(1),i=i(5),i=(n=i.HierarchyBindingDirective,o.__extends(r,n),Object.defineProperty(r.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),o.__decorate([a.Input("kendoMultiSelectTreeHierarchyBinding"),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],r.prototype,"data",null),o.__decorate([a.Directive({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),o.__metadata("design:paramtypes",[i.DataBoundComponent])],r));function r(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,o=i(0),a=i(1),i=i(5),i=(n=i.FlatDataBindingDirective,o.__extends(r,n),o.__decorate([a.Input("kendoMultiSelectTreeFlatBinding"),o.__metadata("design:type",Array)],r.prototype,"nodes",void 0),o.__decorate([a.Input("valueField"),o.__metadata("design:type",String)],r.prototype,"idField",void 0),o.__decorate([a.Directive({selector:"[kendoMultiSelectTreeFlatBinding]"}),o.__metadata("design:paramtypes",[i.DataBoundComponent])],r));function r(e){return n.call(this,e)||this}t.MultiSelectTreeFlatBindingDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),a=i(1),i=i(5),i=(n=i.HierarchyBindingDirective,o.__extends(r,n),Object.defineProperty(r.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),o.__decorate([a.Input("kendoDropDownTreeHierarchyBinding"),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],r.prototype,"data",null),o.__decorate([a.Directive({selector:"[kendoDropDownTreeHierarchyBinding]"}),o.__metadata("design:paramtypes",[i.DataBoundComponent])],r));function r(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,o=i(0),a=i(1),i=i(5),i=(n=i.FlatDataBindingDirective,o.__extends(r,n),o.__decorate([a.Input("kendoDropDownTreeFlatBinding"),o.__metadata("design:type",Array)],r.prototype,"nodes",void 0),o.__decorate([a.Input("valueField"),o.__metadata("design:type",String)],r.prototype,"idField",void 0),o.__decorate([a.Directive({selector:"[kendoDropDownTreeFlatBinding]"}),o.__metadata("design:paramtypes",[i.DataBoundComponent])],r));function r(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 c(){return!0}var n,o=i(0),u=i(1),h=i(3),a=i(8),r=i(5),s=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),T=i(14),w=i(13),D=i(30),E=i(24),k=i(7),i=i(32),O={animate:!0},_=(n=P,Object.defineProperty(P.prototype,"clearable",{get:function(){return this.clearButton},enumerable:!0,configurable:!0}),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,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(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.hostElement.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()}))},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(){var e=this;this.isFocused||(this.isFocused=!0,h.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},P.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.hostElement.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,h.hasObservers(this.onBlur)||C.isUntouched(this.hostElement.nativeElement)?this._zone.run(function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()}):this.togglePopup(!1))},P.prototype.handleKeydown=function(e){this.disabled||this.readonly||this.navigationService.process({originalEvent:e})},P.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},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","k-reset","k-group","k-list-container"];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?s.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}),P.prototype.verifySettings=function(){if(u.isDevMode()){if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"==typeof this.value)throw new Error(E.DropDownTreeMessages.primitive);if(!0===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.dataItem)throw new Error(E.DropDownTreeMessages.dataItem);if(!1===this.valuePrimitive&&C.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(E.DropDownTreeMessages.object);if(!C.isPresent(this.valueField)||!C.isPresent(this.textField))throw new Error(E.DropDownTreeMessages.textAndValue);if((C.isArray(this.valueField)||C.isArray(this.textField))&&C.isPresent(this.value)&&!C.isPresent(this.valueDepth))throw new Error(E.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 s.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=[s.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.hostElement,e,t.popupRef)&&t._zone.run(function(){t.isOpen&&t.treeview.blur(),t.blur()})})})},P.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},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)},o.__decorate([u.HostBinding("class.k-widget"),u.HostBinding("class.k-dropdowntree"),u.HostBinding("class.k-dropdowntree-clearable"),o.__metadata("design:type",Boolean)],P.prototype,"hostClasses",void 0),o.__decorate([u.HostBinding("attr.dir"),o.__metadata("design:type",String)],P.prototype,"direction",void 0),o.__decorate([u.HostBinding("class.k-dropdowntree-clearable"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],P.prototype,"clearable",null),o.__decorate([u.ContentChild(S.NoDataTemplateDirective,{static:!1}),o.__metadata("design:type",S.NoDataTemplateDirective)],P.prototype,"noDataTemplate",void 0),o.__decorate([u.ContentChild(T.HeaderTemplateDirective,{static:!1}),o.__metadata("design:type",T.HeaderTemplateDirective)],P.prototype,"headerTemplate",void 0),o.__decorate([u.ContentChild(w.FooterTemplateDirective,{static:!1}),o.__metadata("design:type",w.FooterTemplateDirective)],P.prototype,"footerTemplate",void 0),o.__decorate([u.ContentChild(D.NodeTemplateDirective,{static:!1}),o.__metadata("design:type",D.NodeTemplateDirective)],P.prototype,"nodeTemplate",void 0),o.__decorate([u.ContentChild(i.ValueTemplateDirective,{static:!1}),o.__metadata("design:type",i.ValueTemplateDirective)],P.prototype,"valueTemplate",void 0),o.__decorate([u.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",u.TemplateRef)],P.prototype,"popupTemplate",void 0),o.__decorate([u.ViewChild("wrapper",{static:!0}),o.__metadata("design:type",u.ElementRef)],P.prototype,"wrapper",void 0),o.__decorate([u.ViewChild("container",{read:u.ViewContainerRef,static:!0}),o.__metadata("design:type",u.ViewContainerRef)],P.prototype,"container",void 0),o.__decorate([u.ViewChild("treeview",{static:!1}),o.__metadata("design:type",r.TreeViewComponent),o.__metadata("design:paramtypes",[r.TreeViewComponent])],P.prototype,"treeview",null),o.__decorate([u.ViewChild("filterInput",{static:!1}),o.__metadata("design:type",u.ElementRef)],P.prototype,"filterInput",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"open",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"opened",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"close",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"closed",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"nodeExpand",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"nodeCollapse",void 0),o.__decorate([u.Output("focus"),o.__metadata("design:type",u.EventEmitter)],P.prototype,"onFocus",void 0),o.__decorate([u.Output("blur"),o.__metadata("design:type",u.EventEmitter)],P.prototype,"onBlur",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"valueChange",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],P.prototype,"filterChange",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"loading",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"clearButton",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],P.prototype,"data",null),o.__decorate([u.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],P.prototype,"value",null),o.__decorate([u.Input(),o.__metadata("design:type",Object)],P.prototype,"textField",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Object)],P.prototype,"valueField",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Number)],P.prototype,"valueDepth",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],P.prototype,"hasChildren",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],P.prototype,"fetchChildren",void 0),o.__decorate([u.Input(),o.__metadata("design:type",String)],P.prototype,"placeholder",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),o.__decorate([u.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],P.prototype,"dataItem",null),o.__decorate([u.Input(),o.__metadata("design:type",Number)],P.prototype,"listHeight",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"valuePrimitive",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],P.prototype,"tabindex",null),o.__decorate([u.Input(),o.__metadata("design:type",Function)],P.prototype,"itemDisabled",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],P.prototype,"isNodeExpanded",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Function)],P.prototype,"isNodeVisible",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"loadOnDemand",void 0),o.__decorate([u.Input(),o.__metadata("design:type",Boolean)],P.prototype,"filterable",void 0),o.__decorate([u.Input(),o.__metadata("design:type",String)],P.prototype,"filter",void 0),o.__decorate([u.Input(),o.__metadata("design:type",String)],P.prototype,"focusableId",void 0),n=o.__decorate([u.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:u.forwardRef(function(){return n})},{provide:h.KendoInput,useExisting:u.forwardRef(function(){return n})},{provide:r.DataBoundComponent,useExisting:u.forwardRef(function(){return n})},{provide:r.ExpandableComponent,useExisting:u.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 #wrapper\n [ngClass]="{\n \'k-dropdown-wrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n [attr.id]="focusableId"\n role="listbox"\n aria-haspopup="tree"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.tabindex]="tabindex"\n [attr.dir]="direction"\n (click)="handleClick()"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n [attr.id]="valueLabelId"\n class="k-input"\n >\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate"> {{ text || placeholder }} </ng-template>\n </span>\n <span\n *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n </span>\n <span class="k-select" aria-hidden="true">\n <span\n class="k-icon k-i-arrow-60-down"\n [ngClass]="buttonClasses"\n ></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown.arrowdown)="handleKeydown($event)"\n (keydown.alt.arrowup)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-textbox"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-zoom"></span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n *ngIf="data.length !== 0 && !allNodesHidden"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n [(selectedKeys)]="selectedKeys"\n [selectBy]="selectBy"\n [textField]="textField"\n kendoTreeViewSelectable\n [children]="children"\n [hasChildren]="hasChildren"\n [loadOnDemand]="loadOnDemand"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (focusout)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n (selectionChange)="onSelectionChange($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',changeDetection:u.ChangeDetectionStrategy.OnPush}),o.__param(7,u.Optional()),o.__param(7,u.Inject(k.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[a.PopupService,f.NavigationService,u.Renderer2,u.ElementRef,u.NgZone,u.ChangeDetectorRef,_.LocalizationService,Boolean])],P));function P(e,t,i,n,o,a,r,s){this.popupService=e,this.navigationService=t,this.renderer=i,this.hostElement=n,this._zone=o,this.cdr=a,this.localization=r,this.touchEnabled=s,this.hostClasses=!0,this.open=new u.EventEmitter,this.opened=new u.EventEmitter,this.close=new u.EventEmitter,this.closed=new u.EventEmitter,this.nodeExpand=new u.EventEmitter,this.nodeCollapse=new u.EventEmitter,this.onFocus=new u.EventEmitter,this.onBlur=new u.EventEmitter,this.valueChange=new u.EventEmitter,this.filterChange=new u.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=c,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+h.guid(),this.selectedKeys=[],this.filterStateChange=new u.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+h.guid(),this._popupSettings=O,this._tabindex=0,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=C.noop,this.onChangeCallback=C.noop,this.direction=r.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}t.DropDownTreeComponent=_},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c,n,o=i(0),a=i(1),r=i(15),s=i(3),p=i(4),l=i(8),d=i(44),u=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=(c=d.ComboBoxComponent,o.__extends(S,c),n=S,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,"listContainerClasses",{get:function(){return["k-list-container","k-popup","k-reset","k-group","k-dropdowngrid-popup","k-popup-flush","k-state-border-up"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),S.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},S.prototype.ngOnDestroy=function(){c.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(a.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);c.prototype.verifySettings.call(this)}},S.prototype.addWindowResizeListener=function(){var e=this;s.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)&&s.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}))})},o.__decorate([a.HostBinding("class.k-dropdowngrid"),o.__metadata("design:type",Boolean)],S.prototype,"hostClasses",void 0),o.__decorate([a.ContentChildren(u.ComboBoxColumnComponent),o.__metadata("design:type",a.QueryList)],S.prototype,"columns",void 0),o.__decorate([a.ViewChild("header",{static:!1}),o.__metadata("design:type",a.ElementRef),o.__metadata("design:paramtypes",[a.ElementRef])],S.prototype,"header",null),n=o.__decorate([a.Component({providers:[v.SelectionService,h.DataService,g.NavigationService,m.DisabledItemsService,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return n})},{provide:s.KendoInput,useExisting:a.forwardRef(function(){return n})},{provide:y.FilterableComponent,useExisting:a.forwardRef(function(){return n})}],selector:"kendo-multicolumncombobox",template:'\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText="kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multicolumncombobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span\n #wrapper\n unselectable="on"\n class="k-dropdown-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="clearTitle"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n\n <span\n #select\n aria-hidden="true"\n unselectable="on"\n class="k-select"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span\n class="k-icon"\n [ngClass]="buttonClasses"\n >\n </span>\n </span>\n </span>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-grid-header"\n >\n <div class="k-grid-header-wrap">\n <table role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <tbody>\n <tr>\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-header"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-cell"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [listClass]="\'k-reset k-grid-list\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-nodata"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-footer">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </div>\n </ng-container>\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n '}),o.__param(10,a.Inject(f.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[p.LocalizationService,l.PopupService,v.SelectionService,g.NavigationService,m.DisabledItemsService,h.DataService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.ElementRef,Boolean])],S));function S(e,t,i,n,o,a,r,s,p,l,d){d=c.call(this,e,t,i,n,o,a,r,s,p,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),c=i(1),o=i(15),u=i(36),h=i(35),m=i(12),a=i(17),r=i(3),s=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),T=i(8),w=i(7),D=i(24),E=i(10),k=i(9),O=i(26),P=i(25),F=i(33);t.DROPDOWNLIST_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return M})};var A,M=(A=j,Object.defineProperty(j.prototype,"width",{get:function(){var e=r.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}),j.prototype.blurComponent=function(){this.wrapperBlurred.emit()},j.prototype.blurFilterInput=function(){this.filterBlurred.emit()},j.prototype.focusComponent=function(){var e=this;this.wrapperFocused.emit(),this.isFocused||(this.isFocused=!0,r.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},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,o=0;this.disabled||this.readonly||(t=e.keyCode===s.Keys.Home||e.keyCode===s.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===s.Keys.ArrowDown||e.keyCode===s.Keys.ArrowRight?o=-1:e.keyCode!==s.Keys.ArrowUp&&e.keyCode!==s.Keys.ArrowLeft||(o=1)),e=(o=this.navigationService.process({current:n+o,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:n=e}))===S.NavigationAction.Left||o===S.NavigationAction.Right,o===S.NavigationAction.Undefined||o===S.NavigationAction.Tab||o===S.NavigationAction.Backspace||o===S.NavigationAction.Delete||e&&this.filterable||o===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)},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,"dir",{get:function(){return this.direction},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-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),j.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages(),this.assignAriaDescribedBy()},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}),r.isChanged("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),r.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,"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 o=this;r.isDocumentAvailable()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(a.filter(function(e){return o.isOpen}),a.map(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(m.merge(this.selectionService.onSelect.pipe(a.filter(function(e){return!o.isOpen})),this.selectionService.onChange).pipe(a.map(this.itemFromEvent.bind(this)),a.tap(function(e){return o.togglePopup(!1)})).subscribe(function(e){var t=e.dataItem,i=e.value;e.newSelection&&o.onSelectionChange({dataItem:t});var n=!g.isPresent(t)&&o._previousDataItem,e=i!==g.getter(o.value,o.valueField);n?(o.updateState({dataItem:o._previousDataItem}),o.resetSelection()):e&&(o.value=o.valuePrimitive?i:t,o._previousDataItem=t,o.emitChange(o.value)),o.clearFilter()})),this.navigationSubscription=m.merge(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(a.skipWhile(function(){return o.filterable})),this.navigationService.right.pipe(a.skipWhile(function(){return o.filterable})),this.navigationService.home,this.navigationService.end).pipe(a.filter(function(e){return!isNaN(e.index)})).subscribe(function(e){return o.selectionService.select(e.index)}),this.openSubscription=this.navigationService.open.subscribe(function(){return o.togglePopup(!0)}),this.closeSubscription=this.navigationService.close.subscribe(function(){o.togglePopup(!1),o.focus()}),this.enterSubscription=this.navigationService.enter.pipe(a.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(a.concatMap(function(){return m.interval(10).pipe(a.take(1),a.takeUntil(o.wrapperFocused))})).subscribe(function(){o.wrapperBlurred.emit()}),this._zone.runOutsideAngular(function(){o.componentBlurredSubscription=m.merge(o.wrapperBlurred.pipe(a.concatMap(function(){return m.interval(10).pipe(a.take(1),a.takeUntil(o.filterFocused))})),o.navigationService.tab).pipe(a.tap(function(e){return e instanceof l.NavigationEvent&&o.focus()}),a.filter(function(){return o.isFocused})).subscribe(function(){return o.componentBlur()})}))},j.prototype.subscribeTouchEvents=function(){var t=this;r.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.hostElement,e,t.popupRef)&&t._zone.run(function(){t.filterFocused&&t.togglePopup(!1),t.blur()})})})},j.prototype.unsubscribeEvents=function(){r.isDocumentAvailable()&&(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())},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(c.isDevMode()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(D.DropDownListMessages.defaultItem);if(!0===this.valuePrimitive&&g.isPresent(this.value)&&"object"==typeof this.value)throw new Error(D.DropDownListMessages.primitive);if(!1===this.valuePrimitive&&g.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(D.DropDownListMessages.object);if(!g.isPresent(this.valueField)!=!g.isPresent(this.textField))throw new Error(D.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||r.hasObservers(this.close)||r.hasObservers(this.onBlur)||r.hasObservers(this.filterChange)||g.isUntouched(this.hostElement.nativeElement)?this._zone.run(function(){t&&e.selectionService.change(e.selectionService.selected[0]),e.togglePopup(!1),e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):this.togglePopup(!1)},j.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},j.prototype.onKeyPress=function(e){var t;0!==e.which&&e.keyCode!==s.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)}}),o=g.sameCharsOnly(this.word,this.last),a=n.length,r=!isNaN(this.selectionService.selected[0]),s=r?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(t={item:this.defaultItem,itemIndex:-1},a+=1,s+=1),n=g.shuffleData(n,s+=o&&r?1:0,t),e=0;e<a;e++){var p=g.getter(n[e].item,this.textField),l=Boolean(o&&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!==a&&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,o={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 o.dataItem=this.dataService.itemAt(e),o.index=e,o},j.prototype.setState=function(){var e=this.value,t=this.valueField,i=this.textField,n=this.valuePrimitive;if(this.defaultItem){var o=g.getter(this.defaultItem,t),a=g.getter(e,t);if(!g.isPresent(e)||a===o)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}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)},n.__decorate([c.Input(),n.__metadata("design:type",String)],j.prototype,"focusableId",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],j.prototype,"iconClass",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],j.prototype,"loading",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"data",null),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"value",null),n.__decorate([c.Input(),n.__metadata("design:type",String)],j.prototype,"textField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],j.prototype,"valueField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"popupSettings",null),n.__decorate([c.Input(),n.__metadata("design:type",Number)],j.prototype,"listHeight",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object)],j.prototype,"defaultItem",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],j.prototype,"disabled",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],j.prototype,"itemDisabled",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],j.prototype,"readonly",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],j.prototype,"filterable",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],j.prototype,"virtual",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],j.prototype,"ignoreCase",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Number)],j.prototype,"delay",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],j.prototype,"valuePrimitive",null),n.__decorate([c.Input(),n.__metadata("design:type",Number)],j.prototype,"tabindex",void 0),n.__decorate([c.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],j.prototype,"tabIndex",null),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"valueChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"filterChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"selectionChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"open",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"opened",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"close",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],j.prototype,"closed",void 0),n.__decorate([c.Output("focus"),n.__metadata("design:type",c.EventEmitter)],j.prototype,"onFocus",void 0),n.__decorate([c.Output("blur"),n.__metadata("design:type",c.EventEmitter)],j.prototype,"onBlur",void 0),n.__decorate([c.ContentChild(d.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",d.ItemTemplateDirective)],j.prototype,"itemTemplate",void 0),n.__decorate([c.ContentChild(v.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",v.GroupTemplateDirective)],j.prototype,"groupTemplate",void 0),n.__decorate([c.ContentChild(f.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",f.FixedGroupTemplateDirective)],j.prototype,"fixedGroupTemplate",void 0),n.__decorate([c.ContentChild(_.ValueTemplateDirective,{static:!1}),n.__metadata("design:type",_.ValueTemplateDirective)],j.prototype,"valueTemplate",void 0),n.__decorate([c.ContentChild(b.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",b.HeaderTemplateDirective)],j.prototype,"headerTemplate",void 0),n.__decorate([c.ContentChild(y.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",y.FooterTemplateDirective)],j.prototype,"footerTemplate",void 0),n.__decorate([c.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],j.prototype,"noDataTemplate",void 0),n.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),n.__metadata("design:type",c.ViewContainerRef)],j.prototype,"container",void 0),n.__decorate([c.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",c.TemplateRef)],j.prototype,"popupTemplate",void 0),n.__decorate([c.ViewChild("wrapper",{static:!0}),n.__metadata("design:type",c.ElementRef)],j.prototype,"wrapper",void 0),n.__decorate([c.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",P.ListComponent)],j.prototype,"optionsList",void 0),n.__decorate([c.HostBinding("class.k-widget"),c.HostBinding("class.k-dropdown"),n.__metadata("design:type",Boolean)],j.prototype,"widgetClasses",void 0),n.__decorate([c.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],j.prototype,"dir",null),A=n.__decorate([c.Component({exportAs:"kendoDropDownList",providers:[t.DROPDOWNLIST_VALUE_ACCESSOR,k.DataService,p.SelectionService,l.NavigationService,E.DisabledItemsService,x.LocalizationService,{provide:x.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:O.FilterableComponent,useExisting:c.forwardRef(function(){return A})},{provide:r.KendoInput,useExisting:c.forwardRef(function(){return A})}],selector:"kendo-dropdownlist",template:'\n <ng-container kendoDropDownListLocalizedMessages\n i18n-noDataText="kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n >\n </ng-container>\n <span #wrapper unselectable="on"\n role="listbox"\n [id]="focusableId"\n [ngClass]="{\n \'k-dropdown-wrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n [attr.dir]="direction"\n [attr.readonly]="readonly"\n [attr.tabindex]="widgetTabIndex"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n (keydown)="keydown($event)"\n (keypress)="keypress($event)"\n (click)="click($event)"\n [kendoEventsOutsideAngular]="{\n focus: focusComponent,\n blur: blurComponent\n }"\n [scope]="this"\n >\n <span class="k-input" unselectable="on" [id]="valueLabelId">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate">{{ getText() }}</ng-template>\n </span>\n <span class="k-select" unselectable="on">\n <span\n class="k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n >\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <span class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <input\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-textbox"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n <span class="k-icon k-i-search" unselectable="on"></span>\n </span>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div class="k-list-optionlabel" [ngClass]="{ \'k-state-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div class="k-list-optionlabel" [ngClass]="{ \'k-state-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n </span>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),n.__param(10,c.Optional()),n.__param(10,c.Inject(w.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[x.LocalizationService,T.PopupService,p.SelectionService,l.NavigationService,E.DisabledItemsService,k.DataService,c.NgZone,c.Renderer2,c.ElementRef,c.ChangeDetectorRef,Boolean])],j));function j(e,t,i,n,o,a,r,s,p,l,d){this.localization=e,this.popupService=t,this.selectionService=i,this.navigationService=n,this.disabledItemsService=o,this.dataService=a,this._zone=r,this.renderer=s,this.hostElement=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 c.EventEmitter,this.filterChange=new c.EventEmitter,this.selectionChange=new c.EventEmitter,this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.widgetClasses=!0,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 c.EventEmitter,this.filterBlurred=new c.EventEmitter,this.wrapperFocused=new c.EventEmitter,this.wrapperBlurred=new c.EventEmitter,this.selectionSubscription=new m.Subscription,this._open=!1,this._popupSettings={animate:!0},u.validatePackage(h.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}t.DropDownListComponent=M},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])],o);function o(e){this.element=e}t.ListItemDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),c=i(1),o=i(3),a=i(15),u=i(36),h=i(35),r=i(34),s=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),T=i(26),w=i(9),D=i(25),E=i(33),i=i(7);t.AUTOCOMPLETE_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return O})};var k,O=(k=P,Object.defineProperty(P.prototype,"width",{get:function(){var e=0;o.isDocumentAvailable()&&(e=this.wrapper.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(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=E.normalizeVirtualizationSettings(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-state-focused"),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,"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()},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(c.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,o.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;o.hasObservers(this.onBlur)||o.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;o.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;o.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(){o.isDocumentAvailable()&&(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},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()})})},n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"highlightFirst",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],P.prototype,"focusableId",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"data",null),n.__decorate([c.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],P.prototype,"value",null),n.__decorate([c.Input(),n.__metadata("design:type",String)],P.prototype,"valueField",void 0),n.__decorate([c.Input(),n.__metadata("design:type",String)],P.prototype,"placeholder",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),n.__decorate([c.Input(),n.__metadata("design:type",Number)],P.prototype,"listHeight",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"loading",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"clearButton",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"suggest",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],P.prototype,"itemDisabled",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Number)],P.prototype,"tabindex",void 0),n.__decorate([c.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],P.prototype,"tabIndex",null),n.__decorate([c.Input(),n.__metadata("design:type",Boolean)],P.prototype,"filterable",void 0),n.__decorate([c.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],P.prototype,"virtual",null),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"valueChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"filterChange",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"open",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"opened",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"close",void 0),n.__decorate([c.Output(),n.__metadata("design:type",c.EventEmitter)],P.prototype,"closed",void 0),n.__decorate([c.Output("focus"),n.__metadata("design:type",c.EventEmitter)],P.prototype,"onFocus",void 0),n.__decorate([c.Output("blur"),n.__metadata("design:type",c.EventEmitter)],P.prototype,"onBlur",void 0),n.__decorate([c.ContentChild(s.ItemTemplateDirective,{static:!1}),n.__metadata("design:type",s.ItemTemplateDirective)],P.prototype,"template",void 0),n.__decorate([c.ContentChild(p.HeaderTemplateDirective,{static:!1}),n.__metadata("design:type",p.HeaderTemplateDirective)],P.prototype,"headerTemplate",void 0),n.__decorate([c.ContentChild(l.FooterTemplateDirective,{static:!1}),n.__metadata("design:type",l.FooterTemplateDirective)],P.prototype,"footerTemplate",void 0),n.__decorate([c.ContentChild(C.NoDataTemplateDirective,{static:!1}),n.__metadata("design:type",C.NoDataTemplateDirective)],P.prototype,"noDataTemplate",void 0),n.__decorate([c.ContentChild(d.GroupTemplateDirective,{static:!1}),n.__metadata("design:type",d.GroupTemplateDirective)],P.prototype,"groupTemplate",void 0),n.__decorate([c.ContentChild(m.FixedGroupTemplateDirective,{static:!1}),n.__metadata("design:type",m.FixedGroupTemplateDirective)],P.prototype,"fixedGroupTemplate",void 0),n.__decorate([c.ViewChild("container",{read:c.ViewContainerRef,static:!0}),n.__metadata("design:type",c.ViewContainerRef)],P.prototype,"container",void 0),n.__decorate([c.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",c.TemplateRef)],P.prototype,"popupTemplate",void 0),n.__decorate([c.ViewChild(r.SearchBarComponent,{static:!0}),n.__metadata("design:type",r.SearchBarComponent)],P.prototype,"searchbar",void 0),n.__decorate([c.ViewChild("optionsList",{static:!1}),n.__metadata("design:type",D.ListComponent)],P.prototype,"optionsList",void 0),n.__decorate([c.HostBinding("class.k-widget"),c.HostBinding("class.k-autocomplete"),n.__metadata("design:type",Boolean)],P.prototype,"widgetClasses",void 0),n.__decorate([c.HostBinding("class.k-state-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],P.prototype,"isDisabled",null),n.__decorate([c.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],P.prototype,"dir",null),k=n.__decorate([c.Component({exportAs:"kendoAutoComplete",providers:[t.AUTOCOMPLETE_VALUE_ACCESSOR,w.DataService,g.SelectionService,v.NavigationService,f.DisabledItemsService,I.LocalizationService,{provide:I.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:T.FilterableComponent,useExisting:c.forwardRef(function(){return k})},{provide:o.KendoInput,useExisting:c.forwardRef(function(){return k})}],selector:"kendo-autocomplete",template:'\n <ng-container kendoAutoCompleteLocalizedMessages\n i18n-noDataText="kendo.autocomplete.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.autocomplete.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && (clearButton && text?.length)"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (click)="clearValue($event)"\n (mousedown)="$event.preventDefault()"\n >\n</span>\n <span *ngIf="loading" class="k-icon k-i-loading"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),n.__param(10,c.Optional()),n.__param(10,c.Inject(i.TOUCH_ENABLED)),n.__metadata("design:paramtypes",[I.LocalizationService,w.DataService,x.PopupService,g.SelectionService,v.NavigationService,f.DisabledItemsService,c.NgZone,c.ChangeDetectorRef,c.Renderer2,c.ElementRef,Boolean])],P));function P(e,t,i,n,o,a,r,s,p,l,d){this.localization=e,this.dataService=t,this.popupService=i,this.selectionService=n,this.navigationService=o,this.disabledItemsService=a,this._zone=r,this.cdr=s,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 c.EventEmitter,this.filterChange=new c.EventEmitter,this.open=new c.EventEmitter,this.opened=new c.EventEmitter,this.close=new c.EventEmitter,this.closed=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.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,u.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),o=i(1),a=i(48),r=i(47),s=i(46),p=i(45),i=i(55),i=n.__decorate([o.NgModule({exports:[a.AutoCompleteModule,r.ComboBoxModule,s.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),o=i(1),a=i(2),i=i(37),i=(r.prototype.ngOnChanges=function(e){a.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},r.prototype.createTagMapper=function(){var t=a.parseNumber(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(e){return e.length>t?e.slice(0,t).concat([e.slice(t)]):e}},n.__decorate([o.Input("kendoMultiSelectTreeSummaryTag"),n.__metadata("design:type",Object)],r.prototype,"showAfter",void 0),n.__decorate([o.Directive({selector:"[kendoMultiSelectTreeSummaryTag]"}),n.__metadata("design:paramtypes",[i.MultiSelectTreeComponent])],r));function r(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 a,n=i(0),r=i(1),o=i(5),s=i(2),n=(a=i(50).BaseCheckDirective,n.__extends(p,a),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){s.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),s.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([r.Input(),n.__metadata("design:type",String)],p.prototype,"lastAction",void 0),n.__decorate([r.Input(),n.__metadata("design:type",o.TreeViewComponent)],p.prototype,"treeview",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Array)],p.prototype,"checkedItems",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],p.prototype,"valueField",void 0),n.__decorate([r.Input("checkAll"),n.__metadata("design:type",Boolean)],p.prototype,"focused",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],p.prototype,"checkedItemsChange",void 0),n.__decorate([r.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([r.Directive({selector:"[checkAll]"}),n.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Renderer2])],p));function p(e,t,i,n){var o=a.call(this)||this;return o.element=e,o.zone=t,o.cdr=i,o.renderer=n,o.checkedItemsChange=new r.EventEmitter,o.checkedKeys=new Set,o}t.CheckAllDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(0),a=i(1),r=i(5),s=i(12),p=i(17),l=i(2),r=(n=i(50).BaseCheckDirective,o.__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,o=this;this.treeView.isDisabled(e.item.dataItem,e.item.index)||(t=e.item,i=[t],this.checkable.checkChildren&&l.fetchDescendentNodes(e,function(e){return o.treeView.isVisible(e.dataItem,e.index)&&!o.treeView.isDisabled(e.dataItem,e.index)}).forEach(function(e){return i.push(e.item)}),n=!this.isItemChecked(t),i.forEach(function(e){n?o.addItem(e):o.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},o.__decorate([a.Input(),o.__metadata("design:type",Object)],d.prototype,"checkable",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Object)],d.prototype,"valueField",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Array)],d.prototype,"checkedItems",void 0),o.__decorate([a.Output(),o.__metadata("design:type",a.EventEmitter)],d.prototype,"checkedItemsChange",void 0),o.__decorate([a.Directive({selector:"[kendoMultiSelectTreeCheckable]"}),o.__metadata("design:paramtypes",[r.TreeViewComponent])],d));function d(e){var t=n.call(this)||this;return t.treeView=e,t.checkedItemsChange=new a.EventEmitter,t.checkedKeys=new Set,t.subscriptions=new s.Subscription,t.subscriptions.add(t.treeView.checkedChange.subscribe(t.handleCheckedChange.bind(t))),t.treeView.isChecked=t.getCheckedState.bind(t),t}t.CheckDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),i=i(1),i=(o.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},o.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},n.__decorate([i.Input("filterInput"),n.__metadata("design:type",Boolean)],o.prototype,"focused",void 0),n.__decorate([i.Directive({selector:"[filterInput]"}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone])],o));function o(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,o,a=i(0),r=i(1),s=i(4),i=i(54),s=(n=i.Messages,a.__extends(p,n),o=p,Object.defineProperty(p.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=a.__decorate([r.Component({providers:[{provide:i.Messages,useExisting:r.forwardRef(function(){return o})}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],p));function p(e){var t=n.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o,a=i(0),r=i(1),s=i(4),i=i(54),s=(n=i.Messages,a.__extends(p,n),o=p,o=a.__decorate([r.Directive({providers:[{provide:i.Messages,useExisting:r.forwardRef(function(){return o})}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),a.__metadata("design:paramtypes",[s.LocalizationService])],p));function p(e){var t=n.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(31),r=i(28),s=i(2),n=(p.prototype.tagProp=function(e,t,i){i=t&&this.getPropField(e,t,i);return s.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 s.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([o.Input(),n.__metadata("design:type",Array)],p.prototype,"tags",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],p.prototype,"textField",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"valueField",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array)],p.prototype,"valueDepth",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],p.prototype,"focused",void 0),n.__decorate([o.Input(),n.__metadata("design:type",a.TagTemplateDirective)],p.prototype,"template",void 0),n.__decorate([o.Input(),n.__metadata("design:type",r.GroupTagTemplateDirective)],p.prototype,"groupTemplate",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"tagPrefix",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"id",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Set)],p.prototype,"disabledIndices",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"removeTag",void 0),n.__decorate([o.Component({selector:"kendo-taglist",template:'\n <ul [attr.id]="id" class="k-reset">\n <li\n *ngFor="let tag of tags; let index = index;"\n role="option"\n [attr.id]="itemId(tag, index)"\n [attr.aria-hidden]="tagAriaHidden(index)"\n aria-selected="true"\n [attr.aria-setsize]="tags?.length"\n class="k-button"\n [ngClass]="{\n \'k-state-focused\': index === focused,\n \'k-state-disabled\': isTagDisabled(tag, index)\n }"\n >\n <ng-template *ngIf="isGroupTag(tag); then groupTag else singleTag"></ng-template>\n <ng-template #groupTag>\n <span>\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ tag.length }} {{ tag.length === 1 ? \'item\' : \'items\' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span>\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: tag\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ tagProp(tag, textField, index) }}</ng-template>\n </span>\n </ng-template>\n\n <span aria-label="delete" [attr.aria-hidden]="index !== focused" class="k-select">\n <span class="k-icon k-i-close" (mousedown)="deleteTag($event, tag, index)">\n </span>\n </span>\n </li>\n </ul>\n '})],p));function p(){this.disabledIndices=new Set,this.removeTag=new o.EventEmitter}t.TagListComponent=n},function(e,t){e.exports=c},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,o=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,!o.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)a(t,e[t])}(t)}],n.c=o,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)}}});
|