@progress/kendo-angular-dropdowns 7.2.1-dev.202209211135 → 7.2.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.
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-angular-common"),require("@angular/forms"),require("@progress/kendo-licensing"),require("@progress/kendo-common"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-popup"),require("rxjs/operators"),require("@angular/common"),require("@progress/kendo-angular-treeview")):"function"==typeof define&&define.amd?define("KendoAngularDropdowns",["exports","@angular/core","@progress/kendo-angular-common","@angular/forms","@progress/kendo-licensing","@progress/kendo-common","rxjs","@progress/kendo-angular-l10n","@progress/kendo-angular-popup","rxjs/operators","@angular/common","@progress/kendo-angular-treeview"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDropdowns={},e.ng.core,e.KendoAngularCommon,e.ng.forms,e.KendoLicensing,e.KendoCommon,e.rxjs,e.KendoAngularL10N,e.KendoAngularPopup,e.rxjs.operators,e.ng.common,e.KendoAngularTreeview)}(this,function(e,h,p,i,B,V,g,t,N,m,L,n){"use strict";function _(n){var i;return n&&n.__esModule?n:(i=Object.create(null),n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i))}var o=_(h),s=_(p),j=_(i),a=_(t),H=_(N),r=_(L),K=_(n),$={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1663760009,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"},G=function(e,t){return(G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function U(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}G(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function W(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,s=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a}function q(e,t,n){if(n||2===arguments.length)for(var i,o=0,s=t.length;o<s;o++)!i&&o in t||((i=i||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;function Z(){for(var e,t="",n=0;n<32;n++)e=16*Math.random()|0,8!==n&&12!==n&&16!==n&&20!==n||(t+="-"),t+=(12===n?4:16===n?3&e|8:e).toString(16);return t}function X(e){return"string"==typeof e&&0===e.length}function Q(e,t,n){i=n;var i,o,s,a=de(a=e)&&a.filter(function(e){return ce(e)&&c(u(e,i))})||[];return s=n,void 0===(o=t)&&(o=[]),(e.map(function(t){return o.find(function(e){return u(e,s)===t})}).filter(function(e){return void 0!==e})||[]).concat(a)}function J(e){return de(e)&&e.every(function(e){return ce(e)})}function Y(e,t,n){var i=t.map(function(e){return c(e)&&c(u(e,n))?u(e,n):e});return e.reduce(function(e,t){t=c(t)&&c(u(t,n))?u(t,n):t,t=i.indexOf(t);return-1!==t&&e.push(t),e},[])}function ee(e,t,n){return!!c(e)&&(e=String(e),0===(e=n?e.toLowerCase():e).indexOf(t))}function te(t,e){return!!c(t)&&e.every(function(e){return t.hasOwnProperty(e)})}function ne(e){return e.className.includes("ng-untouched")}function ie(e){}function oe(e,t){return void 0===t&&(t=0),e=Number(e),isNaN(e)?t:e}function se(e,t,n){return e.nativeElement.contains(t)||n&&n.popupElement.contains(t)}function ae(e){return(e||"").split("_").length-1}function re(e,t){var n;return c(e)&&0!==e.children.length?(n=e.children,(n=c(t)?n.filter(function(e){return t(e.item)}):n).forEach(function(e){return n=n.concat(re(e,t))}),n):[]}function le(e,t){var n=e.dataItem,i=e.index,e=e.level,t=Array.isArray(t)?t:[t],e=c(e)?e:ae(i),i=t[Math.min(e,t.length-1)];return V.getter(i)(n)}function l(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}function d(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]}function pe(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}var c=function(e){return null!=e},de=function(e){return Array.isArray(e)},ce=function(e){return c(e)&&"object"==typeof e},u=function(e,t){return c(e)?c(t)&&ce(e)?V.getter(t)(e):e:null},f=(Object.defineProperty(v.prototype,"isSuggestable",{get:function(){return this._isSuggestable},set:function(e){this._isSuggestable=e,this.setAriaAutocomplete()},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"isFilterable",{get:function(){return this._isFilterable},set:function(e){this._isFilterable=e,this.setAriaAutocomplete()},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"ariaExpanded",{get:function(){return"combobox"===this.role?this.popupOpen:null},enumerable:!1,configurable:!0}),v.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"}))},v.prototype.ngAfterContentChecked=function(){var e,t=this,n=null==(e=this.injector.get(i.NgControl,null))?void 0:e.control;(this.control=n)&&this.subs.add(n.valueChanges.subscribe(function(){t.control=n})),this.setAriaInvalid()},v.prototype.ngOnChanges=function(e){var t,n,i;this.input&&(e.userInput||e.suggestedText)&&(e=!e.userInput||!e.userInput.previousValue||this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"",t=this.input.nativeElement.selectionStart,e=e.length===t,this.writeInputValue(this.suggestedText?(n=this.userInput,i=this.suggestedText,n.concat(i.substr(i.toLowerCase().indexOf(n.toLowerCase())+n.length))):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):e?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(t,t),this._previousValue=this.userInput)},v.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},v.prototype.writeInputValue=function(e){p.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},v.prototype.setInputSelection=function(e,t){if(p.isDocumentAvailable()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},v.prototype.setAriaInvalid=function(){this.control?this.control.invalid?this.renderer.setAttribute(this.input.nativeElement,"aria-invalid","true"):this.renderer.setAttribute(this.input.nativeElement,"aria-invalid","false"):this.renderer.removeAttribute(this.input.nativeElement,"aria-invalid")},v.prototype.setAriaAutocomplete=function(){this.isFilterable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","list"),this.isSuggestable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","inline"),this.isFilterable&&this.isSuggestable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","both"),this.isFilterable||this.isSuggestable||this.renderer.removeAttribute(this.input.nativeElement,"aria-autocomplete")},v.prototype.handleInput=function(e){e=e.target.value;e!==this.userInput&&(this._previousValue=e,this.valueChange.emit(e))},v.prototype.handleFocus=function(e){this.onFocus.emit(e)},v.prototype.handleBlur=function(e){this.onBlur.emit(e)},v.prototype.handleKeydown=function(e){var t=e.keyCode;-1<[p.Keys.ArrowUp,p.Keys.ArrowDown,p.Keys.ArrowLeft,p.Keys.ArrowRight,p.Keys.Enter,p.Keys.Escape,p.Keys.Delete,p.Keys.Backspace,p.Keys.Home,p.Keys.End,p.Keys.PageDown,p.Keys.PageUp].indexOf(t)&&this.onNavigate.emit(e)},v.prototype.focus=function(){p.isDocumentAvailable()&&this.input.nativeElement.focus()},v.prototype.blur=function(){p.isDocumentAvailable()&&this.input.nativeElement.blur()},v.prototype.setInputSize=function(){function e(e){return e?e.length:0}var t=this.input.nativeElement,n=e(this.placeholder),i=e(this.value),n=Math.max(n,i,1);this.renderer.setAttribute(t,"size",n.toString())},v);function v(e,t,n){this.localization=e,this.injector=n,this.valueChange=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onClick=new h.EventEmitter,this.onNavigate=new h.EventEmitter,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this._isSuggestable=!1,this._isFilterable=!1,this.subs=new g.Subscription,this.direction=e.rtl?"rtl":"ltr",this.renderer=t}f.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,deps:[{token:a.LocalizationService},{token:o.Renderer2},{token:o.Injector}],target:o.ɵɵFactoryTarget.Component}),f.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"kendo-searchbar",inputs:{id:"id",listId:"listId",tagListId:"tagListId",activeDescendant:"activeDescendant",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",popupOpen:"popupOpen",role:"role",isLoading:"isLoading",isSuggestable:"isSuggestable",isFilterable:"isFilterable",userInput:"userInput",suggestedText:"suggestedText",placeholder:"placeholder"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},host:{properties:{"class.k-searchbar":"this.searchBarClass"}},viewQueries:[{propertyName:"input",first:!0,predicate:["input"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:o,template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input-inner\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-controls]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-busy]="isLoading"\n />\n ',isInline:!0,directives:[{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,decorators:[{type:h.Component,args:[{selector:"kendo-searchbar",template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input-inner\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-controls]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-busy]="isLoading"\n />\n '}]}],ctorParameters:function(){return[{type:a.LocalizationService},{type:o.Renderer2},{type:o.Injector}]},propDecorators:{id:[{type:h.Input}],listId:[{type:h.Input}],tagListId:[{type:h.Input}],activeDescendant:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],tabIndex:[{type:h.Input}],popupOpen:[{type:h.Input}],role:[{type:h.Input}],isLoading:[{type:h.Input}],isSuggestable:[{type:h.Input}],isFilterable:[{type:h.Input}],userInput:[{type:h.Input}],suggestedText:[{type:h.Input}],valueChange:[{type:h.Output}],onBlur:[{type:h.Output}],onFocus:[{type:h.Output}],onClick:[{type:h.Output}],onNavigate:[{type:h.Output}],input:[{type:h.ViewChild,args:["input",{static:!0}]}],searchBarClass:[{type:h.HostBinding,args:["class.k-searchbar"]}],placeholder:[{type:h.Input}]}});var ue=function(e){this.templateRef=e},b=(ue.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ue,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),ue.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ue,selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ue,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),y=(b.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:b,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),b.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:b,selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:b,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),he=(y.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:y,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),y.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:y,selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:y,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),ge=(he.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:he,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),he.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:he,selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:he,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),I=(ge.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ge,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),ge.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ge,selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ge,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),Object.defineProperty(me.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:!1,configurable:!0}),Object.defineProperty(me.prototype,"itemsCount",{get:function(){return c(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(function(e){return!e.header}):this.data).length:0},enumerable:!1,configurable:!0}),me.prototype.isGrouped=function(e){return c(e)&&0!==e.length&&c(e[0])&&te(e[0],["aggregates","field","items","value"])},me.prototype.getGroupIndices=function(e){for(var t=[],n=0;n<=e.length-1;n++)t[n]=(t[n-1]||0)+e[n].items.length;return t},me.prototype.filter=function(e){var t=[];if(this.isGrouped(this.data))for(var n=0;n<=this.groupIndices.length-1;n++){var i=this.data[n].items.filter(e);i&&(t=t.concat(i))}else t=this.data.filter(e);return t},me.prototype.indexOf=function(t,e){var n=function(e){return e===t};return this.grouped&&(n=function(e){return e.value===t}),this.findIndex(n,e=void 0===e?0:e)},me.prototype.findIndex=function(e,t){void 0===t&&(t=0);var n,i=-1;return i=this.grouped?(i=(n=this._flatData.filter(function(e){return!e.header&&e.offsetIndex>=t})).findIndex(e),n[i]?n[i].offsetIndex:-1):-1!==(n=(n=this.data.slice(t)).findIndex(e))?n+t:-1},me.prototype.closestGroup=function(e){for(var t=e;0<=t;t--)if(this._flatData[t].header)return this._flatData[t]},me.prototype.find=function(e){e=this.findIndex(e);return this.itemAt(e)},me.prototype.flatIndex=function(t){var e;return 0===this.itemsCount?-1:this.grouped?(e=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t}))?e.index:-1:t},me.prototype.itemAt=function(t){var e,n;return 0!==this.itemsCount&&(this.grouped?(n=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t}))&&(e=n.value):e=this.data[t]),e},me.prototype.groupAt=function(t){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(e){return e.header&&e.index===t})},me.prototype.groupItemsIndices=function(){var e,n,i;return this.isGrouped?(e=this.data,n=function(e){return e.header},i=function(e){return e.index},e.reduce(function(e,t){return n(t)?q(q([],W(e)),[i(t)]):e},[])):[]},me.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},me.prototype.itemGroup=function(e){var t;return e&&0!==this.itemsCount&&this.isGrouped&&(t=this.groupField())?u(e,t):void 0},me.prototype.flatten=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=0);var o=[];c(t=void 0===t?void 0:t)&&o.push({header:!0,index:i+n,offsetIndex:i,value:t});for(var s=0;s<e.length;s++){var a=[];e[s].items?(a=this.flatten(e[s].items,e[s].value,n,s),n+=e[s].items.length):a.push({header:!1,index:i+n+s+1,offsetIndex:n+s,value:e[s]}),o=o.concat(a)}return o},me);function me(){this.grouped=!1,this.groupIndices=[]}I.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,deps:[],target:o.ɵɵFactoryTarget.Injectable}),I.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,decorators:[{type:h.Injectable}]});fe.prototype.isIndexDisabled=function(e){var t;if(this.itemDisabled)return t=this.dataService.itemAt(e),c(t)?this.itemDisabled({dataItem:t,index:e}):c(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0},fe.prototype.isItemDisabled=function(e){var t;if(this.itemDisabled)return-1!==(t=this.dataService.indexOf(e))?this.itemDisabled({dataItem:e,index:t}):c(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0};var k=fe;function fe(e){this.dataService=e,this.itemDisabled=null}k.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k,deps:[{token:I}],target:o.ɵɵFactoryTarget.Injectable}),k.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:I}]}});ve.prototype.getTotal=function(){return this.total},ve.prototype.isSelected=function(t){return c(this.selectedIndices.find(function(e){return e===t}))},ve.prototype.isFocused=function(e){return e===this.focused},ve.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},ve.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:c(e)}))},ve.prototype.add=function(e,t){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice(),preventClosingPopup:t}))},ve.prototype.emitMultipleAddedRemoved=function(){this.onChange.emit({added:this.indicesToBeAdded,removed:this.indicesToBeRemoved,indices:this.selectedIndices.slice(),preventClosingPopup:!0,isMultipleSelection:!0}),this.indicesToBeAdded=[],this.indicesToBeRemoved=[]},ve.prototype.addMultiple=function(e){var t;this.indicesToBeAdded=e.slice(),(t=this.selectedIndices).push.apply(t,q([],W(e)))},ve.prototype.deselect=function(e,t){var n;this.isSelected(e)&&(n=this.selectedIndices.indexOf(e),this.selectedIndices.splice(n,1),this.focused=e,0===this.selected.length&&(this.lastClickedIndex=null),this.onChange.emit({indices:this.selectedIndices.slice(),removed:e,preventClosingPopup:t}))},ve.prototype.unselectMultiple=function(e){var t=this;e.forEach(function(e){e=t.selectedIndices.indexOf(e);t.selectedIndices.splice(e,1)}),this.indicesToBeRemoved=e.slice()},ve.prototype.change=function(e){var t=c(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})},ve.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(ve.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!1,configurable:!0}),ve.prototype.selectFromTo=function(e,t){for(var n=[],i=e;i<=t;i++)this.isSelected(i)||this.disabledItemsService.isIndexDisabled(i)||n.push(i);this.addMultiple(n)},ve.prototype.unselectFromTo=function(e,t){for(var n=[],i=e;t<=i;i--)this.isSelected(i)&&!this.disabledItemsService.isIndexDisabled(i)&&n.push(i);this.unselectMultiple(n)},ve.prototype.unselectNotNeededIndices=function(e,t,n){for(var i=[],o=0;o<e;o++)this.isSelected(o)&&i.push(o);for(o=t+1;o<n;o++)this.isSelected(o)&&i.push(o);this.unselectMultiple(i)};var C,x=ve;function ve(e){this.disabledItemsService=e,this.onSelect=new h.EventEmitter,this.onChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.total=0,this.selectedIndices=[],this.indicesToBeRemoved=[],this.indicesToBeAdded=[]}x.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:x,deps:[{token:k}],target:o.ɵɵFactoryTarget.Injectable}),x.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:x}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:x,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:k}]}}),(S=C=C||{})[S.Undefined=0]="Undefined",S[S.Open=1]="Open",S[S.Close=2]="Close",S[S.Enter=3]="Enter",S[S.Tab=4]="Tab",S[S.Esc=5]="Esc",S[S.Delete=6]="Delete",S[S.Backspace=7]="Backspace",S[S.Home=8]="Home",S[S.End=9]="End",S[S.Up=10]="Up",S[S.Down=11]="Down",S[S.Left=12]="Left",S[S.Right=13]="Right",S[S.PageDown=14]="PageDown",S[S.PageUp=15]="PageUp",S[S.SelectPrevious=16]="SelectPrevious",S[S.SelectNext=17]="SelectNext",S[S.SelectAll=18]="SelectAll",S[S.SelectAllToBeginning=19]="SelectAllToBeginning",S[S.SelectAllToEnd=20]="SelectAllToEnd";var be=function(e,t){this.index=e,this.originalEvent=t},T=(ye.prototype.process=function(e){var t,n=e.originalEvent.keyCode,i=e.originalEvent.altKey,o=e.originalEvent.shiftKey,s=e.originalEvent.ctrlKey||e.originalEvent.metaKey,a=C.Undefined,i=(i&&n===p.Keys.ArrowDown?a=C.Open:i&&n===p.Keys.ArrowUp?a=C.Close:o&&n===p.Keys.ArrowUp?a=C.SelectPrevious:o&&n===p.Keys.ArrowDown?a=C.SelectNext:s&&n===p.Keys.KeyA?a=C.SelectAll:s&&o&&n===p.Keys.Home?a=C.SelectAllToBeginning:s&&o&&n===p.Keys.End?a=C.SelectAllToEnd:n===p.Keys.Enter?a=C.Enter:n===p.Keys.Escape?a=C.Esc:n===p.Keys.Tab?a=C.Tab:n===p.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=C.Up):n===p.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=C.Left):n===p.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=C.Down):n===p.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=C.Right):n===p.Keys.Home?(t=this.isDisabled(0)?e.current:0,a=C.Home):n===p.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,a=C.End):n===p.Keys.Delete?a=C.Delete:n===p.Keys.Backspace?a=C.Backspace:n===p.Keys.PageDown?a=C.PageDown:n===p.Keys.PageUp&&(a=C.PageUp),new be(t,e.originalEvent));return a!==C.Undefined&&this[C[a].toLowerCase()].emit(i),a},ye.prototype.next=function(e){var t=e.current,n=e.start,i=e.end,e=e.step,o=c(t)?this.clampIndex(t+e,n,i):n,s=this.firstFocusableIndex(o,n,i,e);return c(s)?s:this.selectionService.isSelected(t)&&n<=t?t:this.firstFocusableIndex(o,n,i,-1*e)},ye.prototype.clampIndex=function(e,t,n){return!c(e)||e<t?t:n<e?n:e},ye.prototype.firstFocusableIndex=function(e,t,n,i){for(;t<=e&&e<=n;){if(!this.isDisabled(e))return e;e+=i}},ye.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},ye);function ye(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.enter=new h.EventEmitter,this.tab=new h.EventEmitter,this.esc=new h.EventEmitter,this.up=new h.EventEmitter,this.right=new h.EventEmitter,this.down=new h.EventEmitter,this.left=new h.EventEmitter,this.delete=new h.EventEmitter,this.backspace=new h.EventEmitter,this.home=new h.EventEmitter,this.end=new h.EventEmitter,this.pagedown=new h.EventEmitter,this.pageup=new h.EventEmitter,this.selectnext=new h.EventEmitter,this.selectprevious=new h.EventEmitter,this.selectall=new h.EventEmitter,this.selectalltobeginning=new h.EventEmitter,this.selectalltoend=new h.EventEmitter}T.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:T,deps:[{token:k},{token:x}],target:o.ɵɵFactoryTarget.Injectable}),T.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:T}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:T,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:k},{type:x}]}});var S=function(e){this.templateRef=e},Ie=(S.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:S,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),S.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:S,selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:S,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),ke.prototype.preventDefault=function(){this.prevented=!0},ke.prototype.isDefaultPrevented=function(){return this.prevented},ke);function ke(){this.prevented=!1}function Ce(){}function xe(e,t){return t=Object.assign({},Te,t),!0===e?t:e?Object.assign({pageSize:Te.pageSize},e):null}var Te={pageSize:50,itemHeight:28},Se=new h.InjectionToken("dropdowns-touch-enabled"),De=function(e){this.element=e},we=(De.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:De,deps:[{token:o.ElementRef}],target:o.ɵɵFactoryTarget.Directive}),De.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:De,selector:'"li[role=option], li[role=group]"',ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:De,decorators:[{type:h.Directive,args:[{selector:'"li[role=option], li[role=group]"'}]}],ctorParameters:function(){return[{type:o.ElementRef}]}}),Object.defineProperty(Ee.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:!1,configurable:!0}),Ee);function Ee(e){this.viewContainerRef=e}we.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:we,deps:[{token:o.ViewContainerRef}],target:o.ɵɵFactoryTarget.Directive}),we.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:we,selector:"[templateContext]",inputs:{templateContext:"templateContext"},ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:we,decorators:[{type:h.Directive,args:[{selector:"[templateContext]"}]}],ctorParameters:function(){return[{type:o.ViewContainerRef}]},propDecorators:{templateContext:[{type:h.Input}]}});Object.defineProperty(Oe.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!1,configurable:!0}),Oe.prototype.onClick=function(e){e.stopPropagation(),this.selectionService.lastClickedIndex=this.index,this.checkboxes.enabled&&!this.checkboxes.checkOnClick||(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.deselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))};var Fe=Oe;function Oe(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}Fe.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Fe,deps:[{token:x}],target:o.ɵɵFactoryTarget.Directive}),Fe.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Fe,selector:"[kendoDropDownsSelectable]",inputs:{index:"index",checkboxes:"checkboxes",height:"height",multipleSelection:"multipleSelection"},host:{listeners:{click:"onClick($event)"},properties:{"attr.index":"this.index","style.height.px":"this.height","style.minHeight.px":"this.height","class.k-focus":"this.focusedClassName","class.k-selected":"this.selectedClassName"}},ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Fe,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownsSelectable]"}]}],ctorParameters:function(){return[{type:x}]},propDecorators:{index:[{type:h.HostBinding,args:["attr.index"]},{type:h.Input}],checkboxes:[{type:h.Input}],height:[{type:h.HostBinding,args:["style.height.px"]},{type:h.HostBinding,args:["style.minHeight.px"]},{type:h.Input}],multipleSelection:[{type:h.Input}],focusedClassName:[{type:h.HostBinding,args:["class.k-focus"]}],selectedClassName:[{type:h.HostBinding,args:["class.k-selected"]}],onClick:[{type:h.HostListener,args:["click",["$event"]]}]}});Object.defineProperty(D.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"size",{get:function(){return this._size},set:function(e){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,l("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,l("list",e)),this._size=e)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"pageSize",{get:function(){return this.virtual.pageSize||Math.round(this.height/this.virtual.itemHeight)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"scrollHeight",{get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"overflowY",{get:function(){if(c(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"checkboxClasses",{get:function(){return(this.size?l("checkbox",this.size):"")+" "+(this.rounded?d(this.rounded):"")},enumerable:!1,configurable:!0}),D.prototype.ngOnChanges=function(e){p.isChanged("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),p.isChanged("virtual",e,!1)&&this.setOverflow(),p.isChanged("type",e,!1)&&this.prepareClasses()},D.prototype.ngAfterViewInit=function(){var e=this;this.setComponentClasses(),this.zone.runOutsideAngular(function(){e.scrollSubscription=g.fromEvent(e.content.nativeElement,"scroll").pipe(m.auditTime(100),m.tap(e.prefetchData.bind(e)),m.tap(e.findCurrentGroup.bind(e))).subscribe(function(){e.lastScrollTop=e.content.nativeElement.scrollTop})}),this.setOverflow()},D.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()},D.prototype.ngOnDestroy=function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},D.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.deselect(t)},D.prototype.prepareClasses=function(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")},D.prototype.isChecked=function(e){e=this.virtual?e+this.virtual.skip:e;return this.selectionService.isSelected(e)},D.prototype.firstVisibleItem=function(){var t=this,e=this.content.nativeElement,n=e.getBoundingClientRect(),e=Array.prototype.slice.call(e.querySelectorAll(".k-disabled")),n=(e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","auto")}),document.elementFromPoint(n.left+1,n.top+1));e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","none")});for(var i,o,s,a="li",r=n;null!==r&&1===r.nodeType;){if(o=a,s=void 0,!!(s=(i=r).matches||i.msMatchesSelector||i.webkitMatchesSelector)&&s.call(i,o))return r;r=r.parentElement||r.parentNode}return null},D.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},D.prototype.prefetchData=function(){var e,t,n,i,o;this.virtual&&(e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),n=this.content.nativeElement.scrollTop,t=Math.trunc(n/this.virtual.itemHeight),n=n>this.lastScrollTop,i=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,n&&i&&this.changePage(t),!n&&o&&this.changePage(t-this.pageSize+e+1))},D.prototype.changePage=function(t){var n=this;this.zone.run(function(){var e=n.pageSize+t;e>n.virtual.total&&(t--,e=n.virtual.total),t<0&&(t=0),n.startFrom=t,n.lastLoaded=e,n.pageChange.emit({skip:t,take:n.pageSize})})},D.prototype.index=function(e,t){return 0<e?this.dataService.groupIndices[e-1]+t:t},D.prototype.getText=function(e){return u(e,this.textField)},D.prototype.getValue=function(e){return u(e,this.valueField)},D.prototype.isDisabled=function(e){return c(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},D.prototype.isAltRow=function(e){return"dropdowngrid"===this.type&&e%2!=0},D.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(),c(e[t])&&-1!==t&&this.scroll(e[t].element))},D.prototype.scrollWithOnePage=function(e){var t=this.content.nativeElement,n=t.clientHeight;e===C.PageDown?t.scrollTop+=n:e===C.PageUp&&(t.scrollTop-=n)},D.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,n=t.scrollTop,e=e*this.virtual.itemHeight,i=this.virtual.itemHeight,o=t.clientHeight,i=e+i;e<n?n=e:n+o<i&&(n=i-o),t.scrollTop=n},D.prototype.scroll=function(e){var t,n,i,o;e&&(e=e.nativeElement,t=this.content.nativeElement,n=e.offsetTop,e=e.offsetHeight,i=t.scrollTop,o=t.clientHeight,e=n+e,n<i?i=n:i+o<e&&(i=e-o),t.scrollTop=i)},D.prototype.hasScrollbar=function(){return!!(c(this.items)&&this.items.length&&c(this.list)&&c(this.content))&&(c(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)},D.prototype.isItemSelected=function(e){return this.selectionService.isSelected(e)||null},D.prototype.setOverflow=function(){var e;this.virtual&&(e=this.hasVirtualScrollbar()?"scroll":"hidden",this.renderer.setStyle(this.content.nativeElement,"overflow-y",e))},D.prototype.hasVirtualScrollbar=function(){var e=this.content.nativeElement.offsetHeight,t=this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight;return this.virtualContainer&&e<t},D.prototype.positionItems=function(){var n=this;this.items.forEach(function(e,t){t=(t+n.startFrom)*n.virtual.itemHeight;n.renderer.setStyle(e.element.nativeElement,"transform","translateY("+t+"px")})},D.prototype.firstGroupHeaderInTargetedPage=function(e){return!c(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},D.prototype.setComponentClasses=function(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("list",this.size))),c(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)};var Pe=D;function D(e,t,n,i,o,s,a){var r=this;this.dataService=e,this.wrapper=t,this.selectionService=n,this.disabledItemsService=i,this.cdr=o,this.zone=s,this.renderer=a,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.listResize=new h.EventEmitter,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=g.merge(this.selectionService.onSelect.pipe(m.map(function(e){return e.indices[0]})),this.selectionService.onFocus).pipe(m.switchMap(function(e){return r.zone.onStable.pipe(m.take(1),m.map(function(){return e}))})).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}Pe.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Pe,deps:[{token:I},{token:o.ElementRef},{token:x},{token:k},{token:o.ChangeDetectorRef},{token:o.NgZone},{token:o.Renderer2}],target:o.ɵɵFactoryTarget.Component}),Pe.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Pe,selector:"kendo-list",inputs:{selected:"selected",focused:"focused",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",show:"show",id:"id",optionPrefix:"optionPrefix",multipleSelection:"multipleSelection",virtual:"virtual",type:"type",checkboxes:"checkboxes",ariaLive:"ariaLive",isMultiselect:"isMultiselect",data:"data",size:"size",rounded:"rounded"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},viewQueries:[{propertyName:"content",first:!0,predicate:["content"],descendants:!0,static:!0},{propertyName:"list",first:!0,predicate:["list"],descendants:!0,static:!0},{propertyName:"virtualContainer",first:!0,predicate:["virtualContainer"],descendants:!0},{propertyName:"items",predicate:De,descendants:!0}],usesOnChanges:!0,ngImport:o,template:'\n <div *ngIf="dataService.grouped"\n [class]="listGroupStickyHeaderClass"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><span [class]="listGroupStickyHeaderTextClass">{{ currentGroup }}</span></ng-template>\n </div>\n <div #content\n [class]="listContentClass"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [attr.id]="id"\n [attr.aria-live]="ariaLive"\n [attr.aria-multiselectable]="isMultiselect"\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 [attr.aria-selected]="isItemSelected(itemIndex)"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(itemIndex),\n \'k-table-alt-row\': isAltRow(itemIndex)\n }"\n >\n <input\n *ngIf="checkboxes.enabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkboxClasses"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem) }}</span></ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n [class]="listGroupItemClass"\n [class.k-table-alt-row]="isAltRow(itemIndex - 1)"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <span [class]="listGroupItemTextClass">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ dataItem.value }}</ng-template>\n </span>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n [attr.aria-selected]="isItemSelected(dataItem.offsetIndex)"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(dataItem.offsetIndex),\n \'k-table-alt-row\': isAltRow(itemIndex - 1)\n }"\n >\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem.value) }}</span></ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" #virtualContainer class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n ',isInline:!0,components:[{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:r.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:we,selector:"[templateContext]",inputs:["templateContext"]},{type:r.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:De,selector:'"li[role=option], li[role=group]"'},{type:Fe,selector:"[kendoDropDownsSelectable]",inputs:["index","checkboxes","height","multipleSelection"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Pe,decorators:[{type:h.Component,args:[{selector:"kendo-list",template:'\n <div *ngIf="dataService.grouped"\n [class]="listGroupStickyHeaderClass"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><span [class]="listGroupStickyHeaderTextClass">{{ currentGroup }}</span></ng-template>\n </div>\n <div #content\n [class]="listContentClass"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [attr.id]="id"\n [attr.aria-live]="ariaLive"\n [attr.aria-multiselectable]="isMultiselect"\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 [attr.aria-selected]="isItemSelected(itemIndex)"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(itemIndex),\n \'k-table-alt-row\': isAltRow(itemIndex)\n }"\n >\n <input\n *ngIf="checkboxes.enabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkboxClasses"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem) }}</span></ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n [class]="listGroupItemClass"\n [class.k-table-alt-row]="isAltRow(itemIndex - 1)"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <span [class]="listGroupItemTextClass">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ dataItem.value }}</ng-template>\n </span>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n [attr.aria-selected]="isItemSelected(dataItem.offsetIndex)"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(dataItem.offsetIndex),\n \'k-table-alt-row\': isAltRow(itemIndex - 1)\n }"\n >\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem.value) }}</span></ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" #virtualContainer class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n '}]}],ctorParameters:function(){return[{type:I},{type:o.ElementRef},{type:x},{type:k},{type:o.ChangeDetectorRef},{type:o.NgZone},{type:o.Renderer2}]},propDecorators:{selected:[{type:h.Input}],focused:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],height:[{type:h.Input}],template:[{type:h.Input}],groupTemplate:[{type:h.Input}],fixedGroupTemplate:[{type:h.Input}],show:[{type:h.Input}],id:[{type:h.Input}],optionPrefix:[{type:h.Input}],multipleSelection:[{type:h.Input}],virtual:[{type:h.Input}],type:[{type:h.Input}],checkboxes:[{type:h.Input}],ariaLive:[{type:h.Input}],isMultiselect:[{type:h.Input}],data:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],onClick:[{type:h.Output}],pageChange:[{type:h.Output}],listResize:[{type:h.Output}],items:[{type:h.ViewChildren,args:[De]}],content:[{type:h.ViewChild,args:["content",{static:!0}]}],list:[{type:h.ViewChild,args:["list",{static:!0}]}],virtualContainer:[{type:h.ViewChild,args:["virtualContainer",{static:!1}]}]}});U(Ae,Me=t.ComponentMessages);var Me,w=Ae;function Ae(){return null!==Me&&Me.apply(this,arguments)||this}w.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,deps:null,target:o.ɵɵFactoryTarget.Directive}),w.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText",selectButtonText:"selectButtonText"},usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,decorators:[{type:h.Directive}],propDecorators:{noDataText:[{type:h.Input}],clearTitle:[{type:h.Input}],checkAllText:[{type:h.Input}],selectButtonText:[{type:h.Input}]}});U(Be,ze=w);var ze,Re=Be;function Be(e){var t=ze.call(this)||this;return t.service=e,t}Re.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Re,deps:[{token:a.LocalizationService}],target:o.ɵɵFactoryTarget.Directive}),Re.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Re,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n ",providers:[{provide:w,useExisting:h.forwardRef(function(){return Re})}],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Re,decorators:[{type:h.Directive,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Re})}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var Ve={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Ne})},Ne=(Object.defineProperty(E.prototype,"width",{get:function(){var e=0,t=(p.isDocumentAvailable()&&(e=this.wrapper.offsetWidth),this.popupSettings.width||e);return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"height",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"suggestion",{get:function(){var e;if(this.text&&this.suggestedText)return e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()),this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0;this.suggestedText=void 0},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!1,configurable:!0}),E.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!n._open;n._toggle(e)})},Object.defineProperty(E.prototype,"isOpen",{get:function(){return this._open},enumerable:!1,configurable:!0}),E.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(E.prototype,"activeDescendant",{get:function(){var e;return this.isOpen&&c(this.selectionService.focused)&&-1!==this.selectionService.focused?(e=this.dataService.itemAt(this.selectionService.focused),this.optionPrefix+"-"+u(e,this.valueField)):null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"data",{get:function(){var e,t,n=this.virtual;return n?(t=(e=n.skip||0)+n.pageSize,n.total=this.dataService.data.length,this.dataService.data.slice(e,t)):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=u(this.dataService.itemAt(0),this.valueField))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"value",{get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=xe(e)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper,l("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper,l("input",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper,d(t)),this._rounded=t},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper,pe("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper,pe("input",t)),this._fillMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),E.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.cdr.detectChanges()}),this.setComponentClasses()},E.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},E.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})},E.prototype.reset=function(){this.value=""},E.prototype.messageFor=function(e){return this.localization.get(e)},E.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])},E.prototype.writeValue=function(e){this.value=e},E.prototype.registerOnChange=function(e){this.onChangeCallback=e},E.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},E.prototype.setDisabledState=function(e){this.disabled=e},E.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;c(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},E.prototype.focus=function(){this.disabled||this.searchbar.focus()},E.prototype.blur=function(){this.disabled||this.searchbar.blur()},E.prototype.onResize=function(){var e,t,n;this._open&&(e=this.popupRef.popupElement,t=(n=this.width).min,n=n.max,e.style.minWidth=t,e.style.width=n)},E.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},E.prototype.verifySettings=function(e){if(h.isDevMode()&&c(e)&&"string"!=typeof e)throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/")},E.prototype.search=function(e,t){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=u(this.dataService.itemAt(t),this.valueField)))},E.prototype.navigate=function(e){this.isOpen&&this.selectionService.focus(e)},E.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;this.disabled||this.readonly||isNaN(t)||(t=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==C.Undefined&&t!==C.Backspace&&t!==C.Delete&&t!==C.Home&&t!==C.End&&t!==C.Left&&t!==C.Right&&t!==C.PageDown&&t!==C.PageUp&&(t===C.Enter&&this.isOpen||t!==C.Enter)&&e.preventDefault()},E.prototype.handleEnter=function(e){var t=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),t=0<=t?u(this.dataService.itemAt(t),this.valueField):(e=this.suggest&&this.suggestedText&&this.data.length&&u(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase(),this.isOpen&&e?this.suggestedText:this.searchbar.value),this.change(t)},E.prototype.handleEscape=function(){this.isOpen?this.togglePopup(!1):this.value="",this.selectionService.focused=-1,this.suggestedText=null},E.prototype.searchBarChange=function(e){var t=c(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)},E.prototype.handleFocus=function(){var e=this;this.isFocused=!0,p.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()})},E.prototype.handleBlur=function(){var e=this,t=this.filterable?this.selectionService.focused:-1,n=(this.searchbar.input.nativeElement.scrollLeft=0,(t=-1!==t?(t=this.dataService.itemAt(t),u(t,this.valueField)||""):this.searchbar.value)===this.searchbar.value),t=t.toLowerCase()===this.searchbar.value.toLowerCase(),i=(!n&&t&&this.selectionService.resetSelection([]),this.isFocused=!1,this.value!==this.text);p.hasObservers(this.onBlur)||p.hasObservers(this.close)||ne(this.wrapper)||i?this._zone.run(function(){i&&e.change(e.searchbar.value),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)},E.prototype.pageChange=function(e){this.virtual.skip=e.skip},E.prototype.change=function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)},E.prototype.subscribeEvents=function(){var n=this;p.isDocumentAvailable()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe(function(e){var t=n.value!==e;n.value=e,n.text=e,t&&n.emitChange(e)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=g.merge(this.navigationService.up,this.navigationService.down).subscribe(function(e){return n.navigate(e.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return n.togglePopup(!1)}),this.openSubscription=this.navigationService.open.subscribe(function(){return n.togglePopup(!0)}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.scrollSubscription=g.merge(this.navigationService.pagedown,this.navigationService.pageup).subscribe(function(e){n.isOpen&&(e.originalEvent.preventDefault(),n.optionsList.scrollWithOnePage(C[e.originalEvent.code]))}))},E.prototype.subscribeTouchEvents=function(){var t=this;p.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!se(t.hostElement,e,t.popupRef)&&t._zone.run(function(){return t.blur()})})})},E.prototype.unsubscribeEvents=function(){p.isDocumentAvailable()&&(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.scrollSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},E.prototype.handleItemChange=function(e){var e=e.indices.length?e.indices[0]:void 0;this.selectionService.resetSelection([-1]),c(e)&&(e=u(this.dataService.itemAt(e),this.valueField),this.change(e))},E.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&0<=t)&&(this.suggestedText=u(this.dataService.itemAt(t),this.valueField))},E.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(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"}}),this.popupRef.popupElement),n=this.width,i=n.min,n=n.max,i=(t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=i,t.style.width=n,t.style.height=this.height,t.setAttribute("dir",this.direction),t.querySelector("ul.k-list-ul")),n=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");n&&i.setAttribute("aria-labelledby",n),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})},E.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},E.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},E.prototype.triggerPopupEvents=function(e){var t=new Ie;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},E.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},E.prototype.findIndexPredicate=function(t){var n=this;return this.dataService.grouped?function(e){e=u(e.value,n.valueField);return(e=c(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=u(e,n.valueField);return(e=c(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},E.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper,l("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper,pe("input",this.fillMode))},E);function E(e,t,n,i,o,s,a,r,l,p,d){this.localization=e,this.dataService=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=s,this._zone=a,this.cdr=r,this.renderer=l,this.hostElement=p,this.touchEnabled=d,this.highlightFirst=!0,this.focusableId="k-"+Z(),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.widgetClasses=!0,this.listBoxId=Z(),this.optionPrefix=Z(),this.onChangeCallback=ie,this.onTouchedCallback=ie,this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new g.Subject,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",B.validatePackage($),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}Ne.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ne,deps:[{token:a.LocalizationService},{token:I},{token:H.PopupService},{token:x},{token:T},{token:k},{token:o.NgZone},{token:o.ChangeDetectorRef},{token:o.Renderer2},{token:o.ElementRef},{token:Se,optional:!0}],target:o.ɵɵFactoryTarget.Component}),Ne.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ne,selector:"kendo-autocomplete",inputs:{highlightFirst:"highlightFirst",focusableId:"focusableId",data:"data",value:"value",valueField:"valueField",placeholder:"placeholder",popupSettings:"popupSettings",listHeight:"listHeight",loading:"loading",clearButton:"clearButton",suggest:"suggest",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},host:{properties:{"class.k-autocomplete":"this.widgetClasses","class.k-input":"this.widgetClasses","class.k-disabled":"this.isDisabled","class.k-loading":"this.isLoading","attr.dir":"this.dir"}},providers:[Ve,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:Ce,useExisting:h.forwardRef(function(){return Ne})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return Ne})}],queries:[{propertyName:"template",first:!0,predicate:ue,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0},{propertyName:"groupTemplate",first:!0,predicate:he,descendants:!0},{propertyName:"fixedGroupTemplate",first:!0,predicate:ge,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"searchbar",first:!0,predicate:f,descendants:!0,static:!0},{propertyName:"optionsList",first:!0,predicate:["optionsList"],descendants:!0}],exportAs:["kendoAutoComplete"],usesOnChanges:!0,ngImport:o,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 [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [isLoading]="isLoading"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && (clearButton && text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearValue($event)"\n (mousedown)="$event.preventDefault()"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span *ngIf="loading" class="k-icon k-i-loading k-input-loading-icon"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 ',isInline:!0,components:[{type:f,selector:"kendo-searchbar",inputs:["id","listId","tagListId","activeDescendant","disabled","readonly","tabIndex","popupOpen","role","isLoading","isSuggestable","isFilterable","userInput","suggestedText","placeholder"],outputs:["valueChange","onBlur","onFocus","onClick","onNavigate"]},{type:Pe,selector:"kendo-list",inputs:["selected","focused","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","id","optionPrefix","multipleSelection","virtual","type","checkboxes","ariaLive","isMultiselect","data","size","rounded"],outputs:["onClick","pageChange","listResize"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:Re,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:we,selector:"[templateContext]",inputs:["templateContext"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ne,decorators:[{type:h.Component,args:[{exportAs:"kendoAutoComplete",providers:[Ve,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:Ce,useExisting:h.forwardRef(function(){return Ne})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return Ne})}],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 [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [isLoading]="isLoading"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && (clearButton && text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearValue($event)"\n (mousedown)="$event.preventDefault()"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span *ngIf="loading" class="k-icon k-i-loading k-input-loading-icon"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 '}]}],ctorParameters:function(){return[{type:a.LocalizationService},{type:I},{type:H.PopupService},{type:x},{type:T},{type:k},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:o.Renderer2},{type:o.ElementRef},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[Se]}]}]},propDecorators:{highlightFirst:[{type:h.Input}],focusableId:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],valueField:[{type:h.Input}],placeholder:[{type:h.Input}],popupSettings:[{type:h.Input}],listHeight:[{type:h.Input}],loading:[{type:h.Input}],clearButton:[{type:h.Input}],suggest:[{type:h.Input}],disabled:[{type:h.Input}],itemDisabled:[{type:h.Input}],readonly:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input,args:["tabIndex"]}],filterable:[{type:h.Input}],virtual:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],filterChange:[{type:h.Output}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],template:[{type:h.ContentChild,args:[ue,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],groupTemplate:[{type:h.ContentChild,args:[he,{static:!1}]}],fixedGroupTemplate:[{type:h.ContentChild,args:[ge,{static:!1}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],searchbar:[{type:h.ViewChild,args:[f,{static:!0}]}],optionsList:[{type:h.ViewChild,args:["optionsList",{static:!1}]}],widgetClasses:[{type:h.HostBinding,args:["class.k-autocomplete"]},{type:h.HostBinding,args:["class.k-input"]}],isDisabled:[{type:h.HostBinding,args:["class.k-disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],dir:[{type:h.HostBinding,args:["attr.dir"]}]}});var Le="Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",_e="Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",je="Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",He="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",Ke="Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection",$e="Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values",Ge="Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values",Ue="Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",We="Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",qe="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding",Ze="Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth",Xe="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",Qe="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",Je="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",Ye="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",et="Expected virtual.itemHeight of type number.",tt="Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/",nt="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration",it="defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem",ot="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",st="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",at="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",rt="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values",lt="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values",pt="Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem",dt="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding",ct="Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth",Ve={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ut})},ut=(Object.defineProperty(F.prototype,"text",{get:function(){return this._text},set:function(e){this._text=c(e)?e.toString():""},enumerable:!1,configurable:!0}),F.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(F.prototype,"activeDescendant",{get:function(){var e;return this.isOpen&&c(this.selectionService.focused)&&-1!==this.selectionService.focused?(e=this.dataService.itemAt(this.selectionService.focused),this.optionPrefix+"-"+(e?u(e,this.valueField):"")):null},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"data",{get:function(){var e,t,n=this.virtual;return n?(t=(e=n.skip||0)+n.pageSize,n.total=this.dataService.data.length,this.dataService.data.slice(e,t)):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=u(this.dataService.itemAt(0),this.textField))},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"valuePrimitive",{get:function(){return c(this._valuePrimitive)?this._valuePrimitive:!c(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.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:!1,configurable:!0}),Object.defineProperty(F.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=xe(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,l("input",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,d(t)),this._rounded=t},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,pe("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",t)),this._fillMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupWidth",{get:function(){var e=0,t=(p.isDocumentAvailable()&&(e=this.wrapper.nativeElement.offsetWidth),this.popupSettings.width||e);return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupHeight",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),F.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()},F.prototype.createValueStream=function(){var i=this,e=this.valueSubject.pipe(m.filter(function(e){var t=u(i.value,i.valueField),n=u(e,i.valueField),e=u(e,i.textField);return!(!c(i.value)&&!c(n))&&(c(e)&&(e=e.toString()),t!==n||i.text!==e||(i.clearFilter(),!1))}),m.map(function(e){var t=u(e,i.valueField);return{dataItem:e,text:u(e,i.textField),value:i.valuePrimitive?t:e}})),t=m.partition(function(){return i.allowCustom})(this.customValueSubject.pipe(m.throttleTime(300))),n=t[0].pipe(m.tap(function(){i.loading=!0,i.disabled=!0,i.cdr.detectChanges()}),m.filter(function(){var e=i.text!==u(i.value,i.valueField);return i.loading=e,(i.disabled=e)||i.clearFilter(),e}),this.valueNormalizer,m.map(function(e){return{custom:!0,dataItem:e,text:i.text,value:e}})),t=t[1].pipe(m.map(function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}})),o=this.clearValueSubject.pipe(m.map(function(){return{dataItem:void 0,text:void 0,value:void 0}})),e=(this.valueSubscription&&this.valueSubscription.unsubscribe(),g.merge(e,n,t,o));this.valueSubscription=e.pipe(m.catchError(function(){var e=void 0!==u(i.dataItem,i.valueField);return i.dataItem=void 0,i.value=void 0,i.text=void 0,i.loading=!1,i.disabled=!1,e&&i.selectionChange.emit(void 0),i.emitValueChange(),i.createValueStream(),g.of(null)})).subscribe(function(e){var t=u(i.dataItem,i.valueField)!==u(e.dataItem,i.valueField);i.dataItem=e.dataItem,i.value=e.value,i.text=e.text,i.loading=!1,i.disabled=!1,i.clearFilter(),e.custom&&(i.selectionService.focused=-1),t&&(t=e.custom?void 0:i.dataItem,i.selectionChange.emit(t)),i.emitValueChange()})},F.prototype.attachStreams=function(){var n=this;p.isDocumentAvailable()&&(this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;n.direction=e?"rtl":"ltr",n.cdr.detectChanges()})),this.subs.add(g.merge(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(m.filter(function(e){return c(e.index)})).subscribe(function(e){return n.navigate(e.index)})),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(function(){return n.togglePopup(!1)})),this.subs.add(g.merge(this.navigationService.pagedown,this.navigationService.pageup).subscribe(function(e){n.isOpen&&(e.originalEvent.preventDefault(),n.optionsList.scrollWithOnePage(C[e.originalEvent.code]))})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(m.tap(function(e){n.isOpen&&e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(g.merge(this.selectionService.onChange,this.selectionService.onSelect.pipe(m.filter(function(e){return!n.isOpen}))).pipe(m.tap(function(e){n._filtering=!1,n.togglePopup(!1)}),m.map(function(e){return n.dataService.itemAt(e.indices[0])})).subscribe(function(e){n.change(e)})),this.subs.add(this.selectionService.onSelect.pipe(m.filter(function(e){return n.isOpen}),m.tap(function(e){return n._filtering=!1}),m.map(function(e){return n.dataService.itemAt(e.indices[0])})).subscribe(function(e){var t=u(e,n.valueField)!==u(n.dataItem,n.valueField);n.updateState({dataItem:e}),t&&n.selectionChange.emit(e)})))},F.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs.unsubscribe(),c(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()},F.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),p.isChanged("valueNormalizer",e)&&this.createValueStream(),p.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},F.prototype.ngAfterContentChecked=function(){this.verifySettings()},F.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;c(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},F.prototype.focus=function(){this.disabled||this.searchbar.focus()},F.prototype.blur=function(){this.disabled||this.searchbar.blur()},F.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!n._open;n._toggle(e),n.cdr.markForCheck()})},Object.defineProperty(F.prototype,"isOpen",{get:function(){return this._open},enumerable:!1,configurable:!0}),F.prototype.reset=function(){this.value=void 0,this.clearState(),this.resetSelection()},F.prototype.isEmpty=function(){var e=!c(this.text)||X(this.text),t=!c(this.value)||X(this.value);return e&&t},F.prototype.messageFor=function(e){return this.localization.get(e)},F.prototype.clearValue=function(e){null!=e&&e.stopImmediatePropagation(),e&&this.focus(),this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1},F.prototype.writeValue=function(e){this.value=null===e?void 0:e},F.prototype.registerOnChange=function(e){this.onChangeCallback=e},F.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},F.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(F.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading k-input-loading-icon":this.iconClass||"k-i-caret-alt-down"},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"selectButtonClasses",{get:function(){return(this.size?l("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")+"\n "},enumerable:!1,configurable:!0}),F.prototype.onResize=function(){var e,t,n;this.isOpen&&(e=this.popupRef.popupElement,t=(n=this.popupWidth).min,n=n.max,e.style.minWidth=t,e.style.width=n)},F.prototype.verifySettings=function(){if(h.isDevMode()){if(!0===this.valuePrimitive&&c(this.value)&&"object"==typeof this.value)throw new Error(Je);if(!1===this.valuePrimitive&&c(this.value)&&"object"!=typeof this.value)throw new Error(Qe);if(!c(this.valueField)!=!c(this.textField))throw new Error(Ye);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(et)}},F.prototype.setState=function(){var e,t;this._filtering||(e=this.value,t=this.valueField,t=this.findDataItem({valueField:t,value:e}),c(t.index)&&-1!==t.index?(this.updateState({dataItem:t.dataItem,confirm:!0}),this.resetSelection(t.index)):c(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)))},F.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=u(t,this.textField),e&&(this._previousDataItem=t)},F.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},F.prototype.resetSelection=function(e){var t=!c(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e},F.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},F.prototype.findIndexPredicate=function(t){var n=this;return this.dataService.grouped?function(e){e=u(e.value,n.textField);return(e=c(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=u(e,n.textField);return(e=c(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},F.prototype.findDataItem=function(e){var t=this,n=e.valueField,i=e.value,e={dataItem:null,index:-1},o=this.dataService.findIndex(function(e){e=t.dataService.grouped?e.value:e;return u(e,n)===u(i,n)});return e.dataItem=this.dataService.itemAt(o),e.index=o,e},F.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=u(this.dataService.itemAt(t),this.textField)))},F.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},F.prototype.navigate=function(e){0!==this.dataService.itemsCount&&(this.text=u(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},F.prototype.handleNavigate=function(e){var t=c(this.selectionService.selected[0]),n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused,i=0;this.disabled||this.readonly||e.keyCode!==p.Keys.Home&&e.keyCode!==p.Keys.End&&(t||(e.keyCode===p.Keys.ArrowDown?i=-1:e.keyCode===p.Keys.ArrowUp&&(i=1)),(t=this.navigationService.process({current:i+n,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==C.Undefined&&t!==C.Left&&t!==C.Right&&t!==C.Backspace&&t!==C.Delete&&t!==C.PageDown&&t!==C.PageUp&&(t===C.Enter&&this.isOpen||t!==C.Enter)&&e.preventDefault())},F.prototype.handleEnter=function(){var e=this.text,t=this.selectionService.focused,n=c(t)&&-1!==t,i=u(this._previousDataItem,this.textField)||"",o=u(this.dataService.itemAt(t),this.textField),i=e!==i;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&i&&(e===o||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(n?this.selectionService.change(t):i&&this.change(e,!0))},F.prototype.handleBlur=function(){var e=this,t=(this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1,u(this.dataItem,this.valueField)!==u(this.value,this.valueField)),n=this.searchbar.value,i=n!==(u(this.dataItem,this.textField)||""),o=t||i;o||p.hasObservers(this.onBlur)||p.hasObservers(this.close)||ne(this.wrapper.nativeElement)?this.zone.run(function(){o&&(c(e.focusedItemText)&&e.focusedItemText.toLowerCase()===n.toLowerCase()||t?e.selectionService.change(e.selectionService.focused):e.change(n,!0)),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)},F.prototype.handleEscape=function(){this.isOpen?this.togglePopup(!1):this.clearValue(),0<this.selectionService.selected.length||(this.suggestedText=null,this.selectionService.focused=-1)},F.prototype.handleNavigationOpen=function(){this.restoreItemFocus(),this.togglePopup(!0)},F.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)},F.prototype.handleFocus=function(){var e=this;this.isFocused=!0,p.hasObservers(this.onFocus)&&this.zone.run(function(){return e.onFocus.emit()})},F.prototype.pageChange=function(e){this.virtual.skip=e.skip},F.prototype.change=function(e,t){((t=void 0===t?!1:t)?this.customValueSubject:this.valueSubject).next(e)},F.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem},F.prototype.selectClick=function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)},Object.defineProperty(F.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!1,configurable:!0}),F.prototype.preventEventDefault=function(e){e.preventDefault()},Object.defineProperty(F.prototype,"focusedItemText",{get:function(){var e=this.selectionService.focused;return c(e)&&-1!==e?(e=u(this.dataService.itemAt(e),this.textField),c(e)?e.toString():""):null},enumerable:!1,configurable:!0}),F.prototype.restoreItemFocus=function(){c(this.selectionService.focused)&&-1<this.selectionService.focused||!this.text||!this.dataService.itemsCount||(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))},F.prototype.useSuggestion=function(){var e;return!(!this.suggest||!c(this.searchbar.value))&&(e=this.dataService.itemAt(this.selectionService.focused),e=u(e,this.textField),!!c(e)&&this.searchbar.value.toLowerCase()===e.toLowerCase())},F.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},F.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(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"}}),this.popupRef.popupElement),n=this.popupWidth,i=n.min,n=n.max,i=(t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=i,t.style.width=n,t.style.height=this.popupHeight,t.setAttribute("dir",this.direction),this.popupRef.popupElement.querySelector("ul")),n=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");n&&i.setAttribute("aria-labelledby",n),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)})},F.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},F.prototype.triggerPopupEvents=function(e){var t=new Ie;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},F.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))},F.prototype.subscribeTouchEvents=function(){var t=this;p.isDocumentAvailable()&&this.touchEnabled&&this.zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target,e=se(t.wrapper,e,t.popupRef);t.isFocused&&!e?t.zone.run(function(){return t.blur()}):t.isOpen&&!e&&t.zone.run(function(){return t.togglePopup(!1)})})})},F.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=V.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},F.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",this.fillMode))},F);function F(e,t,n,i,o,s,a,r,l,p,d){this.wrapper=e,this.localization=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=s,this.dataService=a,this.zone=r,this.cdr=l,this.renderer=p,this.touchEnabled=d,this.selected=[],this.focusableId="k-"+Z(),this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(m.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 h.EventEmitter,this.selectionChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=Z(),this.optionPrefix=Z(),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 g.Subject,this.valueSubject=new g.Subject,this.clearValueSubject=new g.Subject,this.subs=new g.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",B.validatePackage($),this.direction=t.rtl?"rtl":"ltr",this.data=[]}ut.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ut,deps:[{token:o.ElementRef},{token:a.LocalizationService},{token:H.PopupService},{token:x},{token:T},{token:k},{token:I},{token:o.NgZone},{token:o.ChangeDetectorRef},{token:o.Renderer2},{token:Se,optional:!0}],target:o.ɵɵFactoryTarget.Component}),ut.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ut,selector:"kendo-combobox",inputs:{focusableId:"focusableId",allowCustom:"allowCustom",data:"data",value:"value",textField:"textField",valueField:"valueField",valuePrimitive:"valuePrimitive",valueNormalizer:"valueNormalizer",placeholder:"placeholder",popupSettings:"popupSettings",listHeight:"listHeight",iconClass:"iconClass",loading:"loading",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},host:{properties:{"class.k-combobox":"this.widgetClasses","class.k-input":"this.widgetClasses","class.k-disabled":"this.isDisabled","class.k-loading":"this.isLoading","attr.dir":"this.dir"}},providers:[Ve,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.combobox"},{provide:Ce,useExisting:h.forwardRef(function(){return ut})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return ut})}],queries:[{propertyName:"template",first:!0,predicate:ue,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0},{propertyName:"groupTemplate",first:!0,predicate:he,descendants:!0},{propertyName:"fixedGroupTemplate",first:!0,predicate:ge,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"searchbar",first:!0,predicate:f,descendants:!0,static:!0},{propertyName:"optionsList",first:!0,predicate:["optionsList"],descendants:!0},{propertyName:"select",first:!0,predicate:["select"],descendants:!0,static:!0}],exportAs:["kendoComboBox"],usesOnChanges:!0,ngImport:o,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 i18n-selectButtonText="kendo.combobox.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n #select\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 ',isInline:!0,components:[{type:f,selector:"kendo-searchbar",inputs:["id","listId","tagListId","activeDescendant","disabled","readonly","tabIndex","popupOpen","role","isLoading","isSuggestable","isFilterable","userInput","suggestedText","placeholder"],outputs:["valueChange","onBlur","onFocus","onClick","onNavigate"]},{type:Pe,selector:"kendo-list",inputs:["selected","focused","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","id","optionPrefix","multipleSelection","virtual","type","checkboxes","ariaLive","isMultiselect","data","size","rounded"],outputs:["onClick","pageChange","listResize"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:Re,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:we,selector:"[templateContext]",inputs:["templateContext"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ut,decorators:[{type:h.Component,args:[{exportAs:"kendoComboBox",providers:[Ve,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.combobox"},{provide:Ce,useExisting:h.forwardRef(function(){return ut})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return ut})}],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 i18n-selectButtonText="kendo.combobox.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n #select\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:a.LocalizationService},{type:H.PopupService},{type:x},{type:T},{type:k},{type:I},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:o.Renderer2},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[Se]}]}]},propDecorators:{focusableId:[{type:h.Input}],allowCustom:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],valuePrimitive:[{type:h.Input}],valueNormalizer:[{type:h.Input}],placeholder:[{type:h.Input}],popupSettings:[{type:h.Input}],listHeight:[{type:h.Input}],iconClass:[{type:h.Input}],loading:[{type:h.Input}],suggest:[{type:h.Input}],clearButton:[{type:h.Input}],disabled:[{type:h.Input}],itemDisabled:[{type:h.Input}],readonly:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input,args:["tabIndex"]}],filterable:[{type:h.Input}],virtual:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],selectionChange:[{type:h.Output}],filterChange:[{type:h.Output}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],template:[{type:h.ContentChild,args:[ue,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],groupTemplate:[{type:h.ContentChild,args:[he,{static:!1}]}],fixedGroupTemplate:[{type:h.ContentChild,args:[ge,{static:!1}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],searchbar:[{type:h.ViewChild,args:[f,{static:!0}]}],optionsList:[{type:h.ViewChild,args:["optionsList",{static:!1}]}],select:[{type:h.ViewChild,args:["select",{static:!0}]}],widgetClasses:[{type:h.HostBinding,args:["class.k-combobox"]},{type:h.HostBinding,args:["class.k-input"]}],isDisabled:[{type:h.HostBinding,args:["class.k-disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],dir:[{type:h.HostBinding,args:["attr.dir"]}]}});var Ve=function(e){this.templateRef=e},ht=(Ve.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ve,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),Ve.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ve,selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ve,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),gt.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},gt.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},gt);function gt(e,t){this.element=e,this.zone=t}ht.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ht,deps:[{token:o.ElementRef},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),ht.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ht,selector:"[filterInput]",inputs:{focused:["filterInput","focused"]},usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ht,decorators:[{type:h.Directive,args:[{selector:"[filterInput]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.NgZone}]},propDecorators:{focused:[{type:h.Input,args:["filterInput"]}]}});var mt={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ft})},ft=(Object.defineProperty(O.prototype,"width",{get:function(){var e=p.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:!1,configurable:!0}),Object.defineProperty(O.prototype,"height",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"widgetTabIndex",{get:function(){var e;if(!this.disabled)return e=Number(this.tabIndex),isNaN(e)?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"ariaControls",{get:function(){if(this.isOpen)return this.listBoxId},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"ariaActivedescendant",{get:function(){if(c(this.dataItem)&&this.isOpen)return this.optionPrefix+"-"+u(this.dataItem,this.valueField)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"ariaLive",{get:function(){return this.filterable?"polite":"off"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"data",{get:function(){var e,t,n=this.virtual;return n?(t=(e=n.skip||0)+n.pageSize,n.total=this.dataService.data.length,this.dataService.data.slice(e,t)):this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"value",{get:function(){return this._value},set:function(e){c(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.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:!1,configurable:!0}),Object.defineProperty(O.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=xe(e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"valuePrimitive",{get:function(){return c(this._valuePrimitive)?this._valuePrimitive:!c(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,l("picker",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,l("picker",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,d(t)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,pe("picker",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,pe("picker",t)),this._fillMode=t},enumerable:!1,configurable:!0}),O.prototype.blurComponent=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())},O.prototype.blurFilterInput=function(){this.filterBlurred.emit()},O.prototype.focusComponent=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,p.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()})))},O.prototype.onResize=function(){var e,t,n;this._open&&(e=this.popupRef.popupElement,t=(n=this.width).min,n=n.max,e.style.minWidth=t,e.style.width=n)},Object.defineProperty(O.prototype,"isDisabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isDisabledAttribute",{get:function(){return this.disabled?"":null},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostTabIndex",{get:function(){return this.widgetTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"readonlyClass",{get:function(){return this.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"readonlyAttr",{get:function(){return this.readonly?"":null},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isBusy",{get:function(){return this.isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isAriaExpanded",{get:function(){return this.ariaExpanded},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostAriaControls",{get:function(){return this.ariaControls},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostAriaInvalid",{get:function(){var e;return this.formControl?null==(e=this.formControl)?void 0:e.invalid.toString():null},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostAriaActivedescendant",{get:function(){return this.ariaActivedescendant},enumerable:!1,configurable:!0}),O.prototype.keydown=function(e){var t,n,i=c(this.defaultItem)?-1:0,i=isNaN(this.selectionService.focused)?this.firstFocusableIndex(i):this.selectionService.focused,o=0;this.disabled||this.readonly||(t=e.keyCode===p.Keys.Home||e.keyCode===p.Keys.End,this.filterable&&this.isFocused&&this.isOpen&&t||(t=c(this.selectionService.selected[0]),n=c(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused),t&&!n||(e.keyCode===p.Keys.ArrowDown||e.keyCode===p.Keys.ArrowRight?o=-1:e.keyCode!==p.Keys.ArrowUp&&e.keyCode!==p.Keys.ArrowLeft||(o=1)),i=(n=this.navigationService.process({current:i+o,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:t=e}))===C.Left||n===C.Right,n===C.Undefined||n===C.Tab||n===C.Backspace||n===C.Delete||n===C.PageDown||n===C.PageUp||i&&this.filterable||n===C.Enter||t.preventDefault()))},O.prototype.keypress=function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)},O.prototype.click=function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)},Object.defineProperty(O.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),O.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.detectChanges()})),this.assignAriaDescribedBy(),this.setComponentClasses()},O.prototype.isEmpty=function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)},O.prototype.onFilterFocus=function(){this.filterFocused.emit()},O.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs.unsubscribe(),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},O.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),p.isChanged("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),p.anyChanged(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},O.prototype.ngAfterContentChecked=function(){this.verifySettings()},Object.defineProperty(O.prototype,"formControl",{get:function(){var e=this.injector.get(i.NgControl,null);return(null==e?void 0:e.control)||null},enumerable:!1,configurable:!0}),O.prototype.focusItemAt=function(e){var t=(c(this.defaultItem)?-1:0)<=e&&e<this.data.length;c(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},O.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},O.prototype.blur=function(){this.disabled||(this.wrapper.nativeElement.blur(),this.cdr.detectChanges())},O.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!n._open;n._toggle(e)})},O.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},O.prototype.triggerPopupEvents=function(e){var t=new Ie;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},O.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||(!e&&this.filterable&&this.isFocused&&this.focus(),this._toggle(e))},Object.defineProperty(O.prototype,"isOpen",{get:function(){return this._open},enumerable:!1,configurable:!0}),O.prototype.reset=function(){this.value=void 0},O.prototype.messageFor=function(e){return this.localization.get(e)},O.prototype.writeValue=function(e){this.value=null===e?void 0:e},O.prototype.registerOnChange=function(e){this.onChangeCallback=e},O.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},O.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(O.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading k-input-loading-icon":this.iconClass||"k-i-caret-alt-down"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"selectButtonClasses",{get:function(){return(this.size?l("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"filterInputClasses",{get:function(){return(this.size?l("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?d(this.rounded):"")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"optionLabelSizeClass",{get:function(){return""+(this.size?l("list",this.size):"")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isDisabledDefaultItem",{get:function(){return this.disabledItemsService.isItemDisabled(this.defaultItem)},enumerable:!1,configurable:!0}),O.prototype.getText=function(){return this.text},O.prototype.getDefaultItemText=function(){return u(this.defaultItem,this.textField)},O.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(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"}),this.popupRef.popupElement),n=this.width,i=n.min,n=n.max,i=(t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=i,t.style.width=n,t.style.height=this.height,t.setAttribute("dir",this.direction),t.querySelector("ul.k-list-ul")),n=this.wrapper.nativeElement.getAttribute("aria-labelledby");n&&i.setAttribute("aria-labelledby",n),this.subs.add(this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.subs.add(this.popupRef.popupClose.subscribe(function(){e.closed.emit()})),this.filterable||this.subs.add(this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)}))},O.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},O.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=u(t,this.textField),e&&(this._previousDataItem=t)},O.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},O.prototype.resetSelection=function(e){var t=!c(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e},O.prototype.onSelectionChange=function(e){e=e.dataItem;this.updateState({dataItem:e}),this.selectionChange.emit(e),this.assignAriaDescribedBy()},O.prototype.subscribeEvents=function(){var o=this;p.isDocumentAvailable()&&(this.subs.add(this.selectionService.onSelect.pipe(m.filter(function(e){return o.isOpen}),m.map(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.subs.add(g.merge(this.selectionService.onSelect.pipe(m.filter(function(e){return!o.isOpen})),this.selectionService.onChange).pipe(m.map(this.itemFromEvent.bind(this)),m.tap(function(e){return o.togglePopup(!1)})).subscribe(function(e){var t=e.dataItem,n=e.value,e=(e.newSelection&&o.onSelectionChange({dataItem:t}),!c(t)&&o._previousDataItem),i=n!==u(o.value,o.valueField);e?(o.updateState({dataItem:o._previousDataItem}),o.resetSelection()):i&&(o.value=o.valuePrimitive?n:t,o._previousDataItem=t,o.emitChange(o.value)),o.clearFilter()})),this.subs.add(g.merge(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(m.skipWhile(function(){return o.filterable})),this.navigationService.right.pipe(m.skipWhile(function(){return o.filterable})),this.navigationService.home,this.navigationService.end).pipe(m.filter(function(e){return!isNaN(e.index)})).subscribe(function(e){return o.selectionService.select(e.index)})),this.subs.add(g.merge(this.navigationService.pagedown,this.navigationService.pageup).subscribe(function(e){o.isOpen&&(e.originalEvent.preventDefault(),o.optionsList.scrollWithOnePage(C[e.originalEvent.code]))})),this.subs.add(this.navigationService.open.subscribe(function(){return o.togglePopup(!0)})),this.subs.add(this.navigationService.close.subscribe(function(){o.togglePopup(!1),o.focus()})),this.subs.add(this.navigationService.enter.pipe(m.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.filterBlurred.pipe(m.concatMap(function(){return g.interval(10).pipe(m.take(1),m.takeUntil(o.hostElementFocused))})).subscribe(function(){o.hostElementBlurred.emit()})),this._zone.runOutsideAngular(function(){o.subs.add(g.merge(o.hostElementBlurred.pipe(m.concatMap(function(){return g.interval(10).pipe(m.take(1),m.takeUntil(o.filterFocused))})),o.navigationService.tab).pipe(m.tap(function(e){return e instanceof be&&o.focus()}),m.filter(function(){return o.isFocused})).subscribe(function(){return o.componentBlur()}))}))},O.prototype.subscribeTouchEvents=function(){var t=this;p.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!se(t.wrapper,e,t.popupRef)&&t._zone.run(function(){t.filterFocused&&t.togglePopup(!1),t.blur()})})})},O.prototype.subscribeFocusEvents=function(){var e=this;p.isDocumentAvailable()&&(this.focusComponent=this.focusComponent.bind(this),this.blurComponent=this.blurComponent.bind(this),this._zone.runOutsideAngular(function(){document.addEventListener("focus",e.focusComponent,!0),document.addEventListener("blur",e.blurComponent,!0)}))},O.prototype.unSubscribeFocusEvents=function(){p.isDocumentAvailable()&&(document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0))},O.prototype.itemFromEvent=function(e){var t=e.indices[0],n=this.dataService.itemAt(t),n=c(n)?n:this.currentOrDefault(t),i=u(n,this.valueField);return{dataItem:n,index:t,newSelection:e.newSelection,value:i}},O.prototype.currentOrDefault=function(e){return c(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem},O.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},O.prototype.handleEnter=function(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)},O.prototype.handleEscape=function(){c(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()},O.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))},O.prototype.verifySettings=function(){if(h.isDevMode()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(it);if(!0===this.valuePrimitive&&c(this.value)&&"object"==typeof this.value)throw new Error(st);if(!1===this.valuePrimitive&&c(this.value)&&"object"!=typeof this.value)throw new Error(ot);if(!c(this.valueField)!=!c(this.textField))throw new Error(at)}},O.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=c(this.selectionService.selected[0])&&u(this.value,this.valueField)!==u(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||p.hasObservers(this.close)||p.hasObservers(this.onBlur)||p.hasObservers(this.filterChange)||ne(this.wrapper.nativeElement)?this._zone.run(function(){t&&e.selectionService.change(e.selectionService.selected[0]),e.togglePopup(!1),e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):this.togglePopup(!1)},O.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},O.prototype.onKeyPress=function(e){var t;0!==e.which&&e.keyCode!==p.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())},O.prototype.search=function(){var e=this;clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(function(){e.word=""},this.delay),this.selectNext())},O.prototype.selectNext=function(){var e,t,n,i=this,o=this.dataService.filter(function(e){return c(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)}}),s=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(this.word,this.last),a=o.length,r=!isNaN(this.selectionService.selected[0]),l=r?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(t={item:this.defaultItem,itemIndex:-1},a+=1,l+=1),n=o,r=l+=s&&r?1:0,o=(n=(l=t)?[l].concat(n):n).slice(r).concat(n.slice(0,r)),e=0;e<a;e++){var p=u(o[e].item,this.textField),d=Boolean(s&&ee(p,this.last,this.ignoreCase)),p=Boolean(ee(p,this.word,this.ignoreCase));if(d||p){e=o[e].itemIndex;break}}e!==a&&this.navigate(e)},O.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},O.prototype.navigate=function(e){this.selectionService.select(e)},O.prototype.findDataItem=function(e){function t(e){return u(e,n)}var n=e.valueField,i=e.value,e={dataItem:null,index:-1},o=this.dataService.grouped?function(e){return t(e.value)===t(i)}:function(e){return t(e)===t(i)},o=this.dataService.findIndex(o);return e.dataItem=this.dataService.itemAt(o),e.index=o,e},O.prototype.setState=function(){var e=this.value,t=this.valueField,n=this.textField,i=this.valuePrimitive;if(this.defaultItem){var o=u(this.defaultItem,t),s=u(e,t);if(!c(e)||s===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)))}s=this.findDataItem({valueField:t,value:e}),o=!(i&&n);s.dataItem?(this.updateState({dataItem:s.dataItem,confirm:!0}),this.resetSelection(s.index)):(c(e)&&o?this.updateState({dataItem:e}):this._previousDataItem?this.updateState({dataItem:this._previousDataItem}):this.clearState(),this.resetSelection())},O.prototype.handleFilter=function(e){this.filterChange.emit(e.target.value)},O.prototype.pageChange=function(e){this.virtual.skip=e.skip},O.prototype.assignAriaDescribedBy=function(){var e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim(),e=(this.valueLabelId=Z(),(this.valueLabelId+" "+e).trim());this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)},O.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("picker",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,pe("picker",this.fillMode))},O);function O(e,t,n,i,o,s,a,r,l,p,d,c){this.wrapper=e,this.localization=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=s,this.dataService=a,this._zone=r,this.renderer=l,this.cdr=p,this.touchEnabled=d,this.injector=c,this.listHeight=200,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.selectionChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.hostClasses=!0,this.focusableId="k-"+Z(),this.role="combobox",this.haspopup="listbox",this.groupIndices=[],this.listBoxId=Z(),this.optionPrefix=Z(),this.filterText="",this.subs=new g.Subscription,this._isFocused=!1,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.word="",this.last="",this.filterFocused=new h.EventEmitter,this.filterBlurred=new h.EventEmitter,this.hostElementFocused=new h.EventEmitter,this.hostElementBlurred=new h.EventEmitter,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",B.validatePackage($),this.direction=t.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}ft.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ft,deps:[{token:o.ElementRef},{token:a.LocalizationService},{token:H.PopupService},{token:x},{token:T},{token:k},{token:I},{token:o.NgZone},{token:o.Renderer2},{token:o.ChangeDetectorRef},{token:Se,optional:!0},{token:o.Injector}],target:o.ɵɵFactoryTarget.Component}),ft.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ft,selector:"kendo-dropdownlist",inputs:{iconClass:"iconClass",loading:"loading",data:"data",value:"value",textField:"textField",valueField:"valueField",popupSettings:"popupSettings",listHeight:"listHeight",defaultItem:"defaultItem",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",filterable:"filterable",virtual:"virtual",ignoreCase:"ignoreCase",delay:"delay",valuePrimitive:"valuePrimitive",tabindex:"tabindex",tabIndex:"tabIndex",size:"size",rounded:"rounded",fillMode:"fillMode",focusableId:["id","focusableId"]},outputs:{valueChange:"valueChange",filterChange:"filterChange",selectionChange:"selectionChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},host:{listeners:{keydown:"keydown($event)",keypress:"keypress($event)",click:"click($event)"},properties:{"class.k-dropdownlist":"this.hostClasses","class.k-picker":"this.hostClasses","class.k-disabled":"this.isDisabledClass","attr.disabled":"this.isDisabledAttribute","class.k-loading":"this.isLoading","attr.id":"this.focusableId","attr.dir":"this.dir","attr.tabindex":"this.hostTabIndex","attr.readonly":"this.readonlyAttr","attr.aria-busy":"this.isBusy","attr.role":"this.role","attr.aria-haspopup":"this.haspopup","attr.aria-expanded":"this.isAriaExpanded","attr.aria-controls":"this.hostAriaControls","attr.aria-invalid":"this.hostAriaInvalid","attr.aria-activedescendant":"this.hostAriaActivedescendant"}},providers:[mt,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:Ce,useExisting:h.forwardRef(function(){return ft})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return ft})}],queries:[{propertyName:"itemTemplate",first:!0,predicate:ue,descendants:!0},{propertyName:"groupTemplate",first:!0,predicate:he,descendants:!0},{propertyName:"fixedGroupTemplate",first:!0,predicate:ge,descendants:!0},{propertyName:"valueTemplate",first:!0,predicate:Ve,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"optionsList",first:!0,predicate:["optionsList"],descendants:!0}],exportAs:["kendoDropDownList"],usesOnChanges:!0,ngImport:o,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 i18n-selectButtonText="kendo.dropdownlist.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span class="k-input-inner" unselectable="on" [id]="valueLabelId">\n <span class="k-input-value-text">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate">{{ getText() }}</ng-template>\n </span>\n </span>\n <button\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: onMouseDown\n }"\n >\n <span\n class="k-button-icon k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <div class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <span\n class="k-searchbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-icon k-icon k-i-search" unselectable="on"></span>\n <input\n role="searchbox"\n aria-autocomplete="list"\n aria-haspopup="listbox"\n [attr.aria-controls]="ariaControls"\n [attr.aria-activedescendant]="ariaActivedescendant"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-input-inner"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n </span>\n </div>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [ariaLive]="ariaLive"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 ',isInline:!0,components:[{type:Pe,selector:"kendo-list",inputs:["selected","focused","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","id","optionPrefix","multipleSelection","virtual","type","checkboxes","ariaLive","isMultiselect","data","size","rounded"],outputs:["onClick","pageChange","listResize"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:Re,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:we,selector:"[templateContext]",inputs:["templateContext"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:j.DefaultValueAccessor,selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]"},{type:ht,selector:"[filterInput]",inputs:["filterInput"]},{type:j.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:j.NgModel,selector:"[ngModel]:not([formControlName]):not([formControl])",inputs:["name","disabled","ngModel","ngModelOptions"],outputs:["ngModelChange"],exportAs:["ngModel"]},{type:Fe,selector:"[kendoDropDownsSelectable]",inputs:["index","checkboxes","height","multipleSelection"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ft,decorators:[{type:h.Component,args:[{exportAs:"kendoDropDownList",providers:[mt,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:Ce,useExisting:h.forwardRef(function(){return ft})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return ft})}],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 i18n-selectButtonText="kendo.dropdownlist.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span class="k-input-inner" unselectable="on" [id]="valueLabelId">\n <span class="k-input-value-text">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate">{{ getText() }}</ng-template>\n </span>\n </span>\n <button\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: onMouseDown\n }"\n >\n <span\n class="k-button-icon k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <div class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <span\n class="k-searchbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-icon k-icon k-i-search" unselectable="on"></span>\n <input\n role="searchbox"\n aria-autocomplete="list"\n aria-haspopup="listbox"\n [attr.aria-controls]="ariaControls"\n [attr.aria-activedescendant]="ariaActivedescendant"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-input-inner"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n </span>\n </div>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [ariaLive]="ariaLive"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:a.LocalizationService},{type:H.PopupService},{type:x},{type:T},{type:k},{type:I},{type:o.NgZone},{type:o.Renderer2},{type:o.ChangeDetectorRef},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[Se]}]},{type:o.Injector}]},propDecorators:{iconClass:[{type:h.Input}],loading:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],popupSettings:[{type:h.Input}],listHeight:[{type:h.Input}],defaultItem:[{type:h.Input}],disabled:[{type:h.Input}],itemDisabled:[{type:h.Input}],readonly:[{type:h.Input}],filterable:[{type:h.Input}],virtual:[{type:h.Input}],ignoreCase:[{type:h.Input}],delay:[{type:h.Input}],valuePrimitive:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input,args:["tabIndex"]}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],filterChange:[{type:h.Output}],selectionChange:[{type:h.Output}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],itemTemplate:[{type:h.ContentChild,args:[ue,{static:!1}]}],groupTemplate:[{type:h.ContentChild,args:[he,{static:!1}]}],fixedGroupTemplate:[{type:h.ContentChild,args:[ge,{static:!1}]}],valueTemplate:[{type:h.ContentChild,args:[Ve,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],optionsList:[{type:h.ViewChild,args:["optionsList",{static:!1}]}],hostClasses:[{type:h.HostBinding,args:["class.k-dropdownlist"]},{type:h.HostBinding,args:["class.k-picker"]}],isDisabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],isDisabledAttribute:[{type:h.HostBinding,args:["attr.disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],focusableId:[{type:h.Input,args:["id"]},{type:h.HostBinding,args:["attr.id"]}],dir:[{type:h.HostBinding,args:["attr.dir"]}],hostTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],readonlyClass:[{type:h.HostBinding,args:["attr.readonly"]}],readonlyAttr:[{type:h.HostBinding,args:["attr.readonly"]}],isBusy:[{type:h.HostBinding,args:["attr.aria-busy"]}],role:[{type:h.HostBinding,args:["attr.role"]}],haspopup:[{type:h.HostBinding,args:["attr.aria-haspopup"]}],isAriaExpanded:[{type:h.HostBinding,args:["attr.aria-expanded"]}],hostAriaControls:[{type:h.HostBinding,args:["attr.aria-controls"]}],hostAriaInvalid:[{type:h.HostBinding,args:["attr.aria-invalid"]}],hostAriaActivedescendant:[{type:h.HostBinding,args:["attr.aria-activedescendant"]}],keydown:[{type:h.HostListener,args:["keydown",["$event"]]}],keypress:[{type:h.HostListener,args:["keypress",["$event"]]}],click:[{type:h.HostListener,args:["click",["$event"]]}]}});var vt,mt=function(e){this.templateRef=e},bt=(mt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:mt,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),mt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:mt,selector:"[kendoMultiSelectCustomItemTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:mt,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectCustomItemTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),yt=(bt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:bt,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),bt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:bt,selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:bt,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),It=(yt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:yt,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),yt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:yt,selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:yt,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),U(kt,vt=Ie),kt);function kt(e){var t=vt.call(this)||this;return t.dataItem=e,t}Object.defineProperty(xt.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.hostElement.nativeElement,l("chip-list",this.size)),e&&this.renderer.addClass(this.hostElement.nativeElement,l("chip-list",e)),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(xt.prototype,"hostId",{get:function(){return this.id},enumerable:!1,configurable:!0}),xt.prototype.tagProp=function(e,t,n){t=t&&this.getPropField(e,t,n);return u(e,t)},xt.prototype.isTagDisabled=function(e,n){var i=this;return this.isGroupTag(e)?e.every(function(e,t){return i.disabledIndices.has(t+n)}):this.disabledIndices.has(n)},xt.prototype.deleteTag=function(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:n})},xt.prototype.itemId=function(e,t){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,t)},xt.prototype.isGroupTag=function(e){return e instanceof Array},xt.prototype.tagAriaHidden=function(e){return c(this.focused)&&this.focused!==e},xt.prototype.getPropField=function(t,e,n){var i=e.length-1;return"string"==typeof e?e:this.valueDepth?i<(n=this.valueDepth[n])?e[i]:e[n]:e.find(function(e){return e in t})};var Ct=xt;function xt(e,t){this.renderer=e,this.hostElement=t,this.rounded="medium",this.fillMode="solid",this.disabledIndices=new Set,this.removeTag=new h.EventEmitter,this.hostClasses=!0,this._size="medium"}Ct.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ct,deps:[{token:o.Renderer2},{token:o.ElementRef}],target:o.ɵɵFactoryTarget.Component}),Ct.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ct,selector:"kendo-taglist",inputs:{tags:"tags",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",focused:"focused",template:"template",groupTemplate:"groupTemplate",disabled:"disabled",tagPrefix:"tagPrefix",id:"id",size:"size",rounded:"rounded",fillMode:"fillMode",disabledIndices:"disabledIndices"},outputs:{removeTag:"removeTag"},host:{properties:{"class.k-input-values":"this.hostClasses","class.k-chip-list":"this.hostClasses","class.k-selection-multiple":"this.hostClasses","attr.id":"this.hostId"}},ngImport:o,template:"\n <div\n *ngFor=\"let tag of tags; let index = index;\"\n [attr.id]=\"itemId(tag, index)\"\n [attr.aria-hidden]=\"tagAriaHidden(index)\"\n class=\"k-chip\"\n [ngClass]=\"{\n 'k-focus': index === focused,\n 'k-disabled': isTagDisabled(tag, index),\n 'k-chip-sm': size === 'small',\n 'k-chip-md': size === 'medium',\n 'k-chip-lg': size === 'large',\n 'k-rounded-sm': rounded === 'small',\n 'k-rounded-md': rounded === 'medium',\n 'k-rounded-lg': rounded === 'large',\n 'k-rounded-full': rounded === 'full',\n 'k-chip-solid k-chip-solid-base': fillMode === 'solid',\n 'k-chip-flat k-chip-flat-base': fillMode === 'flat',\n 'k-chip-outline k-chip-outline-base': fillMode === 'outline'\n }\"\n >\n <span class=\"k-chip-content\">\n <ng-template *ngIf=\"isGroupTag(tag); then groupTag else singleTag\"></ng-template>\n <ng-template #groupTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"groupTemplate\"\n [templateContext]=\"{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!groupTemplate\">{{ tag.length }} {{ tag.length === 1 ? 'item' : 'items' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"template\"\n [templateContext]=\"{\n templateRef: template.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\">{{ tagProp(tag, textField, index) }}</ng-template>\n </span>\n </ng-template>\n </span>\n\n <span class=\"k-chip-actions\">\n <span aria-label=\"delete\" [attr.aria-hidden]=\"index !== focused\" class=\"k-chip-action k-chip-remove-action\">\n <span class=\"k-icon k-i-x-circle\" (mousedown)=\"deleteTag($event, tag, index)\">\n </span>\n </span>\n </span>\n </div>\n <ng-content></ng-content>\n ",isInline:!0,directives:[{type:r.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:we,selector:"[templateContext]",inputs:["templateContext"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ct,decorators:[{type:h.Component,args:[{selector:"kendo-taglist",template:"\n <div\n *ngFor=\"let tag of tags; let index = index;\"\n [attr.id]=\"itemId(tag, index)\"\n [attr.aria-hidden]=\"tagAriaHidden(index)\"\n class=\"k-chip\"\n [ngClass]=\"{\n 'k-focus': index === focused,\n 'k-disabled': isTagDisabled(tag, index),\n 'k-chip-sm': size === 'small',\n 'k-chip-md': size === 'medium',\n 'k-chip-lg': size === 'large',\n 'k-rounded-sm': rounded === 'small',\n 'k-rounded-md': rounded === 'medium',\n 'k-rounded-lg': rounded === 'large',\n 'k-rounded-full': rounded === 'full',\n 'k-chip-solid k-chip-solid-base': fillMode === 'solid',\n 'k-chip-flat k-chip-flat-base': fillMode === 'flat',\n 'k-chip-outline k-chip-outline-base': fillMode === 'outline'\n }\"\n >\n <span class=\"k-chip-content\">\n <ng-template *ngIf=\"isGroupTag(tag); then groupTag else singleTag\"></ng-template>\n <ng-template #groupTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"groupTemplate\"\n [templateContext]=\"{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!groupTemplate\">{{ tag.length }} {{ tag.length === 1 ? 'item' : 'items' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"template\"\n [templateContext]=\"{\n templateRef: template.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\">{{ tagProp(tag, textField, index) }}</ng-template>\n </span>\n </ng-template>\n </span>\n\n <span class=\"k-chip-actions\">\n <span aria-label=\"delete\" [attr.aria-hidden]=\"index !== focused\" class=\"k-chip-action k-chip-remove-action\">\n <span class=\"k-icon k-i-x-circle\" (mousedown)=\"deleteTag($event, tag, index)\">\n </span>\n </span>\n </span>\n </div>\n <ng-content></ng-content>\n "}]}],ctorParameters:function(){return[{type:o.Renderer2},{type:o.ElementRef}]},propDecorators:{tags:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],valueDepth:[{type:h.Input}],focused:[{type:h.Input}],template:[{type:h.Input}],groupTemplate:[{type:h.Input}],disabled:[{type:h.Input}],tagPrefix:[{type:h.Input}],id:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],disabledIndices:[{type:h.Input}],removeTag:[{type:h.Output}],hostClasses:[{type:h.HostBinding,args:["class.k-input-values"]},{type:h.HostBinding,args:["class.k-chip-list"]},{type:h.HostBinding,args:["class.k-selection-multiple"]}],hostId:[{type:h.HostBinding,args:["attr.id"]}]}});var Tt={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return St})},St=(P.prototype.focusItemAt=function(e){var t=(this.allowCustom?-1:0)<=0&&e<this.data.length;c(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},P.prototype.focus=function(){this.disabled||this.searchbar.focus()},P.prototype.onSearchBarFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,p.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},P.prototype.blur=function(){this.disabled||this.searchbar.blur()},P.prototype.onSearchBarBlur=function(){var e=this;this.isFocused&&(this.isFocused=!1,p.hasObservers(this.onBlur)||p.hasObservers(this.filterChange)||p.hasObservers(this.close)||ne(this.wrapper.nativeElement)?this._zone.run(function(){e.closePopup(),e.isOpen&&e.allowCustom||e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup()))},P.prototype.onMouseDown=function(e){e.preventDefault()},P.prototype.onResize=function(){var e,t,n;this._open&&(e=this.popupRef.popupElement,t=(n=this.width).min,n=n.max,e.style.minWidth=t,e.style.width=n)},Object.defineProperty(P.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"data",{get:function(){var e,t,n=this.virtual;return n?(t=(e=n.skip||0)+n.pageSize,n.total=this.dataService.data.length,this.dataService.data.slice(e,t)):this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(P.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:!1,configurable:!0}),Object.defineProperty(P.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,l("input",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,d(t)),this._rounded=t},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,pe("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",t)),this._fillMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"placeholder",{get:function(){return this.selectedDataItems.length?"":this._placeholder},set:function(e){this._placeholder=e||""},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(P.prototype,"checkboxes",{get:function(){return this._checkboxes},set:function(e){this._checkboxes=ce(e=e)?Object.assign({},{enabled:!0,checkOnClick:!0},e):{enabled:Boolean(e),checkOnClick:!0}},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=xe(e)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"valuePrimitive",{get:function(){return c(this._valuePrimitive)?this._valuePrimitive:!c(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),P.prototype.handleKeyboardEvent=function(e){this.isFocused&&this.isOpen&&(e.ctrlKey||e.metaKey)&&e.keyCode===p.Keys.KeyA&&(e.preventDefault(),this.handleSelectAll())},P.prototype.hostMousedown=function(e){var t=this.searchbar.input.nativeElement;0!==e.button||this.isFocused&&this.isOpen&&e.target===t||((!this.touchEnabled||this.touchEnabled&&"SPAN"!==e.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),e.preventDefault())},Object.defineProperty(P.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"customItemSizeClass",{get:function(){return""+(this.size?l("list",this.size):"")},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"width",{get:function(){var e=0,t=(p.isDocumentAvailable()&&(e=this.wrapper.nativeElement.offsetWidth),this.popupSettings.width||e);return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"height",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"activeDescendant",{get:function(){var e,t,n=this.focusedTagIndex,i=this.selectionService.focused;if(c(n)&&!this.isOpen)t=this.tags[n],e=this.tagPrefix;else{if(!c(i)||-1===i||!this.isOpen)return null;t=this.dataService.itemAt(i),e=this.optionPrefix}return e+"-"+u(t,this.valueField)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!1,configurable:!0}),P.prototype.verifySettings=function(){if(h.isDevMode()&&0!==this.value.length){if(!de(this.value))throw new Error(Le);if(!0===this.valuePrimitive&&J(this.value))throw new Error(je);if(!1===this.valuePrimitive&&!J(this.value))throw new Error(_e);if(!c(this.valueField)!=!c(this.textField))throw new Error(He)}},P.prototype.change=function(e){var t,n,i=this;if(e.isMultipleSelection)c(e.added)&&0<e.added.length&&e.added.forEach(function(e){e=i.dataService.itemAt(e),e=i.valuePrimitive&&c(e)&&c(e[i.valueField])?e[i.valueField]:e;e&&(i.value=q(q([],W(i.value)),[e]))}),c(e.removed)&&0<e.removed.length&&(e.removed.forEach(function(e){var t=i.dataService.itemAt(e);i.value=i.value.filter(function(e){return u(e,i.valueField)!==u(t,i.valueField)})}),this.cdr.detectChanges());else{if((c(e.added)||c(e.removed))&&(-1===e.added||-1===e.removed))return void this.addCustomValue(this.text);c(e.added)&&(t=this.dataService.itemAt(e.added),t=this.valuePrimitive&&c(t)&&c(t[this.valueField])?t[this.valueField]:t,this.value=q(q([],W(this.value)),[t])),c(e.removed)&&(n=this.dataService.itemAt(e.removed),this.value=this.value.filter(function(e){return u(e,i.valueField)!==u(n,i.valueField)}),this.selectionService.focused=e.removed,this.cdr.detectChanges())}this.emitValueChange()},P.prototype.setState=function(e){var n=this,t=this.dataService.data,i=(this.dataService.grouped&&(t=t.filter(function(e){return!e.header}).map(function(e){return e.value})),Y(this.value,t,this.valueField));this.selectionService.resetSelection(i),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(0<this.dataService.itemsCount?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(J(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=Q(e,t,this.valueField)),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map(function(t){var e=n.selectedDataItems.find(function(e){return u(e,n.valueField)===u(t,n.valueField)});return c(e)?e:n.resolveDataItemFromTags(t)}).filter(function(e){return c(e)})),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()},P.prototype.handleFilter=function(e){(this.text=e)&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()},P.prototype.pageChange=function(e){this.virtual.skip=e.skip},P.prototype.clearFilter=function(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()},P.prototype.handleNavigate=function(e){var t=this.text&&e.keyCode!==p.Keys.ArrowDown&&e.keyCode!==p.Keys.ArrowUp,n=this.text&&e.keyCode===p.Keys.Enter||e.keyCode===p.Keys.Escape;!this.text&&e.keyCode===p.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||t&&!n||(t=e,n=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,(n=this.navigationService.process({current:n,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:t}))!==C.Undefined&&(n===C.Enter&&this.isOpen||n!==C.Enter)&&e.preventDefault())},P.prototype.handleRemoveTag=function(e){var e=e.tag,t=new It(e);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(t),t.isDefaultPrevented()||(e instanceof Array?this.removeGroupTag(e):this.removeSingleTag(e),this.cdr.detectChanges()))},P.prototype.clearAll=function(e){var n=this,i=(null!=e&&e.stopImmediatePropagation(),null!=e&&e.preventDefault(),this.focus(),this.clearFilter(),this.selectionService.lastClickedIndex=null,this.selectionService.selected);this.value=this.value.filter(function(e,t){return n.disabledItemsService.isIndexDisabled(i[t])}),this.emitValueChange()},P.prototype.addCustomValue=function(e){this.customValueSubject.next(e)},P.prototype.ngAfterContentChecked=function(){this.verifySettings()},P.prototype.ngDoCheck=function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1},P.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()}),this.setState(this.value),this.setComponentClasses(),this.initialized=!0},P.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),p.isChanged("valueNormalizer",e)&&this.createCustomValueStream(),p.anyChanged(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)},P.prototype.ngAfterViewInit=function(){this.searchbar.setInputSize()},P.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents()},P.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!n._open;n._toggle(e),n.cdr.markForCheck()})},Object.defineProperty(P.prototype,"isOpen",{get:function(){return this._open},enumerable:!1,configurable:!0}),P.prototype.reset=function(){this.text="",this.value=[]},P.prototype.messageFor=function(e){return this.localization.get(e)},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.onTagMapperChange=function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},Object.defineProperty(P.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),P.prototype.subscribeEvents=function(){var e,t,n,i=this;p.isDocumentAvailable()&&(e=function(){return i.isOpen},t=function(){return!i.isOpen},n=function(){return!i.isOpen&&void 0!==i.focusedTagIndex},[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(m.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(m.filter(e)).subscribe(function(e){return i.handleUp(e.index)}),this.navigationService.home.pipe(m.filter(function(){return t})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(m.filter(function(){return t})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(m.filter(n)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(m.filter(n)).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 i.handleDownKey(e.index)}),this.navigationService.selectprevious.pipe(m.filter(e)).subscribe(function(e){return i.handleSelectUpDown(e)}),this.navigationService.selectnext.pipe(m.filter(e)).subscribe(function(e){return i.handleSelectUpDown(e)}),this.navigationService.selectalltobeginning.pipe(m.filter(e)).subscribe(function(){return i.handleSelectAllToBeginning()}),this.navigationService.selectalltoend.pipe(m.filter(e)).subscribe(function(){return i.handleSelectAllToEnd()}),g.merge(this.navigationService.pagedown,this.navigationService.pageup).subscribe(function(e){i.isOpen&&(e.originalEvent.preventDefault(),i.optionsList.scrollWithOnePage(C[e.originalEvent.code]))})].forEach(function(e){return i.observableSubscriptions.add(e)}))},P.prototype.subscribeTouchEvents=function(){var t=this;p.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;!t.isFocused&&!t.isOpen||se(t.wrapper,e,t.popupRef)||t._zone.run(function(){t.blur(),t.isOpen&&t.togglePopup(!1)})})})},P.prototype.unsubscribeEvents=function(){p.isDocumentAvailable()&&(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},P.prototype.removeGroupTag=function(e){var n=this,i=this.dataService.data,o=(this.dataService.grouped&&(i=i.filter(function(e){return!e.header}).map(function(e){return e.value})),new Set(e.map(function(e){return u(e,n.valueField)})));this.value=this.value.filter(function(e){var t=Y([e],i,n.valueField)[0],t=n.disabledItemsService.isIndexDisabled(t);return!o.has(u(e,n.valueField))||t}),this.emitValueChange()},P.prototype.removeSingleTag=function(t){var n=this,e=this.dataService.data,e=(this.dataService.grouped&&(e=e.filter(function(e){return!e.header}).map(function(e){return e.value})),Y([t],e,this.valueField)[0]);this.disabledItemsService.isIndexDisabled(e)||(isNaN(e)?(this.value=this.value.filter(function(e){return u(e,n.valueField)!==u(t,n.valueField)}),this.emitValueChange()):(this.selectionService.deselect(e),this.selectionService.focused=e,this.togglePopup(!1)))},P.prototype.disabledItemsMapper=function(){var i=this,o=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(e,t,n){return i.disabledItemsService.isIndexDisabled(o[n])&&e.push(n),e},[]))},P.prototype.createCustomValueStream=function(){var o=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(m.tap(function(){o.loading=!0,o.disabled=!0,o.cdr.detectChanges()}),this.valueNormalizer,m.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,n,i;o.loading=!1,o.disabled=!1,c(e)&&(t=o.valuePrimitive?u(e,o.valueField):e,i=-1===(n=o.dataService.indexOf(t)),-1===o.value.indexOf(t)?(o.tags=o.tagMapper(q(q([],W(o.selectedDataItems)),[e])),i?o.value=q(q([],W(o.value)),[t]):o.selectionService.add(n)):!i&&o.selectionService.isSelected(n)?(o.selectionService.deselect(n),o.selectionService.focused=n):o.value=o.value.filter(function(e){return u(e,o.valueField)!==t}),o.emitValueChange()),o.autoClose&&o.togglePopup(!1),!o.autoClose&&o.filterable||o.clearFilter(),o.nextTick(function(){o.searchbar.focus()})})},P.prototype.handleItemChange=function(e){this.change(e),this.autoClose&&!e.preventClosingPopup&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()},P.prototype.handleEnter=function(e){var t=this.selectionService,n=this.selectionService.focused;this.selectionService.lastClickedIndex=n,this.isOpen&&e.originalEvent.preventDefault(),-1===n?this.allowCustom&&this.text&&this.addCustomValue(this.text):(t.isSelected(n)?(t.deselect(n),t.focused=n):t.add(n),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter())},P.prototype.handleClose=function(){this.closePopup(),this.searchbar.focus()},P.prototype.handleEnd=function(){this.focusedTagIndex=this.tags.length-1},P.prototype.handleHome=function(){this.focusedTagIndex=0},P.prototype.sortSelectionAscending=function(){return this.selectionService.selected.sort(function(e,t){return e-t})},P.prototype.handleSelectAll=function(){var e=this.selectionService.selected.length,t=this.dataService.data.length,n=this.dataService.data.filter(function(e){return!e.header}).length;!this.dataService.grouped&&e===t||this.dataService.grouped&&e===n?this.clearAll():(this.selectionService.selectFromTo(0,t-1),this.selectionService.emitMultipleAddedRemoved())},P.prototype.handleSelectAllToBeginning=function(){var e=this,t=this.selectionService.selected.length,n=this.dataService.data.length,i=this.selectionService.focused,o=this.sortSelectionAscending()[t-1];t!==n&&(this.selectionService.unselectFromTo(o,i+1),this.selectionService.selectFromTo(0,i)),this.nextTick(function(){return e.selectionService.focus(0)}),this.selectionService.emitMultipleAddedRemoved()},P.prototype.handleSelectAllToEnd=function(){var e,t=this,n=this.selectionService.selected.length,i=this.dataService.data.length,o=this.selectionService.focused;n!==i&&(this.selectionService.unselectFromTo(o-1,0),this.selectionService.selectFromTo(o,i-1)),this.dataService.grouped?(e=this.dataService.groupIndices[this.dataService.groupIndices.length-1]-1,this.nextTick(function(){return t.selectionService.focus(e)})):this.nextTick(function(){return t.selectionService.focus(i-1)}),this.selectionService.emitMultipleAddedRemoved()},P.prototype.handleSelectUpDown=function(e){var t=this.selectionService.focused;c(t)&&(e="ArrowUp"===e.originalEvent.key?0<t?t-1:t:t<this.dataService.data.length-1?t+1:t,c(this.selectionService.lastClickedIndex)||(this.selectionService.lastClickedIndex=t),this.selectRangeFromTo(e))},P.prototype.selectRangeFromTo=function(e){var t=this,n=this.selectionService.lastClickedIndex;e<n?(this.selectionService.unselectNotNeededIndices(e,n,this.dataService.data.length),this.selectionService.selectFromTo(e,this.selectionService.lastClickedIndex)):(this.selectionService.unselectNotNeededIndices(n,e,this.dataService.data.length),this.selectionService.selectFromTo(n,e)),this.selectionService.emitMultipleAddedRemoved(),this.nextTick(function(){return t.selectionService.focus(e)})},P.prototype.handleUp=function(e){this.selectionService.focused=e},P.prototype.handleBackspace=function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())},P.prototype.handleDelete=function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},P.prototype.handleLeftKey=function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},P.prototype.handleDownKey=function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()},P.prototype.handleRightKey=function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e&&this.focusedTagIndex++},P.prototype.findIndex=function(t,e){var n,i=this,e=(void 0===e&&(e=0),t=t.toLowerCase(),this.dataService.findIndex(function(e){return n=i.dataService.grouped?u(e.value,i.textField):u(e,i.textField),n=c(n)?n.toString().toLowerCase():"",t&&n.startsWith(t)},e));return this.disabledItemsService.isIndexDisabled(e)?e+1>this.dataService.itemsCount?-1:this.findIndex(t,e+1):e},P.prototype.searchTextAndFocus=function(e){e=this.findIndex(e);this.selectionService.focused=e},P.prototype.closePopup=function(){this.togglePopup(!1),this.focusedTagIndex=void 0},P.prototype.openPopup=function(){this.togglePopup(!0),this.focusedTagIndex=void 0},P.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||this._toggle(e)},P.prototype.triggerPopupEvents=function(e){var t=new Ie;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},P.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},P.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},P.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(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"}),this.popupRef.popupElement),n=this.width,i=n.min,n=n.max,i=(t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=i,t.style.width=n,t.style.height=this.height,t.setAttribute("dir",this.direction),t.querySelector("ul.k-list-ul")),n=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");n&&i.setAttribute("aria-labelledby",n),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)})},P.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)},P.prototype.resolveDataItemFromTags=function(t){var n=this;if(this.tags&&this.tags.length&&c(t))return this.tags.reduce(function(e,t){t=de(t)?t:[t];return e.push.apply(e,q([],W(t))),e},[]).find(function(e){return u(e,n.valueField)===u(t,n.valueField)})},P.prototype.firstFocusableIndex=function(e){var t,n=this.dataService.itemsCount;return this.disabledItemsService.isIndexDisabled(e)?(t=e+1)<n?this.firstFocusableIndex(t):void 0:e},P.prototype.nextTick=function(e){var t=this;this._zone.runOutsideAngular(function(){setTimeout(function(){return t._zone.run(e)})})},P.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",this.fillMode))},P);function P(e,t,n,i,o,s,a,r,l,p,d,c){var u=this;this.wrapper=e,this.localization=t,this.popupService=n,this.dataService=i,this.selectionService=o,this.navigationService=s,this.disabledItemsService=a,this.cdr=r,this.differs=l,this.renderer=p,this._zone=d,this.touchEnabled=c,this.listBoxId=Z(),this.tagListId=Z(),this.tagPrefix="tag-"+Z(),this.optionPrefix="option-"+Z(),this.focusedTagIndex=void 0,this.focusableId="k-"+Z(),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(m.map(function(t){function e(e){return"string"==typeof e&&t.toLowerCase()===e.toLowerCase()}var n=u.value.find(e);return n||u.dataService.find(e)||t}))},this.filterChange=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.removeTag=new h.EventEmitter,this.hostClasses=!0,this.initialized=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new g.Subject,this.observableSubscriptions=new g.Subscription,B.validatePackage($),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}St.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:St,deps:[{token:o.ElementRef},{token:a.LocalizationService},{token:H.PopupService},{token:I},{token:x},{token:T},{token:k},{token:o.ChangeDetectorRef},{token:o.KeyValueDiffers},{token:o.Renderer2},{token:o.NgZone},{token:Se,optional:!0}],target:o.ɵɵFactoryTarget.Component}),St.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:St,selector:"kendo-multiselect",inputs:{focusableId:"focusableId",autoClose:"autoClose",loading:"loading",data:"data",value:"value",valueField:"valueField",textField:"textField",tabindex:"tabindex",tabIndex:"tabIndex",size:"size",rounded:"rounded",fillMode:"fillMode",placeholder:"placeholder",disabled:"disabled",itemDisabled:"itemDisabled",checkboxes:"checkboxes",readonly:"readonly",filterable:"filterable",virtual:"virtual",popupSettings:"popupSettings",listHeight:"listHeight",valuePrimitive:"valuePrimitive",clearButton:"clearButton",tagMapper:"tagMapper",allowCustom:"allowCustom",valueNormalizer:"valueNormalizer"},outputs:{filterChange:"filterChange",valueChange:"valueChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur",removeTag:"removeTag"},host:{listeners:{keydown:"handleKeyboardEvent($event)",mousedown:"hostMousedown($event)"},properties:{"class.k-multiselect":"this.hostClasses","class.k-input":"this.hostClasses","attr.dir":"this.dir","class.k-disabled":"this.disabledClass","class.k-loading":"this.isLoading"}},providers:[Tt,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:Ce,useExisting:h.forwardRef(function(){return St})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return St})}],queries:[{propertyName:"template",first:!0,predicate:ue,descendants:!0},{propertyName:"customItemTemplate",first:!0,predicate:mt,descendants:!0},{propertyName:"groupTemplate",first:!0,predicate:he,descendants:!0},{propertyName:"fixedGroupTemplate",first:!0,predicate:ge,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"tagTemplate",first:!0,predicate:bt,descendants:!0},{propertyName:"groupTagTemplate",first:!0,predicate:yt,descendants:!0},{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"searchbar",first:!0,predicate:f,descendants:!0,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"optionsList",first:!0,predicate:["optionsList"],descendants:!0}],exportAs:["kendoMultiSelect"],usesOnChanges:!0,ngImport:o,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.multiselect.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'combobox\'"\n [tagListId]="tagListId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n </kendo-taglist>\n\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading k-input-loading-icon"\n >\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div\n *ngIf="allowCustom && text"\n class="k-list"\n [ngClass]="customItemSizeClass"\n >\n <div class="k-list-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n [checkboxes]="checkboxes"\n [isMultiselect]="true"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 ',isInline:!0,components:[{type:Ct,selector:"kendo-taglist",inputs:["tags","textField","valueField","valueDepth","focused","template","groupTemplate","disabled","tagPrefix","id","size","rounded","fillMode","disabledIndices"],outputs:["removeTag"]},{type:f,selector:"kendo-searchbar",inputs:["id","listId","tagListId","activeDescendant","disabled","readonly","tabIndex","popupOpen","role","isLoading","isSuggestable","isFilterable","userInput","suggestedText","placeholder"],outputs:["valueChange","onBlur","onFocus","onClick","onNavigate"]},{type:Pe,selector:"kendo-list",inputs:["selected","focused","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","id","optionPrefix","multipleSelection","virtual","type","checkboxes","ariaLive","isMultiselect","data","size","rounded"],outputs:["onClick","pageChange","listResize"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:Re,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:we,selector:"[templateContext]",inputs:["templateContext"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:Fe,selector:"[kendoDropDownsSelectable]",inputs:["index","checkboxes","height","multipleSelection"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:St,decorators:[{type:h.Component,args:[{exportAs:"kendoMultiSelect",providers:[Tt,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:Ce,useExisting:h.forwardRef(function(){return St})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return St})}],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.multiselect.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'combobox\'"\n [tagListId]="tagListId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n </kendo-taglist>\n\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading k-input-loading-icon"\n >\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div\n *ngIf="allowCustom && text"\n class="k-list"\n [ngClass]="customItemSizeClass"\n >\n <div class="k-list-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n [checkboxes]="checkboxes"\n [isMultiselect]="true"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:a.LocalizationService},{type:H.PopupService},{type:I},{type:x},{type:T},{type:k},{type:o.ChangeDetectorRef},{type:o.KeyValueDiffers},{type:o.Renderer2},{type:o.NgZone},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[Se]}]}]},propDecorators:{focusableId:[{type:h.Input}],autoClose:[{type:h.Input}],loading:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],valueField:[{type:h.Input}],textField:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input,args:["tabIndex"]}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],placeholder:[{type:h.Input}],disabled:[{type:h.Input}],itemDisabled:[{type:h.Input}],checkboxes:[{type:h.Input}],readonly:[{type:h.Input}],filterable:[{type:h.Input}],virtual:[{type:h.Input}],popupSettings:[{type:h.Input}],listHeight:[{type:h.Input}],valuePrimitive:[{type:h.Input}],clearButton:[{type:h.Input}],tagMapper:[{type:h.Input}],allowCustom:[{type:h.Input}],valueNormalizer:[{type:h.Input}],filterChange:[{type:h.Output}],valueChange:[{type:h.Output}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],removeTag:[{type:h.Output}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],searchbar:[{type:h.ViewChild,args:[f,{static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],optionsList:[{type:h.ViewChild,args:["optionsList",{static:!1}]}],template:[{type:h.ContentChild,args:[ue,{static:!1}]}],customItemTemplate:[{type:h.ContentChild,args:[mt,{static:!1}]}],groupTemplate:[{type:h.ContentChild,args:[he,{static:!1}]}],fixedGroupTemplate:[{type:h.ContentChild,args:[ge,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],tagTemplate:[{type:h.ContentChild,args:[bt,{static:!1}]}],groupTagTemplate:[{type:h.ContentChild,args:[yt,{static:!1}]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],hostClasses:[{type:h.HostBinding,args:["class.k-multiselect"]},{type:h.HostBinding,args:["class.k-input"]}],dir:[{type:h.HostBinding,args:["attr.dir"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],handleKeyboardEvent:[{type:h.HostListener,args:["keydown",["$event"]]}],hostMousedown:[{type:h.HostListener,args:["mousedown",["$event"]]}]}});function Dt(){var e;return isNaN(Et)&&((e=document.createElement("div")).style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML="&nbsp;",document.body.appendChild(e),Et=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)),Et}function wt(e){var t;return c(t=e)&&0!==t.length&&t.toArray().every(function(e){return!isNaN(e.width)&&0<e.width})?(t=Dt()+2,e.reduce(function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e},t)):null}var Et,Ft,Tt=function(e){this.templateRef=e},Ot=(Tt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Tt,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),Tt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Tt,selector:"[kendoMultiColumnComboBoxColumnCellTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Tt,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),Pt=(Ot.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ot,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),Ot.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ot,selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ot,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(){this.hidden=!1,this.matchesMedia=!0}),Mt=(Pt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Pt,deps:[],target:o.ɵɵFactoryTarget.Component}),Pt.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Pt,selector:"kendo-combobox-column",inputs:{field:"field",title:"title",width:"width",hidden:"hidden",style:"style",headerStyle:"headerStyle",class:"class",headerClass:"headerClass",media:"media"},queries:[{propertyName:"cellTemplate",first:!0,predicate:Tt,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:Ot,descendants:!0}],ngImport:o,template:"",isInline:!0}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Pt,decorators:[{type:h.Component,args:[{selector:"kendo-combobox-column",template:""}]}],propDecorators:{cellTemplate:[{type:h.ContentChild,args:[Tt,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],field:[{type:h.Input}],title:[{type:h.Input}],width:[{type:h.Input}],hidden:[{type:h.Input}],style:[{type:h.Input}],headerStyle:[{type:h.Input}],class:[{type:h.Input}],headerClass:[{type:h.Input}],media:[{type:h.Input}]}}),U(At,Ft=ut),Object.defineProperty(At.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"header",{set:function(e){this.updateHeaderPadding(e&&e.nativeElement)},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"popupWidth",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=e+"px",e=this.popupSettings.width||wt(this.columns)||e;return{min:t,max:isNaN(e)?e:e+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"tableSizeClass",{get:function(){return""+(this.size?l("table",this.size):"")},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"listContainerClasses",{get:function(){return["k-popup","k-dropdowngrid-popup"].concat(this.popupSettings.popupClass||[])},enumerable:!1,configurable:!0}),At.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},At.prototype.ngOnDestroy=function(){Ft.prototype.ngOnDestroy.call(this),this.removeWindowResizeListener()},At.prototype.textFrom=function(e,t){return u(e,t)},At.prototype.updateHeaderPadding=function(e){var t;c(e)&&(t=this.localization.rtl?"padding-left":"padding-right",this.optionsList.hasScrollbar()&&0<Dt()?this.renderer.setStyle(e,t,Dt()+"px"):this.renderer.removeStyle(e,t))},At.prototype.verifySettings=function(){if(h.isDevMode()){if(c(this.data)&&0<this.data.length&&this.data.some(function(e){return!ce(e)}))throw new Error(tt);if(!c(this.valueField)||!c(this.textField))throw new Error(nt);Ft.prototype.verifySettings.call(this)}},At.prototype.addWindowResizeListener=function(){var e=this;p.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))})},At.prototype.updateColumnsMediaState=function(){var n=this;c(this.columns)&&p.isDocumentAvailable()&&this.columns.forEach(function(e){var t=!e.media||window.matchMedia(e.media).matches;e.matchesMedia!==t&&(e.matchesMedia=t,n.isOpen&&n.zone.run(function(){return n.popupRef.popupElement.style.width=n.popupWidth.max}))})},At);function At(e,t,n,i,o,s,a,r,l,p,d){p=Ft.call(this,p,e,t,n,i,o,s,a,r,l,d)||this;return p.hostClasses=!0,p.removeWindowResizeListener=ie,p.defaultVirtualItemHeight=36,p.defaultVirtualPageSize=30,p}Mt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Mt,deps:[{token:a.LocalizationService},{token:H.PopupService},{token:x},{token:T},{token:k},{token:I},{token:o.NgZone},{token:o.ChangeDetectorRef},{token:o.Renderer2},{token:o.ElementRef},{token:Se}],target:o.ɵɵFactoryTarget.Component}),Mt.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Mt,selector:"kendo-multicolumncombobox",host:{properties:{"class.k-dropdowngrid":"this.hostClasses","class.k-disabled":"this.isDisabled"}},providers:[x,I,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Mt})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return Mt})},{provide:Ce,useExisting:h.forwardRef(function(){return Mt})}],queries:[{propertyName:"columns",predicate:Pt}],viewQueries:[{propertyName:"header",first:!0,predicate:["header"],descendants:!0}],usesInheritance:!0,ngImport:o,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 i18n-selectButtonText="kendo.multicolumncombobox.selectButtonText|The title of the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n\n <button\n #select\n tabindex="-1"\n aria-hidden="true"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--data table--\x3e\n <div class="k-data-table" [ngClass]="tableSizeClass">\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-table-header"\n >\n <div class="k-table-header-wrap">\n <table class="k-table" role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <thead class="k-table-thead">\n <tr class="k-table-row">\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-th"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-td"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [type]="\'dropdowngrid\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-no-data"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-table-footer">\n <table class="k-table">\n <tfoot class="k-table-tfoot">\n <tr class="k-table-row">\n <td class="k-table-td">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </ng-container>\n\n </div>\n\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:f,selector:"kendo-searchbar",inputs:["id","listId","tagListId","activeDescendant","disabled","readonly","tabIndex","popupOpen","role","isLoading","isSuggestable","isFilterable","userInput","suggestedText","placeholder"],outputs:["valueChange","onBlur","onFocus","onClick","onNavigate"]},{type:Pe,selector:"kendo-list",inputs:["selected","focused","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","id","optionPrefix","multipleSelection","virtual","type","checkboxes","ariaLive","isMultiselect","data","size","rounded"],outputs:["onClick","pageChange","listResize"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:Re,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:we,selector:"[templateContext]",inputs:["templateContext"]},{type:r.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:r.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Mt,decorators:[{type:h.Component,args:[{providers:[x,I,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Mt})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return Mt})},{provide:Ce,useExisting:h.forwardRef(function(){return Mt})}],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 i18n-selectButtonText="kendo.multicolumncombobox.selectButtonText|The title of the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n\n <button\n #select\n tabindex="-1"\n aria-hidden="true"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--data table--\x3e\n <div class="k-data-table" [ngClass]="tableSizeClass">\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-table-header"\n >\n <div class="k-table-header-wrap">\n <table class="k-table" role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <thead class="k-table-thead">\n <tr class="k-table-row">\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-th"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-td"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [type]="\'dropdowngrid\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-no-data"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-table-footer">\n <table class="k-table">\n <tfoot class="k-table-tfoot">\n <tr class="k-table-row">\n <td class="k-table-td">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </ng-container>\n\n </div>\n\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n '}]}],ctorParameters:function(){return[{type:a.LocalizationService},{type:H.PopupService},{type:x},{type:T},{type:k},{type:I},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:o.Renderer2},{type:o.ElementRef},{type:void 0,decorators:[{type:h.Inject,args:[Se]}]}]},propDecorators:{hostClasses:[{type:h.HostBinding,args:["class.k-dropdowngrid"]}],isDisabled:[{type:h.HostBinding,args:["class.k-disabled"]}],columns:[{type:h.ContentChildren,args:[Pt]}],header:[{type:h.ViewChild,args:["header",{static:!1}]}]}});function zt(){return!1}function Rt(){return g.of([])}function Bt(){return!1}function Vt(){return!0}var Nt=function(e){this.templateRef=e},Lt=(Nt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Nt,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),Nt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Nt,selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Nt,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),{animate:!0}),_t=(Object.defineProperty(M.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"id",{get:function(){return this.focusableId},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!1,configurable:!0}),M.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},M.prototype.handleKeydown=function(e){this.disabled||this.readonly||this.navigationService.process({originalEvent:e})},Object.defineProperty(M.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:!1,configurable:!0}),Object.defineProperty(M.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},Lt,e)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"dataItem",{get:function(){return this._dataItem||this.value},set:function(e){this._dataItem=e,this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,l("picker",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,l("picker",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,d(t)),this._rounded=t},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,pe("picker",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,pe("picker",t)),this._fillMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.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:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isOpen",{get:function(){return c(this.popupRef)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!1,configurable:!0}),M.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()})),this.setComponentClasses()},M.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},M.prototype.ngOnChanges=function(e){p.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},M.prototype.ngAfterContentChecked=function(){this.verifySettings()},M.prototype.isEmpty=function(){return!this.text&&!this.placeholder},M.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup())},M.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,p.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()})))},M.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.wrapper.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,p.hasObservers(this.onBlur)||ne(this.wrapper.nativeElement)?this._zone.run(function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()}):this.togglePopup(!1))},M.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),c(t)&&!this.treeview.isDisabled(t.item.dataItem,t.item.index)&&this.treeview.focus(e))},M.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},M.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},M.prototype.reset=function(){this.value=void 0,this.dataItem=void 0},M.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!c(n.popupRef);n.destroyPopup(),e&&n.createPopup()})},Object.defineProperty(M.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!1,configurable:!0}),M.prototype.onSelectionChange=function(e){var t=e.dataItem,e=e.index,e=(this.valueDepth=e.split("_").length-1,this.getField(this.valueField,t)),e=this.valuePrimitive?V.getter(e)(t):t;e!==this.value&&(this.value=e,this.dataItem=t,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()},M.prototype.messageFor=function(e){return this.localization.get(e)},M.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(M.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),M.prototype.preventEventDefault=function(e){e.preventDefault()},M.prototype.writeValue=function(e){!c(e)&&c(this.value)&&(this.dataItem=null),this.value=null===e?void 0:e},M.prototype.registerOnChange=function(e){this.onChangeCallback=e},M.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},M.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},M.prototype.handleFilterInputChange=function(e){var n=this;this.filterChange.next(e.value),this.allNodesHidden=this.nodes.every(function(e,t){return!n.isVisible(e,String(t))})},Object.defineProperty(M.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading k-input-loading-icon":"k-i-caret-alt-down"},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"selectButtonClasses",{get:function(){return(this.size?l("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"filterInputClasses",{get:function(){return(this.size?l("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?d(this.rounded):"")},enumerable:!1,configurable:!0}),M.prototype.verifySettings=function(){if(h.isDevMode()){if(!0===this.valuePrimitive&&c(this.value)&&"object"==typeof this.value)throw new Error(rt);if(!0===this.valuePrimitive&&c(this.value)&&"object"!=typeof this.dataItem)throw new Error(pt);if(!1===this.valuePrimitive&&c(this.value)&&"object"!=typeof this.value)throw new Error(lt);if(!c(this.valueField)||!c(this.textField))throw new Error(dt);if((de(this.valueField)||de(this.textField))&&c(this.value)&&!c(this.valueDepth))throw new Error(ct)}},M.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},M.prototype.getText=function(e,t){return c(t)&&c(e)?(e=this.getField(e,t),V.getter(e)(t)):null},M.prototype.getField=function(e,t){var n=e.length-1;return"string"==typeof e?e:c(this.valueDepth)?n<this.valueDepth?e[n]:e[this.valueDepth]:e.find(function(e){return e in t})},M.prototype.triggerPopupEvents=function(e){var t=new Ie;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},M.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",t=(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}),this.popupRef.popupElement),n=this.width,i=n.min,n=n.max;t.style.minWidth=i,t.style.width=n,t.style.height=this.height,t.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()})},M.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,p.hasObservers(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},M.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},M.prototype.setState=function(){var e;c(this.value)&&c(this.dataItem)&&c(this.valueField)?(this.text=this.getText(this.textField,this.dataItem),e=this.getField(this.valueField,this.dataItem),this.selectBy=e,this.selectedKeys=[V.getter(e)(this.dataItem)]):this.clearState(),this.cdr.markForCheck()},M.prototype.clearState=function(){this.text=void 0,this.selectedKeys=[]},M.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(m.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())}))},M.prototype.subscribeTouchEvents=function(){var t=this;p.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!se(t.wrapper,e,t.popupRef)&&t._zone.run(function(){t.isOpen&&t.treeview.blur(),t.blur()})})})},M.prototype.subscribeFocusEvents=function(){var e=this;p.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular(function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)}))},M.prototype.unSubscribeFocusEvents=function(){p.isDocumentAvailable()&&(document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0))},M.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},M.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},M.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)},M.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("picker",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,pe("picker",this.fillMode))},M);function M(e,t,n,i,o,s,a,r){this.wrapper=e,this.popupService=t,this.navigationService=n,this.renderer=i,this._zone=o,this.cdr=s,this.localization=a,this.touchEnabled=r,this.hostClasses=!0,this.role="listbox",this.ariaHasPopup="tree",this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.nodeExpand=new h.EventEmitter,this.nodeCollapse=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.clearButton=!0,this.hasChildren=zt,this.fetchChildren=Rt,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=Bt,this.isNodeVisible=Vt,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+p.guid(),this.selectedKeys=[],this.filterStateChange=new h.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+p.guid(),this._popupSettings=Lt,this._tabindex=0,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.onTouchedCallback=ie,this.onChangeCallback=ie,this.direction=a.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents()}_t.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:_t,deps:[{token:o.ElementRef},{token:H.PopupService},{token:T},{token:o.Renderer2},{token:o.NgZone},{token:o.ChangeDetectorRef},{token:a.LocalizationService},{token:Se,optional:!0}],target:o.ɵɵFactoryTarget.Component}),_t.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:_t,selector:"kendo-dropdowntree",inputs:{loading:"loading",clearButton:"clearButton",data:"data",value:"value",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",hasChildren:"hasChildren",fetchChildren:"fetchChildren",placeholder:"placeholder",popupSettings:"popupSettings",dataItem:"dataItem",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",valuePrimitive:"valuePrimitive",tabindex:"tabindex",size:"size",rounded:"rounded",fillMode:"fillMode",itemDisabled:"itemDisabled",isNodeExpanded:"isNodeExpanded",isNodeVisible:"isNodeVisible",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",focusableId:"focusableId"},outputs:{open:"open",opened:"opened",close:"close",closed:"closed",nodeExpand:"nodeExpand",nodeCollapse:"nodeCollapse",onFocus:"focus",onBlur:"blur",valueChange:"valueChange",filterChange:"filterChange"},host:{listeners:{click:"handleClick()",keydown:"handleKeydown($event)"},properties:{"class.k-dropdowntree":"this.hostClasses","class.k-picker":"this.hostClasses","class.k-disabled":"this.isDisabled","attr.aria-disabled":"this.isDisabled","class.k-loading":"this.isLoading","attr.id":"this.id","attr.dir":"this.direction","attr.tabindex":"this.hostTabIndex","attr.role":"this.role","attr.aria-haspopup":"this.ariaHasPopup","attr.aria-expanded":"this.isAriaExpanded","attr.readonly":"this.isReadonly","attr.aria-readonly":"this.isReadonly"}},providers:[I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return _t})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return _t})},{provide:n.DataBoundComponent,useExisting:h.forwardRef(function(){return _t})},{provide:n.ExpandableComponent,useExisting:h.forwardRef(function(){return _t})}],queries:[{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"nodeTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"valueTemplate",first:!0,predicate:Ve,descendants:!0}],viewQueries:[{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"treeview",first:!0,predicate:["treeview"],descendants:!0},{propertyName:"filterInput",first:!0,predicate:["filterInput"],descendants:!0}],exportAs:["kendoDropDownTree"],usesOnChanges:!0,ngImport:o,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 i18n-selectButtonText="kendo.dropdowntree.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span\n [attr.id]="valueLabelId"\n class="k-input-inner"\n role="option"\n >\n <span class="k-input-value-text">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate"> {{ text || placeholder }} </ng-template>\n </span>\n </span>\n <span\n *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n tabindex="-1"\n type="button"\n aria-hidden="true"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target)"\n [filterInput]="filterable && !touchEnabled"\n (keydown.arrowdown)="handleKeydown($event)"\n (keydown.alt.arrowup)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n </span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n *ngIf="data.length !== 0 && !allNodesHidden"\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n [(selectedKeys)]="selectedKeys"\n [selectBy]="selectBy"\n [textField]="textField"\n kendoTreeViewSelectable\n [children]="children"\n [hasChildren]="hasChildren"\n [loadOnDemand]="loadOnDemand"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (focusout)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n (selectionChange)="onSelectionChange($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:K.TreeViewComponent,selector:"kendo-treeview",inputs:["filterInputPlaceholder","expandDisabledNodes","animate","nodeTemplate","loadMoreButtonTemplate","trackBy","nodes","textField","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","navigable","children","loadOnDemand","filterable","filter","size","disableParentNodesOnly"],outputs:["childrenLoaded","blur","focus","expand","collapse","nodeDragStart","nodeDrag","filterStateChange","nodeDrop","nodeDragEnd","addItem","removeItem","checkedChange","selectionChange","filterChange","nodeClick","nodeDblClick"],exportAs:["kendoTreeView"]}],directives:[{type:Re,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:we,selector:"[templateContext]",inputs:["templateContext"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:j.DefaultValueAccessor,selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]"},{type:ht,selector:"[filterInput]",inputs:["filterInput"]},{type:j.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:j.NgModel,selector:"[ngModel]:not([formControlName]):not([formControl])",inputs:["name","disabled","ngModel","ngModelOptions"],outputs:["ngModelChange"],exportAs:["ngModel"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:K.SelectDirective,selector:"[kendoTreeViewSelectable]",inputs:["isSelected","selectBy","kendoTreeViewSelectable","selectedKeys"],outputs:["selectedKeysChange"]}],changeDetection:o.ChangeDetectionStrategy.OnPush}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:_t,decorators:[{type:h.Component,args:[{exportAs:"kendoDropDownTree",providers:[I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return _t})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return _t})},{provide:n.DataBoundComponent,useExisting:h.forwardRef(function(){return _t})},{provide:n.ExpandableComponent,useExisting:h.forwardRef(function(){return _t})}],selector:"kendo-dropdowntree",template:'\n <ng-container kendoDropDownTreeLocalizedMessages\n i18n-noDataText="kendo.dropdowntree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.dropdowntree.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-selectButtonText="kendo.dropdowntree.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span\n [attr.id]="valueLabelId"\n class="k-input-inner"\n role="option"\n >\n <span class="k-input-value-text">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate"> {{ text || placeholder }} </ng-template>\n </span>\n </span>\n <span\n *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n tabindex="-1"\n type="button"\n aria-hidden="true"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target)"\n [filterInput]="filterable && !touchEnabled"\n (keydown.arrowdown)="handleKeydown($event)"\n (keydown.alt.arrowup)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n </span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n *ngIf="data.length !== 0 && !allNodesHidden"\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n [(selectedKeys)]="selectedKeys"\n [selectBy]="selectBy"\n [textField]="textField"\n kendoTreeViewSelectable\n [children]="children"\n [hasChildren]="hasChildren"\n [loadOnDemand]="loadOnDemand"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (focusout)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n (selectionChange)="onSelectionChange($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',changeDetection:h.ChangeDetectionStrategy.OnPush}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:H.PopupService},{type:T},{type:o.Renderer2},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:a.LocalizationService},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[Se]}]}]},propDecorators:{hostClasses:[{type:h.HostBinding,args:["class.k-dropdowntree"]},{type:h.HostBinding,args:["class.k-picker"]}],isDisabled:[{type:h.HostBinding,args:["class.k-disabled"]},{type:h.HostBinding,args:["attr.aria-disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],id:[{type:h.HostBinding,args:["attr.id"]}],direction:[{type:h.HostBinding,args:["attr.dir"]}],hostTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],role:[{type:h.HostBinding,args:["attr.role"]}],ariaHasPopup:[{type:h.HostBinding,args:["attr.aria-haspopup"]}],isAriaExpanded:[{type:h.HostBinding,args:["attr.aria-expanded"]}],isReadonly:[{type:h.HostBinding,args:["attr.readonly"]},{type:h.HostBinding,args:["attr.aria-readonly"]}],handleClick:[{type:h.HostListener,args:["click"]}],handleKeydown:[{type:h.HostListener,args:["keydown",["$event"]]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],nodeTemplate:[{type:h.ContentChild,args:[Nt,{static:!1}]}],valueTemplate:[{type:h.ContentChild,args:[Ve,{static:!1}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],treeview:[{type:h.ViewChild,args:["treeview",{static:!1}]}],filterInput:[{type:h.ViewChild,args:["filterInput",{static:!1}]}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],nodeExpand:[{type:h.Output}],nodeCollapse:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],valueChange:[{type:h.Output}],filterChange:[{type:h.Output}],loading:[{type:h.Input}],clearButton:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],valueDepth:[{type:h.Input}],hasChildren:[{type:h.Input}],fetchChildren:[{type:h.Input}],placeholder:[{type:h.Input}],popupSettings:[{type:h.Input}],dataItem:[{type:h.Input}],listHeight:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],valuePrimitive:[{type:h.Input}],tabindex:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],itemDisabled:[{type:h.Input}],isNodeExpanded:[{type:h.Input}],isNodeVisible:[{type:h.Input}],loadOnDemand:[{type:h.Input}],filterable:[{type:h.Input}],filter:[{type:h.Input}],focusableId:[{type:h.Input}]}});function jt(e){return(e||{}).key}Kt.prototype.reset=function(){this.map.clear()},Kt.prototype.registerChildren=function(e,t){e=this.item(e);e&&(e.children=t)},Kt.prototype.item=function(e){return this.map.get(e)||null},Kt.prototype.registerItem=function(e,t){t={children:[],item:e,parent:this.item(jt(t))};this.map.set(e.key,t)},Kt.prototype.itemLookup=function(e){e=this.item(e);return e?{children:this.mapChildren(e.children),item:e.item,parent:e.parent}:null},Kt.prototype.mapChildren=function(e){var i=this;return(e=void 0===e?[]:e).map(function(e){var e=i.item(e.key),t=e.item,n=e.parent,e=e.children;return{children:i.mapChildren(e),item:t,parent:n}})};var Ht=Kt;function Kt(){this.map=new Map}Ht.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ht,deps:[],target:o.ɵɵFactoryTarget.Injectable}),Ht.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ht}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ht,decorators:[{type:h.Injectable}]});Gt.prototype.addItem=function(e){var t,n;this.isItemChecked(e)||(t=ae(e.index),n=this.getKey(e,t),e=Object.assign(Object.assign({},e),{level:t,key:n}),this.checkedItems.push(e),this.checkedKeys.add(n))},Gt.prototype.removeItem=function(e){var t,n,i,o=this;this.isItemChecked(e)&&(t=ae(e.index),n=this.getKey(e,t),i=Object.assign(Object.assign({},e),{level:t,key:n}),this.checkedItems=this.checkedItems.filter(function(e){return le(e,o.valueField)!==le(i,o.valueField)}),this.checkedKeys.delete(n))},Gt.prototype.isItemChecked=function(e){var t=e.index.split("_").length-1,e=(e.level=t,this.getKey(e,t));return this.checkedKeys.has(e)},Gt.prototype.updateItems=function(){this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(function(e){return e.key}))},Gt.prototype.getKey=function(e,t){return le(e,this.valueField)+"_"+(this.isHeterogeneous?t:0)};var $t=Gt;function Gt(){}$t.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:$t,deps:[],target:o.ɵɵFactoryTarget.Directive}),$t.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:$t,inputs:{valueField:"valueField",checkedItems:"checkedItems",isHeterogeneous:"isHeterogeneous"},ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:$t,decorators:[{type:h.Directive}],propDecorators:{valueField:[{type:h.Input}],checkedItems:[{type:h.Input}],isHeterogeneous:[{type:h.Input}]}});U(qt,Ut=$t),qt.prototype.handleChange=function(e){var n=this;this.currentCheckedState=e.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map(function(e,t){t=String(t),t=n.treeview.itemLookup(t);n.checkNode(t)}),this.checkedItemsChange.emit(this.checkedItems.slice())},Object.defineProperty(qt.prototype,"isIndeterminate",{get:function(){var n=this,e=this.treeview.nodes.some(function(e,t){t=String(t),t=n.treeview.itemLookup(t);return n.someChecked(t)});return!this.isChecked&&e},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"isChecked",{get:function(){var n=this;return this.treeview.nodes.every(function(e,t){t=String(t),t=n.treeview.itemLookup(t);return n.allChecked(t)})},enumerable:!1,configurable:!0}),qt.prototype.ngOnChanges=function(e){c(e.checkedItems)&&(this.updateItems(),this.renderer.setProperty(this.element.nativeElement,"checked",this.isChecked),this.renderer.setProperty(this.element.nativeElement,"indeterminate",this.isIndeterminate))},qt.prototype.ngOnInit=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},qt.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},qt.prototype.checkNode=function(e){var t,n=this;this.treeview.isDisabled(e.item.dataItem,e.item.index)||((t=[]).push(e.item),re(e,function(e){return n.treeview.isVisible(e.dataItem,e.index)&&!n.treeview.isDisabled(e.dataItem,e.index)}).forEach(function(e){return t.push(e.item)}),t.forEach(function(e){n.currentIndeterminateState?"check"===n.lastAction?n.addItem(e):n.removeItem(e):n.currentCheckedState?n.addItem(e):n.removeItem(e)}))},qt.prototype.allChecked=function(e){var t=this,n=e&&e.children;if(Array.isArray(n))return n.every(function(e){return e.children.length?t.isItemChecked(e.item)&&t.allChecked(e):t.isItemChecked(e.item)})&&this.isItemChecked(e.item)},qt.prototype.someChecked=function(e){var t=this,n=e&&e.children;if(Array.isArray(n))return n.some(function(e){return e.children.length?t.isItemChecked(e.item)||t.someChecked(e):t.isItemChecked(e.item)})||this.isItemChecked(e.item)};var Ut,Wt=qt;function qt(e,t,n,i){var o=Ut.call(this)||this;return o.element=e,o.zone=t,o.cdr=n,o.renderer=i,o.checkedItemsChange=new h.EventEmitter,o.checkedKeys=new Set,o}Wt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Wt,deps:[{token:o.ElementRef},{token:o.NgZone},{token:o.ChangeDetectorRef},{token:o.Renderer2}],target:o.ɵɵFactoryTarget.Directive}),Wt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Wt,selector:"[checkAll]",inputs:{lastAction:"lastAction",treeview:"treeview",checkedItems:"checkedItems",valueField:"valueField",focused:["checkAll","focused"]},outputs:{checkedItemsChange:"checkedItemsChange"},host:{listeners:{change:"handleChange($event.target)"}},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Wt,decorators:[{type:h.Directive,args:[{selector:"[checkAll]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:o.Renderer2}]},propDecorators:{lastAction:[{type:h.Input}],treeview:[{type:h.Input}],checkedItems:[{type:h.Input}],valueField:[{type:h.Input}],focused:[{type:h.Input,args:["checkAll"]}],checkedItemsChange:[{type:h.Output}],handleChange:[{type:h.HostListener,args:["change",["$event.target"]]}]}});U(Xt,Zt=$t),Xt.prototype.ngOnChanges=function(e){c(e.checkable)&&this.toggleCheckOnClick(),c(e.checkedItems)&&this.updateItems()},Xt.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},Xt.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},Xt.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},Xt.prototype.toggleCheckOnClick=function(){var t=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(m.filter(function(e){return"click"===e.type})).subscribe(function(e){e=t.treeView.itemLookup(e.item.index);t.handleCheckedChange(e)}))},Xt.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},Xt.prototype.checkNode=function(e){var t,n,i,o=this;this.treeView.isDisabled(e.item.dataItem,e.item.index)||(t=e.item,n=[t],this.checkable.checkChildren&&re(e,function(e){return o.treeView.isVisible(e.dataItem,e.index)&&!o.treeView.isDisabled(e.dataItem,e.index)}).forEach(function(e){return n.push(e.item)}),i=!this.isItemChecked(t),n.forEach(function(e){i?o.addItem(e):o.removeItem(e)}))},Xt.prototype.checkParents=function(e){for(var t=this,n=e;n;)n.children.every(function(e){return t.isItemChecked(e)})?this.addItem(n.item):this.removeItem(n.item),n=n.parent},Xt.prototype.isItemIndeterminate=function(e){var t=e.children;if(Array.isArray(t)&&0!==t.length)for(var n=0,i=t[n];c(i);){if(this.isItemChecked(i.item)||this.isItemIndeterminate(i))return!0;i=t[n+=1]}return!1};var Zt,$t=Xt;function Xt(e){var t=Zt.call(this)||this;return t.treeView=e,t.checkedItemsChange=new h.EventEmitter,t.checkedKeys=new Set,t.subscriptions=new g.Subscription,t.subscriptions.add(t.treeView.checkedChange.subscribe(t.handleCheckedChange.bind(t))),t.treeView.isChecked=t.getCheckedState.bind(t),t}$t.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:$t,deps:[{token:K.TreeViewComponent}],target:o.ɵɵFactoryTarget.Directive}),$t.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:$t,selector:"[kendoMultiSelectTreeCheckable]",inputs:{checkable:"checkable",valueField:"valueField",checkedItems:"checkedItems"},outputs:{checkedItemsChange:"checkedItemsChange"},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:$t,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectTreeCheckable]"}]}],ctorParameters:function(){return[{type:K.TreeViewComponent}]},propDecorators:{checkable:[{type:h.Input}],valueField:[{type:h.Input}],checkedItems:[{type:h.Input}],checkedItemsChange:[{type:h.Output}]}});function Qt(){return!1}function Jt(){return g.of([])}function Yt(){return!1}function en(){return!0}var tn={animate:!0},nn={checkChildren:!0,checkOnClick:!0},on=(Object.defineProperty(A.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"id",{get:function(){return this.focusableId},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"ariaDescribedBy",{get:function(){return this.tagListId},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"ariaActiveDescendant",{get:function(){return this.focusedTagId},enumerable:!1,configurable:!0}),A.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},A.prototype.handleKeydown=function(e){this.isWrapperActive&&e.keyCode===p.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||this.readonly||this.navigationService.process({originalEvent:e=e})===C.Open&&e.preventDefault()},Object.defineProperty(A.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:!1,configurable:!0}),Object.defineProperty(A.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=oe(e);this._tabindex=isNaN(e)?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,l("input",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,d(t)),this._rounded=t},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,pe("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",t)),this._fillMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},tn,e),this.cdr.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"checkableSettings",{get:function(){return this._checkableSettings},set:function(e){this._checkableSettings=Object.assign({},nn,e)},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"dataItems",{get:function(){var n=this;return this._dataItems||this.value.map(function(e,t){return{dataItem:e,index:null,level:n.valueDepth[t]||0,key:le({dataItem:e},n.valueField)+"_"+(n.isHeterogeneous?n.valueDepth[t]:0)}})},set:function(e){var n=this;this._dataItems=(e||[]).map(function(e,t){return te(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:n.valueDepth[t]||0,key:le({dataItem:e},n.valueField)+"_"+(n.isHeterogeneous?n.valueDepth[t]:0)}}),this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"focusedTagId",{get:function(){var e;return!c(this.focusedTagIndex)||this.isOpen?null:(e=this.tags[this.focusedTagIndex],this.tagPrefix+"-"+le({dataItem:e},this.valueField))},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isOpen",{get:function(){return c(this.popupRef)},enumerable:!1,configurable:!0}),Object.defineProperty(A.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:!1,configurable:!0}),Object.defineProperty(A.prototype,"height",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isTagFocused",{get:function(){return!this.isOpen&&void 0!==this.focusedTagIndex},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isTreeViewActive",{get:function(){return this.treeview&&this.treeview.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isWrapperActive",{get:function(){return document.activeElement===this.wrapper.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isFilterActive",{get:function(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isCheckAllActive",{get:function(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement},enumerable:!1,configurable:!0}),A.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()})),this.setComponentClasses()},A.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},A.prototype.ngOnChanges=function(e){var n=this;p.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&(this.isHeterogeneous=this.valueField&&de(this.valueField),this.setState()),p.anyChanged(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map(function(e,t){return Object.assign(Object.assign({},e),{level:n.valueDepth[t]||0})}):this.dataItems=this.value),p.anyChanged(["data","children","hasChildren","loadOnDemand","valueField"],e,!0)&&!this.loadOnDemand&&(this.lookup.reset(),this.registerLookupItems(this.data))},A.prototype.ngAfterContentChecked=function(){this.verifySettings()},A.prototype.ngAfterContentInit=function(){this.registerLookupItems(this.data)},A.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||c(this.value)&&0!==this.value.length)},A.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},A.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},A.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),c(t)&&!this.treeview.isDisabled(t.item.dataItem,t.item.index)&&this.treeview.focus(e))},A.prototype.reset=function(){this.value=[],this.dataItems=[],this.valueDepth=[]},A.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!c(n.popupRef);n.destroyPopup(),e&&n.createPopup()})},A.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,p.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus&&this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus())))},A.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.wrapper.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,this.togglePopup(!1),(p.hasObservers(this.onBlur)||ne(this.wrapper.nativeElement))&&this._zone.run(function(){t.onBlur.emit(),t.onTouchedCallback()}))},A.prototype.handleNodeClick=function(e){this.isFocused||(e=e.originalEvent.target.parentElement.parentElement,this.lastNodeOnFocus=e,this.focus())},A.prototype.togglePopup=function(e){var t=this,n=this.disabled||this.readonly,i=this.isOpen===e;this._zone.run(function(){t.focusedTagIndex=void 0}),n||i||(this.triggerPopupEvents(e)?this.removeTreeViewFromTabOrder():e?this.createPopup():this.destroyPopup())},A.prototype.messageFor=function(e){return this.localization.get(e)},A.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)},A.prototype.handleRemoveTag=function(e){var t,n,i,o,s=this,a=e.tag,e=e.index;this.disabled||this.readonly||(t=new It(a),this.removeTag.emit(t),t.isDefaultPrevented()||(a instanceof Array?(this.dataItems=this.dataItems.filter(function(e,t){return t<s.showAfter||s.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return t<s.showAfter||s.disabledIndices.has(t)})):(t=this.dataItems[e].key,a=this.lookup.itemLookup(t),n=[a.item],this.checkableSettings.checkChildren&&(re(a).forEach(function(e){return n.push(e.item)}),n.push.apply(n,q([],W(this.removeParents(a.parent))))),i=n.map(function(e){return e.key}),o=[],this.dataItems=this.dataItems.filter(function(e,t){return o.push(t),!i.includes(e.key)||s.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return o.includes(t)||s.disabledIndices.has(t)})),this.updateValue(this.dataItems),this.isFocused||this.focus()))},A.prototype.handleTagMapperChange=function(e){this.showAfter=oe(e),this.setTags()},A.prototype.clearAll=function(e){var n=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter(function(e,t){return n.disabledIndices.has(t)}),this.dataItems=this.dataItems.filter(function(e,t){return n.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return n.disabledIndices.has(t)}),this.emitValueChange(this.value)},A.prototype.writeValue=function(e){this.value=e||[],this.valuePrimitive||(this.dataItems=this.value)},A.prototype.registerOnChange=function(e){this.onChangeCallback=e},A.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},A.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},A.prototype.handleFilterInputChange=function(e){var n=this;this.filterChange.next(e.value),this.allNodesHidden=this.nodes.every(function(e,t){return!n.isVisible(e,String(t))})},Object.defineProperty(A.prototype,"filterInputClasses",{get:function(){return(this.size?l("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?d(this.rounded):"")},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"checkAllCheckboxClasses",{get:function(){return""+(this.size?l("checkbox",this.size):"")},enumerable:!1,configurable:!0}),A.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},A.prototype.verifySettings=function(){if(h.isDevMode()){if(!c(this.valueField)||!c(this.textField))throw new Error(qe);if(!de(this.value))throw new Error(Ke);if(0<this.value.length){if(this.valuePrimitive&&this.value.some(function(e){return ce(e)}))throw new Error($e);var e=this.dataItems.every(function(e){return ce(e.dataItem)});if(this.valuePrimitive&&!de(this.dataItems))throw new Error(Ue);if(this.valuePrimitive&&!e)throw new Error(Ue);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error(We);if(!this.valuePrimitive&&!J(this.value))throw new Error(Ge);if((de(this.valueField)||de(this.textField))&&!de(this.valueDepth))throw new Error(Ze);if((de(this.valueField)||de(this.textField))&&0===this.valueDepth.length)throw new Error(Ze);if((de(this.valueField)||de(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error(Xe)}}},A.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},A.prototype.triggerPopupEvents=function(e){var t=new Ie;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},A.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",t=(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}),this.popupRef.popupElement),n=this.width,i=n.min,n=n.max;t.style.minWidth=i,t.style.width=n,t.style.height=this.height,this.renderer.setAttribute(t,"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()})},A.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,p.hasObservers(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},A.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe(function(){return e.togglePopup(!0)}),this.navigationService.enter.pipe(m.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(function(){return e.togglePopup(!0)}),g.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(m.filter(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleRightKey:this.handleLeftKey).bind(this)),this.navigationService.right.pipe(m.filter(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleLeftKey:this.handleRightKey).bind(this)),this.navigationService.home.pipe(m.filter(function(){return!e.isOpen})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(m.filter(function(){return!e.isOpen})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(m.filter(function(){return e.isTagFocused})).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(m.filter(function(){return e.isTagFocused})).subscribe(this.handleDelete.bind(this)))},A.prototype.subscribeFocusEvents=function(){var e=this;p.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular(function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)}))},A.prototype.unSubscribeFocusEvents=function(){p.isDocumentAvailable()&&(document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0))},A.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},A.prototype.handleTabKey=function(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())},A.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()))},A.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)},A.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)},A.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--},A.prototype.handleEnd=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=this.tags.length-1},A.prototype.handleHome=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=0},A.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}))},A.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)},A.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.unSubscribeFocusEvents()},A.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"))})},A.prototype.setState=function(){c(this.dataItems)&&c(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()},A.prototype.setTags=function(){var e=this.dataItems.map(function(e){return e.dataItem});this.tags=this.tagMapper(e),this.disabledIndices=this.disabledItemsMapper()},A.prototype.updateValue=function(e){var t=this,e=this.valuePrimitive?e.map(function(e){return le(e,t.valueField)}):e.map(function(e){return e.dataItem});this.value=e,this.emitValueChange(this.value)},A.prototype.disabledItemsMapper=function(){var i=this;return new Set(this.dataItems.reduce(function(e,t,n){return i.itemDisabled(t.dataItem,t.index)&&e.push(n),e},[]))},A.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",this.fillMode))},A.prototype.removeParents=function(e){for(var t=e,n=[];t;)n.push(t.item),t=t.parent;return n},A.prototype.registerLookupItems=function(e,t,i){var n,o=this;void 0===t&&(t=null),void 0===i&&(i=0),c(e)&&0!==e.length&&(n=jt(t),e=e.map(function(e){return e=e,t=o.valueField,n=i,c(e)?{dataItem:e,key:le({dataItem:e,level:n},t)+"_"+n}:null;var t,n}),c(t)&&this.lookup.registerChildren(n,e),e.forEach(function(e){o.lookup.registerItem(e,t),o.loadOnDemand||o.registerChildLookupItems(e,i)}))},A.prototype.registerChildLookupItems=function(n,i){var o=this;this.hasChildren(n.dataItem)&&this.children(n.dataItem).subscribe(function(e){var t=o.isHeterogeneous?i+1:0;o.registerLookupItems(e,n,t)})},A);function A(e,t,n,i,o,s,a,r,l){this.wrapper=e,this.popupService=t,this.renderer=n,this.navigationService=i,this._zone=o,this.localization=s,this.cdr=a,this.lookup=r,this.touchEnabled=l,this.hostClasses=!0,this.role="combobox",this.ariaHasPopup="tree",this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId="k-"+p.guid(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=Qt,this.fetchChildren=Jt,this.isNodeVisible=en,this.itemDisabled=Yt,this.tagMapper=function(e){return e||[]},this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.nodeExpand=new h.EventEmitter,this.nodeCollapse=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.removeTag=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.filterStateChange=new h.EventEmitter,this.checkedItems=[],this.showAfter=0,this.allNodesHidden=!1,this.tagListId=p.guid(),this.tagPrefix="tag-"+p.guid(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=tn,this._checkableSettings=nn,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=ie,this.onChangeCallback=ie,this.direction=s.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeFocusEvents()}on.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:on,deps:[{token:o.ElementRef},{token:H.PopupService},{token:o.Renderer2},{token:T},{token:o.NgZone},{token:a.LocalizationService},{token:o.ChangeDetectorRef},{token:Ht},{token:Se,optional:!0}],target:o.ɵɵFactoryTarget.Component}),on.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:on,selector:"kendo-multiselecttree",inputs:{tabindex:"tabindex",size:"size",rounded:"rounded",fillMode:"fillMode",popupSettings:"popupSettings",checkableSettings:"checkableSettings",data:"data",value:"value",dataItems:"dataItems",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",loading:"loading",placeholder:"placeholder",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",valuePrimitive:"valuePrimitive",loadOnDemand:"loadOnDemand",focusableId:"focusableId",clearButton:"clearButton",filterable:"filterable",checkAll:"checkAll",hasChildren:"hasChildren",fetchChildren:"fetchChildren",isNodeExpanded:"isNodeExpanded",isNodeVisible:"isNodeVisible",itemDisabled:"itemDisabled",tagMapper:"tagMapper"},outputs:{onFocus:"focus",onBlur:"blur",open:"open",opened:"opened",close:"close",closed:"closed",nodeExpand:"nodeExpand",nodeCollapse:"nodeCollapse",valueChange:"valueChange",removeTag:"removeTag",filterChange:"filterChange"},host:{listeners:{click:"handleClick()",keydown:"handleKeydown($event)"},properties:{"class.k-dropdowntree":"this.hostClasses","class.k-input":"this.hostClasses","class.k-disabled":"this.isDisabled","attr.aria-disabled":"this.isDisabled","class.k-loading":"this.isLoading","attr.id":"this.id","attr.dir":"this.direction","attr.tabindex":"this.hostTabIndex","attr.role":"this.role","attr.aria-expanded":"this.isAriaExpanded","attr.aria-haspopup":"this.ariaHasPopup","attr.readonly":"this.isReadonly","attr.aria-readonly":"this.isReadonly","attr.aria-describedby":"this.ariaDescribedBy","attr.aria-activedescendant":"this.ariaActiveDescendant"}},providers:[t.LocalizationService,T,I,k,x,Ht,{provide:t.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return on})},{provide:n.DataBoundComponent,useExisting:h.forwardRef(function(){return on})},{provide:n.ExpandableComponent,useExisting:h.forwardRef(function(){return on})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return on})}],queries:[{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"nodeTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0},{propertyName:"tagTemplate",first:!0,predicate:bt,descendants:!0},{propertyName:"groupTagTemplate",first:!0,predicate:yt,descendants:!0}],viewQueries:[{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"treeview",first:!0,predicate:["treeview"],descendants:!0},{propertyName:"filterInput",first:!0,predicate:["filterInput"],descendants:!0},{propertyName:"checkAllInput",first:!0,predicate:["checkAllInput"],descendants:!0}],exportAs:["kendoMultiSelectTree"],usesOnChanges:!0,ngImport:o,template:'\n <ng-container kendoMultiSelectTreeLocalizedMessages\n i18n-noDataText="kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multiselecttree.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-checkAllText="kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox"\n checkAllText="Check all"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [focused]="focusedTagIndex"\n [textField]="textField"\n [valueField]="valueField"\n [valueDepth]="valueDepth"\n [disabled]="disabled"\n [tagPrefix]="tagPrefix"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <span *ngIf="!tags || !tags.length"\n class="k-input-inner k-readonly"\n >\n <span class="k-input-value-text">{{ placeholder }}</span>\n </span>\n </kendo-taglist>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-clear-value"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading k-input-loading-icon"\n >\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target)"\n [filterInput]="filterable && !touchEnabled"\n (keydown)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n </span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkAllCheckboxClasses"\n role="checkbox"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [treeview]="treeview"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [lastAction]="lastAction"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n class="k-checkbox-label"\n (click)="toggleCheckAll()"\n (mousedown)="$event.preventDefault()"\n >\n {{ messageFor(\'checkAllText\') }}\n </span>\n </div>\n <kendo-treeview\n #treeview\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n kendoMultiSelectTreeCheckable\n [checkable]="checkableSettings"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [textField]="textField"\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [loadOnDemand]="loadOnDemand"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (keydown)="handleKeydown($event)"\n (nodeClick)="handleNodeClick($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n [kendoEventsOutsideAngular]="{\n focusout: handleBlur\n }"\n [scope]="this"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data?.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:Ct,selector:"kendo-taglist",inputs:["tags","textField","valueField","valueDepth","focused","template","groupTemplate","disabled","tagPrefix","id","size","rounded","fillMode","disabledIndices"],outputs:["removeTag"]},{type:K.TreeViewComponent,selector:"kendo-treeview",inputs:["filterInputPlaceholder","expandDisabledNodes","animate","nodeTemplate","loadMoreButtonTemplate","trackBy","nodes","textField","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","navigable","children","loadOnDemand","filterable","filter","size","disableParentNodesOnly"],outputs:["childrenLoaded","blur","focus","expand","collapse","nodeDragStart","nodeDrag","filterStateChange","nodeDrop","nodeDragEnd","addItem","removeItem","checkedChange","selectionChange","filterChange","nodeClick","nodeDblClick"],exportAs:["kendoTreeView"]}],directives:[{type:Re,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:j.DefaultValueAccessor,selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]"},{type:ht,selector:"[filterInput]",inputs:["filterInput"]},{type:j.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:j.NgModel,selector:"[ngModel]:not([formControlName]):not([formControl])",inputs:["name","disabled","ngModel","ngModelOptions"],outputs:["ngModelChange"],exportAs:["ngModel"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:we,selector:"[templateContext]",inputs:["templateContext"]},{type:Wt,selector:"[checkAll]",inputs:["lastAction","treeview","checkedItems","valueField","checkAll"],outputs:["checkedItemsChange"]},{type:$t,selector:"[kendoMultiSelectTreeCheckable]",inputs:["checkable","valueField","checkedItems"],outputs:["checkedItemsChange"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:on,decorators:[{type:h.Component,args:[{exportAs:"kendoMultiSelectTree",providers:[t.LocalizationService,T,I,k,x,Ht,{provide:t.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return on})},{provide:n.DataBoundComponent,useExisting:h.forwardRef(function(){return on})},{provide:n.ExpandableComponent,useExisting:h.forwardRef(function(){return on})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return on})}],selector:"kendo-multiselecttree",template:'\n <ng-container kendoMultiSelectTreeLocalizedMessages\n i18n-noDataText="kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multiselecttree.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-checkAllText="kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox"\n checkAllText="Check all"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [focused]="focusedTagIndex"\n [textField]="textField"\n [valueField]="valueField"\n [valueDepth]="valueDepth"\n [disabled]="disabled"\n [tagPrefix]="tagPrefix"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <span *ngIf="!tags || !tags.length"\n class="k-input-inner k-readonly"\n >\n <span class="k-input-value-text">{{ placeholder }}</span>\n </span>\n </kendo-taglist>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-clear-value"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading k-input-loading-icon"\n >\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target)"\n [filterInput]="filterable && !touchEnabled"\n (keydown)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n </span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkAllCheckboxClasses"\n role="checkbox"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [treeview]="treeview"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [lastAction]="lastAction"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n class="k-checkbox-label"\n (click)="toggleCheckAll()"\n (mousedown)="$event.preventDefault()"\n >\n {{ messageFor(\'checkAllText\') }}\n </span>\n </div>\n <kendo-treeview\n #treeview\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n kendoMultiSelectTreeCheckable\n [checkable]="checkableSettings"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [textField]="textField"\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [loadOnDemand]="loadOnDemand"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (keydown)="handleKeydown($event)"\n (nodeClick)="handleNodeClick($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n [kendoEventsOutsideAngular]="{\n focusout: handleBlur\n }"\n [scope]="this"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data?.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:H.PopupService},{type:o.Renderer2},{type:T},{type:o.NgZone},{type:a.LocalizationService},{type:o.ChangeDetectorRef},{type:Ht},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[Se]}]}]},propDecorators:{hostClasses:[{type:h.HostBinding,args:["class.k-dropdowntree"]},{type:h.HostBinding,args:["class.k-input"]}],isDisabled:[{type:h.HostBinding,args:["class.k-disabled"]},{type:h.HostBinding,args:["attr.aria-disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],id:[{type:h.HostBinding,args:["attr.id"]}],direction:[{type:h.HostBinding,args:["attr.dir"]}],hostTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],role:[{type:h.HostBinding,args:["attr.role"]}],isAriaExpanded:[{type:h.HostBinding,args:["attr.aria-expanded"]}],ariaHasPopup:[{type:h.HostBinding,args:["attr.aria-haspopup"]}],isReadonly:[{type:h.HostBinding,args:["attr.readonly"]},{type:h.HostBinding,args:["attr.aria-readonly"]}],ariaDescribedBy:[{type:h.HostBinding,args:["attr.aria-describedby"]}],ariaActiveDescendant:[{type:h.HostBinding,args:["attr.aria-activedescendant"]}],handleClick:[{type:h.HostListener,args:["click"]}],handleKeydown:[{type:h.HostListener,args:["keydown",["$event"]]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],nodeTemplate:[{type:h.ContentChild,args:[Nt,{static:!1}]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],tagTemplate:[{type:h.ContentChild,args:[bt,{static:!1}]}],groupTagTemplate:[{type:h.ContentChild,args:[yt,{static:!1}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],treeview:[{type:h.ViewChild,args:["treeview",{static:!1}]}],filterInput:[{type:h.ViewChild,args:["filterInput",{static:!1}]}],checkAllInput:[{type:h.ViewChild,args:["checkAllInput",{static:!1}]}],tabindex:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],popupSettings:[{type:h.Input}],checkableSettings:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],dataItems:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],valueDepth:[{type:h.Input}],loading:[{type:h.Input}],placeholder:[{type:h.Input}],listHeight:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],valuePrimitive:[{type:h.Input}],loadOnDemand:[{type:h.Input}],focusableId:[{type:h.Input}],clearButton:[{type:h.Input}],filterable:[{type:h.Input}],checkAll:[{type:h.Input}],hasChildren:[{type:h.Input}],fetchChildren:[{type:h.Input}],isNodeExpanded:[{type:h.Input}],isNodeVisible:[{type:h.Input}],itemDisabled:[{type:h.Input}],tagMapper:[{type:h.Input}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],nodeExpand:[{type:h.Output}],nodeCollapse:[{type:h.Output}],valueChange:[{type:h.Output}],removeTag:[{type:h.Output}],filterChange:[{type:h.Output}]}});U(an,sn=n.FlatDataBindingDirective),Object.defineProperty(an.prototype,"filter",{set:function(e){sn.prototype.filter=e},enumerable:!1,configurable:!0}),an.prototype.ngOnChanges=function(e){p.isChanged("nodes",e,!1)&&(this.dropDownTree.nodes=e.nodes.currentValue,sn.prototype.nodes=e.nodes.currentValue),sn.prototype.ngOnChanges.call(this,e)};var sn,r=an;function an(e){var t=sn.call(this,e)||this;return t.dropDownTree=e,t}r.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:r,deps:[{token:K.DataBoundComponent}],target:o.ɵɵFactoryTarget.Directive}),r.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:r,selector:"[kendoDropDownTreeFlatBinding]",inputs:{nodes:["kendoDropDownTreeFlatBinding","nodes"],idField:["valueField","idField"]},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:r,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownTreeFlatBinding]"}]}],ctorParameters:function(){return[{type:K.DataBoundComponent}]},propDecorators:{nodes:[{type:h.Input,args:["kendoDropDownTreeFlatBinding"]}],idField:[{type:h.Input,args:["valueField"]}]}});U(ln,rn=n.HierarchyBindingDirective),Object.defineProperty(ln.prototype,"filter",{set:function(e){rn.prototype.filter=e},enumerable:!1,configurable:!0}),ln.prototype.ngOnChanges=function(e){p.isChanged("nodes",e,!1)&&(this.dropDownTree.nodes=e.nodes.currentValue,rn.prototype.nodes=e.nodes.currentValue),rn.prototype.ngOnChanges.call(this,e)};var rn,j=ln;function ln(e){var t=rn.call(this,e)||this;return t.dropDownTree=e,t}j.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:j,deps:[{token:K.DataBoundComponent}],target:o.ɵɵFactoryTarget.Directive}),j.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:j,selector:"[kendoDropDownTreeHierarchyBinding]",inputs:{nodes:["kendoDropDownTreeHierarchyBinding","nodes"]},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:j,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownTreeHierarchyBinding]"}]}],ctorParameters:function(){return[{type:K.DataBoundComponent}]},propDecorators:{nodes:[{type:h.Input,args:["kendoDropDownTreeHierarchyBinding"]}]}});U(dn,pn=n.FlatDataBindingDirective),Object.defineProperty(dn.prototype,"filter",{set:function(e){pn.prototype.filter=e},enumerable:!1,configurable:!0}),dn.prototype.ngOnChanges=function(e){p.isChanged("nodes",e,!1)&&(this.multiSelectTree.nodes=e.nodes.currentValue,pn.prototype.nodes=e.nodes.currentValue),pn.prototype.ngOnChanges.call(this,e)};var pn,s=dn;function dn(e){var t=pn.call(this,e)||this;return t.multiSelectTree=e,t}s.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:s,deps:[{token:K.DataBoundComponent}],target:o.ɵɵFactoryTarget.Directive}),s.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:s,selector:"[kendoMultiSelectTreeFlatBinding]",inputs:{nodes:["kendoMultiSelectTreeFlatBinding","nodes"],idField:["valueField","idField"]},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:s,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectTreeFlatBinding]"}]}],ctorParameters:function(){return[{type:K.DataBoundComponent}]},propDecorators:{nodes:[{type:h.Input,args:["kendoMultiSelectTreeFlatBinding"]}],idField:[{type:h.Input,args:["valueField"]}]}});U(un,cn=n.HierarchyBindingDirective),Object.defineProperty(un.prototype,"filter",{set:function(e){cn.prototype.filter=e},enumerable:!1,configurable:!0}),un.prototype.ngOnChanges=function(e){p.isChanged("nodes",e,!1)&&(this.multiSelectTree.nodes=e.nodes.currentValue,cn.prototype.nodes=e.nodes.currentValue),cn.prototype.ngOnChanges.call(this,e)};var cn,t=un;function un(e){var t=cn.call(this,e)||this;return t.multiSelectTree=e,t}t.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:t,deps:[{token:K.DataBoundComponent}],target:o.ɵɵFactoryTarget.Directive}),t.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"[kendoMultiSelectTreeHierarchyBinding]",inputs:{nodes:["kendoMultiSelectTreeHierarchyBinding","nodes"]},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:t,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectTreeHierarchyBinding]"}]}],ctorParameters:function(){return[{type:K.DataBoundComponent}]},propDecorators:{nodes:[{type:h.Input,args:["kendoMultiSelectTreeHierarchyBinding"]}]}});U(mn,hn=n.ExpandDirective),Object.defineProperty(mn.prototype,"isExpanded",{set:function(e){this.dropDownTree.isExpanded=e},enumerable:!1,configurable:!0});var hn,gn=mn;function mn(e){var t=hn.call(this,e)||this;return t.dropDownTree=e,t}gn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:gn,deps:[{token:K.ExpandableComponent}],target:o.ɵɵFactoryTarget.Directive}),gn.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:gn,selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]",inputs:{isExpanded:["isNodeExpanded","isExpanded"]},usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:gn,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}]}],ctorParameters:function(){return[{type:K.ExpandableComponent}]},propDecorators:{isExpanded:[{type:h.Input,args:["isNodeExpanded"]}]}});U(bn,fn=w),Object.defineProperty(bn.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var fn,vn=bn;function bn(e){var t=fn.call(this)||this;return t.service=e,t}vn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:vn,deps:[{token:a.LocalizationService}],target:o.ɵɵFactoryTarget.Component}),vn.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:vn,selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",providers:[{provide:w,useExisting:h.forwardRef(function(){return vn})}],usesInheritance:!0,ngImport:o,template:"",isInline:!0}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:vn,decorators:[{type:h.Component,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return vn})}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var yn={caseSensitive:!1,operator:"startsWith"},w=(Object.defineProperty(In.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!1,configurable:!0}),In.prototype.ngOnInit=function(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))},In.prototype.ngOnDestroy=function(){c(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},In.prototype.handleFilterChange=function(t){var n=this;this.component.data=this.data.filter(function(e){return n.matchesAnyField(e,t)})},In.prototype.matchesAnyField=function(t,e){var n=this,i=this.normalizeValue(e),e=this.filterSettings.fields;return 0===e.length?this.checkItem(t,i):e.some(function(e){return n.checkItem(u(t,e),i)})},In.prototype.checkItem=function(e,t){return e=this.normalizeValue(e),"contains"===this.filterSettings.operator?-1!==e.indexOf(t):0===e.indexOf(t)},In.prototype.normalizeValue=function(e){e=c(e)?e.toString():"";return this.filterSettings.caseSensitive?e:e.toLowerCase()},In.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?de(e)&&0<e.length?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(In.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=c(e)&&"object"==typeof e?e.fields:[];return Object.assign({},yn,e,{fields:this.getFilterFields(t)})},enumerable:!1,configurable:!0}),In);function In(e){this.component=e,this.filterable=!0,this._data=[]}w.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,deps:[{token:Ce}],target:o.ɵɵFactoryTarget.Directive}),w.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"[kendoDropDownFilter]",inputs:{data:"data",rawSettings:["kendoDropDownFilter","rawSettings"],filterable:"filterable"},ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownFilter]"}]}],ctorParameters:function(){return[{type:Ce}]},propDecorators:{data:[{type:h.Input}],rawSettings:[{type:h.Input,args:["kendoDropDownFilter"]}],filterable:[{type:h.Input}]}});var kn=[b,y,ue,he,ge,S,Ve,bt,yt,Re,vn,w,ht],z=function(){},kn=(z.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z,deps:[],target:o.ɵɵFactoryTarget.NgModule}),z.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z,declarations:[b,y,ue,he,ge,S,Ve,bt,yt,Re,vn,w,ht],exports:[b,y,ue,he,ge,S,Ve,bt,yt,Re,vn,w,ht]}),z.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z,decorators:[{type:h.NgModule,args:[{declarations:[kn],exports:[kn]}]}]}),[Pe,De,Fe,f,we,Ct,$t,Wt]),R=function(){},kn=(R.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,deps:[],target:o.ɵɵFactoryTarget.NgModule}),R.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,declarations:[Pe,De,Fe,f,we,Ct,$t,Wt],imports:[L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule],exports:[Pe,De,Fe,f,we,Ct,$t,Wt,L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule]}),R.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,imports:[[L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule],L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,decorators:[{type:h.NgModule,args:[{declarations:[kn],exports:[kn,L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule],imports:[L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule]}]}]}),Cn.prototype.ngOnChanges=function(e){c(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},Cn.prototype.createTagMapper=function(){var t=oe(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(e){return e.length>t?q(q([],W(e.slice(0,t))),[e.slice(t)]):e}},Cn);function Cn(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}kn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:kn,deps:[{token:on}],target:o.ɵɵFactoryTarget.Directive}),kn.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:kn,selector:"[kendoMultiSelectTreeSummaryTag]",inputs:{showAfter:["kendoMultiSelectTreeSummaryTag","showAfter"]},usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:kn,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectTreeSummaryTag]"}]}],ctorParameters:function(){return[{type:on}]},propDecorators:{showAfter:[{type:h.Input,args:["kendoMultiSelectTreeSummaryTag"]}]}});var L=[_t,on,r,j,s,t,gn,Nt,kn],xn=function(){},L=(xn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:xn,deps:[],target:o.ɵɵFactoryTarget.NgModule}),xn.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:xn,declarations:[_t,on,r,j,s,t,gn,Nt,kn],imports:[R,n.TreeViewModule],exports:[_t,on,r,j,s,t,gn,Nt,kn,z]}),xn.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:xn,imports:[[R,n.TreeViewModule],z]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:xn,decorators:[{type:h.NgModule,args:[{declarations:[L],exports:[L,z],imports:[R,n.TreeViewModule]}]}]}),Tn.prototype.ngOnChanges=function(e){c(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},Tn.prototype.createTagMapper=function(){var n=oe(this.showAfter);this.multiSelectComponent.tagMapper=function(e){var t;return e.length>n?(t=void 0,(t=e.slice(0,n)).push(e.slice(n,e.length)),t):e}},Tn);function Tn(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}L.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:L,deps:[{token:St}],target:o.ɵɵFactoryTarget.Directive}),L.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:L,selector:"[kendoMultiSelectSummaryTag]",inputs:{showAfter:["kendoMultiSelectSummaryTag","showAfter"]},usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:L,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectSummaryTag]"}]}],ctorParameters:function(){return[{type:St}]},propDecorators:{showAfter:[{type:h.Input,args:["kendoMultiSelectSummaryTag"]}]}});var n=[Ne],Sn=function(){},n=(Sn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Sn,deps:[],target:o.ɵɵFactoryTarget.NgModule}),Sn.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Sn,declarations:[Ne],imports:[R],exports:[Ne,z]}),Sn.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Sn,imports:[[R],z]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Sn,decorators:[{type:h.NgModule,args:[{declarations:[n],exports:[n,z],imports:[R]}]}]}),[ut,Mt,Pt,Ot,Tt]),Dn=function(){},n=(Dn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Dn,deps:[],target:o.ɵɵFactoryTarget.NgModule}),Dn.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Dn,declarations:[ut,Mt,Pt,Ot,Tt],imports:[R],exports:[ut,Mt,Pt,Ot,Tt,z]}),Dn.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Dn,providers:[{provide:Se,useValue:V.touchEnabled}],imports:[[R],z]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Dn,decorators:[{type:h.NgModule,args:[{declarations:[n],exports:[n,z],imports:[R],providers:[{provide:Se,useValue:V.touchEnabled}]}]}]}),[ft]),wn=function(){},n=(wn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:wn,deps:[],target:o.ɵɵFactoryTarget.NgModule}),wn.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:wn,declarations:[ft],imports:[R],exports:[ft,z]}),wn.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:wn,imports:[[R],z]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:wn,decorators:[{type:h.NgModule,args:[{declarations:[n],exports:[n,z],imports:[R]}]}]}),[St,L,mt]),En=function(){},n=(En.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:En,deps:[],target:o.ɵɵFactoryTarget.NgModule}),En.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:En,declarations:[St,L,mt],imports:[R],exports:[St,L,mt,z]}),En.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:En,providers:[{provide:Se,useValue:V.touchEnabled}],imports:[[R],z]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:En,decorators:[{type:h.NgModule,args:[{declarations:[n],exports:[n,z],imports:[R],providers:[{provide:Se,useValue:V.touchEnabled}]}]}]}),function(){});n.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:n,deps:[],target:o.ɵɵFactoryTarget.NgModule}),n.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:n,exports:[Sn,Dn,wn,En,xn]}),n.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:n,imports:[Sn,Dn,wn,En,xn]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:n,decorators:[{type:h.NgModule,args:[{exports:[Sn,Dn,wn,En,xn]}]}]}),Object.defineProperty(e,"PopupComponent",{enumerable:!0,get:function(){return N.PopupComponent}}),e.AutoCompleteComponent=Ne,e.AutoCompleteModule=Sn,e.CheckAllDirective=Wt,e.CheckDirective=$t,e.ColumnCellTemplateDirective=Tt,e.ColumnHeaderTemplateDirective=Ot,e.ComboBoxColumnComponent=Pt,e.ComboBoxComponent=ut,e.ComboBoxModule=Dn,e.CustomItemTemplateDirective=mt,e.CustomMessagesComponent=vn,e.DropDownListComponent=ft,e.DropDownListModule=wn,e.DropDownTreeComponent=_t,e.DropDownTreeFlatBindingDirective=r,e.DropDownTreeHierarchyBindingDirective=j,e.DropDownTreesExpandDirective=gn,e.DropDownTreesModule=xn,e.DropDownsModule=n,e.FilterDirective=w,e.FilterInputDirective=ht,e.FilterableComponent=Ce,e.FixedGroupTemplateDirective=ge,e.FooterTemplateDirective=y,e.GroupTagTemplateDirective=yt,e.GroupTemplateDirective=he,e.HeaderTemplateDirective=b,e.ItemTemplateDirective=ue,e.ListComponent=Pe,e.ListItemDirective=De,e.LocalizedMessagesDirective=Re,e.MultiColumnComboBoxComponent=Mt,e.MultiSelectComponent=St,e.MultiSelectModule=En,e.MultiSelectTreeComponent=on,e.MultiSelectTreeFlatBindingDirective=s,e.MultiSelectTreeHierarchyBindingDirective=t,e.MultiSelectTreeSummaryTagDirective=kn,e.NoDataTemplateDirective=S,e.NodeTemplateDirective=Nt,e.PreventableEvent=Ie,e.RemoveTagEvent=It,e.SearchBarComponent=f,e.SelectableDirective=Fe,e.SharedDirectivesModule=z,e.SharedModule=R,e.SummaryTagDirective=L,e.TagListComponent=Ct,e.TagTemplateDirective=bt,e.TemplateContextDirective=we,e.ValueTemplateDirective=Ve,Object.defineProperty(e,"__esModule",{value:!0})});
5
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-angular-common"),require("@angular/forms"),require("@progress/kendo-licensing"),require("@progress/kendo-common"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-popup"),require("rxjs/operators"),require("@angular/common"),require("@progress/kendo-angular-treeview")):"function"==typeof define&&define.amd?define("KendoAngularDropdowns",["exports","@angular/core","@progress/kendo-angular-common","@angular/forms","@progress/kendo-licensing","@progress/kendo-common","rxjs","@progress/kendo-angular-l10n","@progress/kendo-angular-popup","rxjs/operators","@angular/common","@progress/kendo-angular-treeview"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDropdowns={},e.ng.core,e.KendoAngularCommon,e.ng.forms,e.KendoLicensing,e.KendoCommon,e.rxjs,e.KendoAngularL10N,e.KendoAngularPopup,e.rxjs.operators,e.ng.common,e.KendoAngularTreeview)}(this,function(e,h,p,i,B,V,g,t,N,m,L,n){"use strict";function _(n){var i;return n&&n.__esModule?n:(i=Object.create(null),n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i))}var o=_(h),s=_(p),j=_(i),a=_(t),H=_(N),r=_(L),K=_(n),$={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1665041198,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"},G=function(e,t){return(G=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function U(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}G(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function W(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,s=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a}function q(e,t,n){if(n||2===arguments.length)for(var i,o=0,s=t.length;o<s;o++)!i&&o in t||((i=i||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;function Z(){for(var e,t="",n=0;n<32;n++)e=16*Math.random()|0,8!==n&&12!==n&&16!==n&&20!==n||(t+="-"),t+=(12===n?4:16===n?3&e|8:e).toString(16);return t}function X(e){return"string"==typeof e&&0===e.length}function Q(e,t,n){i=n;var i,o,s,a=ce(a=e)&&a.filter(function(e){return ue(e)&&c(u(e,i))})||[];return s=n,void 0===(o=t)&&(o=[]),(e.map(function(t){return o.find(function(e){return u(e,s)===t})}).filter(function(e){return void 0!==e})||[]).concat(a)}function J(e){return ce(e)&&e.every(function(e){return ue(e)})}function Y(e,t,n){var i=t.map(function(e){return c(e)&&c(u(e,n))?u(e,n):e});return e.reduce(function(e,t){t=c(t)&&c(u(t,n))?u(t,n):t,t=i.indexOf(t);return-1!==t&&e.push(t),e},[])}function ee(e,t,n){return!!c(e)&&(e=String(e),0===(e=n?e.toLowerCase():e).indexOf(t))}function te(t,e){return!!c(t)&&e.every(function(e){return t.hasOwnProperty(e)})}function ne(e){return e.className.includes("ng-untouched")}function ie(e){}function oe(e,t){return void 0===t&&(t=0),e=Number(e),isNaN(e)?t:e}function se(e,t,n){return e.nativeElement.contains(t)||n&&n.popupElement.contains(t)}function ae(e){return(e||"").split("_").length-1}function re(e,t){var n;return c(e)&&0!==e.children.length?(n=e.children,(n=c(t)?n.filter(function(e){return t(e.item)}):n).forEach(function(e){return n=n.concat(re(e,t))}),n):[]}function le(e,t){var n=e.dataItem,i=e.index,e=e.level,t=Array.isArray(t)?t:[t],e=c(e)?e:ae(i),i=t[Math.min(e,t.length-1)];return V.getter(i)(n)}function l(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}function d(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]}function pe(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}function de(e){return V.detectDesktopBrowser(e).safari||V.detectMobileOS(e)&&"mobilesafari"===V.detectMobileOS(e).browser}var c=function(e){return null!=e},ce=function(e){return Array.isArray(e)},ue=function(e){return c(e)&&"object"==typeof e},u=function(e,t){return c(e)?c(t)&&ue(e)?V.getter(t)(e):e:null},f=(Object.defineProperty(v.prototype,"isSuggestable",{get:function(){return this._isSuggestable},set:function(e){this._isSuggestable=e,this.setAriaAutocomplete()},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"isFilterable",{get:function(){return this._isFilterable},set:function(e){this._isFilterable=e,this.setAriaAutocomplete()},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"ariaExpanded",{get:function(){return"combobox"===this.role?this.popupOpen:null},enumerable:!1,configurable:!0}),v.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"}))},v.prototype.ngAfterContentChecked=function(){var e,t=this,n=null==(e=this.injector.get(i.NgControl,null))?void 0:e.control;(this.control=n)&&this.subs.add(n.valueChanges.subscribe(function(){t.control=n})),this.setAriaInvalid()},v.prototype.ngOnChanges=function(e){var t,n,i;this.input&&(e.userInput||e.suggestedText)&&(e=!e.userInput||!e.userInput.previousValue||this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"",t=this.input.nativeElement.selectionStart,e=e.length===t,this.writeInputValue(this.suggestedText?(n=this.userInput,i=this.suggestedText,n.concat(i.substr(i.toLowerCase().indexOf(n.toLowerCase())+n.length))):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):de(navigator.userAgent)&&!e?this.setInputSelection(t,this.userInput.length):e?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(t,t),this._previousValue=this.userInput)},v.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},v.prototype.writeInputValue=function(e){p.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},v.prototype.setInputSelection=function(e,t){if(p.isDocumentAvailable()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},v.prototype.setAriaInvalid=function(){this.control?this.control.invalid?this.renderer.setAttribute(this.input.nativeElement,"aria-invalid","true"):this.renderer.setAttribute(this.input.nativeElement,"aria-invalid","false"):this.renderer.removeAttribute(this.input.nativeElement,"aria-invalid")},v.prototype.setAriaAutocomplete=function(){this.isFilterable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","list"),this.isSuggestable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","inline"),this.isFilterable&&this.isSuggestable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","both"),this.isFilterable||this.isSuggestable||this.renderer.removeAttribute(this.input.nativeElement,"aria-autocomplete")},v.prototype.handleInput=function(e){var t=e.target,n=de(navigator.userAgent)&&(n=t.value,/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(n))?e.data:t.value;n!==this.userInput&&(this._previousValue=n,this.valueChange.emit(n))},v.prototype.handleFocus=function(e){this.onFocus.emit(e)},v.prototype.handleBlur=function(e){this.onBlur.emit(e)},v.prototype.handleKeydown=function(e){var t=e.keyCode;-1<[p.Keys.ArrowUp,p.Keys.ArrowDown,p.Keys.ArrowLeft,p.Keys.ArrowRight,p.Keys.Enter,p.Keys.Escape,p.Keys.Delete,p.Keys.Backspace,p.Keys.Home,p.Keys.End,p.Keys.PageDown,p.Keys.PageUp].indexOf(t)&&this.onNavigate.emit(e)},v.prototype.focus=function(){p.isDocumentAvailable()&&this.input.nativeElement.focus()},v.prototype.blur=function(){p.isDocumentAvailable()&&this.input.nativeElement.blur()},v.prototype.setInputSize=function(){function e(e){return e?e.length:0}var t=this.input.nativeElement,n=e(this.placeholder),i=e(this.value),n=Math.max(n,i,1);this.renderer.setAttribute(t,"size",n.toString())},v);function v(e,t,n){this.localization=e,this.injector=n,this.valueChange=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onClick=new h.EventEmitter,this.onNavigate=new h.EventEmitter,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this._isSuggestable=!1,this._isFilterable=!1,this.subs=new g.Subscription,this.direction=e.rtl?"rtl":"ltr",this.renderer=t}f.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,deps:[{token:a.LocalizationService},{token:o.Renderer2},{token:o.Injector}],target:o.ɵɵFactoryTarget.Component}),f.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"kendo-searchbar",inputs:{id:"id",listId:"listId",tagListId:"tagListId",activeDescendant:"activeDescendant",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",popupOpen:"popupOpen",role:"role",isLoading:"isLoading",isSuggestable:"isSuggestable",isFilterable:"isFilterable",userInput:"userInput",suggestedText:"suggestedText",placeholder:"placeholder"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},host:{properties:{"class.k-searchbar":"this.searchBarClass"}},viewQueries:[{propertyName:"input",first:!0,predicate:["input"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:o,template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input-inner\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-controls]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-busy]="isLoading"\n />\n ',isInline:!0,directives:[{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,decorators:[{type:h.Component,args:[{selector:"kendo-searchbar",template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input-inner\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-controls]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-busy]="isLoading"\n />\n '}]}],ctorParameters:function(){return[{type:a.LocalizationService},{type:o.Renderer2},{type:o.Injector}]},propDecorators:{id:[{type:h.Input}],listId:[{type:h.Input}],tagListId:[{type:h.Input}],activeDescendant:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],tabIndex:[{type:h.Input}],popupOpen:[{type:h.Input}],role:[{type:h.Input}],isLoading:[{type:h.Input}],isSuggestable:[{type:h.Input}],isFilterable:[{type:h.Input}],userInput:[{type:h.Input}],suggestedText:[{type:h.Input}],valueChange:[{type:h.Output}],onBlur:[{type:h.Output}],onFocus:[{type:h.Output}],onClick:[{type:h.Output}],onNavigate:[{type:h.Output}],input:[{type:h.ViewChild,args:["input",{static:!0}]}],searchBarClass:[{type:h.HostBinding,args:["class.k-searchbar"]}],placeholder:[{type:h.Input}]}});var he=function(e){this.templateRef=e},b=(he.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:he,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),he.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:he,selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:he,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),y=(b.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:b,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),b.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:b,selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:b,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),ge=(y.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:y,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),y.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:y,selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:y,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),me=(ge.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ge,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),ge.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ge,selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ge,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),I=(me.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:me,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),me.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:me,selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:me,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),Object.defineProperty(fe.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:!1,configurable:!0}),Object.defineProperty(fe.prototype,"itemsCount",{get:function(){return c(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(function(e){return!e.header}):this.data).length:0},enumerable:!1,configurable:!0}),fe.prototype.isGrouped=function(e){return c(e)&&0!==e.length&&c(e[0])&&te(e[0],["aggregates","field","items","value"])},fe.prototype.getGroupIndices=function(e){for(var t=[],n=0;n<=e.length-1;n++)t[n]=(t[n-1]||0)+e[n].items.length;return t},fe.prototype.filter=function(e){var t=[];if(this.isGrouped(this.data))for(var n=0;n<=this.groupIndices.length-1;n++){var i=this.data[n].items.filter(e);i&&(t=t.concat(i))}else t=this.data.filter(e);return t},fe.prototype.indexOf=function(t,e){var n=function(e){return e===t};return this.grouped&&(n=function(e){return e.value===t}),this.findIndex(n,e=void 0===e?0:e)},fe.prototype.findIndex=function(e,t){void 0===t&&(t=0);var n,i=-1;return i=this.grouped?(i=(n=this._flatData.filter(function(e){return!e.header&&e.offsetIndex>=t})).findIndex(e),n[i]?n[i].offsetIndex:-1):-1!==(n=(n=this.data.slice(t)).findIndex(e))?n+t:-1},fe.prototype.closestGroup=function(e){for(var t=e;0<=t;t--)if(this._flatData[t].header)return this._flatData[t]},fe.prototype.find=function(e){e=this.findIndex(e);return this.itemAt(e)},fe.prototype.flatIndex=function(t){var e;return 0===this.itemsCount?-1:this.grouped?(e=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t}))?e.index:-1:t},fe.prototype.itemAt=function(t){var e,n;return 0!==this.itemsCount&&(this.grouped?(n=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t}))&&(e=n.value):e=this.data[t]),e},fe.prototype.groupAt=function(t){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(e){return e.header&&e.index===t})},fe.prototype.groupItemsIndices=function(){var e,n,i;return this.isGrouped?(e=this.data,n=function(e){return e.header},i=function(e){return e.index},e.reduce(function(e,t){return n(t)?q(q([],W(e)),[i(t)]):e},[])):[]},fe.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},fe.prototype.itemGroup=function(e){var t;return e&&0!==this.itemsCount&&this.isGrouped&&(t=this.groupField())?u(e,t):void 0},fe.prototype.flatten=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=0);var o=[];c(t=void 0===t?void 0:t)&&o.push({header:!0,index:i+n,offsetIndex:i,value:t});for(var s=0;s<e.length;s++){var a=[];e[s].items?(a=this.flatten(e[s].items,e[s].value,n,s),n+=e[s].items.length):a.push({header:!1,index:i+n+s+1,offsetIndex:n+s,value:e[s]}),o=o.concat(a)}return o},fe);function fe(){this.grouped=!1,this.groupIndices=[]}I.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,deps:[],target:o.ɵɵFactoryTarget.Injectable}),I.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,decorators:[{type:h.Injectable}]});ve.prototype.isIndexDisabled=function(e){var t;if(this.itemDisabled)return t=this.dataService.itemAt(e),c(t)?this.itemDisabled({dataItem:t,index:e}):c(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0},ve.prototype.isItemDisabled=function(e){var t;if(this.itemDisabled)return-1!==(t=this.dataService.indexOf(e))?this.itemDisabled({dataItem:e,index:t}):c(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0};var k=ve;function ve(e){this.dataService=e,this.itemDisabled=null}k.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k,deps:[{token:I}],target:o.ɵɵFactoryTarget.Injectable}),k.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:I}]}});be.prototype.getTotal=function(){return this.total},be.prototype.isSelected=function(t){return c(this.selectedIndices.find(function(e){return e===t}))},be.prototype.isFocused=function(e){return e===this.focused},be.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},be.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:c(e)}))},be.prototype.add=function(e,t){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice(),preventClosingPopup:t}))},be.prototype.emitMultipleAddedRemoved=function(){this.onChange.emit({added:this.indicesToBeAdded,removed:this.indicesToBeRemoved,indices:this.selectedIndices.slice(),preventClosingPopup:!0,isMultipleSelection:!0}),this.indicesToBeAdded=[],this.indicesToBeRemoved=[]},be.prototype.addMultiple=function(e){var t;this.indicesToBeAdded=e.slice(),(t=this.selectedIndices).push.apply(t,q([],W(e)))},be.prototype.deselect=function(e,t){var n;this.isSelected(e)&&(n=this.selectedIndices.indexOf(e),this.selectedIndices.splice(n,1),this.focused=e,0===this.selected.length&&(this.lastClickedIndex=null),this.onChange.emit({indices:this.selectedIndices.slice(),removed:e,preventClosingPopup:t}))},be.prototype.unselectMultiple=function(e){var t=this;e.forEach(function(e){e=t.selectedIndices.indexOf(e);t.selectedIndices.splice(e,1)}),this.indicesToBeRemoved=e.slice()},be.prototype.change=function(e){var t=c(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})},be.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(be.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!1,configurable:!0}),be.prototype.selectFromTo=function(e,t){for(var n=[],i=e;i<=t;i++)this.isSelected(i)||this.disabledItemsService.isIndexDisabled(i)||n.push(i);this.addMultiple(n)},be.prototype.unselectFromTo=function(e,t){for(var n=[],i=e;t<=i;i--)this.isSelected(i)&&!this.disabledItemsService.isIndexDisabled(i)&&n.push(i);this.unselectMultiple(n)},be.prototype.unselectNotNeededIndices=function(e,t,n){for(var i=[],o=0;o<e;o++)this.isSelected(o)&&i.push(o);for(o=t+1;o<n;o++)this.isSelected(o)&&i.push(o);this.unselectMultiple(i)};var C,x=be;function be(e){this.disabledItemsService=e,this.onSelect=new h.EventEmitter,this.onChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.total=0,this.selectedIndices=[],this.indicesToBeRemoved=[],this.indicesToBeAdded=[]}x.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:x,deps:[{token:k}],target:o.ɵɵFactoryTarget.Injectable}),x.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:x}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:x,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:k}]}}),(S=C=C||{})[S.Undefined=0]="Undefined",S[S.Open=1]="Open",S[S.Close=2]="Close",S[S.Enter=3]="Enter",S[S.Tab=4]="Tab",S[S.Esc=5]="Esc",S[S.Delete=6]="Delete",S[S.Backspace=7]="Backspace",S[S.Home=8]="Home",S[S.End=9]="End",S[S.Up=10]="Up",S[S.Down=11]="Down",S[S.Left=12]="Left",S[S.Right=13]="Right",S[S.PageDown=14]="PageDown",S[S.PageUp=15]="PageUp",S[S.SelectPrevious=16]="SelectPrevious",S[S.SelectNext=17]="SelectNext",S[S.SelectAll=18]="SelectAll",S[S.SelectAllToBeginning=19]="SelectAllToBeginning",S[S.SelectAllToEnd=20]="SelectAllToEnd";var ye=function(e,t){this.index=e,this.originalEvent=t},T=(Ie.prototype.process=function(e){var t,n=e.originalEvent.keyCode,i=e.originalEvent.altKey,o=e.originalEvent.shiftKey,s=e.originalEvent.ctrlKey||e.originalEvent.metaKey,a=C.Undefined,i=(i&&n===p.Keys.ArrowDown?a=C.Open:i&&n===p.Keys.ArrowUp?a=C.Close:o&&n===p.Keys.ArrowUp?a=C.SelectPrevious:o&&n===p.Keys.ArrowDown?a=C.SelectNext:s&&n===p.Keys.KeyA?a=C.SelectAll:s&&o&&n===p.Keys.Home?a=C.SelectAllToBeginning:s&&o&&n===p.Keys.End?a=C.SelectAllToEnd:n===p.Keys.Enter?a=C.Enter:n===p.Keys.Escape?a=C.Esc:n===p.Keys.Tab?a=C.Tab:n===p.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=C.Up):n===p.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),a=C.Left):n===p.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=C.Down):n===p.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),a=C.Right):n===p.Keys.Home?(t=this.isDisabled(0)?e.current:0,a=C.Home):n===p.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,a=C.End):n===p.Keys.Delete?a=C.Delete:n===p.Keys.Backspace?a=C.Backspace:n===p.Keys.PageDown?a=C.PageDown:n===p.Keys.PageUp&&(a=C.PageUp),new ye(t,e.originalEvent));return a!==C.Undefined&&this[C[a].toLowerCase()].emit(i),a},Ie.prototype.next=function(e){var t=e.current,n=e.start,i=e.end,e=e.step,o=c(t)?this.clampIndex(t+e,n,i):n,s=this.firstFocusableIndex(o,n,i,e);return c(s)?s:this.selectionService.isSelected(t)&&n<=t?t:this.firstFocusableIndex(o,n,i,-1*e)},Ie.prototype.clampIndex=function(e,t,n){return!c(e)||e<t?t:n<e?n:e},Ie.prototype.firstFocusableIndex=function(e,t,n,i){for(;t<=e&&e<=n;){if(!this.isDisabled(e))return e;e+=i}},Ie.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},Ie);function Ie(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.enter=new h.EventEmitter,this.tab=new h.EventEmitter,this.esc=new h.EventEmitter,this.up=new h.EventEmitter,this.right=new h.EventEmitter,this.down=new h.EventEmitter,this.left=new h.EventEmitter,this.delete=new h.EventEmitter,this.backspace=new h.EventEmitter,this.home=new h.EventEmitter,this.end=new h.EventEmitter,this.pagedown=new h.EventEmitter,this.pageup=new h.EventEmitter,this.selectnext=new h.EventEmitter,this.selectprevious=new h.EventEmitter,this.selectall=new h.EventEmitter,this.selectalltobeginning=new h.EventEmitter,this.selectalltoend=new h.EventEmitter}T.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:T,deps:[{token:k},{token:x}],target:o.ɵɵFactoryTarget.Injectable}),T.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:T}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:T,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:k},{type:x}]}});var S=function(e){this.templateRef=e},ke=(S.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:S,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),S.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:S,selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:S,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),Ce.prototype.preventDefault=function(){this.prevented=!0},Ce.prototype.isDefaultPrevented=function(){return this.prevented},Ce);function Ce(){this.prevented=!1}function xe(){}function Te(e,t){return t=Object.assign({},Se,t),!0===e?t:e?Object.assign({pageSize:Se.pageSize},e):null}var Se={pageSize:50,itemHeight:28},De=new h.InjectionToken("dropdowns-touch-enabled"),we=function(e){this.element=e},Ee=(we.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:we,deps:[{token:o.ElementRef}],target:o.ɵɵFactoryTarget.Directive}),we.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:we,selector:'"li[role=option], li[role=group]"',ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:we,decorators:[{type:h.Directive,args:[{selector:'"li[role=option], li[role=group]"'}]}],ctorParameters:function(){return[{type:o.ElementRef}]}}),Object.defineProperty(Fe.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:!1,configurable:!0}),Fe);function Fe(e){this.viewContainerRef=e}Ee.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ee,deps:[{token:o.ViewContainerRef}],target:o.ɵɵFactoryTarget.Directive}),Ee.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ee,selector:"[templateContext]",inputs:{templateContext:"templateContext"},ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ee,decorators:[{type:h.Directive,args:[{selector:"[templateContext]"}]}],ctorParameters:function(){return[{type:o.ViewContainerRef}]},propDecorators:{templateContext:[{type:h.Input}]}});Object.defineProperty(Pe.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!1,configurable:!0}),Pe.prototype.onClick=function(e){e.stopPropagation(),this.selectionService.lastClickedIndex=this.index,this.checkboxes.enabled&&!this.checkboxes.checkOnClick||(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.deselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))};var Oe=Pe;function Pe(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}Oe.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Oe,deps:[{token:x}],target:o.ɵɵFactoryTarget.Directive}),Oe.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Oe,selector:"[kendoDropDownsSelectable]",inputs:{index:"index",checkboxes:"checkboxes",height:"height",multipleSelection:"multipleSelection"},host:{listeners:{click:"onClick($event)"},properties:{"attr.index":"this.index","style.height.px":"this.height","style.minHeight.px":"this.height","class.k-focus":"this.focusedClassName","class.k-selected":"this.selectedClassName"}},ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Oe,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownsSelectable]"}]}],ctorParameters:function(){return[{type:x}]},propDecorators:{index:[{type:h.HostBinding,args:["attr.index"]},{type:h.Input}],checkboxes:[{type:h.Input}],height:[{type:h.HostBinding,args:["style.height.px"]},{type:h.HostBinding,args:["style.minHeight.px"]},{type:h.Input}],multipleSelection:[{type:h.Input}],focusedClassName:[{type:h.HostBinding,args:["class.k-focus"]}],selectedClassName:[{type:h.HostBinding,args:["class.k-selected"]}],onClick:[{type:h.HostListener,args:["click",["$event"]]}]}});Object.defineProperty(D.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"size",{get:function(){return this._size},set:function(e){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,l("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,l("list",e)),this._size=e)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"pageSize",{get:function(){return this.virtual.pageSize||Math.round(this.height/this.virtual.itemHeight)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"scrollHeight",{get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"overflowY",{get:function(){if(c(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"checkboxClasses",{get:function(){return(this.size?l("checkbox",this.size):"")+" "+(this.rounded?d(this.rounded):"")},enumerable:!1,configurable:!0}),D.prototype.ngOnChanges=function(e){p.isChanged("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),p.isChanged("virtual",e,!1)&&this.setOverflow(),p.isChanged("type",e,!1)&&this.prepareClasses()},D.prototype.ngAfterViewInit=function(){var e=this;this.setComponentClasses(),this.zone.runOutsideAngular(function(){e.scrollSubscription=g.fromEvent(e.content.nativeElement,"scroll").pipe(m.auditTime(100),m.tap(e.prefetchData.bind(e)),m.tap(e.findCurrentGroup.bind(e))).subscribe(function(){e.lastScrollTop=e.content.nativeElement.scrollTop})}),this.setOverflow()},D.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()},D.prototype.ngOnDestroy=function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},D.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.deselect(t)},D.prototype.prepareClasses=function(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")},D.prototype.isChecked=function(e){e=this.virtual?e+this.virtual.skip:e;return this.selectionService.isSelected(e)},D.prototype.firstVisibleItem=function(){var t=this,e=this.content.nativeElement,n=e.getBoundingClientRect(),e=Array.prototype.slice.call(e.querySelectorAll(".k-disabled")),n=(e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","auto")}),document.elementFromPoint(n.left+1,n.top+1));e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","none")});for(var i,o,s,a="li",r=n;null!==r&&1===r.nodeType;){if(o=a,s=void 0,!!(s=(i=r).matches||i.msMatchesSelector||i.webkitMatchesSelector)&&s.call(i,o))return r;r=r.parentElement||r.parentNode}return null},D.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},D.prototype.prefetchData=function(){var e,t,n,i,o;this.virtual&&(e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),n=this.content.nativeElement.scrollTop,t=Math.trunc(n/this.virtual.itemHeight),n=n>this.lastScrollTop,i=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,n&&i&&this.changePage(t),!n&&o&&this.changePage(t-this.pageSize+e+1))},D.prototype.changePage=function(t){var n=this;this.zone.run(function(){var e=n.pageSize+t;e>n.virtual.total&&(t--,e=n.virtual.total),t<0&&(t=0),n.startFrom=t,n.lastLoaded=e,n.pageChange.emit({skip:t,take:n.pageSize})})},D.prototype.index=function(e,t){return 0<e?this.dataService.groupIndices[e-1]+t:t},D.prototype.getText=function(e){return u(e,this.textField)},D.prototype.getValue=function(e){return u(e,this.valueField)},D.prototype.isDisabled=function(e){return c(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},D.prototype.isAltRow=function(e){return"dropdowngrid"===this.type&&e%2!=0},D.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(),c(e[t])&&-1!==t&&this.scroll(e[t].element))},D.prototype.scrollWithOnePage=function(e){var t=this.content.nativeElement,n=t.clientHeight;e===C.PageDown?t.scrollTop+=n:e===C.PageUp&&(t.scrollTop-=n)},D.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,n=t.scrollTop,e=e*this.virtual.itemHeight,i=this.virtual.itemHeight,o=t.clientHeight,i=e+i;e<n?n=e:n+o<i&&(n=i-o),t.scrollTop=n},D.prototype.scroll=function(e){var t,n,i,o;e&&(e=e.nativeElement,t=this.content.nativeElement,n=e.offsetTop,e=e.offsetHeight,i=t.scrollTop,o=t.clientHeight,e=n+e,n<i?i=n:i+o<e&&(i=e-o),t.scrollTop=i)},D.prototype.hasScrollbar=function(){return!!(c(this.items)&&this.items.length&&c(this.list)&&c(this.content))&&(c(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)},D.prototype.isItemSelected=function(e){return this.selectionService.isSelected(e)||null},D.prototype.setOverflow=function(){var e;this.virtual&&(e=this.hasVirtualScrollbar()?"scroll":"hidden",this.renderer.setStyle(this.content.nativeElement,"overflow-y",e))},D.prototype.hasVirtualScrollbar=function(){var e=this.content.nativeElement.offsetHeight,t=this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight;return this.virtualContainer&&e<t},D.prototype.positionItems=function(){var n=this;this.items.forEach(function(e,t){t=(t+n.startFrom)*n.virtual.itemHeight;n.renderer.setStyle(e.element.nativeElement,"transform","translateY("+t+"px")})},D.prototype.firstGroupHeaderInTargetedPage=function(e){return!c(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},D.prototype.setComponentClasses=function(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("list",this.size))),c(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)};var Me=D;function D(e,t,n,i,o,s,a){var r=this;this.dataService=e,this.wrapper=t,this.selectionService=n,this.disabledItemsService=i,this.cdr=o,this.zone=s,this.renderer=a,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.listResize=new h.EventEmitter,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=g.merge(this.selectionService.onSelect.pipe(m.map(function(e){return e.indices[0]})),this.selectionService.onFocus).pipe(m.switchMap(function(e){return r.zone.onStable.pipe(m.take(1),m.map(function(){return e}))})).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}Me.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Me,deps:[{token:I},{token:o.ElementRef},{token:x},{token:k},{token:o.ChangeDetectorRef},{token:o.NgZone},{token:o.Renderer2}],target:o.ɵɵFactoryTarget.Component}),Me.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Me,selector:"kendo-list",inputs:{selected:"selected",focused:"focused",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",show:"show",id:"id",optionPrefix:"optionPrefix",multipleSelection:"multipleSelection",virtual:"virtual",type:"type",checkboxes:"checkboxes",ariaLive:"ariaLive",isMultiselect:"isMultiselect",data:"data",size:"size",rounded:"rounded"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},viewQueries:[{propertyName:"content",first:!0,predicate:["content"],descendants:!0,static:!0},{propertyName:"list",first:!0,predicate:["list"],descendants:!0,static:!0},{propertyName:"virtualContainer",first:!0,predicate:["virtualContainer"],descendants:!0},{propertyName:"items",predicate:we,descendants:!0}],usesOnChanges:!0,ngImport:o,template:'\n <div *ngIf="dataService.grouped"\n [class]="listGroupStickyHeaderClass"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><span [class]="listGroupStickyHeaderTextClass">{{ currentGroup }}</span></ng-template>\n </div>\n <div #content\n [class]="listContentClass"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [attr.id]="id"\n [attr.aria-live]="ariaLive"\n [attr.aria-multiselectable]="isMultiselect"\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 [attr.aria-selected]="isItemSelected(itemIndex)"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(itemIndex),\n \'k-table-alt-row\': isAltRow(itemIndex)\n }"\n >\n <input\n *ngIf="checkboxes.enabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkboxClasses"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem) }}</span></ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n [class]="listGroupItemClass"\n [class.k-table-alt-row]="isAltRow(itemIndex - 1)"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <span [class]="listGroupItemTextClass">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ dataItem.value }}</ng-template>\n </span>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n [attr.aria-selected]="isItemSelected(dataItem.offsetIndex)"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(dataItem.offsetIndex),\n \'k-table-alt-row\': isAltRow(itemIndex - 1)\n }"\n >\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem.value) }}</span></ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" #virtualContainer class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n ',isInline:!0,components:[{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:r.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:Ee,selector:"[templateContext]",inputs:["templateContext"]},{type:r.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:we,selector:'"li[role=option], li[role=group]"'},{type:Oe,selector:"[kendoDropDownsSelectable]",inputs:["index","checkboxes","height","multipleSelection"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Me,decorators:[{type:h.Component,args:[{selector:"kendo-list",template:'\n <div *ngIf="dataService.grouped"\n [class]="listGroupStickyHeaderClass"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><span [class]="listGroupStickyHeaderTextClass">{{ currentGroup }}</span></ng-template>\n </div>\n <div #content\n [class]="listContentClass"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [attr.id]="id"\n [attr.aria-live]="ariaLive"\n [attr.aria-multiselectable]="isMultiselect"\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 [attr.aria-selected]="isItemSelected(itemIndex)"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(itemIndex),\n \'k-table-alt-row\': isAltRow(itemIndex)\n }"\n >\n <input\n *ngIf="checkboxes.enabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkboxClasses"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem) }}</span></ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n [class]="listGroupItemClass"\n [class.k-table-alt-row]="isAltRow(itemIndex - 1)"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <span [class]="listGroupItemTextClass">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ dataItem.value }}</ng-template>\n </span>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n [attr.aria-selected]="isItemSelected(dataItem.offsetIndex)"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(dataItem.offsetIndex),\n \'k-table-alt-row\': isAltRow(itemIndex - 1)\n }"\n >\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem.value) }}</span></ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" #virtualContainer class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n '}]}],ctorParameters:function(){return[{type:I},{type:o.ElementRef},{type:x},{type:k},{type:o.ChangeDetectorRef},{type:o.NgZone},{type:o.Renderer2}]},propDecorators:{selected:[{type:h.Input}],focused:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],height:[{type:h.Input}],template:[{type:h.Input}],groupTemplate:[{type:h.Input}],fixedGroupTemplate:[{type:h.Input}],show:[{type:h.Input}],id:[{type:h.Input}],optionPrefix:[{type:h.Input}],multipleSelection:[{type:h.Input}],virtual:[{type:h.Input}],type:[{type:h.Input}],checkboxes:[{type:h.Input}],ariaLive:[{type:h.Input}],isMultiselect:[{type:h.Input}],data:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],onClick:[{type:h.Output}],pageChange:[{type:h.Output}],listResize:[{type:h.Output}],items:[{type:h.ViewChildren,args:[we]}],content:[{type:h.ViewChild,args:["content",{static:!0}]}],list:[{type:h.ViewChild,args:["list",{static:!0}]}],virtualContainer:[{type:h.ViewChild,args:["virtualContainer",{static:!1}]}]}});U(ze,Ae=t.ComponentMessages);var Ae,w=ze;function ze(){return null!==Ae&&Ae.apply(this,arguments)||this}w.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,deps:null,target:o.ɵɵFactoryTarget.Directive}),w.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText",selectButtonText:"selectButtonText"},usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,decorators:[{type:h.Directive}],propDecorators:{noDataText:[{type:h.Input}],clearTitle:[{type:h.Input}],checkAllText:[{type:h.Input}],selectButtonText:[{type:h.Input}]}});U(Ve,Re=w);var Re,Be=Ve;function Ve(e){var t=Re.call(this)||this;return t.service=e,t}Be.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Be,deps:[{token:a.LocalizationService}],target:o.ɵɵFactoryTarget.Directive}),Be.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Be,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n ",providers:[{provide:w,useExisting:h.forwardRef(function(){return Be})}],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Be,decorators:[{type:h.Directive,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Be})}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var Ne={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Le})},Le=(Object.defineProperty(E.prototype,"width",{get:function(){var e=0,t=(p.isDocumentAvailable()&&(e=this.wrapper.offsetWidth),this.popupSettings.width||e);return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"height",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"suggestion",{get:function(){var e;if(this.text&&this.suggestedText)return e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()),this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0;this.suggestedText=void 0},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!1,configurable:!0}),E.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!n._open;n._toggle(e)})},Object.defineProperty(E.prototype,"isOpen",{get:function(){return this._open},enumerable:!1,configurable:!0}),E.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(E.prototype,"activeDescendant",{get:function(){var e;return this.isOpen&&c(this.selectionService.focused)&&-1!==this.selectionService.focused?(e=this.dataService.itemAt(this.selectionService.focused),this.optionPrefix+"-"+u(e,this.valueField)):null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"data",{get:function(){var e,t,n=this.virtual;return n?(t=(e=n.skip||0)+n.pageSize,n.total=this.dataService.data.length,this.dataService.data.slice(e,t)):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=u(this.dataService.itemAt(0),this.valueField))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"value",{get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Te(e)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper,l("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper,l("input",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper,d(t)),this._rounded=t},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper,pe("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper,pe("input",t)),this._fillMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),E.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.cdr.detectChanges()}),this.setComponentClasses()},E.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},E.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})},E.prototype.reset=function(){this.value=""},E.prototype.messageFor=function(e){return this.localization.get(e)},E.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])},E.prototype.writeValue=function(e){this.value=e},E.prototype.registerOnChange=function(e){this.onChangeCallback=e},E.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},E.prototype.setDisabledState=function(e){this.disabled=e},E.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;c(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},E.prototype.focus=function(){this.disabled||this.searchbar.focus()},E.prototype.blur=function(){this.disabled||this.searchbar.blur()},E.prototype.onResize=function(){var e,t,n;this._open&&(e=this.popupRef.popupElement,t=(n=this.width).min,n=n.max,e.style.minWidth=t,e.style.width=n)},E.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},E.prototype.verifySettings=function(e){if(h.isDevMode()&&c(e)&&"string"!=typeof e)throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/")},E.prototype.search=function(e,t){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=u(this.dataService.itemAt(t),this.valueField)))},E.prototype.navigate=function(e){this.isOpen&&this.selectionService.focus(e)},E.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;this.disabled||this.readonly||isNaN(t)||(t=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==C.Undefined&&t!==C.Backspace&&t!==C.Delete&&t!==C.Home&&t!==C.End&&t!==C.Left&&t!==C.Right&&t!==C.PageDown&&t!==C.PageUp&&(t===C.Enter&&this.isOpen||t!==C.Enter)&&e.preventDefault()},E.prototype.handleEnter=function(e){var t=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),t=0<=t?u(this.dataService.itemAt(t),this.valueField):(e=this.suggest&&this.suggestedText&&this.data.length&&u(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase(),this.isOpen&&e?this.suggestedText:this.searchbar.value),this.change(t)},E.prototype.handleEscape=function(){this.isOpen?this.togglePopup(!1):this.value="",this.selectionService.focused=-1,this.suggestedText=null},E.prototype.searchBarChange=function(e){var t=c(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)},E.prototype.handleFocus=function(){var e=this;this.isFocused=!0,p.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()})},E.prototype.handleBlur=function(){var e=this,t=this.filterable?this.selectionService.focused:-1,n=(this.searchbar.input.nativeElement.scrollLeft=0,(t=-1!==t?(t=this.dataService.itemAt(t),u(t,this.valueField)||""):this.searchbar.value)===this.searchbar.value),t=t.toLowerCase()===this.searchbar.value.toLowerCase(),i=(!n&&t&&this.selectionService.resetSelection([]),this.isFocused=!1,this.value!==this.text);p.hasObservers(this.onBlur)||p.hasObservers(this.close)||ne(this.wrapper)||i?this._zone.run(function(){i&&e.change(e.searchbar.value),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)},E.prototype.pageChange=function(e){this.virtual.skip=e.skip},E.prototype.change=function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)},E.prototype.subscribeEvents=function(){var n=this;p.isDocumentAvailable()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe(function(e){var t=n.value!==e;n.value=e,n.text=e,t&&n.emitChange(e)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=g.merge(this.navigationService.up,this.navigationService.down).subscribe(function(e){return n.navigate(e.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return n.togglePopup(!1)}),this.openSubscription=this.navigationService.open.subscribe(function(){return n.togglePopup(!0)}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.scrollSubscription=g.merge(this.navigationService.pagedown,this.navigationService.pageup).subscribe(function(e){n.isOpen&&(e.originalEvent.preventDefault(),n.optionsList.scrollWithOnePage(C[e.originalEvent.code]))}))},E.prototype.subscribeTouchEvents=function(){var t=this;p.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!se(t.hostElement,e,t.popupRef)&&t._zone.run(function(){return t.blur()})})})},E.prototype.unsubscribeEvents=function(){p.isDocumentAvailable()&&(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.scrollSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},E.prototype.handleItemChange=function(e){var e=e.indices.length?e.indices[0]:void 0;this.selectionService.resetSelection([-1]),c(e)&&(e=u(this.dataService.itemAt(e),this.valueField),this.change(e))},E.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&0<=t)&&(this.suggestedText=u(this.dataService.itemAt(t),this.valueField))},E.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(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"}}),this.popupRef.popupElement),n=this.width,i=n.min,n=n.max,i=(t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=i,t.style.width=n,t.style.height=this.height,t.setAttribute("dir",this.direction),t.querySelector("ul.k-list-ul")),n=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");n&&i.setAttribute("aria-labelledby",n),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})},E.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},E.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},E.prototype.triggerPopupEvents=function(e){var t=new ke;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},E.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},E.prototype.findIndexPredicate=function(t){var n=this;return this.dataService.grouped?function(e){e=u(e.value,n.valueField);return(e=c(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=u(e,n.valueField);return(e=c(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},E.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper,l("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper,pe("input",this.fillMode))},E);function E(e,t,n,i,o,s,a,r,l,p,d){this.localization=e,this.dataService=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=s,this._zone=a,this.cdr=r,this.renderer=l,this.hostElement=p,this.touchEnabled=d,this.highlightFirst=!0,this.focusableId="k-"+Z(),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.widgetClasses=!0,this.listBoxId=Z(),this.optionPrefix=Z(),this.onChangeCallback=ie,this.onTouchedCallback=ie,this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new g.Subject,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",B.validatePackage($),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}Le.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Le,deps:[{token:a.LocalizationService},{token:I},{token:H.PopupService},{token:x},{token:T},{token:k},{token:o.NgZone},{token:o.ChangeDetectorRef},{token:o.Renderer2},{token:o.ElementRef},{token:De,optional:!0}],target:o.ɵɵFactoryTarget.Component}),Le.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Le,selector:"kendo-autocomplete",inputs:{highlightFirst:"highlightFirst",focusableId:"focusableId",data:"data",value:"value",valueField:"valueField",placeholder:"placeholder",popupSettings:"popupSettings",listHeight:"listHeight",loading:"loading",clearButton:"clearButton",suggest:"suggest",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},host:{properties:{"class.k-autocomplete":"this.widgetClasses","class.k-input":"this.widgetClasses","class.k-disabled":"this.isDisabled","class.k-loading":"this.isLoading","attr.dir":"this.dir"}},providers:[Ne,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:xe,useExisting:h.forwardRef(function(){return Le})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return Le})}],queries:[{propertyName:"template",first:!0,predicate:he,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0},{propertyName:"groupTemplate",first:!0,predicate:ge,descendants:!0},{propertyName:"fixedGroupTemplate",first:!0,predicate:me,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"searchbar",first:!0,predicate:f,descendants:!0,static:!0},{propertyName:"optionsList",first:!0,predicate:["optionsList"],descendants:!0}],exportAs:["kendoAutoComplete"],usesOnChanges:!0,ngImport:o,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 [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [isLoading]="isLoading"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && (clearButton && text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearValue($event)"\n (mousedown)="$event.preventDefault()"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span *ngIf="loading" class="k-icon k-i-loading k-input-loading-icon"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 ',isInline:!0,components:[{type:f,selector:"kendo-searchbar",inputs:["id","listId","tagListId","activeDescendant","disabled","readonly","tabIndex","popupOpen","role","isLoading","isSuggestable","isFilterable","userInput","suggestedText","placeholder"],outputs:["valueChange","onBlur","onFocus","onClick","onNavigate"]},{type:Me,selector:"kendo-list",inputs:["selected","focused","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","id","optionPrefix","multipleSelection","virtual","type","checkboxes","ariaLive","isMultiselect","data","size","rounded"],outputs:["onClick","pageChange","listResize"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:Be,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:Ee,selector:"[templateContext]",inputs:["templateContext"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Le,decorators:[{type:h.Component,args:[{exportAs:"kendoAutoComplete",providers:[Ne,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:xe,useExisting:h.forwardRef(function(){return Le})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return Le})}],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 [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [isLoading]="isLoading"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && (clearButton && text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearValue($event)"\n (mousedown)="$event.preventDefault()"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span *ngIf="loading" class="k-icon k-i-loading k-input-loading-icon"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 '}]}],ctorParameters:function(){return[{type:a.LocalizationService},{type:I},{type:H.PopupService},{type:x},{type:T},{type:k},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:o.Renderer2},{type:o.ElementRef},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[De]}]}]},propDecorators:{highlightFirst:[{type:h.Input}],focusableId:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],valueField:[{type:h.Input}],placeholder:[{type:h.Input}],popupSettings:[{type:h.Input}],listHeight:[{type:h.Input}],loading:[{type:h.Input}],clearButton:[{type:h.Input}],suggest:[{type:h.Input}],disabled:[{type:h.Input}],itemDisabled:[{type:h.Input}],readonly:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input,args:["tabIndex"]}],filterable:[{type:h.Input}],virtual:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],filterChange:[{type:h.Output}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],template:[{type:h.ContentChild,args:[he,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],groupTemplate:[{type:h.ContentChild,args:[ge,{static:!1}]}],fixedGroupTemplate:[{type:h.ContentChild,args:[me,{static:!1}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],searchbar:[{type:h.ViewChild,args:[f,{static:!0}]}],optionsList:[{type:h.ViewChild,args:["optionsList",{static:!1}]}],widgetClasses:[{type:h.HostBinding,args:["class.k-autocomplete"]},{type:h.HostBinding,args:["class.k-input"]}],isDisabled:[{type:h.HostBinding,args:["class.k-disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],dir:[{type:h.HostBinding,args:["attr.dir"]}]}});var _e="Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",je="Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",He="Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",Ke="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",$e="Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection",Ge="Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values",Ue="Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values",We="Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",qe="Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",Ze="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding",Xe="Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth",Qe="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",Je="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",Ye="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",et="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",tt="Expected virtual.itemHeight of type number.",nt="Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/",it="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration",ot="defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem",st="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",at="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",rt="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",lt="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values",pt="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values",dt="Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem",ct="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding",ut="Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth",Ne={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ht})},ht=(Object.defineProperty(F.prototype,"text",{get:function(){return this._text},set:function(e){this._text=c(e)?e.toString():""},enumerable:!1,configurable:!0}),F.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(F.prototype,"activeDescendant",{get:function(){var e;return this.isOpen&&c(this.selectionService.focused)&&-1!==this.selectionService.focused?(e=this.dataService.itemAt(this.selectionService.focused),this.optionPrefix+"-"+(e?u(e,this.valueField):"")):null},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"data",{get:function(){var e,t,n=this.virtual;return n?(t=(e=n.skip||0)+n.pageSize,n.total=this.dataService.data.length,this.dataService.data.slice(e,t)):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=u(this.dataService.itemAt(0),this.textField))},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"valuePrimitive",{get:function(){return c(this._valuePrimitive)?this._valuePrimitive:!c(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.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:!1,configurable:!0}),Object.defineProperty(F.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Te(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,l("input",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,d(t)),this._rounded=t},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,pe("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",t)),this._fillMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupWidth",{get:function(){var e=0,t=(p.isDocumentAvailable()&&(e=this.wrapper.nativeElement.offsetWidth),this.popupSettings.width||e);return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupHeight",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),F.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()},F.prototype.createValueStream=function(){var i=this,e=this.valueSubject.pipe(m.filter(function(e){var t=u(i.value,i.valueField),n=u(e,i.valueField),e=u(e,i.textField);return!(!c(i.value)&&!c(n))&&(c(e)&&(e=e.toString()),t!==n||i.text!==e||(i.clearFilter(),!1))}),m.map(function(e){var t=u(e,i.valueField);return{dataItem:e,text:u(e,i.textField),value:i.valuePrimitive?t:e}})),t=m.partition(function(){return i.allowCustom})(this.customValueSubject.pipe(m.throttleTime(300))),n=t[0].pipe(m.tap(function(){i.loading=!0,i.disabled=!0,i.cdr.detectChanges()}),m.filter(function(){var e=i.text!==u(i.value,i.valueField);return i.loading=e,(i.disabled=e)||i.clearFilter(),e}),this.valueNormalizer,m.map(function(e){return{custom:!0,dataItem:e,text:i.text,value:e}})),t=t[1].pipe(m.map(function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}})),o=this.clearValueSubject.pipe(m.map(function(){return{dataItem:void 0,text:void 0,value:void 0}})),e=(this.valueSubscription&&this.valueSubscription.unsubscribe(),g.merge(e,n,t,o));this.valueSubscription=e.pipe(m.catchError(function(){var e=void 0!==u(i.dataItem,i.valueField);return i.dataItem=void 0,i.value=void 0,i.text=void 0,i.loading=!1,i.disabled=!1,e&&i.selectionChange.emit(void 0),i.emitValueChange(),i.createValueStream(),g.of(null)})).subscribe(function(e){var t=u(i.dataItem,i.valueField)!==u(e.dataItem,i.valueField);i.dataItem=e.dataItem,i.value=e.value,i.text=e.text,i.loading=!1,i.disabled=!1,i.clearFilter(),e.custom&&(i.selectionService.focused=-1),t&&(t=e.custom?void 0:i.dataItem,i.selectionChange.emit(t)),i.emitValueChange()})},F.prototype.attachStreams=function(){var n=this;p.isDocumentAvailable()&&(this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;n.direction=e?"rtl":"ltr",n.cdr.detectChanges()})),this.subs.add(g.merge(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(m.filter(function(e){return c(e.index)})).subscribe(function(e){return n.navigate(e.index)})),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(function(){return n.togglePopup(!1)})),this.subs.add(g.merge(this.navigationService.pagedown,this.navigationService.pageup).subscribe(function(e){n.isOpen&&(e.originalEvent.preventDefault(),n.optionsList.scrollWithOnePage(C[e.originalEvent.code]))})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(m.tap(function(e){n.isOpen&&e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(g.merge(this.selectionService.onChange,this.selectionService.onSelect.pipe(m.filter(function(e){return!n.isOpen}))).pipe(m.tap(function(e){n._filtering=!1,n.togglePopup(!1)}),m.map(function(e){return n.dataService.itemAt(e.indices[0])})).subscribe(function(e){n.change(e)})),this.subs.add(this.selectionService.onSelect.pipe(m.filter(function(e){return n.isOpen}),m.tap(function(e){return n._filtering=!1}),m.map(function(e){return n.dataService.itemAt(e.indices[0])})).subscribe(function(e){var t=u(e,n.valueField)!==u(n.dataItem,n.valueField);n.updateState({dataItem:e}),t&&n.selectionChange.emit(e)})))},F.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs.unsubscribe(),c(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()},F.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),p.isChanged("valueNormalizer",e)&&this.createValueStream(),p.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},F.prototype.ngAfterContentChecked=function(){this.verifySettings()},F.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;c(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},F.prototype.focus=function(){this.disabled||this.searchbar.focus()},F.prototype.blur=function(){this.disabled||this.searchbar.blur()},F.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!n._open;n._toggle(e),n.cdr.markForCheck()})},Object.defineProperty(F.prototype,"isOpen",{get:function(){return this._open},enumerable:!1,configurable:!0}),F.prototype.reset=function(){this.value=void 0,this.clearState(),this.resetSelection()},F.prototype.isEmpty=function(){var e=!c(this.text)||X(this.text),t=!c(this.value)||X(this.value);return e&&t},F.prototype.messageFor=function(e){return this.localization.get(e)},F.prototype.clearValue=function(e){null!=e&&e.stopImmediatePropagation(),e&&this.focus(),this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1},F.prototype.writeValue=function(e){this.value=null===e?void 0:e},F.prototype.registerOnChange=function(e){this.onChangeCallback=e},F.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},F.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(F.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading k-input-loading-icon":this.iconClass||"k-i-caret-alt-down"},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"selectButtonClasses",{get:function(){return(this.size?l("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")+"\n "},enumerable:!1,configurable:!0}),F.prototype.onResize=function(){var e,t,n;this.isOpen&&(e=this.popupRef.popupElement,t=(n=this.popupWidth).min,n=n.max,e.style.minWidth=t,e.style.width=n)},F.prototype.verifySettings=function(){if(h.isDevMode()){if(!0===this.valuePrimitive&&c(this.value)&&"object"==typeof this.value)throw new Error(Ye);if(!1===this.valuePrimitive&&c(this.value)&&"object"!=typeof this.value)throw new Error(Je);if(!c(this.valueField)!=!c(this.textField))throw new Error(et);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(tt)}},F.prototype.setState=function(){var e,t;this._filtering||(e=this.value,t=this.valueField,t=this.findDataItem({valueField:t,value:e}),c(t.index)&&-1!==t.index?(this.updateState({dataItem:t.dataItem,confirm:!0}),this.resetSelection(t.index)):c(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)))},F.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=u(t,this.textField),e&&(this._previousDataItem=t)},F.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},F.prototype.resetSelection=function(e){var t=!c(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e},F.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},F.prototype.findIndexPredicate=function(t){var n=this;return this.dataService.grouped?function(e){e=u(e.value,n.textField);return(e=c(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=u(e,n.textField);return(e=c(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},F.prototype.findDataItem=function(e){var t=this,n=e.valueField,i=e.value,e={dataItem:null,index:-1},o=this.dataService.findIndex(function(e){e=t.dataService.grouped?e.value:e;return u(e,n)===u(i,n)});return e.dataItem=this.dataService.itemAt(o),e.index=o,e},F.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=u(this.dataService.itemAt(t),this.textField)))},F.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},F.prototype.navigate=function(e){0!==this.dataService.itemsCount&&(this.text=u(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},F.prototype.handleNavigate=function(e){var t=c(this.selectionService.selected[0]),n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused,i=0;this.disabled||this.readonly||e.keyCode!==p.Keys.Home&&e.keyCode!==p.Keys.End&&(t||(e.keyCode===p.Keys.ArrowDown?i=-1:e.keyCode===p.Keys.ArrowUp&&(i=1)),(t=this.navigationService.process({current:i+n,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==C.Undefined&&t!==C.Left&&t!==C.Right&&t!==C.Backspace&&t!==C.Delete&&t!==C.PageDown&&t!==C.PageUp&&(t===C.Enter&&this.isOpen||t!==C.Enter)&&e.preventDefault())},F.prototype.handleEnter=function(){var e=this.text,t=this.selectionService.focused,n=c(t)&&-1!==t,i=u(this._previousDataItem,this.textField)||"",o=u(this.dataService.itemAt(t),this.textField),i=e!==i;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&i&&(e===o||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(n?this.selectionService.change(t):i&&this.change(e,!0))},F.prototype.handleBlur=function(){var e=this,t=(this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1,u(this.dataItem,this.valueField)!==u(this.value,this.valueField)),n=this.searchbar.value,i=n!==(u(this.dataItem,this.textField)||""),o=t||i;o||p.hasObservers(this.onBlur)||p.hasObservers(this.close)||ne(this.wrapper.nativeElement)?this.zone.run(function(){o&&(c(e.focusedItemText)&&e.focusedItemText.toLowerCase()===n.toLowerCase()||t?e.selectionService.change(e.selectionService.focused):e.change(n,!0)),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)},F.prototype.handleEscape=function(){this.isOpen?this.togglePopup(!1):this.clearValue(),0<this.selectionService.selected.length||(this.suggestedText=null,this.selectionService.focused=-1)},F.prototype.handleNavigationOpen=function(){this.restoreItemFocus(),this.togglePopup(!0)},F.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)},F.prototype.handleFocus=function(){var e=this;this.isFocused=!0,p.hasObservers(this.onFocus)&&this.zone.run(function(){return e.onFocus.emit()})},F.prototype.pageChange=function(e){this.virtual.skip=e.skip},F.prototype.change=function(e,t){((t=void 0===t?!1:t)?this.customValueSubject:this.valueSubject).next(e)},F.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem},F.prototype.selectClick=function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)},Object.defineProperty(F.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!1,configurable:!0}),F.prototype.preventEventDefault=function(e){e.preventDefault()},Object.defineProperty(F.prototype,"focusedItemText",{get:function(){var e=this.selectionService.focused;return c(e)&&-1!==e?(e=u(this.dataService.itemAt(e),this.textField),c(e)?e.toString():""):null},enumerable:!1,configurable:!0}),F.prototype.restoreItemFocus=function(){c(this.selectionService.focused)&&-1<this.selectionService.focused||!this.text||!this.dataService.itemsCount||(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))},F.prototype.useSuggestion=function(){var e;return!(!this.suggest||!c(this.searchbar.value))&&(e=this.dataService.itemAt(this.selectionService.focused),e=u(e,this.textField),!!c(e)&&this.searchbar.value.toLowerCase()===e.toLowerCase())},F.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},F.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(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"}}),this.popupRef.popupElement),n=this.popupWidth,i=n.min,n=n.max,i=(t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=i,t.style.width=n,t.style.height=this.popupHeight,t.setAttribute("dir",this.direction),this.popupRef.popupElement.querySelector("ul")),n=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");n&&i.setAttribute("aria-labelledby",n),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)})},F.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},F.prototype.triggerPopupEvents=function(e){var t=new ke;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},F.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))},F.prototype.subscribeTouchEvents=function(){var t=this;p.isDocumentAvailable()&&this.touchEnabled&&this.zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target,e=se(t.wrapper,e,t.popupRef);t.isFocused&&!e?t.zone.run(function(){return t.blur()}):t.isOpen&&!e&&t.zone.run(function(){return t.togglePopup(!1)})})})},F.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=V.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},F.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",this.fillMode))},F);function F(e,t,n,i,o,s,a,r,l,p,d){this.wrapper=e,this.localization=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=s,this.dataService=a,this.zone=r,this.cdr=l,this.renderer=p,this.touchEnabled=d,this.selected=[],this.focusableId="k-"+Z(),this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(m.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 h.EventEmitter,this.selectionChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=Z(),this.optionPrefix=Z(),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 g.Subject,this.valueSubject=new g.Subject,this.clearValueSubject=new g.Subject,this.subs=new g.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",B.validatePackage($),this.direction=t.rtl?"rtl":"ltr",this.data=[]}ht.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ht,deps:[{token:o.ElementRef},{token:a.LocalizationService},{token:H.PopupService},{token:x},{token:T},{token:k},{token:I},{token:o.NgZone},{token:o.ChangeDetectorRef},{token:o.Renderer2},{token:De,optional:!0}],target:o.ɵɵFactoryTarget.Component}),ht.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ht,selector:"kendo-combobox",inputs:{focusableId:"focusableId",allowCustom:"allowCustom",data:"data",value:"value",textField:"textField",valueField:"valueField",valuePrimitive:"valuePrimitive",valueNormalizer:"valueNormalizer",placeholder:"placeholder",popupSettings:"popupSettings",listHeight:"listHeight",iconClass:"iconClass",loading:"loading",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},host:{properties:{"class.k-combobox":"this.widgetClasses","class.k-input":"this.widgetClasses","class.k-disabled":"this.isDisabled","class.k-loading":"this.isLoading","attr.dir":"this.dir"}},providers:[Ne,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.combobox"},{provide:xe,useExisting:h.forwardRef(function(){return ht})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return ht})}],queries:[{propertyName:"template",first:!0,predicate:he,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0},{propertyName:"groupTemplate",first:!0,predicate:ge,descendants:!0},{propertyName:"fixedGroupTemplate",first:!0,predicate:me,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"searchbar",first:!0,predicate:f,descendants:!0,static:!0},{propertyName:"optionsList",first:!0,predicate:["optionsList"],descendants:!0},{propertyName:"select",first:!0,predicate:["select"],descendants:!0,static:!0}],exportAs:["kendoComboBox"],usesOnChanges:!0,ngImport:o,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 i18n-selectButtonText="kendo.combobox.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n #select\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 ',isInline:!0,components:[{type:f,selector:"kendo-searchbar",inputs:["id","listId","tagListId","activeDescendant","disabled","readonly","tabIndex","popupOpen","role","isLoading","isSuggestable","isFilterable","userInput","suggestedText","placeholder"],outputs:["valueChange","onBlur","onFocus","onClick","onNavigate"]},{type:Me,selector:"kendo-list",inputs:["selected","focused","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","id","optionPrefix","multipleSelection","virtual","type","checkboxes","ariaLive","isMultiselect","data","size","rounded"],outputs:["onClick","pageChange","listResize"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:Be,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:Ee,selector:"[templateContext]",inputs:["templateContext"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ht,decorators:[{type:h.Component,args:[{exportAs:"kendoComboBox",providers:[Ne,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.combobox"},{provide:xe,useExisting:h.forwardRef(function(){return ht})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return ht})}],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 i18n-selectButtonText="kendo.combobox.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n #select\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:a.LocalizationService},{type:H.PopupService},{type:x},{type:T},{type:k},{type:I},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:o.Renderer2},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[De]}]}]},propDecorators:{focusableId:[{type:h.Input}],allowCustom:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],valuePrimitive:[{type:h.Input}],valueNormalizer:[{type:h.Input}],placeholder:[{type:h.Input}],popupSettings:[{type:h.Input}],listHeight:[{type:h.Input}],iconClass:[{type:h.Input}],loading:[{type:h.Input}],suggest:[{type:h.Input}],clearButton:[{type:h.Input}],disabled:[{type:h.Input}],itemDisabled:[{type:h.Input}],readonly:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input,args:["tabIndex"]}],filterable:[{type:h.Input}],virtual:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],selectionChange:[{type:h.Output}],filterChange:[{type:h.Output}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],template:[{type:h.ContentChild,args:[he,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],groupTemplate:[{type:h.ContentChild,args:[ge,{static:!1}]}],fixedGroupTemplate:[{type:h.ContentChild,args:[me,{static:!1}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],searchbar:[{type:h.ViewChild,args:[f,{static:!0}]}],optionsList:[{type:h.ViewChild,args:["optionsList",{static:!1}]}],select:[{type:h.ViewChild,args:["select",{static:!0}]}],widgetClasses:[{type:h.HostBinding,args:["class.k-combobox"]},{type:h.HostBinding,args:["class.k-input"]}],isDisabled:[{type:h.HostBinding,args:["class.k-disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],dir:[{type:h.HostBinding,args:["attr.dir"]}]}});var Ne=function(e){this.templateRef=e},gt=(Ne.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ne,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),Ne.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ne,selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ne,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),mt.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},mt.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},mt);function mt(e,t){this.element=e,this.zone=t}gt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:gt,deps:[{token:o.ElementRef},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),gt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:gt,selector:"[filterInput]",inputs:{focused:["filterInput","focused"]},usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:gt,decorators:[{type:h.Directive,args:[{selector:"[filterInput]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.NgZone}]},propDecorators:{focused:[{type:h.Input,args:["filterInput"]}]}});var ft={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return vt})},vt=(Object.defineProperty(O.prototype,"width",{get:function(){var e=p.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:!1,configurable:!0}),Object.defineProperty(O.prototype,"height",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"widgetTabIndex",{get:function(){var e;if(!this.disabled)return e=Number(this.tabIndex),isNaN(e)?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"ariaControls",{get:function(){if(this.isOpen)return this.listBoxId},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"ariaActivedescendant",{get:function(){if(c(this.dataItem)&&this.isOpen)return this.optionPrefix+"-"+u(this.dataItem,this.valueField)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"ariaLive",{get:function(){return this.filterable?"polite":"off"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"data",{get:function(){var e,t,n=this.virtual;return n?(t=(e=n.skip||0)+n.pageSize,n.total=this.dataService.data.length,this.dataService.data.slice(e,t)):this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"value",{get:function(){return this._value},set:function(e){c(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.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:!1,configurable:!0}),Object.defineProperty(O.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Te(e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"valuePrimitive",{get:function(){return c(this._valuePrimitive)?this._valuePrimitive:!c(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,l("picker",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,l("picker",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,d(t)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,pe("picker",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,pe("picker",t)),this._fillMode=t},enumerable:!1,configurable:!0}),O.prototype.blurComponent=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())},O.prototype.blurFilterInput=function(){this.filterBlurred.emit()},O.prototype.focusComponent=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,p.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()})))},O.prototype.onResize=function(){var e,t,n;this._open&&(e=this.popupRef.popupElement,t=(n=this.width).min,n=n.max,e.style.minWidth=t,e.style.width=n)},Object.defineProperty(O.prototype,"isDisabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isDisabledAttribute",{get:function(){return this.disabled?"":null},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostTabIndex",{get:function(){return this.widgetTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"readonlyClass",{get:function(){return this.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"readonlyAttr",{get:function(){return this.readonly?"":null},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isBusy",{get:function(){return this.isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isAriaExpanded",{get:function(){return this.ariaExpanded},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostAriaControls",{get:function(){return this.ariaControls},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostAriaInvalid",{get:function(){var e;return this.formControl?null==(e=this.formControl)?void 0:e.invalid.toString():null},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostAriaActivedescendant",{get:function(){return this.ariaActivedescendant},enumerable:!1,configurable:!0}),O.prototype.keydown=function(e){var t,n,i=c(this.defaultItem)?-1:0,i=isNaN(this.selectionService.focused)?this.firstFocusableIndex(i):this.selectionService.focused,o=0;this.disabled||this.readonly||(t=e.keyCode===p.Keys.Home||e.keyCode===p.Keys.End,this.filterable&&this.isFocused&&this.isOpen&&t||(t=c(this.selectionService.selected[0]),n=c(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused),t&&!n||(e.keyCode===p.Keys.ArrowDown||e.keyCode===p.Keys.ArrowRight?o=-1:e.keyCode!==p.Keys.ArrowUp&&e.keyCode!==p.Keys.ArrowLeft||(o=1)),i=(n=this.navigationService.process({current:i+o,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:t=e}))===C.Left||n===C.Right,n===C.Undefined||n===C.Tab||n===C.Backspace||n===C.Delete||n===C.PageDown||n===C.PageUp||i&&this.filterable||n===C.Enter||t.preventDefault()))},O.prototype.keypress=function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)},O.prototype.click=function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)},Object.defineProperty(O.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),O.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.detectChanges()})),this.assignAriaDescribedBy(),this.setComponentClasses()},O.prototype.isEmpty=function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)},O.prototype.onFilterFocus=function(){this.filterFocused.emit()},O.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs.unsubscribe(),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},O.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),p.isChanged("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),p.anyChanged(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},O.prototype.ngAfterContentChecked=function(){this.verifySettings()},Object.defineProperty(O.prototype,"formControl",{get:function(){var e=this.injector.get(i.NgControl,null);return(null==e?void 0:e.control)||null},enumerable:!1,configurable:!0}),O.prototype.focusItemAt=function(e){var t=(c(this.defaultItem)?-1:0)<=e&&e<this.data.length;c(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},O.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},O.prototype.blur=function(){this.disabled||(this.wrapper.nativeElement.blur(),this.cdr.detectChanges())},O.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!n._open;n._toggle(e)})},O.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},O.prototype.triggerPopupEvents=function(e){var t=new ke;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},O.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||(!e&&this.filterable&&this.isFocused&&this.focus(),this._toggle(e))},Object.defineProperty(O.prototype,"isOpen",{get:function(){return this._open},enumerable:!1,configurable:!0}),O.prototype.reset=function(){this.value=void 0},O.prototype.messageFor=function(e){return this.localization.get(e)},O.prototype.writeValue=function(e){this.value=null===e?void 0:e},O.prototype.registerOnChange=function(e){this.onChangeCallback=e},O.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},O.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(O.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading k-input-loading-icon":this.iconClass||"k-i-caret-alt-down"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"selectButtonClasses",{get:function(){return(this.size?l("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"filterInputClasses",{get:function(){return(this.size?l("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?d(this.rounded):"")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"optionLabelSizeClass",{get:function(){return""+(this.size?l("list",this.size):"")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isDisabledDefaultItem",{get:function(){return this.disabledItemsService.isItemDisabled(this.defaultItem)},enumerable:!1,configurable:!0}),O.prototype.getText=function(){return this.text},O.prototype.getDefaultItemText=function(){return u(this.defaultItem,this.textField)},O.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(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"}),this.popupRef.popupElement),n=this.width,i=n.min,n=n.max,i=(t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=i,t.style.width=n,t.style.height=this.height,t.setAttribute("dir",this.direction),t.querySelector("ul.k-list-ul")),n=this.wrapper.nativeElement.getAttribute("aria-labelledby");n&&i.setAttribute("aria-labelledby",n),this.subs.add(this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.subs.add(this.popupRef.popupClose.subscribe(function(){e.closed.emit()})),this.filterable||this.subs.add(this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)}))},O.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},O.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=u(t,this.textField),e&&(this._previousDataItem=t)},O.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},O.prototype.resetSelection=function(e){var t=!c(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e},O.prototype.onSelectionChange=function(e){e=e.dataItem;this.updateState({dataItem:e}),this.selectionChange.emit(e),this.assignAriaDescribedBy()},O.prototype.subscribeEvents=function(){var o=this;p.isDocumentAvailable()&&(this.subs.add(this.selectionService.onSelect.pipe(m.filter(function(e){return o.isOpen}),m.map(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.subs.add(g.merge(this.selectionService.onSelect.pipe(m.filter(function(e){return!o.isOpen})),this.selectionService.onChange).pipe(m.map(this.itemFromEvent.bind(this)),m.tap(function(e){return o.togglePopup(!1)})).subscribe(function(e){var t=e.dataItem,n=e.value,e=(e.newSelection&&o.onSelectionChange({dataItem:t}),!c(t)&&o._previousDataItem),i=n!==u(o.value,o.valueField);e?(o.updateState({dataItem:o._previousDataItem}),o.resetSelection()):i&&(o.value=o.valuePrimitive?n:t,o._previousDataItem=t,o.emitChange(o.value)),o.clearFilter()})),this.subs.add(g.merge(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(m.skipWhile(function(){return o.filterable})),this.navigationService.right.pipe(m.skipWhile(function(){return o.filterable})),this.navigationService.home,this.navigationService.end).pipe(m.filter(function(e){return!isNaN(e.index)})).subscribe(function(e){return o.selectionService.select(e.index)})),this.subs.add(g.merge(this.navigationService.pagedown,this.navigationService.pageup).subscribe(function(e){o.isOpen&&(e.originalEvent.preventDefault(),o.optionsList.scrollWithOnePage(C[e.originalEvent.code]))})),this.subs.add(this.navigationService.open.subscribe(function(){return o.togglePopup(!0)})),this.subs.add(this.navigationService.close.subscribe(function(){o.togglePopup(!1),o.focus()})),this.subs.add(this.navigationService.enter.pipe(m.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.filterBlurred.pipe(m.concatMap(function(){return g.interval(10).pipe(m.take(1),m.takeUntil(o.hostElementFocused))})).subscribe(function(){o.hostElementBlurred.emit()})),this._zone.runOutsideAngular(function(){o.subs.add(g.merge(o.hostElementBlurred.pipe(m.concatMap(function(){return g.interval(10).pipe(m.take(1),m.takeUntil(o.filterFocused))})),o.navigationService.tab).pipe(m.tap(function(e){return e instanceof ye&&o.focus()}),m.filter(function(){return o.isFocused})).subscribe(function(){return o.componentBlur()}))}))},O.prototype.subscribeTouchEvents=function(){var t=this;p.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!se(t.wrapper,e,t.popupRef)&&t._zone.run(function(){t.filterFocused&&t.togglePopup(!1),t.blur()})})})},O.prototype.subscribeFocusEvents=function(){var e=this;p.isDocumentAvailable()&&(this.focusComponent=this.focusComponent.bind(this),this.blurComponent=this.blurComponent.bind(this),this._zone.runOutsideAngular(function(){document.addEventListener("focus",e.focusComponent,!0),document.addEventListener("blur",e.blurComponent,!0)}))},O.prototype.unSubscribeFocusEvents=function(){p.isDocumentAvailable()&&(document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0))},O.prototype.itemFromEvent=function(e){var t=e.indices[0],n=this.dataService.itemAt(t),n=c(n)?n:this.currentOrDefault(t),i=u(n,this.valueField);return{dataItem:n,index:t,newSelection:e.newSelection,value:i}},O.prototype.currentOrDefault=function(e){return c(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem},O.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},O.prototype.handleEnter=function(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)},O.prototype.handleEscape=function(){c(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()},O.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))},O.prototype.verifySettings=function(){if(h.isDevMode()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(ot);if(!0===this.valuePrimitive&&c(this.value)&&"object"==typeof this.value)throw new Error(at);if(!1===this.valuePrimitive&&c(this.value)&&"object"!=typeof this.value)throw new Error(st);if(!c(this.valueField)!=!c(this.textField))throw new Error(rt)}},O.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=c(this.selectionService.selected[0])&&u(this.value,this.valueField)!==u(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||p.hasObservers(this.close)||p.hasObservers(this.onBlur)||p.hasObservers(this.filterChange)||ne(this.wrapper.nativeElement)?this._zone.run(function(){t&&e.selectionService.change(e.selectionService.selected[0]),e.togglePopup(!1),e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):this.togglePopup(!1)},O.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},O.prototype.onKeyPress=function(e){var t;0!==e.which&&e.keyCode!==p.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())},O.prototype.search=function(){var e=this;clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(function(){e.word=""},this.delay),this.selectNext())},O.prototype.selectNext=function(){var e,t,n,i=this,o=this.dataService.filter(function(e){return c(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)}}),s=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(this.word,this.last),a=o.length,r=!isNaN(this.selectionService.selected[0]),l=r?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(t={item:this.defaultItem,itemIndex:-1},a+=1,l+=1),n=o,r=l+=s&&r?1:0,o=(n=(l=t)?[l].concat(n):n).slice(r).concat(n.slice(0,r)),e=0;e<a;e++){var p=u(o[e].item,this.textField),d=Boolean(s&&ee(p,this.last,this.ignoreCase)),p=Boolean(ee(p,this.word,this.ignoreCase));if(d||p){e=o[e].itemIndex;break}}e!==a&&this.navigate(e)},O.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},O.prototype.navigate=function(e){this.selectionService.select(e)},O.prototype.findDataItem=function(e){function t(e){return u(e,n)}var n=e.valueField,i=e.value,e={dataItem:null,index:-1},o=this.dataService.grouped?function(e){return t(e.value)===t(i)}:function(e){return t(e)===t(i)},o=this.dataService.findIndex(o);return e.dataItem=this.dataService.itemAt(o),e.index=o,e},O.prototype.setState=function(){var e=this.value,t=this.valueField,n=this.textField,i=this.valuePrimitive;if(this.defaultItem){var o=u(this.defaultItem,t),s=u(e,t);if(!c(e)||s===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)))}s=this.findDataItem({valueField:t,value:e}),o=!(i&&n);s.dataItem?(this.updateState({dataItem:s.dataItem,confirm:!0}),this.resetSelection(s.index)):(c(e)&&o?this.updateState({dataItem:e}):this._previousDataItem?this.updateState({dataItem:this._previousDataItem}):this.clearState(),this.resetSelection())},O.prototype.handleFilter=function(e){this.filterChange.emit(e.target.value)},O.prototype.pageChange=function(e){this.virtual.skip=e.skip},O.prototype.assignAriaDescribedBy=function(){var e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim(),e=(this.valueLabelId=Z(),(this.valueLabelId+" "+e).trim());this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)},O.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("picker",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,pe("picker",this.fillMode))},O);function O(e,t,n,i,o,s,a,r,l,p,d,c){this.wrapper=e,this.localization=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=s,this.dataService=a,this._zone=r,this.renderer=l,this.cdr=p,this.touchEnabled=d,this.injector=c,this.listHeight=200,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.selectionChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.hostClasses=!0,this.focusableId="k-"+Z(),this.role="combobox",this.haspopup="listbox",this.groupIndices=[],this.listBoxId=Z(),this.optionPrefix=Z(),this.filterText="",this.subs=new g.Subscription,this._isFocused=!1,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.word="",this.last="",this.filterFocused=new h.EventEmitter,this.filterBlurred=new h.EventEmitter,this.hostElementFocused=new h.EventEmitter,this.hostElementBlurred=new h.EventEmitter,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",B.validatePackage($),this.direction=t.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}vt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:vt,deps:[{token:o.ElementRef},{token:a.LocalizationService},{token:H.PopupService},{token:x},{token:T},{token:k},{token:I},{token:o.NgZone},{token:o.Renderer2},{token:o.ChangeDetectorRef},{token:De,optional:!0},{token:o.Injector}],target:o.ɵɵFactoryTarget.Component}),vt.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:vt,selector:"kendo-dropdownlist",inputs:{iconClass:"iconClass",loading:"loading",data:"data",value:"value",textField:"textField",valueField:"valueField",popupSettings:"popupSettings",listHeight:"listHeight",defaultItem:"defaultItem",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",filterable:"filterable",virtual:"virtual",ignoreCase:"ignoreCase",delay:"delay",valuePrimitive:"valuePrimitive",tabindex:"tabindex",tabIndex:"tabIndex",size:"size",rounded:"rounded",fillMode:"fillMode",focusableId:["id","focusableId"]},outputs:{valueChange:"valueChange",filterChange:"filterChange",selectionChange:"selectionChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},host:{listeners:{keydown:"keydown($event)",keypress:"keypress($event)",click:"click($event)"},properties:{"class.k-dropdownlist":"this.hostClasses","class.k-picker":"this.hostClasses","class.k-disabled":"this.isDisabledClass","attr.disabled":"this.isDisabledAttribute","class.k-loading":"this.isLoading","attr.id":"this.focusableId","attr.dir":"this.dir","attr.tabindex":"this.hostTabIndex","attr.readonly":"this.readonlyAttr","attr.aria-busy":"this.isBusy","attr.role":"this.role","attr.aria-haspopup":"this.haspopup","attr.aria-expanded":"this.isAriaExpanded","attr.aria-controls":"this.hostAriaControls","attr.aria-invalid":"this.hostAriaInvalid","attr.aria-activedescendant":"this.hostAriaActivedescendant"}},providers:[ft,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:xe,useExisting:h.forwardRef(function(){return vt})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return vt})}],queries:[{propertyName:"itemTemplate",first:!0,predicate:he,descendants:!0},{propertyName:"groupTemplate",first:!0,predicate:ge,descendants:!0},{propertyName:"fixedGroupTemplate",first:!0,predicate:me,descendants:!0},{propertyName:"valueTemplate",first:!0,predicate:Ne,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"optionsList",first:!0,predicate:["optionsList"],descendants:!0}],exportAs:["kendoDropDownList"],usesOnChanges:!0,ngImport:o,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 i18n-selectButtonText="kendo.dropdownlist.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span class="k-input-inner" unselectable="on" [id]="valueLabelId">\n <span class="k-input-value-text">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate">{{ getText() }}</ng-template>\n </span>\n </span>\n <button\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: onMouseDown\n }"\n >\n <span\n class="k-button-icon k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <div class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <span\n class="k-searchbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-icon k-icon k-i-search" unselectable="on"></span>\n <input\n role="searchbox"\n aria-autocomplete="list"\n aria-haspopup="listbox"\n [attr.aria-controls]="ariaControls"\n [attr.aria-activedescendant]="ariaActivedescendant"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-input-inner"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n </span>\n </div>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [ariaLive]="ariaLive"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 ',isInline:!0,components:[{type:Me,selector:"kendo-list",inputs:["selected","focused","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","id","optionPrefix","multipleSelection","virtual","type","checkboxes","ariaLive","isMultiselect","data","size","rounded"],outputs:["onClick","pageChange","listResize"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:Be,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:Ee,selector:"[templateContext]",inputs:["templateContext"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:j.DefaultValueAccessor,selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]"},{type:gt,selector:"[filterInput]",inputs:["filterInput"]},{type:j.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:j.NgModel,selector:"[ngModel]:not([formControlName]):not([formControl])",inputs:["name","disabled","ngModel","ngModelOptions"],outputs:["ngModelChange"],exportAs:["ngModel"]},{type:Oe,selector:"[kendoDropDownsSelectable]",inputs:["index","checkboxes","height","multipleSelection"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:vt,decorators:[{type:h.Component,args:[{exportAs:"kendoDropDownList",providers:[ft,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:xe,useExisting:h.forwardRef(function(){return vt})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return vt})}],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 i18n-selectButtonText="kendo.dropdownlist.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span class="k-input-inner" unselectable="on" [id]="valueLabelId">\n <span class="k-input-value-text">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate">{{ getText() }}</ng-template>\n </span>\n </span>\n <button\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: onMouseDown\n }"\n >\n <span\n class="k-button-icon k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <div class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <span\n class="k-searchbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-icon k-icon k-i-search" unselectable="on"></span>\n <input\n role="searchbox"\n aria-autocomplete="list"\n aria-haspopup="listbox"\n [attr.aria-controls]="ariaControls"\n [attr.aria-activedescendant]="ariaActivedescendant"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-input-inner"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n </span>\n </div>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [ariaLive]="ariaLive"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:a.LocalizationService},{type:H.PopupService},{type:x},{type:T},{type:k},{type:I},{type:o.NgZone},{type:o.Renderer2},{type:o.ChangeDetectorRef},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[De]}]},{type:o.Injector}]},propDecorators:{iconClass:[{type:h.Input}],loading:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],popupSettings:[{type:h.Input}],listHeight:[{type:h.Input}],defaultItem:[{type:h.Input}],disabled:[{type:h.Input}],itemDisabled:[{type:h.Input}],readonly:[{type:h.Input}],filterable:[{type:h.Input}],virtual:[{type:h.Input}],ignoreCase:[{type:h.Input}],delay:[{type:h.Input}],valuePrimitive:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input,args:["tabIndex"]}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],filterChange:[{type:h.Output}],selectionChange:[{type:h.Output}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],itemTemplate:[{type:h.ContentChild,args:[he,{static:!1}]}],groupTemplate:[{type:h.ContentChild,args:[ge,{static:!1}]}],fixedGroupTemplate:[{type:h.ContentChild,args:[me,{static:!1}]}],valueTemplate:[{type:h.ContentChild,args:[Ne,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],optionsList:[{type:h.ViewChild,args:["optionsList",{static:!1}]}],hostClasses:[{type:h.HostBinding,args:["class.k-dropdownlist"]},{type:h.HostBinding,args:["class.k-picker"]}],isDisabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],isDisabledAttribute:[{type:h.HostBinding,args:["attr.disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],focusableId:[{type:h.Input,args:["id"]},{type:h.HostBinding,args:["attr.id"]}],dir:[{type:h.HostBinding,args:["attr.dir"]}],hostTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],readonlyClass:[{type:h.HostBinding,args:["attr.readonly"]}],readonlyAttr:[{type:h.HostBinding,args:["attr.readonly"]}],isBusy:[{type:h.HostBinding,args:["attr.aria-busy"]}],role:[{type:h.HostBinding,args:["attr.role"]}],haspopup:[{type:h.HostBinding,args:["attr.aria-haspopup"]}],isAriaExpanded:[{type:h.HostBinding,args:["attr.aria-expanded"]}],hostAriaControls:[{type:h.HostBinding,args:["attr.aria-controls"]}],hostAriaInvalid:[{type:h.HostBinding,args:["attr.aria-invalid"]}],hostAriaActivedescendant:[{type:h.HostBinding,args:["attr.aria-activedescendant"]}],keydown:[{type:h.HostListener,args:["keydown",["$event"]]}],keypress:[{type:h.HostListener,args:["keypress",["$event"]]}],click:[{type:h.HostListener,args:["click",["$event"]]}]}});var bt,ft=function(e){this.templateRef=e},yt=(ft.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ft,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),ft.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ft,selector:"[kendoMultiSelectCustomItemTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:ft,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectCustomItemTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),It=(yt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:yt,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),yt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:yt,selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:yt,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),kt=(It.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:It,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),It.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:It,selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:It,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),U(Ct,bt=ke),Ct);function Ct(e){var t=bt.call(this)||this;return t.dataItem=e,t}Object.defineProperty(Tt.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.hostElement.nativeElement,l("chip-list",this.size)),e&&this.renderer.addClass(this.hostElement.nativeElement,l("chip-list",e)),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"hostId",{get:function(){return this.id},enumerable:!1,configurable:!0}),Tt.prototype.tagProp=function(e,t,n){t=t&&this.getPropField(e,t,n);return u(e,t)},Tt.prototype.isTagDisabled=function(e,n){var i=this;return this.isGroupTag(e)?e.every(function(e,t){return i.disabledIndices.has(t+n)}):this.disabledIndices.has(n)},Tt.prototype.deleteTag=function(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:n})},Tt.prototype.itemId=function(e,t){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,t)},Tt.prototype.isGroupTag=function(e){return e instanceof Array},Tt.prototype.tagAriaHidden=function(e){return c(this.focused)&&this.focused!==e},Tt.prototype.getPropField=function(t,e,n){var i=e.length-1;return"string"==typeof e?e:this.valueDepth?i<(n=this.valueDepth[n])?e[i]:e[n]:e.find(function(e){return e in t})};var xt=Tt;function Tt(e,t){this.renderer=e,this.hostElement=t,this.rounded="medium",this.fillMode="solid",this.disabledIndices=new Set,this.removeTag=new h.EventEmitter,this.hostClasses=!0,this._size="medium"}xt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:xt,deps:[{token:o.Renderer2},{token:o.ElementRef}],target:o.ɵɵFactoryTarget.Component}),xt.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:xt,selector:"kendo-taglist",inputs:{tags:"tags",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",focused:"focused",template:"template",groupTemplate:"groupTemplate",disabled:"disabled",tagPrefix:"tagPrefix",id:"id",size:"size",rounded:"rounded",fillMode:"fillMode",disabledIndices:"disabledIndices"},outputs:{removeTag:"removeTag"},host:{properties:{"class.k-input-values":"this.hostClasses","class.k-chip-list":"this.hostClasses","class.k-selection-multiple":"this.hostClasses","attr.id":"this.hostId"}},ngImport:o,template:"\n <div\n *ngFor=\"let tag of tags; let index = index;\"\n [attr.id]=\"itemId(tag, index)\"\n [attr.aria-hidden]=\"tagAriaHidden(index)\"\n class=\"k-chip\"\n [ngClass]=\"{\n 'k-focus': index === focused,\n 'k-disabled': isTagDisabled(tag, index),\n 'k-chip-sm': size === 'small',\n 'k-chip-md': size === 'medium',\n 'k-chip-lg': size === 'large',\n 'k-rounded-sm': rounded === 'small',\n 'k-rounded-md': rounded === 'medium',\n 'k-rounded-lg': rounded === 'large',\n 'k-rounded-full': rounded === 'full',\n 'k-chip-solid k-chip-solid-base': fillMode === 'solid',\n 'k-chip-flat k-chip-flat-base': fillMode === 'flat',\n 'k-chip-outline k-chip-outline-base': fillMode === 'outline'\n }\"\n >\n <span class=\"k-chip-content\">\n <ng-template *ngIf=\"isGroupTag(tag); then groupTag else singleTag\"></ng-template>\n <ng-template #groupTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"groupTemplate\"\n [templateContext]=\"{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!groupTemplate\">{{ tag.length }} {{ tag.length === 1 ? 'item' : 'items' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"template\"\n [templateContext]=\"{\n templateRef: template.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\">{{ tagProp(tag, textField, index) }}</ng-template>\n </span>\n </ng-template>\n </span>\n\n <span class=\"k-chip-actions\">\n <span aria-label=\"delete\" [attr.aria-hidden]=\"index !== focused\" class=\"k-chip-action k-chip-remove-action\">\n <span class=\"k-icon k-i-x-circle\" (mousedown)=\"deleteTag($event, tag, index)\">\n </span>\n </span>\n </span>\n </div>\n <ng-content></ng-content>\n ",isInline:!0,directives:[{type:r.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:Ee,selector:"[templateContext]",inputs:["templateContext"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:xt,decorators:[{type:h.Component,args:[{selector:"kendo-taglist",template:"\n <div\n *ngFor=\"let tag of tags; let index = index;\"\n [attr.id]=\"itemId(tag, index)\"\n [attr.aria-hidden]=\"tagAriaHidden(index)\"\n class=\"k-chip\"\n [ngClass]=\"{\n 'k-focus': index === focused,\n 'k-disabled': isTagDisabled(tag, index),\n 'k-chip-sm': size === 'small',\n 'k-chip-md': size === 'medium',\n 'k-chip-lg': size === 'large',\n 'k-rounded-sm': rounded === 'small',\n 'k-rounded-md': rounded === 'medium',\n 'k-rounded-lg': rounded === 'large',\n 'k-rounded-full': rounded === 'full',\n 'k-chip-solid k-chip-solid-base': fillMode === 'solid',\n 'k-chip-flat k-chip-flat-base': fillMode === 'flat',\n 'k-chip-outline k-chip-outline-base': fillMode === 'outline'\n }\"\n >\n <span class=\"k-chip-content\">\n <ng-template *ngIf=\"isGroupTag(tag); then groupTag else singleTag\"></ng-template>\n <ng-template #groupTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"groupTemplate\"\n [templateContext]=\"{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!groupTemplate\">{{ tag.length }} {{ tag.length === 1 ? 'item' : 'items' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"template\"\n [templateContext]=\"{\n templateRef: template.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\">{{ tagProp(tag, textField, index) }}</ng-template>\n </span>\n </ng-template>\n </span>\n\n <span class=\"k-chip-actions\">\n <span aria-label=\"delete\" [attr.aria-hidden]=\"index !== focused\" class=\"k-chip-action k-chip-remove-action\">\n <span class=\"k-icon k-i-x-circle\" (mousedown)=\"deleteTag($event, tag, index)\">\n </span>\n </span>\n </span>\n </div>\n <ng-content></ng-content>\n "}]}],ctorParameters:function(){return[{type:o.Renderer2},{type:o.ElementRef}]},propDecorators:{tags:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],valueDepth:[{type:h.Input}],focused:[{type:h.Input}],template:[{type:h.Input}],groupTemplate:[{type:h.Input}],disabled:[{type:h.Input}],tagPrefix:[{type:h.Input}],id:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],disabledIndices:[{type:h.Input}],removeTag:[{type:h.Output}],hostClasses:[{type:h.HostBinding,args:["class.k-input-values"]},{type:h.HostBinding,args:["class.k-chip-list"]},{type:h.HostBinding,args:["class.k-selection-multiple"]}],hostId:[{type:h.HostBinding,args:["attr.id"]}]}});var St={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Dt})},Dt=(P.prototype.focusItemAt=function(e){var t=(this.allowCustom?-1:0)<=0&&e<this.data.length;c(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},P.prototype.focus=function(){this.disabled||this.searchbar.focus()},P.prototype.onSearchBarFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,p.hasObservers(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},P.prototype.blur=function(){this.disabled||this.searchbar.blur()},P.prototype.onSearchBarBlur=function(){var e=this;this.isFocused&&(this.isFocused=!1,p.hasObservers(this.onBlur)||p.hasObservers(this.filterChange)||p.hasObservers(this.close)||ne(this.wrapper.nativeElement)?this._zone.run(function(){e.closePopup(),e.isOpen&&e.allowCustom||e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup()))},P.prototype.onMouseDown=function(e){e.preventDefault()},P.prototype.onResize=function(){var e,t,n;this._open&&(e=this.popupRef.popupElement,t=(n=this.width).min,n=n.max,e.style.minWidth=t,e.style.width=n)},Object.defineProperty(P.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"data",{get:function(){var e,t,n=this.virtual;return n?(t=(e=n.skip||0)+n.pageSize,n.total=this.dataService.data.length,this.dataService.data.slice(e,t)):this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(P.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:!1,configurable:!0}),Object.defineProperty(P.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,l("input",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,d(t)),this._rounded=t},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,pe("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",t)),this._fillMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"placeholder",{get:function(){return this.selectedDataItems.length?"":this._placeholder},set:function(e){this._placeholder=e||""},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(P.prototype,"checkboxes",{get:function(){return this._checkboxes},set:function(e){this._checkboxes=ue(e=e)?Object.assign({},{enabled:!0,checkOnClick:!0},e):{enabled:Boolean(e),checkOnClick:!0}},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Te(e)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"valuePrimitive",{get:function(){return c(this._valuePrimitive)?this._valuePrimitive:!c(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),P.prototype.handleKeyboardEvent=function(e){this.isFocused&&this.isOpen&&(e.ctrlKey||e.metaKey)&&e.keyCode===p.Keys.KeyA&&(e.preventDefault(),this.handleSelectAll())},P.prototype.hostMousedown=function(e){var t=this.searchbar.input.nativeElement;0!==e.button||this.isFocused&&this.isOpen&&e.target===t||((!this.touchEnabled||this.touchEnabled&&"SPAN"!==e.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),e.preventDefault())},Object.defineProperty(P.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"customItemSizeClass",{get:function(){return""+(this.size?l("list",this.size):"")},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"width",{get:function(){var e=0,t=(p.isDocumentAvailable()&&(e=this.wrapper.nativeElement.offsetWidth),this.popupSettings.width||e);return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"height",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"activeDescendant",{get:function(){var e,t,n=this.focusedTagIndex,i=this.selectionService.focused;if(c(n)&&!this.isOpen)t=this.tags[n],e=this.tagPrefix;else{if(!c(i)||-1===i||!this.isOpen)return null;t=this.dataService.itemAt(i),e=this.optionPrefix}return e+"-"+u(t,this.valueField)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!1,configurable:!0}),P.prototype.verifySettings=function(){if(h.isDevMode()&&0!==this.value.length){if(!ce(this.value))throw new Error(_e);if(!0===this.valuePrimitive&&J(this.value))throw new Error(He);if(!1===this.valuePrimitive&&!J(this.value))throw new Error(je);if(!c(this.valueField)!=!c(this.textField))throw new Error(Ke)}},P.prototype.change=function(e){var t,n,i=this;if(e.isMultipleSelection)c(e.added)&&0<e.added.length&&e.added.forEach(function(e){e=i.dataService.itemAt(e),e=i.valuePrimitive&&c(e)&&c(e[i.valueField])?e[i.valueField]:e;e&&(i.value=q(q([],W(i.value)),[e]))}),c(e.removed)&&0<e.removed.length&&(e.removed.forEach(function(e){var t=i.dataService.itemAt(e);i.value=i.value.filter(function(e){return u(e,i.valueField)!==u(t,i.valueField)})}),this.cdr.detectChanges());else{if((c(e.added)||c(e.removed))&&(-1===e.added||-1===e.removed))return void this.addCustomValue(this.text);c(e.added)&&(t=this.dataService.itemAt(e.added),t=this.valuePrimitive&&c(t)&&c(t[this.valueField])?t[this.valueField]:t,this.value=q(q([],W(this.value)),[t])),c(e.removed)&&(n=this.dataService.itemAt(e.removed),this.value=this.value.filter(function(e){return u(e,i.valueField)!==u(n,i.valueField)}),this.selectionService.focused=e.removed,this.cdr.detectChanges())}this.emitValueChange()},P.prototype.setState=function(e){var n=this,t=this.dataService.data,i=(this.dataService.grouped&&(t=t.filter(function(e){return!e.header}).map(function(e){return e.value})),Y(this.value,t,this.valueField));this.selectionService.resetSelection(i),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(0<this.dataService.itemsCount?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(J(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=Q(e,t,this.valueField)),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map(function(t){var e=n.selectedDataItems.find(function(e){return u(e,n.valueField)===u(t,n.valueField)});return c(e)?e:n.resolveDataItemFromTags(t)}).filter(function(e){return c(e)})),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()},P.prototype.handleFilter=function(e){(this.text=e)&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()},P.prototype.pageChange=function(e){this.virtual.skip=e.skip},P.prototype.clearFilter=function(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()},P.prototype.handleNavigate=function(e){var t=this.text&&e.keyCode!==p.Keys.ArrowDown&&e.keyCode!==p.Keys.ArrowUp,n=this.text&&e.keyCode===p.Keys.Enter||e.keyCode===p.Keys.Escape;!this.text&&e.keyCode===p.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||t&&!n||(t=e,n=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,(n=this.navigationService.process({current:n,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:t}))!==C.Undefined&&(n===C.Enter&&this.isOpen||n!==C.Enter)&&e.preventDefault())},P.prototype.handleRemoveTag=function(e){var e=e.tag,t=new kt(e);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(t),t.isDefaultPrevented()||(e instanceof Array?this.removeGroupTag(e):this.removeSingleTag(e),this.cdr.detectChanges()))},P.prototype.clearAll=function(e){var n=this,i=(null!=e&&e.stopImmediatePropagation(),null!=e&&e.preventDefault(),this.focus(),this.clearFilter(),this.selectionService.lastClickedIndex=null,this.selectionService.selected);this.value=this.value.filter(function(e,t){return n.disabledItemsService.isIndexDisabled(i[t])}),this.emitValueChange()},P.prototype.addCustomValue=function(e){this.customValueSubject.next(e)},P.prototype.ngAfterContentChecked=function(){this.verifySettings()},P.prototype.ngDoCheck=function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1},P.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()}),this.setState(this.value),this.setComponentClasses(),this.initialized=!0},P.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),p.isChanged("valueNormalizer",e)&&this.createCustomValueStream(),p.anyChanged(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)},P.prototype.ngAfterViewInit=function(){this.searchbar.setInputSize()},P.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents()},P.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!n._open;n._toggle(e),n.cdr.markForCheck()})},Object.defineProperty(P.prototype,"isOpen",{get:function(){return this._open},enumerable:!1,configurable:!0}),P.prototype.reset=function(){this.text="",this.value=[]},P.prototype.messageFor=function(e){return this.localization.get(e)},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.onTagMapperChange=function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},Object.defineProperty(P.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),P.prototype.subscribeEvents=function(){var e,t,n,i=this;p.isDocumentAvailable()&&(e=function(){return i.isOpen},t=function(){return!i.isOpen},n=function(){return!i.isOpen&&void 0!==i.focusedTagIndex},[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(m.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(m.filter(e)).subscribe(function(e){return i.handleUp(e.index)}),this.navigationService.home.pipe(m.filter(function(){return t})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(m.filter(function(){return t})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(m.filter(n)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(m.filter(n)).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 i.handleDownKey(e.index)}),this.navigationService.selectprevious.pipe(m.filter(e)).subscribe(function(e){return i.handleSelectUpDown(e)}),this.navigationService.selectnext.pipe(m.filter(e)).subscribe(function(e){return i.handleSelectUpDown(e)}),this.navigationService.selectalltobeginning.pipe(m.filter(e)).subscribe(function(){return i.handleSelectAllToBeginning()}),this.navigationService.selectalltoend.pipe(m.filter(e)).subscribe(function(){return i.handleSelectAllToEnd()}),g.merge(this.navigationService.pagedown,this.navigationService.pageup).subscribe(function(e){i.isOpen&&(e.originalEvent.preventDefault(),i.optionsList.scrollWithOnePage(C[e.originalEvent.code]))})].forEach(function(e){return i.observableSubscriptions.add(e)}))},P.prototype.subscribeTouchEvents=function(){var t=this;p.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;!t.isFocused&&!t.isOpen||se(t.wrapper,e,t.popupRef)||t._zone.run(function(){t.blur(),t.isOpen&&t.togglePopup(!1)})})})},P.prototype.unsubscribeEvents=function(){p.isDocumentAvailable()&&(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},P.prototype.removeGroupTag=function(e){var n=this,i=this.dataService.data,o=(this.dataService.grouped&&(i=i.filter(function(e){return!e.header}).map(function(e){return e.value})),new Set(e.map(function(e){return u(e,n.valueField)})));this.value=this.value.filter(function(e){var t=Y([e],i,n.valueField)[0],t=n.disabledItemsService.isIndexDisabled(t);return!o.has(u(e,n.valueField))||t}),this.emitValueChange()},P.prototype.removeSingleTag=function(t){var n=this,e=this.dataService.data,e=(this.dataService.grouped&&(e=e.filter(function(e){return!e.header}).map(function(e){return e.value})),Y([t],e,this.valueField)[0]);this.disabledItemsService.isIndexDisabled(e)||(isNaN(e)?(this.value=this.value.filter(function(e){return u(e,n.valueField)!==u(t,n.valueField)}),this.emitValueChange()):(this.selectionService.deselect(e),this.selectionService.focused=e,this.togglePopup(!1)))},P.prototype.disabledItemsMapper=function(){var i=this,o=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(e,t,n){return i.disabledItemsService.isIndexDisabled(o[n])&&e.push(n),e},[]))},P.prototype.createCustomValueStream=function(){var o=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(m.tap(function(){o.loading=!0,o.disabled=!0,o.cdr.detectChanges()}),this.valueNormalizer,m.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,n,i;o.loading=!1,o.disabled=!1,c(e)&&(t=o.valuePrimitive?u(e,o.valueField):e,i=-1===(n=o.dataService.indexOf(t)),-1===o.value.indexOf(t)?(o.tags=o.tagMapper(q(q([],W(o.selectedDataItems)),[e])),i?o.value=q(q([],W(o.value)),[t]):o.selectionService.add(n)):!i&&o.selectionService.isSelected(n)?(o.selectionService.deselect(n),o.selectionService.focused=n):o.value=o.value.filter(function(e){return u(e,o.valueField)!==t}),o.emitValueChange()),o.autoClose&&o.togglePopup(!1),!o.autoClose&&o.filterable||o.clearFilter(),o.nextTick(function(){o.searchbar.focus()})})},P.prototype.handleItemChange=function(e){this.change(e),this.autoClose&&!e.preventClosingPopup&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()},P.prototype.handleEnter=function(e){var t=this.selectionService,n=this.selectionService.focused;this.selectionService.lastClickedIndex=n,this.isOpen&&e.originalEvent.preventDefault(),-1===n?this.allowCustom&&this.text&&this.addCustomValue(this.text):(t.isSelected(n)?(t.deselect(n),t.focused=n):t.add(n),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter())},P.prototype.handleClose=function(){this.closePopup(),this.searchbar.focus()},P.prototype.handleEnd=function(){this.focusedTagIndex=this.tags.length-1},P.prototype.handleHome=function(){this.focusedTagIndex=0},P.prototype.sortSelectionAscending=function(){return this.selectionService.selected.sort(function(e,t){return e-t})},P.prototype.handleSelectAll=function(){var e=this.selectionService.selected.length,t=this.dataService.data.length,n=this.dataService.data.filter(function(e){return!e.header}).length;!this.dataService.grouped&&e===t||this.dataService.grouped&&e===n?this.clearAll():(this.selectionService.selectFromTo(0,t-1),this.selectionService.emitMultipleAddedRemoved())},P.prototype.handleSelectAllToBeginning=function(){var e=this,t=this.selectionService.selected.length,n=this.dataService.data.length,i=this.selectionService.focused,o=this.sortSelectionAscending()[t-1];t!==n&&(this.selectionService.unselectFromTo(o,i+1),this.selectionService.selectFromTo(0,i)),this.nextTick(function(){return e.selectionService.focus(0)}),this.selectionService.emitMultipleAddedRemoved()},P.prototype.handleSelectAllToEnd=function(){var e,t=this,n=this.selectionService.selected.length,i=this.dataService.data.length,o=this.selectionService.focused;n!==i&&(this.selectionService.unselectFromTo(o-1,0),this.selectionService.selectFromTo(o,i-1)),this.dataService.grouped?(e=this.dataService.groupIndices[this.dataService.groupIndices.length-1]-1,this.nextTick(function(){return t.selectionService.focus(e)})):this.nextTick(function(){return t.selectionService.focus(i-1)}),this.selectionService.emitMultipleAddedRemoved()},P.prototype.handleSelectUpDown=function(e){var t=this.selectionService.focused;c(t)&&(e="ArrowUp"===e.originalEvent.key?0<t?t-1:t:t<this.dataService.data.length-1?t+1:t,c(this.selectionService.lastClickedIndex)||(this.selectionService.lastClickedIndex=t),this.selectRangeFromTo(e))},P.prototype.selectRangeFromTo=function(e){var t=this,n=this.selectionService.lastClickedIndex;e<n?(this.selectionService.unselectNotNeededIndices(e,n,this.dataService.data.length),this.selectionService.selectFromTo(e,this.selectionService.lastClickedIndex)):(this.selectionService.unselectNotNeededIndices(n,e,this.dataService.data.length),this.selectionService.selectFromTo(n,e)),this.selectionService.emitMultipleAddedRemoved(),this.nextTick(function(){return t.selectionService.focus(e)})},P.prototype.handleUp=function(e){this.selectionService.focused=e},P.prototype.handleBackspace=function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())},P.prototype.handleDelete=function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},P.prototype.handleLeftKey=function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},P.prototype.handleDownKey=function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()},P.prototype.handleRightKey=function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e&&this.focusedTagIndex++},P.prototype.findIndex=function(t,e){var n,i=this,e=(void 0===e&&(e=0),t=t.toLowerCase(),this.dataService.findIndex(function(e){return n=i.dataService.grouped?u(e.value,i.textField):u(e,i.textField),n=c(n)?n.toString().toLowerCase():"",t&&n.startsWith(t)},e));return this.disabledItemsService.isIndexDisabled(e)?e+1>this.dataService.itemsCount?-1:this.findIndex(t,e+1):e},P.prototype.searchTextAndFocus=function(e){e=this.findIndex(e);this.selectionService.focused=e},P.prototype.closePopup=function(){this.togglePopup(!1),this.focusedTagIndex=void 0},P.prototype.openPopup=function(){this.togglePopup(!0),this.focusedTagIndex=void 0},P.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||this._toggle(e)},P.prototype.triggerPopupEvents=function(e){var t=new ke;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},P.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},P.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},P.prototype.createPopup=function(){var e=this,t=(this.virtual&&(this.virtual.skip=0),"rtl"===this.direction?"right":"left"),t=(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"}),this.popupRef.popupElement),n=this.width,i=n.min,n=n.max,i=(t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=i,t.style.width=n,t.style.height=this.height,t.setAttribute("dir",this.direction),t.querySelector("ul.k-list-ul")),n=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");n&&i.setAttribute("aria-labelledby",n),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)})},P.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)},P.prototype.resolveDataItemFromTags=function(t){var n=this;if(this.tags&&this.tags.length&&c(t))return this.tags.reduce(function(e,t){t=ce(t)?t:[t];return e.push.apply(e,q([],W(t))),e},[]).find(function(e){return u(e,n.valueField)===u(t,n.valueField)})},P.prototype.firstFocusableIndex=function(e){var t,n=this.dataService.itemsCount;return this.disabledItemsService.isIndexDisabled(e)?(t=e+1)<n?this.firstFocusableIndex(t):void 0:e},P.prototype.nextTick=function(e){var t=this;this._zone.runOutsideAngular(function(){setTimeout(function(){return t._zone.run(e)})})},P.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",this.fillMode))},P);function P(e,t,n,i,o,s,a,r,l,p,d,c){var u=this;this.wrapper=e,this.localization=t,this.popupService=n,this.dataService=i,this.selectionService=o,this.navigationService=s,this.disabledItemsService=a,this.cdr=r,this.differs=l,this.renderer=p,this._zone=d,this.touchEnabled=c,this.listBoxId=Z(),this.tagListId=Z(),this.tagPrefix="tag-"+Z(),this.optionPrefix="option-"+Z(),this.focusedTagIndex=void 0,this.focusableId="k-"+Z(),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(m.map(function(t){function e(e){return"string"==typeof e&&t.toLowerCase()===e.toLowerCase()}var n=u.value.find(e);return n||u.dataService.find(e)||t}))},this.filterChange=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.removeTag=new h.EventEmitter,this.hostClasses=!0,this.initialized=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new g.Subject,this.observableSubscriptions=new g.Subscription,B.validatePackage($),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}Dt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Dt,deps:[{token:o.ElementRef},{token:a.LocalizationService},{token:H.PopupService},{token:I},{token:x},{token:T},{token:k},{token:o.ChangeDetectorRef},{token:o.KeyValueDiffers},{token:o.Renderer2},{token:o.NgZone},{token:De,optional:!0}],target:o.ɵɵFactoryTarget.Component}),Dt.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Dt,selector:"kendo-multiselect",inputs:{focusableId:"focusableId",autoClose:"autoClose",loading:"loading",data:"data",value:"value",valueField:"valueField",textField:"textField",tabindex:"tabindex",tabIndex:"tabIndex",size:"size",rounded:"rounded",fillMode:"fillMode",placeholder:"placeholder",disabled:"disabled",itemDisabled:"itemDisabled",checkboxes:"checkboxes",readonly:"readonly",filterable:"filterable",virtual:"virtual",popupSettings:"popupSettings",listHeight:"listHeight",valuePrimitive:"valuePrimitive",clearButton:"clearButton",tagMapper:"tagMapper",allowCustom:"allowCustom",valueNormalizer:"valueNormalizer"},outputs:{filterChange:"filterChange",valueChange:"valueChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur",removeTag:"removeTag"},host:{listeners:{keydown:"handleKeyboardEvent($event)",mousedown:"hostMousedown($event)"},properties:{"class.k-multiselect":"this.hostClasses","class.k-input":"this.hostClasses","attr.dir":"this.dir","class.k-disabled":"this.disabledClass","class.k-loading":"this.isLoading"}},providers:[St,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:xe,useExisting:h.forwardRef(function(){return Dt})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return Dt})}],queries:[{propertyName:"template",first:!0,predicate:he,descendants:!0},{propertyName:"customItemTemplate",first:!0,predicate:ft,descendants:!0},{propertyName:"groupTemplate",first:!0,predicate:ge,descendants:!0},{propertyName:"fixedGroupTemplate",first:!0,predicate:me,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"tagTemplate",first:!0,predicate:yt,descendants:!0},{propertyName:"groupTagTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"searchbar",first:!0,predicate:f,descendants:!0,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"optionsList",first:!0,predicate:["optionsList"],descendants:!0}],exportAs:["kendoMultiSelect"],usesOnChanges:!0,ngImport:o,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.multiselect.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'combobox\'"\n [tagListId]="tagListId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n </kendo-taglist>\n\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading k-input-loading-icon"\n >\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div\n *ngIf="allowCustom && text"\n class="k-list"\n [ngClass]="customItemSizeClass"\n >\n <div class="k-list-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n [checkboxes]="checkboxes"\n [isMultiselect]="true"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 ',isInline:!0,components:[{type:xt,selector:"kendo-taglist",inputs:["tags","textField","valueField","valueDepth","focused","template","groupTemplate","disabled","tagPrefix","id","size","rounded","fillMode","disabledIndices"],outputs:["removeTag"]},{type:f,selector:"kendo-searchbar",inputs:["id","listId","tagListId","activeDescendant","disabled","readonly","tabIndex","popupOpen","role","isLoading","isSuggestable","isFilterable","userInput","suggestedText","placeholder"],outputs:["valueChange","onBlur","onFocus","onClick","onNavigate"]},{type:Me,selector:"kendo-list",inputs:["selected","focused","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","id","optionPrefix","multipleSelection","virtual","type","checkboxes","ariaLive","isMultiselect","data","size","rounded"],outputs:["onClick","pageChange","listResize"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:Be,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:Ee,selector:"[templateContext]",inputs:["templateContext"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:Oe,selector:"[kendoDropDownsSelectable]",inputs:["index","checkboxes","height","multipleSelection"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Dt,decorators:[{type:h.Component,args:[{exportAs:"kendoMultiSelect",providers:[St,I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:xe,useExisting:h.forwardRef(function(){return Dt})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return Dt})}],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.multiselect.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'combobox\'"\n [tagListId]="tagListId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n </kendo-taglist>\n\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading k-input-loading-icon"\n >\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div\n *ngIf="allowCustom && text"\n class="k-list"\n [ngClass]="customItemSizeClass"\n >\n <div class="k-list-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n [checkboxes]="checkboxes"\n [isMultiselect]="true"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'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 '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:a.LocalizationService},{type:H.PopupService},{type:I},{type:x},{type:T},{type:k},{type:o.ChangeDetectorRef},{type:o.KeyValueDiffers},{type:o.Renderer2},{type:o.NgZone},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[De]}]}]},propDecorators:{focusableId:[{type:h.Input}],autoClose:[{type:h.Input}],loading:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],valueField:[{type:h.Input}],textField:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input,args:["tabIndex"]}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],placeholder:[{type:h.Input}],disabled:[{type:h.Input}],itemDisabled:[{type:h.Input}],checkboxes:[{type:h.Input}],readonly:[{type:h.Input}],filterable:[{type:h.Input}],virtual:[{type:h.Input}],popupSettings:[{type:h.Input}],listHeight:[{type:h.Input}],valuePrimitive:[{type:h.Input}],clearButton:[{type:h.Input}],tagMapper:[{type:h.Input}],allowCustom:[{type:h.Input}],valueNormalizer:[{type:h.Input}],filterChange:[{type:h.Output}],valueChange:[{type:h.Output}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],removeTag:[{type:h.Output}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],searchbar:[{type:h.ViewChild,args:[f,{static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],optionsList:[{type:h.ViewChild,args:["optionsList",{static:!1}]}],template:[{type:h.ContentChild,args:[he,{static:!1}]}],customItemTemplate:[{type:h.ContentChild,args:[ft,{static:!1}]}],groupTemplate:[{type:h.ContentChild,args:[ge,{static:!1}]}],fixedGroupTemplate:[{type:h.ContentChild,args:[me,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],tagTemplate:[{type:h.ContentChild,args:[yt,{static:!1}]}],groupTagTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],hostClasses:[{type:h.HostBinding,args:["class.k-multiselect"]},{type:h.HostBinding,args:["class.k-input"]}],dir:[{type:h.HostBinding,args:["attr.dir"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],handleKeyboardEvent:[{type:h.HostListener,args:["keydown",["$event"]]}],hostMousedown:[{type:h.HostListener,args:["mousedown",["$event"]]}]}});function wt(){var e;return isNaN(Ft)&&((e=document.createElement("div")).style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML="&nbsp;",document.body.appendChild(e),Ft=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)),Ft}function Et(e){var t;return c(t=e)&&0!==t.length&&t.toArray().every(function(e){return!isNaN(e.width)&&0<e.width})?(t=wt()+2,e.reduce(function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e},t)):null}var Ft,Ot,St=function(e){this.templateRef=e},Pt=(St.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:St,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),St.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:St,selector:"[kendoMultiColumnComboBoxColumnCellTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:St,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(e){this.templateRef=e}),Mt=(Pt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Pt,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),Pt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Pt,selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Pt,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),function(){this.hidden=!1,this.matchesMedia=!0}),At=(Mt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Mt,deps:[],target:o.ɵɵFactoryTarget.Component}),Mt.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Mt,selector:"kendo-combobox-column",inputs:{field:"field",title:"title",width:"width",hidden:"hidden",style:"style",headerStyle:"headerStyle",class:"class",headerClass:"headerClass",media:"media"},queries:[{propertyName:"cellTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:Pt,descendants:!0}],ngImport:o,template:"",isInline:!0}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Mt,decorators:[{type:h.Component,args:[{selector:"kendo-combobox-column",template:""}]}],propDecorators:{cellTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],field:[{type:h.Input}],title:[{type:h.Input}],width:[{type:h.Input}],hidden:[{type:h.Input}],style:[{type:h.Input}],headerStyle:[{type:h.Input}],class:[{type:h.Input}],headerClass:[{type:h.Input}],media:[{type:h.Input}]}}),U(zt,Ot=ht),Object.defineProperty(zt.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(zt.prototype,"header",{set:function(e){this.updateHeaderPadding(e&&e.nativeElement)},enumerable:!1,configurable:!0}),Object.defineProperty(zt.prototype,"popupWidth",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=e+"px",e=this.popupSettings.width||Et(this.columns)||e;return{min:t,max:isNaN(e)?e:e+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(zt.prototype,"tableSizeClass",{get:function(){return""+(this.size?l("table",this.size):"")},enumerable:!1,configurable:!0}),Object.defineProperty(zt.prototype,"listContainerClasses",{get:function(){return["k-popup","k-dropdowngrid-popup"].concat(this.popupSettings.popupClass||[])},enumerable:!1,configurable:!0}),zt.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},zt.prototype.ngOnDestroy=function(){Ot.prototype.ngOnDestroy.call(this),this.removeWindowResizeListener()},zt.prototype.textFrom=function(e,t){return u(e,t)},zt.prototype.updateHeaderPadding=function(e){var t;c(e)&&(t=this.localization.rtl?"padding-left":"padding-right",this.optionsList.hasScrollbar()&&0<wt()?this.renderer.setStyle(e,t,wt()+"px"):this.renderer.removeStyle(e,t))},zt.prototype.verifySettings=function(){if(h.isDevMode()){if(c(this.data)&&0<this.data.length&&this.data.some(function(e){return!ue(e)}))throw new Error(nt);if(!c(this.valueField)||!c(this.textField))throw new Error(it);Ot.prototype.verifySettings.call(this)}},zt.prototype.addWindowResizeListener=function(){var e=this;p.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))})},zt.prototype.updateColumnsMediaState=function(){var n=this;c(this.columns)&&p.isDocumentAvailable()&&this.columns.forEach(function(e){var t=!e.media||window.matchMedia(e.media).matches;e.matchesMedia!==t&&(e.matchesMedia=t,n.isOpen&&n.zone.run(function(){return n.popupRef.popupElement.style.width=n.popupWidth.max}))})},zt);function zt(e,t,n,i,o,s,a,r,l,p,d){p=Ot.call(this,p,e,t,n,i,o,s,a,r,l,d)||this;return p.hostClasses=!0,p.removeWindowResizeListener=ie,p.defaultVirtualItemHeight=36,p.defaultVirtualPageSize=30,p}At.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:At,deps:[{token:a.LocalizationService},{token:H.PopupService},{token:x},{token:T},{token:k},{token:I},{token:o.NgZone},{token:o.ChangeDetectorRef},{token:o.Renderer2},{token:o.ElementRef},{token:De}],target:o.ɵɵFactoryTarget.Component}),At.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:At,selector:"kendo-multicolumncombobox",host:{properties:{"class.k-dropdowngrid":"this.hostClasses","class.k-disabled":"this.isDisabled"}},providers:[x,I,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return At})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return At})},{provide:xe,useExisting:h.forwardRef(function(){return At})}],queries:[{propertyName:"columns",predicate:Mt}],viewQueries:[{propertyName:"header",first:!0,predicate:["header"],descendants:!0}],usesInheritance:!0,ngImport:o,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 i18n-selectButtonText="kendo.multicolumncombobox.selectButtonText|The title of the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n\n <button\n #select\n tabindex="-1"\n aria-hidden="true"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--data table--\x3e\n <div class="k-data-table" [ngClass]="tableSizeClass">\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-table-header"\n >\n <div class="k-table-header-wrap">\n <table class="k-table" role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <thead class="k-table-thead">\n <tr class="k-table-row">\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-th"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-td"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [type]="\'dropdowngrid\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-no-data"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-table-footer">\n <table class="k-table">\n <tfoot class="k-table-tfoot">\n <tr class="k-table-row">\n <td class="k-table-td">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </ng-container>\n\n </div>\n\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:f,selector:"kendo-searchbar",inputs:["id","listId","tagListId","activeDescendant","disabled","readonly","tabIndex","popupOpen","role","isLoading","isSuggestable","isFilterable","userInput","suggestedText","placeholder"],outputs:["valueChange","onBlur","onFocus","onClick","onNavigate"]},{type:Me,selector:"kendo-list",inputs:["selected","focused","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","id","optionPrefix","multipleSelection","virtual","type","checkboxes","ariaLive","isMultiselect","data","size","rounded"],outputs:["onClick","pageChange","listResize"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:Be,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:Ee,selector:"[templateContext]",inputs:["templateContext"]},{type:r.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:r.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:At,decorators:[{type:h.Component,args:[{providers:[x,I,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return At})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return At})},{provide:xe,useExisting:h.forwardRef(function(){return At})}],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 i18n-selectButtonText="kendo.multicolumncombobox.selectButtonText|The title of the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [isLoading]="loading"\n [isSuggestable]="suggest"\n [isFilterable]="filterable"\n [activeDescendant]="activeDescendant"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n\n <button\n #select\n tabindex="-1"\n aria-hidden="true"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--data table--\x3e\n <div class="k-data-table" [ngClass]="tableSizeClass">\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-table-header"\n >\n <div class="k-table-header-wrap">\n <table class="k-table" role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <thead class="k-table-thead">\n <tr class="k-table-row">\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-th"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-td"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [type]="\'dropdowngrid\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-no-data"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-table-footer">\n <table class="k-table">\n <tfoot class="k-table-tfoot">\n <tr class="k-table-row">\n <td class="k-table-td">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </ng-container>\n\n </div>\n\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n '}]}],ctorParameters:function(){return[{type:a.LocalizationService},{type:H.PopupService},{type:x},{type:T},{type:k},{type:I},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:o.Renderer2},{type:o.ElementRef},{type:void 0,decorators:[{type:h.Inject,args:[De]}]}]},propDecorators:{hostClasses:[{type:h.HostBinding,args:["class.k-dropdowngrid"]}],isDisabled:[{type:h.HostBinding,args:["class.k-disabled"]}],columns:[{type:h.ContentChildren,args:[Mt]}],header:[{type:h.ViewChild,args:["header",{static:!1}]}]}});function Rt(){return!1}function Bt(){return g.of([])}function Vt(){return!1}function Nt(){return!0}var Lt=function(e){this.templateRef=e},_t=(Lt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Lt,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive}),Lt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Lt,selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Lt,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}]}],ctorParameters:function(){return[{type:o.TemplateRef}]}}),{animate:!0}),jt=(Object.defineProperty(M.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"id",{get:function(){return this.focusableId},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!1,configurable:!0}),M.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},M.prototype.handleKeydown=function(e){this.disabled||this.readonly||this.navigationService.process({originalEvent:e})},Object.defineProperty(M.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:!1,configurable:!0}),Object.defineProperty(M.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},_t,e)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"dataItem",{get:function(){return this._dataItem||this.value},set:function(e){this._dataItem=e,this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,l("picker",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,l("picker",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,d(t)),this._rounded=t},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,pe("picker",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,pe("picker",t)),this._fillMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.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:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isOpen",{get:function(){return c(this.popupRef)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!1,configurable:!0}),M.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()})),this.setComponentClasses()},M.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},M.prototype.ngOnChanges=function(e){p.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},M.prototype.ngAfterContentChecked=function(){this.verifySettings()},M.prototype.isEmpty=function(){return!this.text&&!this.placeholder},M.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup())},M.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,p.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()})))},M.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.wrapper.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,p.hasObservers(this.onBlur)||ne(this.wrapper.nativeElement)?this._zone.run(function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()}):this.togglePopup(!1))},M.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),c(t)&&!this.treeview.isDisabled(t.item.dataItem,t.item.index)&&this.treeview.focus(e))},M.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},M.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},M.prototype.reset=function(){this.value=void 0,this.dataItem=void 0},M.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!c(n.popupRef);n.destroyPopup(),e&&n.createPopup()})},Object.defineProperty(M.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!1,configurable:!0}),M.prototype.onSelectionChange=function(e){var t=e.dataItem,e=e.index,e=(this.valueDepth=e.split("_").length-1,this.getField(this.valueField,t)),e=this.valuePrimitive?V.getter(e)(t):t;e!==this.value&&(this.value=e,this.dataItem=t,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()},M.prototype.messageFor=function(e){return this.localization.get(e)},M.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(M.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),M.prototype.preventEventDefault=function(e){e.preventDefault()},M.prototype.writeValue=function(e){!c(e)&&c(this.value)&&(this.dataItem=null),this.value=null===e?void 0:e},M.prototype.registerOnChange=function(e){this.onChangeCallback=e},M.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},M.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},M.prototype.handleFilterInputChange=function(e){var n=this;this.filterChange.next(e.value),this.allNodesHidden=this.nodes.every(function(e,t){return!n.isVisible(e,String(t))})},Object.defineProperty(M.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading k-input-loading-icon":"k-i-caret-alt-down"},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"selectButtonClasses",{get:function(){return(this.size?l("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"filterInputClasses",{get:function(){return(this.size?l("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?d(this.rounded):"")},enumerable:!1,configurable:!0}),M.prototype.verifySettings=function(){if(h.isDevMode()){if(!0===this.valuePrimitive&&c(this.value)&&"object"==typeof this.value)throw new Error(lt);if(!0===this.valuePrimitive&&c(this.value)&&"object"!=typeof this.dataItem)throw new Error(dt);if(!1===this.valuePrimitive&&c(this.value)&&"object"!=typeof this.value)throw new Error(pt);if(!c(this.valueField)||!c(this.textField))throw new Error(ct);if((ce(this.valueField)||ce(this.textField))&&c(this.value)&&!c(this.valueDepth))throw new Error(ut)}},M.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},M.prototype.getText=function(e,t){return c(t)&&c(e)?(e=this.getField(e,t),V.getter(e)(t)):null},M.prototype.getField=function(e,t){var n=e.length-1;return"string"==typeof e?e:c(this.valueDepth)?n<this.valueDepth?e[n]:e[this.valueDepth]:e.find(function(e){return e in t})},M.prototype.triggerPopupEvents=function(e){var t=new ke;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},M.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",t=(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}),this.popupRef.popupElement),n=this.width,i=n.min,n=n.max;t.style.minWidth=i,t.style.width=n,t.style.height=this.height,t.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()})},M.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,p.hasObservers(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},M.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},M.prototype.setState=function(){var e;c(this.value)&&c(this.dataItem)&&c(this.valueField)?(this.text=this.getText(this.textField,this.dataItem),e=this.getField(this.valueField,this.dataItem),this.selectBy=e,this.selectedKeys=[V.getter(e)(this.dataItem)]):this.clearState(),this.cdr.markForCheck()},M.prototype.clearState=function(){this.text=void 0,this.selectedKeys=[]},M.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(m.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())}))},M.prototype.subscribeTouchEvents=function(){var t=this;p.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!se(t.wrapper,e,t.popupRef)&&t._zone.run(function(){t.isOpen&&t.treeview.blur(),t.blur()})})})},M.prototype.subscribeFocusEvents=function(){var e=this;p.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular(function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)}))},M.prototype.unSubscribeFocusEvents=function(){p.isDocumentAvailable()&&(document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0))},M.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},M.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},M.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)},M.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("picker",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,pe("picker",this.fillMode))},M);function M(e,t,n,i,o,s,a,r){this.wrapper=e,this.popupService=t,this.navigationService=n,this.renderer=i,this._zone=o,this.cdr=s,this.localization=a,this.touchEnabled=r,this.hostClasses=!0,this.role="listbox",this.ariaHasPopup="tree",this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.nodeExpand=new h.EventEmitter,this.nodeCollapse=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.clearButton=!0,this.hasChildren=Rt,this.fetchChildren=Bt,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=Vt,this.isNodeVisible=Nt,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+p.guid(),this.selectedKeys=[],this.filterStateChange=new h.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+p.guid(),this._popupSettings=_t,this._tabindex=0,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.onTouchedCallback=ie,this.onChangeCallback=ie,this.direction=a.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents()}jt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:jt,deps:[{token:o.ElementRef},{token:H.PopupService},{token:T},{token:o.Renderer2},{token:o.NgZone},{token:o.ChangeDetectorRef},{token:a.LocalizationService},{token:De,optional:!0}],target:o.ɵɵFactoryTarget.Component}),jt.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:jt,selector:"kendo-dropdowntree",inputs:{loading:"loading",clearButton:"clearButton",data:"data",value:"value",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",hasChildren:"hasChildren",fetchChildren:"fetchChildren",placeholder:"placeholder",popupSettings:"popupSettings",dataItem:"dataItem",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",valuePrimitive:"valuePrimitive",tabindex:"tabindex",size:"size",rounded:"rounded",fillMode:"fillMode",itemDisabled:"itemDisabled",isNodeExpanded:"isNodeExpanded",isNodeVisible:"isNodeVisible",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",focusableId:"focusableId"},outputs:{open:"open",opened:"opened",close:"close",closed:"closed",nodeExpand:"nodeExpand",nodeCollapse:"nodeCollapse",onFocus:"focus",onBlur:"blur",valueChange:"valueChange",filterChange:"filterChange"},host:{listeners:{click:"handleClick()",keydown:"handleKeydown($event)"},properties:{"class.k-dropdowntree":"this.hostClasses","class.k-picker":"this.hostClasses","class.k-disabled":"this.isDisabled","attr.aria-disabled":"this.isDisabled","class.k-loading":"this.isLoading","attr.id":"this.id","attr.dir":"this.direction","attr.tabindex":"this.hostTabIndex","attr.role":"this.role","attr.aria-haspopup":"this.ariaHasPopup","attr.aria-expanded":"this.isAriaExpanded","attr.readonly":"this.isReadonly","attr.aria-readonly":"this.isReadonly"}},providers:[I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return jt})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return jt})},{provide:n.DataBoundComponent,useExisting:h.forwardRef(function(){return jt})},{provide:n.ExpandableComponent,useExisting:h.forwardRef(function(){return jt})}],queries:[{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0},{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"nodeTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"valueTemplate",first:!0,predicate:Ne,descendants:!0}],viewQueries:[{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"treeview",first:!0,predicate:["treeview"],descendants:!0},{propertyName:"filterInput",first:!0,predicate:["filterInput"],descendants:!0}],exportAs:["kendoDropDownTree"],usesOnChanges:!0,ngImport:o,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 i18n-selectButtonText="kendo.dropdowntree.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span\n [attr.id]="valueLabelId"\n class="k-input-inner"\n role="option"\n >\n <span class="k-input-value-text">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate"> {{ text || placeholder }} </ng-template>\n </span>\n </span>\n <span\n *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n tabindex="-1"\n type="button"\n aria-hidden="true"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target)"\n [filterInput]="filterable && !touchEnabled"\n (keydown.arrowdown)="handleKeydown($event)"\n (keydown.alt.arrowup)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n </span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n *ngIf="data.length !== 0 && !allNodesHidden"\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n [(selectedKeys)]="selectedKeys"\n [selectBy]="selectBy"\n [textField]="textField"\n kendoTreeViewSelectable\n [children]="children"\n [hasChildren]="hasChildren"\n [loadOnDemand]="loadOnDemand"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (focusout)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n (selectionChange)="onSelectionChange($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:K.TreeViewComponent,selector:"kendo-treeview",inputs:["filterInputPlaceholder","expandDisabledNodes","animate","nodeTemplate","loadMoreButtonTemplate","trackBy","nodes","textField","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","navigable","children","loadOnDemand","filterable","filter","size","disableParentNodesOnly"],outputs:["childrenLoaded","blur","focus","expand","collapse","nodeDragStart","nodeDrag","filterStateChange","nodeDrop","nodeDragEnd","addItem","removeItem","checkedChange","selectionChange","filterChange","nodeClick","nodeDblClick"],exportAs:["kendoTreeView"]}],directives:[{type:Be,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:Ee,selector:"[templateContext]",inputs:["templateContext"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:j.DefaultValueAccessor,selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]"},{type:gt,selector:"[filterInput]",inputs:["filterInput"]},{type:j.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:j.NgModel,selector:"[ngModel]:not([formControlName]):not([formControl])",inputs:["name","disabled","ngModel","ngModelOptions"],outputs:["ngModelChange"],exportAs:["ngModel"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:K.SelectDirective,selector:"[kendoTreeViewSelectable]",inputs:["isSelected","selectBy","kendoTreeViewSelectable","selectedKeys"],outputs:["selectedKeysChange"]}],changeDetection:o.ChangeDetectionStrategy.OnPush}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:jt,decorators:[{type:h.Component,args:[{exportAs:"kendoDropDownTree",providers:[I,x,T,k,t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return jt})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return jt})},{provide:n.DataBoundComponent,useExisting:h.forwardRef(function(){return jt})},{provide:n.ExpandableComponent,useExisting:h.forwardRef(function(){return jt})}],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 i18n-selectButtonText="kendo.dropdowntree.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span\n [attr.id]="valueLabelId"\n class="k-input-inner"\n role="option"\n >\n <span class="k-input-value-text">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate"> {{ text || placeholder }} </ng-template>\n </span>\n </span>\n <span\n *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n tabindex="-1"\n type="button"\n aria-hidden="true"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target)"\n [filterInput]="filterable && !touchEnabled"\n (keydown.arrowdown)="handleKeydown($event)"\n (keydown.alt.arrowup)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n </span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n *ngIf="data.length !== 0 && !allNodesHidden"\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n [(selectedKeys)]="selectedKeys"\n [selectBy]="selectBy"\n [textField]="textField"\n kendoTreeViewSelectable\n [children]="children"\n [hasChildren]="hasChildren"\n [loadOnDemand]="loadOnDemand"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (focusout)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n (selectionChange)="onSelectionChange($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',changeDetection:h.ChangeDetectionStrategy.OnPush}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:H.PopupService},{type:T},{type:o.Renderer2},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:a.LocalizationService},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[De]}]}]},propDecorators:{hostClasses:[{type:h.HostBinding,args:["class.k-dropdowntree"]},{type:h.HostBinding,args:["class.k-picker"]}],isDisabled:[{type:h.HostBinding,args:["class.k-disabled"]},{type:h.HostBinding,args:["attr.aria-disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],id:[{type:h.HostBinding,args:["attr.id"]}],direction:[{type:h.HostBinding,args:["attr.dir"]}],hostTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],role:[{type:h.HostBinding,args:["attr.role"]}],ariaHasPopup:[{type:h.HostBinding,args:["attr.aria-haspopup"]}],isAriaExpanded:[{type:h.HostBinding,args:["attr.aria-expanded"]}],isReadonly:[{type:h.HostBinding,args:["attr.readonly"]},{type:h.HostBinding,args:["attr.aria-readonly"]}],handleClick:[{type:h.HostListener,args:["click"]}],handleKeydown:[{type:h.HostListener,args:["keydown",["$event"]]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],nodeTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],valueTemplate:[{type:h.ContentChild,args:[Ne,{static:!1}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],treeview:[{type:h.ViewChild,args:["treeview",{static:!1}]}],filterInput:[{type:h.ViewChild,args:["filterInput",{static:!1}]}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],nodeExpand:[{type:h.Output}],nodeCollapse:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],valueChange:[{type:h.Output}],filterChange:[{type:h.Output}],loading:[{type:h.Input}],clearButton:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],valueDepth:[{type:h.Input}],hasChildren:[{type:h.Input}],fetchChildren:[{type:h.Input}],placeholder:[{type:h.Input}],popupSettings:[{type:h.Input}],dataItem:[{type:h.Input}],listHeight:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],valuePrimitive:[{type:h.Input}],tabindex:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],itemDisabled:[{type:h.Input}],isNodeExpanded:[{type:h.Input}],isNodeVisible:[{type:h.Input}],loadOnDemand:[{type:h.Input}],filterable:[{type:h.Input}],filter:[{type:h.Input}],focusableId:[{type:h.Input}]}});function Ht(e){return(e||{}).key}$t.prototype.reset=function(){this.map.clear()},$t.prototype.registerChildren=function(e,t){e=this.item(e);e&&(e.children=t)},$t.prototype.item=function(e){return this.map.get(e)||null},$t.prototype.registerItem=function(e,t){t={children:[],item:e,parent:this.item(Ht(t))};this.map.set(e.key,t)},$t.prototype.itemLookup=function(e){e=this.item(e);return e?{children:this.mapChildren(e.children),item:e.item,parent:e.parent}:null},$t.prototype.mapChildren=function(e){var i=this;return(e=void 0===e?[]:e).map(function(e){var e=i.item(e.key),t=e.item,n=e.parent,e=e.children;return{children:i.mapChildren(e),item:t,parent:n}})};var Kt=$t;function $t(){this.map=new Map}Kt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Kt,deps:[],target:o.ɵɵFactoryTarget.Injectable}),Kt.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Kt}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Kt,decorators:[{type:h.Injectable}]});Ut.prototype.addItem=function(e){var t,n;this.isItemChecked(e)||(t=ae(e.index),n=this.getKey(e,t),e=Object.assign(Object.assign({},e),{level:t,key:n}),this.checkedItems.push(e),this.checkedKeys.add(n))},Ut.prototype.removeItem=function(e){var t,n,i,o=this;this.isItemChecked(e)&&(t=ae(e.index),n=this.getKey(e,t),i=Object.assign(Object.assign({},e),{level:t,key:n}),this.checkedItems=this.checkedItems.filter(function(e){return le(e,o.valueField)!==le(i,o.valueField)}),this.checkedKeys.delete(n))},Ut.prototype.isItemChecked=function(e){var t=e.index.split("_").length-1,e=(e.level=t,this.getKey(e,t));return this.checkedKeys.has(e)},Ut.prototype.updateItems=function(){this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(function(e){return e.key}))},Ut.prototype.getKey=function(e,t){return le(e,this.valueField)+"_"+(this.isHeterogeneous?t:0)};var Gt=Ut;function Ut(){}Gt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Gt,deps:[],target:o.ɵɵFactoryTarget.Directive}),Gt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Gt,inputs:{valueField:"valueField",checkedItems:"checkedItems",isHeterogeneous:"isHeterogeneous"},ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Gt,decorators:[{type:h.Directive}],propDecorators:{valueField:[{type:h.Input}],checkedItems:[{type:h.Input}],isHeterogeneous:[{type:h.Input}]}});U(Zt,Wt=Gt),Zt.prototype.handleChange=function(e){var n=this;this.currentCheckedState=e.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map(function(e,t){t=String(t),t=n.treeview.itemLookup(t);n.checkNode(t)}),this.checkedItemsChange.emit(this.checkedItems.slice())},Object.defineProperty(Zt.prototype,"isIndeterminate",{get:function(){var n=this,e=this.treeview.nodes.some(function(e,t){t=String(t),t=n.treeview.itemLookup(t);return n.someChecked(t)});return!this.isChecked&&e},enumerable:!1,configurable:!0}),Object.defineProperty(Zt.prototype,"isChecked",{get:function(){var n=this;return this.treeview.nodes.every(function(e,t){t=String(t),t=n.treeview.itemLookup(t);return n.allChecked(t)})},enumerable:!1,configurable:!0}),Zt.prototype.ngOnChanges=function(e){c(e.checkedItems)&&(this.updateItems(),this.renderer.setProperty(this.element.nativeElement,"checked",this.isChecked),this.renderer.setProperty(this.element.nativeElement,"indeterminate",this.isIndeterminate))},Zt.prototype.ngOnInit=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},Zt.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},Zt.prototype.checkNode=function(e){var t,n=this;this.treeview.isDisabled(e.item.dataItem,e.item.index)||((t=[]).push(e.item),re(e,function(e){return n.treeview.isVisible(e.dataItem,e.index)&&!n.treeview.isDisabled(e.dataItem,e.index)}).forEach(function(e){return t.push(e.item)}),t.forEach(function(e){n.currentIndeterminateState?"check"===n.lastAction?n.addItem(e):n.removeItem(e):n.currentCheckedState?n.addItem(e):n.removeItem(e)}))},Zt.prototype.allChecked=function(e){var t=this,n=e&&e.children;if(Array.isArray(n))return n.every(function(e){return e.children.length?t.isItemChecked(e.item)&&t.allChecked(e):t.isItemChecked(e.item)})&&this.isItemChecked(e.item)},Zt.prototype.someChecked=function(e){var t=this,n=e&&e.children;if(Array.isArray(n))return n.some(function(e){return e.children.length?t.isItemChecked(e.item)||t.someChecked(e):t.isItemChecked(e.item)})||this.isItemChecked(e.item)};var Wt,qt=Zt;function Zt(e,t,n,i){var o=Wt.call(this)||this;return o.element=e,o.zone=t,o.cdr=n,o.renderer=i,o.checkedItemsChange=new h.EventEmitter,o.checkedKeys=new Set,o}qt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:qt,deps:[{token:o.ElementRef},{token:o.NgZone},{token:o.ChangeDetectorRef},{token:o.Renderer2}],target:o.ɵɵFactoryTarget.Directive}),qt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:qt,selector:"[checkAll]",inputs:{lastAction:"lastAction",treeview:"treeview",checkedItems:"checkedItems",valueField:"valueField",focused:["checkAll","focused"]},outputs:{checkedItemsChange:"checkedItemsChange"},host:{listeners:{change:"handleChange($event.target)"}},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:qt,decorators:[{type:h.Directive,args:[{selector:"[checkAll]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:o.Renderer2}]},propDecorators:{lastAction:[{type:h.Input}],treeview:[{type:h.Input}],checkedItems:[{type:h.Input}],valueField:[{type:h.Input}],focused:[{type:h.Input,args:["checkAll"]}],checkedItemsChange:[{type:h.Output}],handleChange:[{type:h.HostListener,args:["change",["$event.target"]]}]}});U(Qt,Xt=Gt),Qt.prototype.ngOnChanges=function(e){c(e.checkable)&&this.toggleCheckOnClick(),c(e.checkedItems)&&this.updateItems()},Qt.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},Qt.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},Qt.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},Qt.prototype.toggleCheckOnClick=function(){var t=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(m.filter(function(e){return"click"===e.type})).subscribe(function(e){e=t.treeView.itemLookup(e.item.index);t.handleCheckedChange(e)}))},Qt.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},Qt.prototype.checkNode=function(e){var t,n,i,o=this;this.treeView.isDisabled(e.item.dataItem,e.item.index)||(t=e.item,n=[t],this.checkable.checkChildren&&re(e,function(e){return o.treeView.isVisible(e.dataItem,e.index)&&!o.treeView.isDisabled(e.dataItem,e.index)}).forEach(function(e){return n.push(e.item)}),i=!this.isItemChecked(t),n.forEach(function(e){i?o.addItem(e):o.removeItem(e)}))},Qt.prototype.checkParents=function(e){for(var t=this,n=e;n;)n.children.every(function(e){return t.isItemChecked(e)})?this.addItem(n.item):this.removeItem(n.item),n=n.parent},Qt.prototype.isItemIndeterminate=function(e){var t=e.children;if(Array.isArray(t)&&0!==t.length)for(var n=0,i=t[n];c(i);){if(this.isItemChecked(i.item)||this.isItemIndeterminate(i))return!0;i=t[n+=1]}return!1};var Xt,Gt=Qt;function Qt(e){var t=Xt.call(this)||this;return t.treeView=e,t.checkedItemsChange=new h.EventEmitter,t.checkedKeys=new Set,t.subscriptions=new g.Subscription,t.subscriptions.add(t.treeView.checkedChange.subscribe(t.handleCheckedChange.bind(t))),t.treeView.isChecked=t.getCheckedState.bind(t),t}Gt.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Gt,deps:[{token:K.TreeViewComponent}],target:o.ɵɵFactoryTarget.Directive}),Gt.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Gt,selector:"[kendoMultiSelectTreeCheckable]",inputs:{checkable:"checkable",valueField:"valueField",checkedItems:"checkedItems"},outputs:{checkedItemsChange:"checkedItemsChange"},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Gt,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectTreeCheckable]"}]}],ctorParameters:function(){return[{type:K.TreeViewComponent}]},propDecorators:{checkable:[{type:h.Input}],valueField:[{type:h.Input}],checkedItems:[{type:h.Input}],checkedItemsChange:[{type:h.Output}]}});function Jt(){return!1}function Yt(){return g.of([])}function en(){return!1}function tn(){return!0}var nn={animate:!0},on={checkChildren:!0,checkOnClick:!0},sn=(Object.defineProperty(A.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"id",{get:function(){return this.focusableId},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"ariaDescribedBy",{get:function(){return this.tagListId},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"ariaActiveDescendant",{get:function(){return this.focusedTagId},enumerable:!1,configurable:!0}),A.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},A.prototype.handleKeydown=function(e){this.isWrapperActive&&e.keyCode===p.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||this.readonly||this.navigationService.process({originalEvent:e=e})===C.Open&&e.preventDefault()},Object.defineProperty(A.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:!1,configurable:!0}),Object.defineProperty(A.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=oe(e);this._tabindex=isNaN(e)?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,l("input",t)),this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"rounded",{get:function(){return this._rounded},set:function(e){var t=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,d(t)),this._rounded=t},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){var t=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,pe("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",t)),this._fillMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},nn,e),this.cdr.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"checkableSettings",{get:function(){return this._checkableSettings},set:function(e){this._checkableSettings=Object.assign({},on,e)},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"dataItems",{get:function(){var n=this;return this._dataItems||this.value.map(function(e,t){return{dataItem:e,index:null,level:n.valueDepth[t]||0,key:le({dataItem:e},n.valueField)+"_"+(n.isHeterogeneous?n.valueDepth[t]:0)}})},set:function(e){var n=this;this._dataItems=(e||[]).map(function(e,t){return te(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:n.valueDepth[t]||0,key:le({dataItem:e},n.valueField)+"_"+(n.isHeterogeneous?n.valueDepth[t]:0)}}),this.setState()},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"focusedTagId",{get:function(){var e;return!c(this.focusedTagIndex)||this.isOpen?null:(e=this.tags[this.focusedTagIndex],this.tagPrefix+"-"+le({dataItem:e},this.valueField))},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isOpen",{get:function(){return c(this.popupRef)},enumerable:!1,configurable:!0}),Object.defineProperty(A.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:!1,configurable:!0}),Object.defineProperty(A.prototype,"height",{get:function(){var e=this.popupSettings.height;return c(e)?e+"px":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isTagFocused",{get:function(){return!this.isOpen&&void 0!==this.focusedTagIndex},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isTreeViewActive",{get:function(){return this.treeview&&this.treeview.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isWrapperActive",{get:function(){return document.activeElement===this.wrapper.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isFilterActive",{get:function(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isCheckAllActive",{get:function(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement},enumerable:!1,configurable:!0}),A.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()})),this.setComponentClasses()},A.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},A.prototype.ngOnChanges=function(e){var n=this;p.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&(this.isHeterogeneous=this.valueField&&ce(this.valueField),this.setState()),p.anyChanged(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map(function(e,t){return Object.assign(Object.assign({},e),{level:n.valueDepth[t]||0})}):this.dataItems=this.value),p.anyChanged(["data","children","hasChildren","loadOnDemand","valueField"],e,!0)&&!this.loadOnDemand&&(this.lookup.reset(),this.registerLookupItems(this.data))},A.prototype.ngAfterContentChecked=function(){this.verifySettings()},A.prototype.ngAfterContentInit=function(){this.registerLookupItems(this.data)},A.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||c(this.value)&&0!==this.value.length)},A.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},A.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},A.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),c(t)&&!this.treeview.isDisabled(t.item.dataItem,t.item.index)&&this.treeview.focus(e))},A.prototype.reset=function(){this.value=[],this.dataItems=[],this.valueDepth=[]},A.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=c(t)?t:!c(n.popupRef);n.destroyPopup(),e&&n.createPopup()})},A.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,p.hasObservers(this.onFocus)&&this._zone.run(function(){t.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus&&this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus())))},A.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.wrapper.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,this.togglePopup(!1),(p.hasObservers(this.onBlur)||ne(this.wrapper.nativeElement))&&this._zone.run(function(){t.onBlur.emit(),t.onTouchedCallback()}))},A.prototype.handleNodeClick=function(e){this.isFocused||(e=e.originalEvent.target.parentElement.parentElement,this.lastNodeOnFocus=e,this.focus())},A.prototype.togglePopup=function(e){var t=this,n=this.disabled||this.readonly,i=this.isOpen===e;this._zone.run(function(){t.focusedTagIndex=void 0}),n||i||(this.triggerPopupEvents(e)?this.removeTreeViewFromTabOrder():e?this.createPopup():this.destroyPopup())},A.prototype.messageFor=function(e){return this.localization.get(e)},A.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)},A.prototype.handleRemoveTag=function(e){var t,n,i,o,s=this,a=e.tag,e=e.index;this.disabled||this.readonly||(t=new kt(a),this.removeTag.emit(t),t.isDefaultPrevented()||(a instanceof Array?(this.dataItems=this.dataItems.filter(function(e,t){return t<s.showAfter||s.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return t<s.showAfter||s.disabledIndices.has(t)})):(t=this.dataItems[e].key,a=this.lookup.itemLookup(t),n=[a.item],this.checkableSettings.checkChildren&&(re(a).forEach(function(e){return n.push(e.item)}),n.push.apply(n,q([],W(this.removeParents(a.parent))))),i=n.map(function(e){return e.key}),o=[],this.dataItems=this.dataItems.filter(function(e,t){return o.push(t),!i.includes(e.key)||s.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return o.includes(t)||s.disabledIndices.has(t)})),this.updateValue(this.dataItems),this.isFocused||this.focus()))},A.prototype.handleTagMapperChange=function(e){this.showAfter=oe(e),this.setTags()},A.prototype.clearAll=function(e){var n=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter(function(e,t){return n.disabledIndices.has(t)}),this.dataItems=this.dataItems.filter(function(e,t){return n.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return n.disabledIndices.has(t)}),this.emitValueChange(this.value)},A.prototype.writeValue=function(e){this.value=e||[],this.valuePrimitive||(this.dataItems=this.value)},A.prototype.registerOnChange=function(e){this.onChangeCallback=e},A.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},A.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},A.prototype.handleFilterInputChange=function(e){var n=this;this.filterChange.next(e.value),this.allNodesHidden=this.nodes.every(function(e,t){return!n.isVisible(e,String(t))})},Object.defineProperty(A.prototype,"filterInputClasses",{get:function(){return(this.size?l("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?d(this.rounded):"")},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"checkAllCheckboxClasses",{get:function(){return""+(this.size?l("checkbox",this.size):"")},enumerable:!1,configurable:!0}),A.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},A.prototype.verifySettings=function(){if(h.isDevMode()){if(!c(this.valueField)||!c(this.textField))throw new Error(Ze);if(!ce(this.value))throw new Error($e);if(0<this.value.length){if(this.valuePrimitive&&this.value.some(function(e){return ue(e)}))throw new Error(Ge);var e=this.dataItems.every(function(e){return ue(e.dataItem)});if(this.valuePrimitive&&!ce(this.dataItems))throw new Error(We);if(this.valuePrimitive&&!e)throw new Error(We);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error(qe);if(!this.valuePrimitive&&!J(this.value))throw new Error(Ue);if((ce(this.valueField)||ce(this.textField))&&!ce(this.valueDepth))throw new Error(Xe);if((ce(this.valueField)||ce(this.textField))&&0===this.valueDepth.length)throw new Error(Xe);if((ce(this.valueField)||ce(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error(Qe)}}},A.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},A.prototype.triggerPopupEvents=function(e){var t=new ke;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},A.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",t=(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}),this.popupRef.popupElement),n=this.width,i=n.min,n=n.max;t.style.minWidth=i,t.style.width=n,t.style.height=this.height,this.renderer.setAttribute(t,"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()})},A.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,p.hasObservers(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},A.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe(function(){return e.togglePopup(!0)}),this.navigationService.enter.pipe(m.tap(function(e){return e.originalEvent.preventDefault()})).subscribe(function(){return e.togglePopup(!0)}),g.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(m.filter(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleRightKey:this.handleLeftKey).bind(this)),this.navigationService.right.pipe(m.filter(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleLeftKey:this.handleRightKey).bind(this)),this.navigationService.home.pipe(m.filter(function(){return!e.isOpen})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(m.filter(function(){return!e.isOpen})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(m.filter(function(){return e.isTagFocused})).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(m.filter(function(){return e.isTagFocused})).subscribe(this.handleDelete.bind(this)))},A.prototype.subscribeFocusEvents=function(){var e=this;p.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular(function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)}))},A.prototype.unSubscribeFocusEvents=function(){p.isDocumentAvailable()&&(document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0))},A.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},A.prototype.handleTabKey=function(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())},A.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()))},A.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)},A.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)},A.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--},A.prototype.handleEnd=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=this.tags.length-1},A.prototype.handleHome=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=0},A.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}))},A.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)},A.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.unSubscribeFocusEvents()},A.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"))})},A.prototype.setState=function(){c(this.dataItems)&&c(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()},A.prototype.setTags=function(){var e=this.dataItems.map(function(e){return e.dataItem});this.tags=this.tagMapper(e),this.disabledIndices=this.disabledItemsMapper()},A.prototype.updateValue=function(e){var t=this,e=this.valuePrimitive?e.map(function(e){return le(e,t.valueField)}):e.map(function(e){return e.dataItem});this.value=e,this.emitValueChange(this.value)},A.prototype.disabledItemsMapper=function(){var i=this;return new Set(this.dataItems.reduce(function(e,t,n){return i.itemDisabled(t.dataItem,t.index)&&e.push(n),e},[]))},A.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,l("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,pe("input",this.fillMode))},A.prototype.removeParents=function(e){for(var t=e,n=[];t;)n.push(t.item),t=t.parent;return n},A.prototype.registerLookupItems=function(e,t,i){var n,o=this;void 0===t&&(t=null),void 0===i&&(i=0),c(e)&&0!==e.length&&(n=Ht(t),e=e.map(function(e){return e=e,t=o.valueField,n=i,c(e)?{dataItem:e,key:le({dataItem:e,level:n},t)+"_"+n}:null;var t,n}),c(t)&&this.lookup.registerChildren(n,e),e.forEach(function(e){o.lookup.registerItem(e,t),o.loadOnDemand||o.registerChildLookupItems(e,i)}))},A.prototype.registerChildLookupItems=function(n,i){var o=this;this.hasChildren(n.dataItem)&&this.children(n.dataItem).subscribe(function(e){var t=o.isHeterogeneous?i+1:0;o.registerLookupItems(e,n,t)})},A);function A(e,t,n,i,o,s,a,r,l){this.wrapper=e,this.popupService=t,this.renderer=n,this.navigationService=i,this._zone=o,this.localization=s,this.cdr=a,this.lookup=r,this.touchEnabled=l,this.hostClasses=!0,this.role="combobox",this.ariaHasPopup="tree",this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId="k-"+p.guid(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=Jt,this.fetchChildren=Yt,this.isNodeVisible=tn,this.itemDisabled=en,this.tagMapper=function(e){return e||[]},this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.nodeExpand=new h.EventEmitter,this.nodeCollapse=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.removeTag=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.filterStateChange=new h.EventEmitter,this.checkedItems=[],this.showAfter=0,this.allNodesHidden=!1,this.tagListId=p.guid(),this.tagPrefix="tag-"+p.guid(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=nn,this._checkableSettings=on,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=ie,this.onChangeCallback=ie,this.direction=s.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeFocusEvents()}sn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:sn,deps:[{token:o.ElementRef},{token:H.PopupService},{token:o.Renderer2},{token:T},{token:o.NgZone},{token:a.LocalizationService},{token:o.ChangeDetectorRef},{token:Kt},{token:De,optional:!0}],target:o.ɵɵFactoryTarget.Component}),sn.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:sn,selector:"kendo-multiselecttree",inputs:{tabindex:"tabindex",size:"size",rounded:"rounded",fillMode:"fillMode",popupSettings:"popupSettings",checkableSettings:"checkableSettings",data:"data",value:"value",dataItems:"dataItems",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",loading:"loading",placeholder:"placeholder",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",valuePrimitive:"valuePrimitive",loadOnDemand:"loadOnDemand",focusableId:"focusableId",clearButton:"clearButton",filterable:"filterable",checkAll:"checkAll",hasChildren:"hasChildren",fetchChildren:"fetchChildren",isNodeExpanded:"isNodeExpanded",isNodeVisible:"isNodeVisible",itemDisabled:"itemDisabled",tagMapper:"tagMapper"},outputs:{onFocus:"focus",onBlur:"blur",open:"open",opened:"opened",close:"close",closed:"closed",nodeExpand:"nodeExpand",nodeCollapse:"nodeCollapse",valueChange:"valueChange",removeTag:"removeTag",filterChange:"filterChange"},host:{listeners:{click:"handleClick()",keydown:"handleKeydown($event)"},properties:{"class.k-dropdowntree":"this.hostClasses","class.k-input":"this.hostClasses","class.k-disabled":"this.isDisabled","attr.aria-disabled":"this.isDisabled","class.k-loading":"this.isLoading","attr.id":"this.id","attr.dir":"this.direction","attr.tabindex":"this.hostTabIndex","attr.role":"this.role","attr.aria-expanded":"this.isAriaExpanded","attr.aria-haspopup":"this.ariaHasPopup","attr.readonly":"this.isReadonly","attr.aria-readonly":"this.isReadonly","attr.aria-describedby":"this.ariaDescribedBy","attr.aria-activedescendant":"this.ariaActiveDescendant"}},providers:[t.LocalizationService,T,I,k,x,Kt,{provide:t.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return sn})},{provide:n.DataBoundComponent,useExisting:h.forwardRef(function(){return sn})},{provide:n.ExpandableComponent,useExisting:h.forwardRef(function(){return sn})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return sn})}],queries:[{propertyName:"headerTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:y,descendants:!0},{propertyName:"nodeTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"noDataTemplate",first:!0,predicate:S,descendants:!0},{propertyName:"tagTemplate",first:!0,predicate:yt,descendants:!0},{propertyName:"groupTagTemplate",first:!0,predicate:It,descendants:!0}],viewQueries:[{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"treeview",first:!0,predicate:["treeview"],descendants:!0},{propertyName:"filterInput",first:!0,predicate:["filterInput"],descendants:!0},{propertyName:"checkAllInput",first:!0,predicate:["checkAllInput"],descendants:!0}],exportAs:["kendoMultiSelectTree"],usesOnChanges:!0,ngImport:o,template:'\n <ng-container kendoMultiSelectTreeLocalizedMessages\n i18n-noDataText="kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multiselecttree.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-checkAllText="kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox"\n checkAllText="Check all"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [focused]="focusedTagIndex"\n [textField]="textField"\n [valueField]="valueField"\n [valueDepth]="valueDepth"\n [disabled]="disabled"\n [tagPrefix]="tagPrefix"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <span *ngIf="!tags || !tags.length"\n class="k-input-inner k-readonly"\n >\n <span class="k-input-value-text">{{ placeholder }}</span>\n </span>\n </kendo-taglist>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-clear-value"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading k-input-loading-icon"\n >\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target)"\n [filterInput]="filterable && !touchEnabled"\n (keydown)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n </span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkAllCheckboxClasses"\n role="checkbox"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [treeview]="treeview"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [lastAction]="lastAction"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n class="k-checkbox-label"\n (click)="toggleCheckAll()"\n (mousedown)="$event.preventDefault()"\n >\n {{ messageFor(\'checkAllText\') }}\n </span>\n </div>\n <kendo-treeview\n #treeview\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n kendoMultiSelectTreeCheckable\n [checkable]="checkableSettings"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [textField]="textField"\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [loadOnDemand]="loadOnDemand"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (keydown)="handleKeydown($event)"\n (nodeClick)="handleNodeClick($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n [kendoEventsOutsideAngular]="{\n focusout: handleBlur\n }"\n [scope]="this"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data?.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:xt,selector:"kendo-taglist",inputs:["tags","textField","valueField","valueDepth","focused","template","groupTemplate","disabled","tagPrefix","id","size","rounded","fillMode","disabledIndices"],outputs:["removeTag"]},{type:K.TreeViewComponent,selector:"kendo-treeview",inputs:["filterInputPlaceholder","expandDisabledNodes","animate","nodeTemplate","loadMoreButtonTemplate","trackBy","nodes","textField","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","navigable","children","loadOnDemand","filterable","filter","size","disableParentNodesOnly"],outputs:["childrenLoaded","blur","focus","expand","collapse","nodeDragStart","nodeDrag","filterStateChange","nodeDrop","nodeDragEnd","addItem","removeItem","checkedChange","selectionChange","filterChange","nodeClick","nodeDblClick"],exportAs:["kendoTreeView"]}],directives:[{type:Be,selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:j.DefaultValueAccessor,selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]"},{type:gt,selector:"[filterInput]",inputs:["filterInput"]},{type:j.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:j.NgModel,selector:"[ngModel]:not([formControlName]):not([formControl])",inputs:["name","disabled","ngModel","ngModelOptions"],outputs:["ngModelChange"],exportAs:["ngModel"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:Ee,selector:"[templateContext]",inputs:["templateContext"]},{type:qt,selector:"[checkAll]",inputs:["lastAction","treeview","checkedItems","valueField","checkAll"],outputs:["checkedItemsChange"]},{type:Gt,selector:"[kendoMultiSelectTreeCheckable]",inputs:["checkable","valueField","checkedItems"],outputs:["checkedItemsChange"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:sn,decorators:[{type:h.Component,args:[{exportAs:"kendoMultiSelectTree",providers:[t.LocalizationService,T,I,k,x,Kt,{provide:t.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return sn})},{provide:n.DataBoundComponent,useExisting:h.forwardRef(function(){return sn})},{provide:n.ExpandableComponent,useExisting:h.forwardRef(function(){return sn})},{provide:p.KendoInput,useExisting:h.forwardRef(function(){return sn})}],selector:"kendo-multiselecttree",template:'\n <ng-container kendoMultiSelectTreeLocalizedMessages\n i18n-noDataText="kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multiselecttree.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-checkAllText="kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox"\n checkAllText="Check all"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [focused]="focusedTagIndex"\n [textField]="textField"\n [valueField]="valueField"\n [valueDepth]="valueDepth"\n [disabled]="disabled"\n [tagPrefix]="tagPrefix"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <span *ngIf="!tags || !tags.length"\n class="k-input-inner k-readonly"\n >\n <span class="k-input-value-text">{{ placeholder }}</span>\n </span>\n </kendo-taglist>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-clear-value"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading k-input-loading-icon"\n >\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target)"\n [filterInput]="filterable && !touchEnabled"\n (keydown)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n </span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkAllCheckboxClasses"\n role="checkbox"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [treeview]="treeview"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [lastAction]="lastAction"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n class="k-checkbox-label"\n (click)="toggleCheckAll()"\n (mousedown)="$event.preventDefault()"\n >\n {{ messageFor(\'checkAllText\') }}\n </span>\n </div>\n <kendo-treeview\n #treeview\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n kendoMultiSelectTreeCheckable\n [checkable]="checkableSettings"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [textField]="textField"\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [loadOnDemand]="loadOnDemand"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (keydown)="handleKeydown($event)"\n (nodeClick)="handleNodeClick($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n [kendoEventsOutsideAngular]="{\n focusout: handleBlur\n }"\n [scope]="this"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data?.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:H.PopupService},{type:o.Renderer2},{type:T},{type:o.NgZone},{type:a.LocalizationService},{type:o.ChangeDetectorRef},{type:Kt},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[De]}]}]},propDecorators:{hostClasses:[{type:h.HostBinding,args:["class.k-dropdowntree"]},{type:h.HostBinding,args:["class.k-input"]}],isDisabled:[{type:h.HostBinding,args:["class.k-disabled"]},{type:h.HostBinding,args:["attr.aria-disabled"]}],isLoading:[{type:h.HostBinding,args:["class.k-loading"]}],id:[{type:h.HostBinding,args:["attr.id"]}],direction:[{type:h.HostBinding,args:["attr.dir"]}],hostTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],role:[{type:h.HostBinding,args:["attr.role"]}],isAriaExpanded:[{type:h.HostBinding,args:["attr.aria-expanded"]}],ariaHasPopup:[{type:h.HostBinding,args:["attr.aria-haspopup"]}],isReadonly:[{type:h.HostBinding,args:["attr.readonly"]},{type:h.HostBinding,args:["attr.aria-readonly"]}],ariaDescribedBy:[{type:h.HostBinding,args:["attr.aria-describedby"]}],ariaActiveDescendant:[{type:h.HostBinding,args:["attr.aria-activedescendant"]}],handleClick:[{type:h.HostListener,args:["click"]}],handleKeydown:[{type:h.HostListener,args:["keydown",["$event"]]}],headerTemplate:[{type:h.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:h.ContentChild,args:[y,{static:!1}]}],nodeTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],noDataTemplate:[{type:h.ContentChild,args:[S,{static:!1}]}],tagTemplate:[{type:h.ContentChild,args:[yt,{static:!1}]}],groupTagTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],treeview:[{type:h.ViewChild,args:["treeview",{static:!1}]}],filterInput:[{type:h.ViewChild,args:["filterInput",{static:!1}]}],checkAllInput:[{type:h.ViewChild,args:["checkAllInput",{static:!1}]}],tabindex:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],popupSettings:[{type:h.Input}],checkableSettings:[{type:h.Input}],data:[{type:h.Input}],value:[{type:h.Input}],dataItems:[{type:h.Input}],textField:[{type:h.Input}],valueField:[{type:h.Input}],valueDepth:[{type:h.Input}],loading:[{type:h.Input}],placeholder:[{type:h.Input}],listHeight:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],valuePrimitive:[{type:h.Input}],loadOnDemand:[{type:h.Input}],focusableId:[{type:h.Input}],clearButton:[{type:h.Input}],filterable:[{type:h.Input}],checkAll:[{type:h.Input}],hasChildren:[{type:h.Input}],fetchChildren:[{type:h.Input}],isNodeExpanded:[{type:h.Input}],isNodeVisible:[{type:h.Input}],itemDisabled:[{type:h.Input}],tagMapper:[{type:h.Input}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],open:[{type:h.Output}],opened:[{type:h.Output}],close:[{type:h.Output}],closed:[{type:h.Output}],nodeExpand:[{type:h.Output}],nodeCollapse:[{type:h.Output}],valueChange:[{type:h.Output}],removeTag:[{type:h.Output}],filterChange:[{type:h.Output}]}});U(rn,an=n.FlatDataBindingDirective),Object.defineProperty(rn.prototype,"filter",{set:function(e){an.prototype.filter=e},enumerable:!1,configurable:!0}),rn.prototype.ngOnChanges=function(e){p.isChanged("nodes",e,!1)&&(this.dropDownTree.nodes=e.nodes.currentValue,an.prototype.nodes=e.nodes.currentValue),an.prototype.ngOnChanges.call(this,e)};var an,r=rn;function rn(e){var t=an.call(this,e)||this;return t.dropDownTree=e,t}r.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:r,deps:[{token:K.DataBoundComponent}],target:o.ɵɵFactoryTarget.Directive}),r.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:r,selector:"[kendoDropDownTreeFlatBinding]",inputs:{nodes:["kendoDropDownTreeFlatBinding","nodes"],idField:["valueField","idField"]},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:r,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownTreeFlatBinding]"}]}],ctorParameters:function(){return[{type:K.DataBoundComponent}]},propDecorators:{nodes:[{type:h.Input,args:["kendoDropDownTreeFlatBinding"]}],idField:[{type:h.Input,args:["valueField"]}]}});U(pn,ln=n.HierarchyBindingDirective),Object.defineProperty(pn.prototype,"filter",{set:function(e){ln.prototype.filter=e},enumerable:!1,configurable:!0}),pn.prototype.ngOnChanges=function(e){p.isChanged("nodes",e,!1)&&(this.dropDownTree.nodes=e.nodes.currentValue,ln.prototype.nodes=e.nodes.currentValue),ln.prototype.ngOnChanges.call(this,e)};var ln,j=pn;function pn(e){var t=ln.call(this,e)||this;return t.dropDownTree=e,t}j.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:j,deps:[{token:K.DataBoundComponent}],target:o.ɵɵFactoryTarget.Directive}),j.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:j,selector:"[kendoDropDownTreeHierarchyBinding]",inputs:{nodes:["kendoDropDownTreeHierarchyBinding","nodes"]},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:j,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownTreeHierarchyBinding]"}]}],ctorParameters:function(){return[{type:K.DataBoundComponent}]},propDecorators:{nodes:[{type:h.Input,args:["kendoDropDownTreeHierarchyBinding"]}]}});U(cn,dn=n.FlatDataBindingDirective),Object.defineProperty(cn.prototype,"filter",{set:function(e){dn.prototype.filter=e},enumerable:!1,configurable:!0}),cn.prototype.ngOnChanges=function(e){p.isChanged("nodes",e,!1)&&(this.multiSelectTree.nodes=e.nodes.currentValue,dn.prototype.nodes=e.nodes.currentValue),dn.prototype.ngOnChanges.call(this,e)};var dn,s=cn;function cn(e){var t=dn.call(this,e)||this;return t.multiSelectTree=e,t}s.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:s,deps:[{token:K.DataBoundComponent}],target:o.ɵɵFactoryTarget.Directive}),s.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:s,selector:"[kendoMultiSelectTreeFlatBinding]",inputs:{nodes:["kendoMultiSelectTreeFlatBinding","nodes"],idField:["valueField","idField"]},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:s,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectTreeFlatBinding]"}]}],ctorParameters:function(){return[{type:K.DataBoundComponent}]},propDecorators:{nodes:[{type:h.Input,args:["kendoMultiSelectTreeFlatBinding"]}],idField:[{type:h.Input,args:["valueField"]}]}});U(hn,un=n.HierarchyBindingDirective),Object.defineProperty(hn.prototype,"filter",{set:function(e){un.prototype.filter=e},enumerable:!1,configurable:!0}),hn.prototype.ngOnChanges=function(e){p.isChanged("nodes",e,!1)&&(this.multiSelectTree.nodes=e.nodes.currentValue,un.prototype.nodes=e.nodes.currentValue),un.prototype.ngOnChanges.call(this,e)};var un,t=hn;function hn(e){var t=un.call(this,e)||this;return t.multiSelectTree=e,t}t.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:t,deps:[{token:K.DataBoundComponent}],target:o.ɵɵFactoryTarget.Directive}),t.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"[kendoMultiSelectTreeHierarchyBinding]",inputs:{nodes:["kendoMultiSelectTreeHierarchyBinding","nodes"]},usesInheritance:!0,usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:t,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectTreeHierarchyBinding]"}]}],ctorParameters:function(){return[{type:K.DataBoundComponent}]},propDecorators:{nodes:[{type:h.Input,args:["kendoMultiSelectTreeHierarchyBinding"]}]}});U(fn,gn=n.ExpandDirective),Object.defineProperty(fn.prototype,"isExpanded",{set:function(e){this.dropDownTree.isExpanded=e},enumerable:!1,configurable:!0});var gn,mn=fn;function fn(e){var t=gn.call(this,e)||this;return t.dropDownTree=e,t}mn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:mn,deps:[{token:K.ExpandableComponent}],target:o.ɵɵFactoryTarget.Directive}),mn.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:mn,selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]",inputs:{isExpanded:["isNodeExpanded","isExpanded"]},usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:mn,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}]}],ctorParameters:function(){return[{type:K.ExpandableComponent}]},propDecorators:{isExpanded:[{type:h.Input,args:["isNodeExpanded"]}]}});U(yn,vn=w),Object.defineProperty(yn.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var vn,bn=yn;function yn(e){var t=vn.call(this)||this;return t.service=e,t}bn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:bn,deps:[{token:a.LocalizationService}],target:o.ɵɵFactoryTarget.Component}),bn.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:bn,selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",providers:[{provide:w,useExisting:h.forwardRef(function(){return bn})}],usesInheritance:!0,ngImport:o,template:"",isInline:!0}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:bn,decorators:[{type:h.Component,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return bn})}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var In={caseSensitive:!1,operator:"startsWith"},w=(Object.defineProperty(kn.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!1,configurable:!0}),kn.prototype.ngOnInit=function(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))},kn.prototype.ngOnDestroy=function(){c(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},kn.prototype.handleFilterChange=function(t){var n=this;this.component.data=this.data.filter(function(e){return n.matchesAnyField(e,t)})},kn.prototype.matchesAnyField=function(t,e){var n=this,i=this.normalizeValue(e),e=this.filterSettings.fields;return 0===e.length?this.checkItem(t,i):e.some(function(e){return n.checkItem(u(t,e),i)})},kn.prototype.checkItem=function(e,t){return e=this.normalizeValue(e),"contains"===this.filterSettings.operator?-1!==e.indexOf(t):0===e.indexOf(t)},kn.prototype.normalizeValue=function(e){e=c(e)?e.toString():"";return this.filterSettings.caseSensitive?e:e.toLowerCase()},kn.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?ce(e)&&0<e.length?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(kn.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=c(e)&&"object"==typeof e?e.fields:[];return Object.assign({},In,e,{fields:this.getFilterFields(t)})},enumerable:!1,configurable:!0}),kn);function kn(e){this.component=e,this.filterable=!0,this._data=[]}w.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,deps:[{token:xe}],target:o.ɵɵFactoryTarget.Directive}),w.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"[kendoDropDownFilter]",inputs:{data:"data",rawSettings:["kendoDropDownFilter","rawSettings"],filterable:"filterable"},ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,decorators:[{type:h.Directive,args:[{selector:"[kendoDropDownFilter]"}]}],ctorParameters:function(){return[{type:xe}]},propDecorators:{data:[{type:h.Input}],rawSettings:[{type:h.Input,args:["kendoDropDownFilter"]}],filterable:[{type:h.Input}]}});var Cn=[b,y,he,ge,me,S,Ne,yt,It,Be,bn,w,gt],z=function(){},Cn=(z.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z,deps:[],target:o.ɵɵFactoryTarget.NgModule}),z.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z,declarations:[b,y,he,ge,me,S,Ne,yt,It,Be,bn,w,gt],exports:[b,y,he,ge,me,S,Ne,yt,It,Be,bn,w,gt]}),z.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z,decorators:[{type:h.NgModule,args:[{declarations:[Cn],exports:[Cn]}]}]}),[Me,we,Oe,f,Ee,xt,Gt,qt]),R=function(){},Cn=(R.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,deps:[],target:o.ɵɵFactoryTarget.NgModule}),R.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,declarations:[Me,we,Oe,f,Ee,xt,Gt,qt],imports:[L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule],exports:[Me,we,Oe,f,Ee,xt,Gt,qt,L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule]}),R.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,imports:[[L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule],L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,decorators:[{type:h.NgModule,args:[{declarations:[Cn],exports:[Cn,L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule],imports:[L.CommonModule,i.FormsModule,i.ReactiveFormsModule,N.PopupModule,p.ResizeSensorModule,z,p.EventsModule]}]}]}),xn.prototype.ngOnChanges=function(e){c(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},xn.prototype.createTagMapper=function(){var t=oe(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(e){return e.length>t?q(q([],W(e.slice(0,t))),[e.slice(t)]):e}},xn);function xn(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}Cn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Cn,deps:[{token:sn}],target:o.ɵɵFactoryTarget.Directive}),Cn.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Cn,selector:"[kendoMultiSelectTreeSummaryTag]",inputs:{showAfter:["kendoMultiSelectTreeSummaryTag","showAfter"]},usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Cn,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectTreeSummaryTag]"}]}],ctorParameters:function(){return[{type:sn}]},propDecorators:{showAfter:[{type:h.Input,args:["kendoMultiSelectTreeSummaryTag"]}]}});var L=[jt,sn,r,j,s,t,mn,Lt,Cn],Tn=function(){},L=(Tn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Tn,deps:[],target:o.ɵɵFactoryTarget.NgModule}),Tn.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Tn,declarations:[jt,sn,r,j,s,t,mn,Lt,Cn],imports:[R,n.TreeViewModule],exports:[jt,sn,r,j,s,t,mn,Lt,Cn,z]}),Tn.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Tn,imports:[[R,n.TreeViewModule],z]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Tn,decorators:[{type:h.NgModule,args:[{declarations:[L],exports:[L,z],imports:[R,n.TreeViewModule]}]}]}),Sn.prototype.ngOnChanges=function(e){c(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},Sn.prototype.createTagMapper=function(){var n=oe(this.showAfter);this.multiSelectComponent.tagMapper=function(e){var t;return e.length>n?(t=void 0,(t=e.slice(0,n)).push(e.slice(n,e.length)),t):e}},Sn);function Sn(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}L.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:L,deps:[{token:Dt}],target:o.ɵɵFactoryTarget.Directive}),L.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:L,selector:"[kendoMultiSelectSummaryTag]",inputs:{showAfter:["kendoMultiSelectSummaryTag","showAfter"]},usesOnChanges:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:L,decorators:[{type:h.Directive,args:[{selector:"[kendoMultiSelectSummaryTag]"}]}],ctorParameters:function(){return[{type:Dt}]},propDecorators:{showAfter:[{type:h.Input,args:["kendoMultiSelectSummaryTag"]}]}});var n=[Le],Dn=function(){},n=(Dn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Dn,deps:[],target:o.ɵɵFactoryTarget.NgModule}),Dn.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Dn,declarations:[Le],imports:[R],exports:[Le,z]}),Dn.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Dn,imports:[[R],z]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Dn,decorators:[{type:h.NgModule,args:[{declarations:[n],exports:[n,z],imports:[R]}]}]}),[ht,At,Mt,Pt,St]),wn=function(){},n=(wn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:wn,deps:[],target:o.ɵɵFactoryTarget.NgModule}),wn.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:wn,declarations:[ht,At,Mt,Pt,St],imports:[R],exports:[ht,At,Mt,Pt,St,z]}),wn.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:wn,providers:[{provide:De,useValue:V.touchEnabled}],imports:[[R],z]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:wn,decorators:[{type:h.NgModule,args:[{declarations:[n],exports:[n,z],imports:[R],providers:[{provide:De,useValue:V.touchEnabled}]}]}]}),[vt]),En=function(){},n=(En.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:En,deps:[],target:o.ɵɵFactoryTarget.NgModule}),En.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:En,declarations:[vt],imports:[R],exports:[vt,z]}),En.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:En,imports:[[R],z]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:En,decorators:[{type:h.NgModule,args:[{declarations:[n],exports:[n,z],imports:[R]}]}]}),[Dt,L,ft]),Fn=function(){},n=(Fn.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Fn,deps:[],target:o.ɵɵFactoryTarget.NgModule}),Fn.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Fn,declarations:[Dt,L,ft],imports:[R],exports:[Dt,L,ft,z]}),Fn.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Fn,providers:[{provide:De,useValue:V.touchEnabled}],imports:[[R],z]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Fn,decorators:[{type:h.NgModule,args:[{declarations:[n],exports:[n,z],imports:[R],providers:[{provide:De,useValue:V.touchEnabled}]}]}]}),function(){});n.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:n,deps:[],target:o.ɵɵFactoryTarget.NgModule}),n.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:n,exports:[Dn,wn,En,Fn,Tn]}),n.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:n,imports:[Dn,wn,En,Fn,Tn]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:n,decorators:[{type:h.NgModule,args:[{exports:[Dn,wn,En,Fn,Tn]}]}]}),Object.defineProperty(e,"PopupComponent",{enumerable:!0,get:function(){return N.PopupComponent}}),e.AutoCompleteComponent=Le,e.AutoCompleteModule=Dn,e.CheckAllDirective=qt,e.CheckDirective=Gt,e.ColumnCellTemplateDirective=St,e.ColumnHeaderTemplateDirective=Pt,e.ComboBoxColumnComponent=Mt,e.ComboBoxComponent=ht,e.ComboBoxModule=wn,e.CustomItemTemplateDirective=ft,e.CustomMessagesComponent=bn,e.DropDownListComponent=vt,e.DropDownListModule=En,e.DropDownTreeComponent=jt,e.DropDownTreeFlatBindingDirective=r,e.DropDownTreeHierarchyBindingDirective=j,e.DropDownTreesExpandDirective=mn,e.DropDownTreesModule=Tn,e.DropDownsModule=n,e.FilterDirective=w,e.FilterInputDirective=gt,e.FilterableComponent=xe,e.FixedGroupTemplateDirective=me,e.FooterTemplateDirective=y,e.GroupTagTemplateDirective=It,e.GroupTemplateDirective=ge,e.HeaderTemplateDirective=b,e.ItemTemplateDirective=he,e.ListComponent=Me,e.ListItemDirective=we,e.LocalizedMessagesDirective=Be,e.MultiColumnComboBoxComponent=At,e.MultiSelectComponent=Dt,e.MultiSelectModule=Fn,e.MultiSelectTreeComponent=sn,e.MultiSelectTreeFlatBindingDirective=s,e.MultiSelectTreeHierarchyBindingDirective=t,e.MultiSelectTreeSummaryTagDirective=Cn,e.NoDataTemplateDirective=S,e.NodeTemplateDirective=Lt,e.PreventableEvent=ke,e.RemoveTagEvent=kt,e.SearchBarComponent=f,e.SelectableDirective=Oe,e.SharedDirectivesModule=z,e.SharedModule=R,e.SummaryTagDirective=L,e.TagListComponent=xt,e.TagTemplateDirective=yt,e.TemplateContextDirective=Ee,e.ValueTemplateDirective=Ne,Object.defineProperty(e,"__esModule",{value:!0})});