import{B as Li,C as Pi,da as Qt,ea as qt,fa as qi,h as yt,ha as as,j as jn,m as ct,n as Wn,na as ls,s as Kn}from"./chunk-GZ66TQ2G.js";import{$a as h,$b as wt,$f as rs,A as $,Aa as N,Ab as de,Ae as xe,Bb as ce,Bc as Pn,Be as P,Cb as X,Ce as Ie,Db as O,De as Ui,Fb as Rn,Fe as ji,Gc as lt,Ge as ht,H as bt,Ha as ue,He as Wi,Ia as v,J as Ti,Ja as C,Jb as T,Jd as $n,K as le,Ka as Vt,Kb as d,Kd as Vi,L as R,Lb as rt,Lc as ve,Ld as zt,Le as is,Ma as ot,Mb as at,Mc as Ve,N as wn,Nc as se,Nd as F,Ne as ns,Oc as Vn,Od as Ge,Of as os,P as St,Pa as f,Pb as y,Pc as Bn,Pd as He,Q as yi,Qa as he,Qb as A,Qc as zn,Qd as L,Qf as Ce,Rb as b,Rc as Tt,Sb as S,Sc as Se,Sd as Bi,Sf as Be,T as Ze,Ta as z,Tb as Y,Tc as Gn,Td as zi,Ub as B,Ud as Qn,V as Tn,Vb as J,Vc as Oe,Wb as et,X as yn,Xa as Mn,Xb as Fn,Xd as qn,Yd as Jn,Zb as It,Zd as Zn,Zf as Ot,_a as l,_b as Dt,_d as Gt,_f as $i,a as Ct,ab as q,ac as _e,ag as Qi,ba as ki,be as Xn,ce as Yn,da as Ei,db as Z,dc as j,df as pt,ea as kn,eb as Ne,ec as oe,fa as Pt,fc as Bt,fe as Ht,ff as ss,ge as Gi,gf as Ki,h as ae,hb as Ye,hc as Nn,he as Ue,ia as xt,id as Hn,ie as kt,jd as dt,je as Et,ka as ge,ke as I,la as En,lb as m,lc as Ln,ld as Ae,le as es,m as ee,ma as Oi,mb as k,mc as Ri,n as xn,na as On,nb as a,nc as Fi,o as In,oa as Ai,ob as Le,od as Ni,pb as V,pd as Un,pe as Ut,q as Dn,qa as te,qb as Mi,qc as re,qe as jt,ra as pe,rb as Te,re as Wt,rf as $t,sa as ie,se as tt,t as Je,ua as An,ve as Hi,wa as Xe,we as ts,xb as g,ya as U,yb as _,yc as Pe,ye as Kt,za as ne,zb as M,zc as me}from"./chunk-IGEIHT67.js";lt();lt();Ui();Oi();Ai();lt();lt();Ui();Oi();Ai();var Is=["*"],go=["kendoBreadCrumbItem",""],_o=[[["","kendoBreadCrumbSeparator",""]]],vo=["[kendoBreadCrumbSeparator]"],Co=(i,s,e,t,n)=>({"k-breadcrumb-root-link":i,"k-breadcrumb-link":s,"k-breadcrumb-icontext-link":e,"k-breadcrumb-icon-link":t,"k-disabled":n}),bo=(i,s)=>({$implicit:i,index:s});function So(i,s){i&1&&at(0)}function xo(i,s){i&1&&X(0)}function Io(i,s){if(i&1&&(de(0),m(1,xo,1,0,"ng-container",2),ce()),i&2){d();let e=Y(1);l(),a("ngTemplateOutlet",e)}}function Do(i,s){if(i&1){let e=O();g(0,"img",8),T("load",function(){v(e);let n=d(3);return C(n.onImageLoad())}),_()}if(i&2){let e=d(3);a("src",e.item.data.imageUrl,Mn)}}function wo(i,s){if(i&1&&M(0,"kendo-icon-wrapper",9),i&2){let e=d(3);a("name",e.item.data.icon)("customFontClass",e.item.data.iconClass)("svgIcon",e.item.data.svgIcon)}}function To(i,s){if(i&1&&(g(0,"span",4),m(1,Do,1,1,"img",5)(2,wo,1,3,"kendo-icon-wrapper",6),g(3,"span",7),B(4),_()()),i&2){let e=d(2);a("ngClass",Nn(8,Co,e.item.context.isFirst,e.index!==0,!!e.item.data.icon&&!!e.item.data.text,!!e.item.data.icon&&!e.item.data.text,e.disabled))("title",e.item.data.title||"")("tabindex",e.disabled?-1:0),k("aria-disabled",e.disabled)("aria-current",e.item.context.isLast?"page":null),l(),a("ngIf",e.item.data.imageUrl),l(),a("ngIf",e.item.data.icon||e.item.data.iconClass||e.item.data.svgIcon),l(2),J(e.item.data.text)}}function yo(i,s){}function ko(i,s){if(i&1&&m(0,yo,0,0,"ng-template",10),i&2){let e=d(2);a("ngTemplateOutlet",e.itemTemplate)("ngTemplateOutletContext",oe(2,bo,e.item.data,e.index))}}function Eo(i,s){if(i&1&&(de(0),m(1,To,5,14,"span",3)(2,ko,1,5,null,1),ce()),i&2){let e=d();l(),a("ngIf",!e.itemTemplate),l(),a("ngIf",e.itemTemplate)}}function Oo(i,s){i&1&&X(0)}function Ao(i,s){if(i&1&&(de(0),m(1,Oo,1,0,"ng-container",2),ce()),i&2){d();let e=Y(1);l(),a("ngTemplateOutlet",e)}}var Mo=["kendoBreadCrumbSeparator",""],Ro=["kendoBreadCrumbList",""];function Fo(i,s){if(i&1&&M(0,"span",5),i&2){let e=d(3);a("icon",e.separatorIcon)("svgIcon",e.separatorSVGIcon)}}function No(i,s){if(i&1&&M(0,"span",5),i&2){let e=d(3);a("icon",e.separatorIcon)("svgIcon",e.separatorSVGIcon)}}function Lo(i,s){if(i&1&&(g(0,"li",3,0),m(2,Fo,1,2,"span",4)(3,No,1,2,"span",4),_()),i&2){let e=d(),t=e.$implicit,n=e.index,o=e.first,r=e.last,c=d();a("item",t)("index",n)("collapseMode",c.collapseMode)("itemTemplate",c.itemTemplate),k("data-kendo-breadcrumb-index",n),l(2),a("ngIf",c.collapseMode==="wrap"&&!o),l(),a("ngIf",c.collapseMode!=="wrap"&&!r&&!(t!=null&&t.context.collapsed&&(c.items[n+1]!=null&&c.items[n+1].context.collapsed)))}}function Po(i,s){if(i&1&&(de(0),m(1,Lo,4,7,"li",2),ce()),i&2){let e=s.first,t=d();l(),a("ngIf",!(t.collapseMode==="wrap"&&e)||t.isRootItemContainer)}}var Vo=["resizeSensor"],Bo=["itemsContainer"],zo=(i,s)=>({"!k-flex-wrap":i,"k-flex-none":s});function Go(i,s){if(i&1){let e=O();g(0,"ol",5,0),Ri(2,"async"),T("itemClick",function(n){v(e);let o=d();return C(o.itemClick.emit(n))}),_()}if(i&2){let e=d();a("items",Fi(2,5,e.firstItem$))("itemTemplate",e.itemTemplate==null?null:e.itemTemplate.templateRef)("collapseMode",e.collapseMode)("separatorIcon",e.separatorIcon)("separatorSVGIcon",e.separatorSVGIcon)}}var Ho=["kendoBottomNavigationItem",""],Ds=i=>({$implicit:i});function Uo(i,s){if(i&1&&M(0,"kendo-icon-wrapper",3),i&2){let e=d(2);a("name",e.item.icon)("customFontClass",e.item.iconClass)("svgIcon",e.item.svgIcon)}}function jo(i,s){if(i&1&&(g(0,"span",4),B(1),_()),i&2){let e=d(2);l(),J(e.item.text)}}function Wo(i,s){if(i&1&&(de(0),m(1,Uo,1,3,"kendo-icon-wrapper",1)(2,jo,2,1,"span",2),ce()),i&2){let e=d();l(),a("ngIf",e.itemIcon),l(),a("ngIf",e.item.text)}}function Ko(i,s){}function $o(i,s){if(i&1&&m(0,Ko,0,0,"ng-template",5),i&2){let e=d();a("ngTemplateOutlet",e.itemTemplate==null?null:e.itemTemplate.templateRef)("ngTemplateOutletContext",j(2,Ds,e.item))}}function Qo(i,s){if(i&1&&M(0,"span",2),i&2){let e=s.$implicit,t=s.index,n=d(2);a("disabledComponent",n.disabled)("item",e)("index",t)("selectedIdx",n.selectedIdx)("itemTemplate",n.itemTemplate)("ngClass",e.cssClass)("ngStyle",e.cssStyle)("orientation",n.itemFlow),k("data-kendo-bottomnavigation-index",t)}}function qo(i,s){if(i&1&&(de(0),m(1,Qo,1,9,"span",1),ce()),i&2){let e=d();l(),a("ngForOf",e.items)}}var Jo=["kendoActionSheetItem",""];function Zo(i,s){}function Xo(i,s){if(i&1&&m(0,Zo,0,0,"ng-template",2),i&2){let e=d();a("ngTemplateOutlet",e.itemTemplate)("ngTemplateOutletContext",j(2,Ds,e.item))}}function Yo(i,s){if(i&1&&(g(0,"span",6),M(1,"kendo-icon-wrapper",7),_()),i&2){let e=d(2);l(),Mi(e.manageIconStyles(e.item)),Te(e.manageIconClasses(e.item)),a("name",e.item.icon)("customFontClass",e.item.iconClass)("svgIcon",e.item.svgIcon)}}function er(i,s){if(i&1&&(g(0,"span",11),B(1),_()),i&2){let e=d(3);l(),J(e.item.title)}}function tr(i,s){if(i&1&&(g(0,"span",12),B(1),_()),i&2){let e=d(3);l(),J(e.item.description)}}function ir(i,s){if(i&1&&(g(0,"span",8),m(1,er,2,1,"span",9)(2,tr,2,1,"span",10),_()),i&2){let e=d(2);l(),a("ngIf",e.item.title),l(),a("ngIf",e.item.description)}}function nr(i,s){if(i&1&&(g(0,"span",3),m(1,Yo,2,7,"span",4)(2,ir,3,2,"span",5),_()),i&2){let e=d();l(),a("ngIf",e.item.icon||e.item.iconClass||e.item.svgIcon),l(),a("ngIf",e.item.title||e.item.description)}}var sr=["kendoActionSheetList",""];function or(i,s){if(i&1&&M(0,"span",1),i&2){let e=s.$implicit,t=d();V("k-actionsheet-item",!0)("k-disabled",e.disabled),a("ngClass",e.cssClass)("ngStyle",e.cssStyle)("itemTemplate",t.itemTemplate)("item",e),k("aria-disabled",e.disabled)("kendo-actionsheet-item-index",t.setAttrIndex(e))}}var rr=["childContainer"];function ar(i,s){}function lr(i,s){if(i&1&&m(0,ar,0,0,"ng-template",10),i&2){let e=d(2);a("ngTemplateOutlet",e.actionSheetTemplate==null?null:e.actionSheetTemplate.templateRef)}}function dr(i,s){}function cr(i,s){if(i&1&&m(0,dr,0,0,"ng-template",10),i&2){let e=d(4);a("ngTemplateOutlet",e.headerTemplate==null?null:e.headerTemplate.templateRef)}}function hr(i,s){if(i&1&&(g(0,"div",19),B(1),_()),i&2){let e=d(5);l(),J(e.title)}}function pr(i,s){if(i&1&&(g(0,"div",20),B(1),_()),i&2){let e=d(5);l(),J(e.subtitle)}}function ur(i,s){if(i&1&&(g(0,"div",15)(1,"div",16),m(2,hr,2,1,"div",17)(3,pr,2,1,"div",18),_()()),i&2){let e=d(4);l(),a("id",e.titleId),l(),a("ngIf",e.title),l(),a("ngIf",e.subtitle)}}function mr(i,s){if(i&1&&(g(0,"div",14),m(1,cr,1,1,null,9)(2,ur,4,3,"ng-template",null,2,re),_()),i&2){let e=Y(3),t=d(3);l(),a("ngIf",t.headerTemplate)("ngIfElse",e)}}function fr(i,s){}function gr(i,s){if(i&1&&m(0,fr,0,0,"ng-template",10),i&2){let e=d(4);a("ngTemplateOutlet",e.contentTemplate==null?null:e.contentTemplate.templateRef)}}function _r(i,s){if(i&1){let e=O();g(0,"div",24),T("itemClick",function(n){v(e);let o=d(5);return C(o.onItemClick(n))}),_()}if(i&2){let e=d(5);a("groupItems",e.topGroupItems)("allItems",e.items)("itemTemplate",e.itemTemplate==null?null:e.itemTemplate.templateRef)}}function vr(i,s){i&1&&M(0,"hr",25)}function Cr(i,s){if(i&1){let e=O();g(0,"div",24),T("itemClick",function(n){v(e);let o=d(5);return C(o.onItemClick(n))}),_()}if(i&2){let e=d(5);a("groupItems",e.bottomGroupItems)("allItems",e.items)("itemTemplate",e.itemTemplate==null?null:e.itemTemplate.templateRef)}}function br(i,s){if(i&1&&m(0,_r,1,3,"div",22)(1,vr,1,0,"hr",23)(2,Cr,1,3,"div",22),i&2){let e=d(4);a("ngIf",e.topGroupItems),l(),a("ngIf",e.shouldRenderSeparator),l(),a("ngIf",e.bottomGroupItems)}}function Sr(i,s){if(i&1&&(g(0,"div",21),m(1,gr,1,1,null,9)(2,br,3,3,"ng-template",null,3,re),_()),i&2){let e=Y(3),t=d(3);l(),a("ngIf",t.contentTemplate)("ngIfElse",e)}}function xr(i,s){}function Ir(i,s){if(i&1&&(g(0,"div",26),m(1,xr,0,0,"ng-template",10),_()),i&2){let e=d(3);l(),a("ngTemplateOutlet",e.footerTemplate==null?null:e.footerTemplate.templateRef)}}function Dr(i,s){if(i&1&&m(0,mr,4,2,"div",11)(1,Sr,4,2,"div",12)(2,Ir,2,1,"div",13),i&2){let e=d(2);a("ngIf",e.title||e.subtitle||e.headerTemplate),l(),a("ngIf",e.items||e.contentTemplate),l(),a("ngIf",e.footerTemplate)}}function wr(i,s){if(i&1){let e=O();de(0),g(1,"div",5),T("click",function(){v(e);let n=d();return C(n.onOverlayClick())}),_(),g(2,"div",6)(3,"div",7,0)(5,"div",8),m(6,lr,1,1,null,9)(7,Dr,3,3,"ng-template",null,1,re),_()()(),ce()}if(i&2){let e=Y(8),t=d();l(3),Mi("bottom: 0px; width: 100%;"),l(2),a("ngClass",t.cssClass),k("aria-labelledby",t.titleId),l(),a("ngIf",t.actionSheetTemplate)("ngIfElse",e)}}var Zt={name:"@progress/kendo-angular-navigation",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1716480266,version:"16.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},ds="light",cs="top",hs="static",Tr=(()=>{class i{constructor(e,t,n){this.localizationService=e,this.host=t,this.renderer=n,this.hostClass=!0,this.rtl=!1,this._themeColor=ds,this._position=cs,this._positionMode=hs,Ie(Zt),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:o})=>{this.rtl=o,this.direction=this.rtl?"rtl":"ltr"})}set position(e){let t=e||cs;this.handleHostClasses(t,this.position),this._position=t}get position(){return this._position}set positionMode(e){let t=e||hs;this.handleHostClasses(t,this.positionMode),this._positionMode=t}get positionMode(){return this._positionMode}set themeColor(e){let t=e||ds;this.handleHostClasses(t,this.themeColor),this._themeColor=t}get themeColor(){return this._themeColor}ngAfterViewInit(){["position","positionMode","themeColor"].forEach(t=>{this.handleHostClasses(this[t])})}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}handleHostClasses(e,t){let n=this.host.nativeElement;t&&e===t||(t&&this.renderer.removeClass(n,`k-appbar-${t}`),e&&this.renderer.addClass(n,`k-appbar-${e}`))}}return i.\u0275fac=function(e){return new(e||i)(h(P),h(z),h(Z))},i.\u0275cmp=U({type:i,selectors:[["kendo-appbar"]],hostVars:3,hostBindings:function(e,t){e&2&&(k("dir",t.direction),V("k-appbar",t.hostClass))},inputs:{position:"position",positionMode:"positionMode",themeColor:"themeColor"},exportAs:["kendoAppBar"],features:[_e([P,{provide:xe,useValue:"kendo.appbar.component"}])],ngContentSelectors:Is,decls:1,vars:0,template:function(e,t){e&1&&(rt(),at(0))},encapsulation:2}),i})(),yr=(()=>{class i{constructor(){this.hostClass=!0}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=U({type:i,selectors:[["kendo-appbar-section"]],hostVars:2,hostBindings:function(e,t){e&2&&V("k-appbar-section",t.hostClass)},ngContentSelectors:Is,decls:1,vars:0,template:function(e,t){e&1&&(rt(),at(0))},encapsulation:2}),i})(),ye=i=>i!=null,Jt=i=>{let s=getComputedStyle(i),e=parseFloat(s.width);return e+=(parseFloat(s.marginLeft)||0)+(parseFloat(s.marginRight)||0),e},ps=i=>{let s=kr(i),e=s.length>0?s[0]:i,t=s.length>0?s[s.length-1]:i;return[e,t]},kr=i=>i.querySelectorAll(es),Er=0,us=/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,Or=i=>`${i}${++Er}`,ws="kendo-actionsheet-item-index",Ts=(i,s,e)=>{let t=Rr(i,s,e);if(t)return Ar(t,s)},Ar=(i,s)=>+i.getAttribute(s),Mr=(i,s)=>ye(i.getAttribute(s)),Rr=(i,s,e)=>Xn(i,t=>Mr(t,s),e),Fr=(()=>{class i{constructor(e,t){this.renderer=e,this.element=t,this.hostClass=!0}get sizedClass(){return ye(this.width)}ngAfterViewInit(){if(ye(this.width)){let e=this.element.nativeElement;this.renderer.setStyle(e,"flexBasis",this.width)}}}return i.\u0275fac=function(e){return new(e||i)(h(Z),h(z))},i.\u0275cmp=U({type:i,selectors:[["kendo-appbar-spacer"]],hostVars:4,hostBindings:function(e,t){e&2&&V("k-spacer",t.hostClass)("k-spacer-sized",t.sizedClass)},inputs:{width:"width"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),i})(),Nr=[Tr,yr,Fr],Lh=[...Nr],Lr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[Oe]}),i})(),ys=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q,8))},i.\u0275dir=N({type:i,selectors:[["","kendoBreadCrumbItemTemplate",""]]}),i})(),ms="data-kendo-breadcrumb-index",fs="medium",gs={small:"sm",medium:"md",large:"lg"},Pr=(i,s,e)=>{switch(i){case"size":return{toRemove:`k-breadcrumb-${gs[s]}`,toAdd:e!=="none"?`k-breadcrumb-${gs[e]}`:""};default:break}},Ji=(()=>{class i{constructor(e){this.el=e,this.index=-1,this.hostClasses=!0,this.disabled=!1}get isRootItem(){return this.item.context.isFirst}get isDisabled(){return this.disabled||null}get isLastItem(){return this.item.context.isLast}ngOnInit(){this.disabled=this.item.data&&(this.item.data.disabled||this.item.context.isLast)}ngAfterViewInit(){F()&&(this.width=Jt(this.el.nativeElement))}onImageLoad(){F()&&(this.width=Jt(this.el.nativeElement))}}return i.\u0275fac=function(e){return new(e||i)(h(z))},i.\u0275cmp=U({type:i,selectors:[["","kendoBreadCrumbItem",""]],hostVars:7,hostBindings:function(e,t){e&2&&(k("aria-disabled",t.isDisabled),V("k-breadcrumb-item",t.hostClasses)("k-breadcrumb-root-item",t.isRootItem)("k-breadcrumb-last-item",t.isLastItem))},inputs:{item:"item",collapseMode:"collapseMode",index:"index",itemTemplate:"itemTemplate"},attrs:go,ngContentSelectors:vo,decls:5,vars:3,consts:[["separator",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["role","link",3,"ngClass","title","tabindex",4,"ngIf"],["role","link",3,"ngClass","title","tabindex"],["class","k-image","role","presentation",3,"src","load",4,"ngIf"],[3,"name","customFontClass","svgIcon",4,"ngIf"],[1,"k-breadcrumb-item-text"],["role","presentation",1,"k-image",3,"load","src"],[3,"name","customFontClass","svgIcon"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){e&1&&(rt(_o),m(0,So,1,0,"ng-template",null,0,re)(2,Io,2,1,"ng-container",1)(3,Eo,3,2,"ng-container",1)(4,Ao,2,1,"ng-container",1)),e&2&&(l(2),a("ngIf",t.collapseMode==="wrap"),l(),a("ngIf",!t.item.context.collapsed),l(),a("ngIf",t.collapseMode!=="wrap"))},dependencies:[ve,se,Se,Ce],encapsulation:2}),i})(),Vr=(i,s,e,t)=>{for(;i&&i!==t&&!e(i,s);)i=i.parentNode;if(i!==t)return i},Br=(i,s)=>ye(i.getAttribute(s)),ks=(i,s)=>+i.getAttribute(s),Es=(i,s,e)=>Vr(i,s,Br,e),zr="chevron-right",Gr="chevron-left",Hr=is,Ur=ns,Os=(()=>{class i{constructor(e,t){this.el=e,this.localization=t,this.defaultClasses=!0,this.ariaHidden=!0,this.direction="ltr",this.direction=this.localization.rtl?"rtl":"ltr"}set icon(e){ye(e)?(this._icon=e,this.hasDefaultIcon=!1):(this._icon=this.direction==="ltr"?zr:Gr,this.hasDefaultIcon=!0)}get icon(){return this._icon}set svgIcon(e){ye(e)?(this._svgIcon=e,this.hasDefaultSvgIcon=!1):(this._svgIcon=this.direction==="ltr"?Hr:Ur,this.hasDefaultSvgIcon=!0)}get svgIcon(){return this._svgIcon}ngOnInit(){this.localizationChangesSubscription=this.localization.changes.subscribe(({rtl:e})=>{this.direction=e?"rtl":"ltr",this.hasDefaultIcon&&(this.icon=void 0),this.hasDefaultSvgIcon&&(this.svgIcon=void 0)})}ngOnDestroy(){this.localizationChangesSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(h(z),h(P))},i.\u0275cmp=U({type:i,selectors:[["","kendoBreadCrumbSeparator",""]],hostVars:5,hostBindings:function(e,t){e&2&&(k("aria-hidden",t.ariaHidden),V("k-breadcrumb-delimiter-icon",t.defaultClasses)("k-icon",t.defaultClasses))},inputs:{icon:"icon",svgIcon:"svgIcon"},attrs:Mo,decls:1,vars:2,consts:[["size","xsmall",3,"name","svgIcon"]],template:function(e,t){e&1&&M(0,"kendo-icon-wrapper",0),e&2&&a("name",t.icon)("svgIcon",t.svgIcon)},dependencies:[Ce],encapsulation:2}),i})(),Zi=(()=>{class i{constructor(e,t){this.el=e,this.zone=t,this.items=[],this.collapseMode="auto",this.itemClick=new f;let n=this.el.nativeElement;this.isRootItemContainer=n.classList.contains("k-breadcrumb-root-item-container"),this.zone.runOutsideAngular(()=>{let o=bt(n,"click"),r=bt(n,"keydown").pipe(R(c=>c.keyCode===I.Enter));this.domEventsSubscription=le(o,r).pipe($(c=>c.target),R(c=>!c.classList.contains("k-breadcrumb-delimiter-icon")),$(c=>this.getItemIndex(c)),R(ye),$(c=>parseInt(c,10)),$(c=>this.items[c]),R(c=>!c.data.disabled&&!c.context.isLast),$(c=>c.data)).subscribe(c=>{this.zone.run(()=>this.itemClick.emit(c))})})}ngOnDestroy(){this.domEventsSubscription.unsubscribe()}getItemIndex(e){let t=Es(e,ms,this.el.nativeElement);if(t)return ks(t,ms)}}return i.\u0275fac=function(e){return new(e||i)(h(z),h(he))},i.\u0275cmp=U({type:i,selectors:[["","kendoBreadCrumbList",""]],viewQuery:function(e,t){if(e&1&&A(Ji,5),e&2){let n;b(n=S())&&(t.renderedItems=n)}},inputs:{items:"items",itemTemplate:"itemTemplate",collapseMode:"collapseMode",separatorIcon:"separatorIcon",separatorSVGIcon:"separatorSVGIcon"},outputs:{itemClick:"itemClick"},attrs:Ro,decls:1,vars:1,consts:[["renderedItem",""],[4,"ngFor","ngForOf"],["kendoBreadCrumbItem","",3,"item","index","collapseMode","itemTemplate",4,"ngIf"],["kendoBreadCrumbItem","",3,"item","index","collapseMode","itemTemplate"],["kendoBreadCrumbSeparator","",3,"icon","svgIcon",4,"ngIf"],["kendoBreadCrumbSeparator","",3,"icon","svgIcon"]],template:function(e,t){e&1&&m(0,Po,2,1,"ng-container",1),e&2&&a("ngForOf",t.items)},dependencies:[Ve,se,Ji,Os],encapsulation:2}),i})(),en=i=>i.item.context.collapsed,_s=i=>en(i)===!0,jr=i=>en(i)===!1,As=i=>s=>s.find(e=>en(e)===i).item.context.collapsed=!i,Wr=As(!1),Kr=As(!0),$r=(()=>{class i{constructor(e,t,n,o,r){this.localization=e,this.el=t,this.cdr=n,this.zone=o,this.renderer=r,this.itemClick=new f,this.hostClasses=!0,this.hostAriaLabel="Breadcrumb",this._items=[],this._collapseMode="auto",this._size=fs,this.updateItems=new In,this.afterViewInit=new ee,this.subscriptions=new ae,this.direction="ltr",Ie(Zt);let c=this.updateItems.asObservable().pipe(kn([]));this.direction=e.rtl?"rtl":"ltr",this.itemsData$=c.pipe($(p=>p.filter(Boolean)),$(p=>p.map((w,E,H)=>({context:{collapsed:!1,isLast:E===H.length-1,isFirst:E===0},data:w}))),ki()),this.firstItem$=c.pipe($(p=>p.length>0?[{context:{collapsed:!1,isLast:p.length===1,isFirst:!0},data:p[0]}]:[]),ki())}set items(e){this._items=e||[],this.updateItems.next(this._items)}get items(){return this._items}set collapseMode(e){if(Pe()&&["auto","wrap","none"].indexOf(e)<0)throw new Error(`Invalid collapse mode. Allowed values are "auto", "wrap" or "none". For more details see https://www.telerik.com/kendo-angular-ui/components/navigation/api/BreadCrumbCollapseMode/`);this._collapseMode=e||"auto",this.updateItems.next(this.items)}get collapseMode(){return this._collapseMode}set size(e){let t=e||fs;this.handleClasses(t,"size"),this._size=t}get size(){return this._size}get wrapMode(){return this.collapseMode==="wrap"}get getDir(){return this.direction}ngOnInit(){this.subscriptions.add(this.localization.changes.subscribe(({rtl:e})=>this.direction=e?"rtl":"ltr")),this.handleClasses(this.size,"size")}ngAfterViewInit(){this.attachResizeHandler(),this.afterViewInit.next()}ngOnDestroy(){this.subscriptions.unsubscribe()}handleResize(){let e=[...this.listComponent.renderedItems.toArray().filter(r=>!r.item.context.isFirst&&!r.item.context.isLast)],t=Math.floor(Jt(this.el.nativeElement)),n=Math.round(this.itemsContainers.toArray().map(r=>Jt(r.nativeElement)).reduce((r,c)=>r+c,0)),o=Math.ceil(([...e].reverse().find(_s)||{width:0}).width);if(t<=n&&e.find(jr))return Wr(e),this.cdr.detectChanges(),this.handleResize();if(t>n+o&&e.find(_s))return Kr([...e].reverse()),this.cdr.detectChanges(),this.handleResize()}shouldResize(){return F()&&this.collapseMode==="auto"}attachResizeHandler(){this.subscriptions.add(le(this.resizeSensor.resize,this.itemsData$,this.afterViewInit.asObservable()).pipe(R(()=>this.shouldResize())).subscribe(()=>{this.zone.runOutsideAngular(()=>setTimeout(()=>{this.zone.run(()=>{this.listComponent&&(this.handleResize(),this.resizeSensor.acceptSize())})}))}))}handleClasses(e,t){let n=this.el.nativeElement,o=Pr(t,this[t],e);o.toRemove&&this.renderer.removeClass(n,o.toRemove),o.toAdd&&this.renderer.addClass(n,o.toAdd)}}return i.\u0275fac=function(e){return new(e||i)(h(P),h(z),h(me),h(he),h(Z))},i.\u0275cmp=U({type:i,selectors:[["kendo-breadcrumb"]],contentQueries:function(e,t,n){if(e&1&&y(n,ys,5),e&2){let o;b(o=S())&&(t.itemTemplate=o.first)}},viewQuery:function(e,t){if(e&1&&(A(Vo,7),A(Zi,7),A(Bo,5,z)),e&2){let n;b(n=S())&&(t.resizeSensor=n.first),b(n=S())&&(t.listComponent=n.first),b(n=S())&&(t.itemsContainers=n)}},hostVars:6,hostBindings:function(e,t){e&2&&(k("aria-label",t.hostAriaLabel)("dir",t.getDir),V("k-breadcrumb",t.hostClasses)("k-breadcrumb-wrap",t.wrapMode))},inputs:{items:"items",separatorIcon:"separatorIcon",separatorSVGIcon:"separatorSVGIcon",collapseMode:"collapseMode",size:"size"},outputs:{itemClick:"itemClick"},exportAs:["kendoBreadCrumb"],features:[_e([P,{provide:xe,useValue:"kendo.breadcrumb"}])],decls:6,vars:13,consts:[["itemsContainer",""],["resizeSensor",""],["kendoBreadCrumbList","","class","k-breadcrumb-root-item-container",3,"items","itemTemplate","collapseMode","separatorIcon","separatorSVGIcon","itemClick",4,"ngIf"],["kendoBreadCrumbList","",1,"k-breadcrumb-container",3,"itemClick","items","itemTemplate","collapseMode","separatorIcon","separatorSVGIcon","ngClass"],[3,"rateLimit"],["kendoBreadCrumbList","",1,"k-breadcrumb-root-item-container",3,"itemClick","items","itemTemplate","collapseMode","separatorIcon","separatorSVGIcon"]],template:function(e,t){if(e&1){let n=O();m(0,Go,3,7,"ol",2),g(1,"ol",3,0),Ri(3,"async"),T("itemClick",function(r){return v(n),C(t.itemClick.emit(r))}),_(),M(4,"kendo-resize-sensor",4,1)}e&2&&(a("ngIf",t.collapseMode==="wrap"),l(),a("items",Fi(3,8,t.itemsData$))("itemTemplate",t.itemTemplate==null?null:t.itemTemplate.templateRef)("collapseMode",t.collapseMode)("separatorIcon",t.separatorIcon)("separatorSVGIcon",t.separatorSVGIcon)("ngClass",oe(10,zo,t.collapseMode==="wrap",t.collapseMode==="none")),l(3),a("rateLimit",1e3))},dependencies:[ve,se,Ue,Zi,Gn],encapsulation:2}),i})(),Qr=[ys],qr=[$r,Ji,Zi,...Qr],Ph=[...qr,Os],Jr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[Oe,kt,Be]}),i})(),Ms=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q,8))},i.\u0275dir=N({type:i,selectors:[["","kendoBottomNavigationItemTemplate",""]]}),i})(),Rs=(()=>{class i{get disabledClass(){return this.item.disabled}get label(){return this.item.text?this.item.text:null}get tabindex(){return this.item.tabIndex?this.item.tabIndex:0}get selectedClass(){return this.selectedIdx?this.selectedIdx===this.index:this.item.selected}get itemIcon(){return!!(this.item.icon||this.item.iconClass||this.item.svgIcon)}get iconClasses(){let e=this.item.icon?`k-icon k-i-${this.item.icon}`:"",t=this.item.iconClass?this.item.iconClass:"";return`${e} ${t}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=U({type:i,selectors:[["","kendoBottomNavigationItem",""]],hostVars:8,hostBindings:function(e,t){e&2&&(k("aria-disabled",t.disabledClass)("aria-label",t.label)("tabindex",t.tabindex)("aria-current",t.selectedClass),V("k-disabled",t.disabledClass)("k-selected",t.selectedClass))},inputs:{itemTemplate:"itemTemplate",item:"item",index:"index",disabledComponent:"disabledComponent",selectedIdx:"selectedIdx",orientation:"orientation"},attrs:Ho,decls:2,vars:2,consts:[[4,"ngIf"],["innerCssClass","k-bottom-nav-item-icon","size","xlarge",3,"name","customFontClass","svgIcon",4,"ngIf"],["class","k-bottom-nav-item-text",4,"ngIf"],["innerCssClass","k-bottom-nav-item-icon","size","xlarge",3,"name","customFontClass","svgIcon"],[1,"k-bottom-nav-item-text"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){e&1&&m(0,Wo,3,2,"ng-container",0)(1,$o,1,4,null,0),e&2&&(a("ngIf",!t.itemTemplate),l(),a("ngIf",t.itemTemplate))},dependencies:[se,Se,Ce],encapsulation:2}),i})(),Xi=class{constructor(s){this.prevented=!1,Object.assign(this,s)}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},Yi=class extends Xi{},vs="data-kendo-bottomnavigation-index",Zr=["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"],Xr=(()=>{class i{constructor(e,t,n,o,r){this.localization=e,this.hostElement=t,this.ngZone=n,this.changeDetector=o,this.renderer=r,this.border=!1,this.disabled=!1,this.select=new f,this.hostClass=!0,this.role="navigation",this._fill="flat",this._itemFlow="vertical",this._positionMode="fixed",this._themeColor="primary",this._nativeHostElement=this.hostElement.nativeElement,this.subscriptions=new ae,this.rtl=!1,Ie(Zt),this.dynamicRTLSubscription=this.localization.changes.subscribe(({rtl:c})=>{this.rtl=c,this.direction=this.rtl?"rtl":"ltr"})}set fill(e){this.renderer.removeClass(this._nativeHostElement,`k-bottom-nav-${this.fill}`),this.renderer.removeClass(this._nativeHostElement,`k-bottom-nav-${this.fill}-${this.themeColor}`),this._fill=e==="solid"?"solid":"flat",this.renderer.addClass(this._nativeHostElement,`k-bottom-nav-${this._fill}`),this.renderer.addClass(this._nativeHostElement,`k-bottom-nav-${this._fill}-${this.themeColor}`)}get fill(){return this._fill}set itemFlow(e){this.renderer.removeClass(this._nativeHostElement,`k-bottom-nav-item-flow-${this.itemFlow}`),this._itemFlow=e==="horizontal"?"horizontal":"vertical",this.renderer.addClass(this._nativeHostElement,`k-bottom-nav-item-flow-${this._itemFlow}`)}get itemFlow(){return this._itemFlow}set positionMode(e){this.renderer.removeClass(this._nativeHostElement,`k-pos-${this.positionMode}`),this._positionMode=e==="sticky"?"sticky":"fixed",this.renderer.addClass(this._nativeHostElement,`k-pos-${this._positionMode}`)}get positionMode(){return this._positionMode}set themeColor(e){Zr.find(n=>n===e)&&(this.renderer.removeClass(this._nativeHostElement,`k-bottom-nav-${this.fill}-${this._themeColor}`),this._themeColor=e,this.renderer.addClass(this._nativeHostElement,`k-bottom-nav-${this.fill}-${this._themeColor}`))}get themeColor(){return this._themeColor}get borderClass(){return this.border}get disabledClass(){return this.disabled}ngOnInit(){this.initDomEvents()}ngAfterViewInit(){this.applyClasses()}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()}selectItem(e,t){let n=new Yi(Ct({},t));this.select.emit(n),n.isDefaultPrevented()||(this.selectedIdx=e)}applyClasses(){this.renderer.addClass(this._nativeHostElement,`k-bottom-nav-${this.fill}`),this.renderer.addClass(this._nativeHostElement,`k-bottom-nav-item-flow-${this.itemFlow}`),this.renderer.addClass(this._nativeHostElement,`k-pos-${this.positionMode}`),this.renderer.addClass(this._nativeHostElement,`k-bottom-nav-${this.fill}-${this.themeColor}`)}initDomEvents(){this.hostElement&&this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(this._nativeHostElement,"click",this.clickHandler.bind(this))),this.subscriptions.add(this.renderer.listen(this._nativeHostElement,"keydown",this.keyDownHandler.bind(this)))})}clickHandler(e){let t=this.getBottomNavigationItemIndex(e.target),n=this.items[t];if(!n)return;if(n.disabled){e.preventDefault();return}let o={index:t,item:n,originalEvent:e,sender:this};this.ngZone.run(()=>{this.selectItem(t,o),this.changeDetector.markForCheck()})}keyDownHandler(e){(e.keyCode===I.Enter||e.keyCode===I.Space)&&this.clickHandler(e)}getBottomNavigationItemIndex(e){let t=Es(e,vs,this._nativeHostElement);if(t)return ks(t,vs)}}return i.\u0275fac=function(e){return new(e||i)(h(P),h(z),h(he),h(me),h(Z))},i.\u0275cmp=U({type:i,selectors:[["kendo-bottomnavigation"]],contentQueries:function(e,t,n){if(e&1&&y(n,Ms,5),e&2){let o;b(o=S())&&(t.itemTemplate=o.first)}},hostVars:8,hostBindings:function(e,t){e&2&&(k("role",t.role)("dir",t.direction),V("k-bottom-nav",t.hostClass)("k-bottom-nav-border",t.borderClass)("k-disabled",t.disabledClass))},inputs:{items:"items",border:"border",disabled:"disabled",fill:"fill",itemFlow:"itemFlow",positionMode:"positionMode",themeColor:"themeColor"},outputs:{select:"select"},exportAs:["kendoBottomNavigation"],features:[_e([P,{provide:xe,useValue:"kendo.bottomnavigation"}])],decls:1,vars:1,consts:[[4,"ngIf"],["kendoBottomNavigationItem","","role","link","class","k-bottom-nav-item",3,"disabledComponent","item","index","selectedIdx","itemTemplate","ngClass","ngStyle","orientation",4,"ngFor","ngForOf"],["kendoBottomNavigationItem","","role","link",1,"k-bottom-nav-item",3,"disabledComponent","item","index","selectedIdx","itemTemplate","ngClass","ngStyle","orientation"]],template:function(e,t){e&1&&m(0,qo,2,1,"ng-container",0),e&2&&a("ngIf",t.items)},dependencies:[ve,Ve,se,Tt,Rs],encapsulation:2}),i})(),Yr=[Ms],ea=[Xr,...Yr],Vh=[Rs,...ea],ta=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[Oe,Be]}),i})();var Fs=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q,8))},i.\u0275dir=N({type:i,selectors:[["","kendoActionSheetHeaderTemplate",""]]}),i})(),Ns=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q,8))},i.\u0275dir=N({type:i,selectors:[["","kendoActionSheetItemTemplate",""]]}),i})(),Ls=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q,8))},i.\u0275dir=N({type:i,selectors:[["","kendoActionSheetContentTemplate",""]]}),i})(),Ps=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q,8))},i.\u0275dir=N({type:i,selectors:[["","kendoActionSheetFooterTemplate",""]]}),i})(),Xt=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q,8))},i.\u0275dir=N({type:i,selectors:[["","kendoActionSheetTemplate",""]]}),i})();function ia(i,s){return[Ae({overflow:"hidden",display:"block",height:0}),dt(`${i}ms ease-in`,Ae({height:`${s}`}))]}function na(i,s){return[Ae({overflow:"hidden",height:`${s}`}),dt(`${i}ms ease-in`,Ae({overflow:"hidden",height:0}))]}var Vs=(()=>{class i{constructor(){this.pointerClass=!0}manageIconClasses(e){let t=["k-actionsheet-item-icon"],n=ye(e.iconColor)&&us.test(e.iconColor);return ye(e.iconColor)&&e.iconColor!==""&&!n&&t.push(`k-text-${e.iconColor}`),t.join(" ")}manageIconStyles(e){let t=ye(e.iconColor)&&us.test(e.iconColor),n=ye(e.iconSize)&&e.iconSize!=="",o={};return t&&(o.color=e.iconColor),n&&(o.fontSize=e.iconSize),o}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=U({type:i,selectors:[["","kendoActionSheetItem",""]],hostVars:2,hostBindings:function(e,t){e&2&&V("k-cursor-pointer",t.pointerClass)},inputs:{itemTemplate:"itemTemplate",item:"item"},attrs:Jo,decls:3,vars:2,consts:[["defaultTemplate",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-actionsheet-action"],["class","k-icon-wrap",4,"ngIf"],["class","k-actionsheet-item-text",4,"ngIf"],[1,"k-icon-wrap"],[3,"name","customFontClass","svgIcon"],[1,"k-actionsheet-item-text"],["class","k-actionsheet-item-title",4,"ngIf"],["class","k-actionsheet-item-description",4,"ngIf"],[1,"k-actionsheet-item-title"],[1,"k-actionsheet-item-description"]],template:function(e,t){if(e&1&&m(0,Xo,1,4,null,1)(1,nr,3,2,"ng-template",null,0,re),e&2){let n=Y(2);a("ngIf",t.itemTemplate)("ngIfElse",n)}},dependencies:[se,Se,Ce],encapsulation:2}),i})(),Bs=(()=>{class i{constructor(e,t,n){this.renderer=e,this.ngZone=t,this.element=n,this.groupItems=[],this.allItems=[],this.itemClick=new f,this.subscriptions=new ae}ngAfterViewInit(){this.initDomEvents()}ngOnDestroy(){this.subscriptions.unsubscribe()}initDomEvents(){this.element&&this.ngZone.runOutsideAngular(()=>{let e=this.element.nativeElement;this.subscriptions.add(this.renderer.listen(e,"click",this.clickHandler.bind(this)))})}clickHandler(e){let t=Ts(e.target,ws,this.element.nativeElement),n=this.allItems[t];if(n){if(n.disabled){e.preventDefault();return}this.ngZone.run(()=>{this.itemClick.emit({item:n,originalEvent:e})})}}setAttrIndex(e){return this.allItems.indexOf(e)}}return i.\u0275fac=function(e){return new(e||i)(h(Z),h(he),h(z))},i.\u0275cmp=U({type:i,selectors:[["","kendoActionSheetList",""]],inputs:{groupItems:"groupItems",allItems:"allItems",itemTemplate:"itemTemplate"},outputs:{itemClick:"itemClick"},attrs:sr,decls:1,vars:1,consts:[["kendoActionSheetItem","","tabindex","0","role","button",3,"k-actionsheet-item","k-disabled","ngClass","ngStyle","itemTemplate","item",4,"ngFor","ngForOf"],["kendoActionSheetItem","","tabindex","0","role","button",3,"ngClass","ngStyle","itemTemplate","item"]],template:function(e,t){e&1&&m(0,or,1,10,"span",0),e&2&&a("ngForOf",t.groupItems)},dependencies:[ve,Ve,Tt,Vs],encapsulation:2}),i})(),sa={duration:300},At=(()=>{class i{constructor(e,t,n,o,r,c){this.element=e,this.ngZone=t,this.renderer=n,this.localizationService=o,this.builder=r,this.cdr=c,this.animation=!0,this.expanded=!1,this.titleId=Or("k-actionsheet-title"),this.expandedChange=new f,this.expand=new f,this.collapse=new f,this.itemClick=new f,this.overlayClick=new f,this.rtl=!1,this.domSubs=new ae,this.animationEnd=new f,Ie(Zt),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:p})=>{this.rtl=p,this.direction=this.rtl?"rtl":"ltr"})}get hostClass(){return this.expanded}ngAfterViewInit(){this.initDomEvents(),this.setCssVariables()}ngOnChanges(e){e.expanded&&this.expanded&&this.setExpanded(!0)}ngOnDestroy(){this.domSubs.unsubscribe(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.player&&this.player.destroy()}toggle(e){let t=this.expanded,n=zi(e)?e:!t;n!==t&&(n===!0?this.setExpanded(!0):n===!1&&!this.animation&&this.setExpanded(!1),this.animation?(this.animationEnd.pipe(Ze(1)).subscribe(()=>{this.onAnimationEnd(n)}),this.playAnimation(n)):this[n?"expand":"collapse"].emit())}get topGroupItems(){return this.items?.filter(e=>!e.group||e.group==="top")}get bottomGroupItems(){return this.items?.filter(e=>e.group==="bottom")}onItemClick(e){this.itemClick.emit(e)}onOverlayClick(){this.overlayClick.emit()}get shouldRenderSeparator(){return this.topGroupItems?.length>0&&this.bottomGroupItems?.length>0}initDomEvents(){this.element&&this.ngZone.runOutsideAngular(()=>{this.domSubs.add(this.renderer.listen(this.element.nativeElement,"keydown",e=>{this.onKeyDown(e)}))})}setCssVariables(){!this.element||!F()||(this.element.nativeElement.style.setProperty("--kendo-actionsheet-height","auto"),this.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}onKeyDown(e){let t=e.target;e.keyCode===I.Tab&&this.ngZone.run(()=>{this.keepFocusWithinComponent(t,e)}),e.keyCode===I.Escape&&this.ngZone.run(()=>{this.overlayClick.emit()}),e.keyCode===I.Enter&&this.ngZone.run(()=>{this.triggerItemClick(t,e)})}handleInitialFocus(){let[e]=ps(this.element.nativeElement);e&&e.focus()}keepFocusWithinComponent(e,t){let n=this.element.nativeElement,[o,r]=ps(n),c=!t.shiftKey&&e===r,p=t.shiftKey&&e===o;c&&(t.preventDefault(),o.focus()),p&&(t.preventDefault(),r.focus())}triggerItemClick(e,t){let n=Ts(e,ws,this.element.nativeElement),o=zi(n)?this.items[n]:null;!o||o.disabled||this.itemClick.emit({item:o,originalEvent:t})}setExpanded(e){this.expanded=e,this.expandedChange.emit(e),this.expanded&&(this.cdr.detectChanges(),this.handleInitialFocus())}onAnimationEnd(e){e?this.expand.emit():(this.setExpanded(!1),this.collapse.emit())}playAnimation(e){let t=typeof this.animation!="boolean"&&this.animation.duration?this.animation.duration:sa.duration,n=getComputedStyle(this.childContainer.nativeElement).height,o=e?ia(t,n):na(t,n),r=this.builder.build(o);this.player=r.create(this.childContainer.nativeElement),this.player.onDone(()=>{this.player&&(this.animationEnd.emit(),this.player.destroy(),this.player=null)}),this.player.play()}}return i.\u0275fac=function(e){return new(e||i)(h(z),h(he),h(Z),h(P),h(Un),h(me))},i.\u0275cmp=U({type:i,selectors:[["kendo-actionsheet"]],contentQueries:function(e,t,n){if(e&1&&(y(n,Xt,5),y(n,Fs,5),y(n,Ls,5),y(n,Ns,5),y(n,Ps,5)),e&2){let o;b(o=S())&&(t.actionSheetTemplate=o.first),b(o=S())&&(t.headerTemplate=o.first),b(o=S())&&(t.contentTemplate=o.first),b(o=S())&&(t.itemTemplate=o.first),b(o=S())&&(t.footerTemplate=o.first)}},viewQuery:function(e,t){if(e&1&&A(rr,5),e&2){let n;b(n=S())&&(t.childContainer=n.first)}},hostVars:3,hostBindings:function(e,t){e&2&&(k("dir",t.direction),V("k-actionsheet-container",t.hostClass))},inputs:{title:"title",subtitle:"subtitle",items:"items",cssClass:"cssClass",animation:"animation",expanded:"expanded",titleId:"titleId"},outputs:{expandedChange:"expandedChange",expand:"expand",collapse:"collapse",itemClick:"itemClick",overlayClick:"overlayClick"},exportAs:["kendoActionSheet"],features:[_e([P,{provide:xe,useValue:"kendo.actionsheet.component"}]),ue],decls:1,vars:1,consts:[["childContainer",""],["defaultTemplate",""],["defaultHeaderTemplate",""],["defaultContentTemplate",""],[4,"ngIf"],[1,"k-overlay",3,"click"],[1,"k-animation-container"],[1,"k-child-animation-container"],["role","dialog","aria-modal","true",1,"k-actionsheet","k-actionsheet-bottom",3,"ngClass"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],["class","k-actionsheet-titlebar",4,"ngIf"],["class","k-actionsheet-content",4,"ngIf"],["class","k-actionsheet-footer",4,"ngIf"],[1,"k-actionsheet-titlebar"],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title",3,"id"],["class","k-text-center",4,"ngIf"],["class","k-actionsheet-subtitle k-text-center",4,"ngIf"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-content"],["kendoActionSheetList","","class","k-list-ul","role","group",3,"groupItems","allItems","itemTemplate","itemClick",4,"ngIf"],["class","k-hr",4,"ngIf"],["kendoActionSheetList","","role","group",1,"k-list-ul",3,"itemClick","groupItems","allItems","itemTemplate"],[1,"k-hr"],[1,"k-actionsheet-footer"]],template:function(e,t){e&1&&m(0,wr,9,6,"ng-container",4),e&2&&a("ngIf",t.expanded)},dependencies:[ve,se,Se,Bs],encapsulation:2}),i})(),oa=[Fs,Ns,Ls,Ps,Xt],ra=[At,...oa],Bh=[Vs,Bs,...ra],Yt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[Oe,Be]}),i})(),zh=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[Lr,Jr,ta,Yt]}),i})();lt();lt();Oi();Ui();Ai();var pa=["kendoTreeViewGroup",""],ua=(i,s)=>({$implicit:i,index:s}),ma=i=>({index:i});function fa(i,s){if(i&1){let e=O();g(0,"span",12),T("click",function(){v(e);let n=d(),o=n.$implicit,r=n.index,c=d();return C(c.expandNode(c.nodeIndex(r),o,!c.isExpanded(o,c.nodeIndex(r))))}),M(1,"kendo-icon-wrapper",13),_()}if(i&2){let e=d(),t=e.$implicit,n=e.index,o=d();V("k-disabled",!o.isItemExpandable(t,n)),a("kendoTreeViewLoading",o.nodeIndex(n)),l(),a("name",o.getFontIcon(t,o.nodeIndex(n)))("svgIcon",o.getSvgIcon(t,o.nodeIndex(n)))}}function ga(i,s){if(i&1){let e=O();g(0,"kendo-checkbox",14),T("checkedStateChange",function(){v(e);let n=d().index,o=d();return C(o.checkNode(o.nodeIndex(n)))}),_()}if(i&2){let e=d(),t=e.$implicit,n=e.index,o=d();a("disabled",o.isItemDisabled(t,n))("size",o.size)("checkedState",o.getCheckBoxState(t,o.nodeIndex(n)))("tabindex",-1)("inputAttributes",o.getCheckboxAttributes(n))}}function _a(i,s){}function va(i,s){if(i&1&&(de(0),m(1,_a,0,0,"ng-template",15),ce()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d();l(),a("ngTemplateOutlet",o.nodeTemplateRef)("ngTemplateOutletContext",oe(2,ua,t,o.nodeIndex(n)))}}function Ca(i,s){if(i&1&&(de(0),B(1),ce()),i&2){let e=d().$implicit,t=d();l(),et(" ",t.nodeText(e)," ")}}function ba(i,s){if(i&1&&M(0,"ul",16),i&2){let e=d(),t=e.$implicit,n=e.index,o=d();a("size",o.size)("nodes",o.fetchChildren)("loadOnDemand",o.loadOnDemand)("checkboxes",o.checkboxes)("expandIcons",o.expandIcons)("selectable",o.selectable)("touchActions",o.touchActions)("children",o.children)("hasChildren",o.hasChildren)("isChecked",o.isChecked)("isDisabled",o.isDisabled)("hasCheckbox",o.hasCheckbox)("disabled",o.isItemDisabled(t,n))("expandDisabledNodes",o.expandDisabledNodes)("isExpanded",o.isExpanded)("isSelected",o.isSelected)("isVisible",o.isVisible)("nodeTemplateRef",o.nodeTemplateRef)("loadMoreButtonTemplateRef",o.loadMoreButtonTemplateRef)("parentIndex",o.nodeIndex(n))("parentDataItem",t)("textField",o.nextFields)("loadMoreService",o.loadMoreService)("@toggle",!0)("trackBy",o.trackBy)("disableParentNodesOnly",o.disableParentNodesOnly)}}function Sa(i,s){if(i&1&&(g(0,"li",2)(1,"div",3),m(2,fa,2,5,"span",4)(3,ga,1,5,"kendo-checkbox",5),g(4,"span",6)(5,"span",7),de(6,8),m(7,va,2,5,"ng-container",9)(8,Ca,2,1,"ng-container",10),ce(),_()()(),m(9,ba,1,26,"ul",11),_()),i&2){let e=s.$implicit,t=s.index,n=d();V("k-hidden",!n.isVisible(e,n.nodeIndex(t))),a("dataItem",e)("index",n.nodeIndex(t))("parentDataItem",n.parentDataItem)("parentIndex",n.parentIndex)("loadOnDemand",n.loadOnDemand)("checkable",n.checkboxes)("isChecked",n.isChecked(e,n.nodeIndex(t)))("isDisabled",n.isItemDisabled(e,t))("isVisible",n.isVisible(e,n.nodeIndex(t)))("expandable",n.expandIcons&&n.hasChildren(e))("isExpanded",n.isExpanded(e,n.nodeIndex(t)))("selectable",n.selectable)("isSelected",n.isSelected(e,n.nodeIndex(t))),k("aria-setsize",n.totalNodesCount)("data-treeindex",n.nodeIndex(t)),l(),a("ngClass",n.setItemClasses(n.data.length,t)),l(),a("ngIf",n.expandIcons&&n.hasChildren(e)),l(),a("ngIf",n.checkboxes&&n.hasCheckbox(e,n.nodeIndex(t))),l(),Le("touch-action",n.touchActions?"":"none"),V("k-disabled",n.isItemDisabled(e,t)),a("id",n.nodeIndex(t))("dataItem",e)("index",n.nodeIndex(t))("initialSelection",n.isSelected(e,n.nodeIndex(t)))("isSelected",n.isSelected),k("data-treeindex",n.nodeIndex(t)),l(2),a("ngSwitch",n.hasTemplate),l(),a("ngSwitchCase",!0),l(2),a("ngIf",n.isExpanded(e,n.nodeIndex(t))&&n.hasChildren(e))}}function xa(i,s){i&1&&M(0,"span",22)}function Ia(i,s){}function Da(i,s){if(i&1&&m(0,Ia,0,0,"ng-template",15),i&2){let e=d(2);a("ngTemplateOutlet",e.loadMoreButtonTemplateRef)("ngTemplateOutletContext",j(2,ma,e.loadMoreButtonIndex))}}function wa(i,s){if(i&1&&(de(0),B(1),ce()),i&2){let e=d(2);l(),et(" ",e.loadMoreTitle," ")}}function Ta(i,s){if(i&1&&(g(0,"li",17)(1,"div",18),m(2,xa,1,0,"span",19),g(3,"span",20)(4,"span",7),m(5,Da,1,4,null,21)(6,wa,2,1,"ng-container",21),_()()()()),i&2){let e=d();V("k-treeview-load-more-checkboxes-container",e.checkboxes),a("selectable",!1)("checkable",!1)("expandable",!1)("index",e.loadMoreButtonIndex)("parentDataItem",e.parentDataItem)("parentIndex",e.parentIndex),k("data-treeindex",e.loadMoreButtonIndex),l(2),a("ngIf",e.loadingMoreNodes),l(),a("index",e.loadMoreButtonIndex),k("data-treeindex",e.loadMoreButtonIndex),l(2),a("ngIf",e.loadMoreButtonTemplateRef),l(),a("ngIf",!e.loadMoreButtonTemplateRef)}}var ya=["assetsContainer"],ka=["searchbox"];function Ea(i,s){if(i&1&&M(0,"kendo-icon-wrapper",8),i&2){let e=d(2);a("svgIcon",e.searchIcon)}}function Oa(i,s){if(i&1){let e=O();g(0,"span",5)(1,"kendo-textbox",6,1),T("valueChange",function(n){v(e);let o=d();return C(o.filterChange.emit(n))}),m(3,Ea,1,1,"ng-template",7),_()()}if(i&2){let e=d();l(),a("size",e.size)("value",e.filter)("clearButton",!0)("placeholder",e.filterInputPlaceholder)}}var Aa={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1716480392,version:"16.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},Mt=class{constructor(){this.changes=new f}notify(){this.changes.emit()}},Ma=()=>!1,Ra=()=>"none",Fa=()=>!1,Na=()=>!0,La=()=>!0,Ys=()=>!1,Pa=()=>!0,Va=(i,s)=>s,Rt=(()=>{class i{constructor(){this.changes=new ee}expand(e,t){this.changes.next({dataItem:t,index:e,expand:!0})}collapse(e,t){this.changes.next({dataItem:t,index:e,expand:!1})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),mt=(()=>{class i{constructor(){this.INDEX_SEPARATOR="_"}nodeIndex(e="",t=""){return`${t}${t?this.INDEX_SEPARATOR:""}${e}`}indexForLevel(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)}lastLevelIndex(e=""){let t=e.split(this.INDEX_SEPARATOR);return t.length?parseInt(t[t.length-1],10):NaN}level(e){return e.split(this.INDEX_SEPARATOR).length}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),ln=(()=>{class i{constructor(){this.changes=new ee}notifyLoaded(e){this.changes.next(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),Ba=/^(?:a|input|select|option|textarea|button|object)$/i,ut=(i,s)=>{let e=i.matches||i.msMatchesSelector||i.webkitMatchesSelector;return e?e.call(i,s.toLowerCase()):!1},eo=(i,s)=>{if(!document.documentElement.contains(i))return null;let e=i;for(;e!==null&&e.nodeType===1;){if(ut(e,s))return e;e=e.parentElement||e.parentNode}return null};var G=i=>i!=null;var zs=i=>Array.isArray(i);var Gs=i=>{let s="li.k-treeview-item";return F()?i.closest?i.closest(s):eo(i,s):null},Hs=i=>{if(i.tagName){let s=i.tagName.toLowerCase(),e=i.getAttribute("tabIndex"),t=e==="-1",n=e!==null&&!t;return Ba.test(s)&&(n=!i.disabled&&!t),n}return!1},za=i=>{let s=".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview";if(!F())return null;let e=i;for(;e&&!ut(e,s);)e=e.parentNode;if(e)return ut(e,".k-treeview-leaf:not(.k-treeview-load-more-button)")};var Us=i=>G(eo(i,".k-treeview-leaf.k-treeview-load-more-button")),Ga=(i,s)=>{for(;i&&!s(i);)i=i.parentNode;return i},js=(i,s)=>!!Ga(i,e=>e===s),Ws=i=>i.nativeElement.querySelector('li[tabindex="0"]');var Ks=i=>i?i.getAttribute("data-treeindex"):"",Me=i=>(i||{}).index;var Ha=(i,s)=>[i,s].filter(e=>G(e)).join("_"),Ua=(i,s,e)=>G(i)?{dataItem:i,index:Ha(e,s)}:null;var tn=(i,s)=>({small:`k-${i}-sm`,medium:`k-${i}-md`,large:`k-${i}-lg`})[s],rn=i=>i||{},nn=i=>rn(i).children||[],sn=i=>{if(!Array.isArray(i)||i.length===0)return null;let e=i.length-1;for(let t=e;t>=0;t-=1){let n=i[t];if(n.visible)return n}return null},an=class{constructor(){this.ib=new mt,this.nodes=[]}firstVisibleNode(){return(this.nodes||[]).find(s=>s.visible)}lastVisibleNode(){let s=sn(this.nodes);for(;G(s)&&nn(s).length>0;){let e=nn(s),t=sn(e);if(!G(t))return s;s=t}return s}closestNode(s){let{prev:e}=rn(this.findNode(s)),t=e||this.firstVisibleNode();return rn(t).index===s?this.visibleSibling(t,1):t}firstFocusableNode(){return this.nodes.find(s=>!s.disabled&&s.visible)}findNode(s){return this.find(s,this.nodes)}findParent(s){let e=this.ib.level(s)-1;return this.findNode(this.ib.indexForLevel(s,e))}findVisibleChild(s){let e=this.findNode(s);return nn(e).find(n=>n.visible)}findVisiblePrev(s){let e=s.index,t=this.findParent(e),n=this.ib.lastLevelIndex(e),r=this.container(t).slice(0,n).every(w=>!w.visible);if(n===0||r)return t;let c=this.findNode(e),p=this.visibleSibling(c,-1);if(p){let w=this.container(p);for(;w.length>0&&w.some(E=>E.visible);)p=sn(w),w=this.container(p)}return p}findVisibleNext(s){let e=this.container(s),t=e.some(n=>n.visible);return e.length===0||!t?this.visibleSibling(s,1):e.find(n=>n.visible)}registerItem(s,e,t,n=!1,o=!0){let r=[],c=this.ib.level(e),p=this.findParent(e);if(p||c===1){let w={id:s,children:r,index:e,parent:p,disabled:t,loadMoreButton:n,visible:o};this.insert(w,p)}}unregisterItem(s,e){let t=this.find(e,this.nodes);if(!t||t.id!==s)return;let n=this.container(t.parent);n.splice(n.indexOf(t),1)}childLevel(s){let e=s.filter(t=>G(t));return!e||!e.length?1:this.ib.level(e[0].index)}container(s){return s?s.children:this.nodes}find(s,e){let t=this.childLevel(e),n=this.ib.indexForLevel(s,t),o=t===this.ib.level(s),r=e.find(c=>c&&c.index===n);return r?o?r:this.find(s,r.children):null}insert(s,e){this.container(e).splice(this.ib.lastLevelIndex(s.index),0,s)}visibleSibling(s,e){if(!s)return null;let t=this.findParent(s.index),n=this.container(t),o=n.indexOf(s)+e,r=n[o];for(;G(r);){if(r.visible)return r;o+=e,r=n[o]}return this.visibleSibling(t,e)}},Ft=(()=>{class i{constructor(e){this.localization=e,this.expands=new ee,this.moves=new ee,this.checks=new ee,this.selects=new ee,this.deselectAllButCurrentItem=new ee,this.loadMore=new ee,this.navigable=!0,this.selection="single",this.actions={[I.ArrowUp]:()=>this.activate(this.model.findVisiblePrev(this.focusableItem),!0),[I.ArrowDown]:()=>this.activate(this.model.findVisibleNext(this.focusableItem),!0),[I.ArrowLeft]:()=>!this.isLoadMoreButton&&this.expand({expand:this.localization.rtl,intercept:this.localization.rtl?this.moveToFirstVisibleChild:this.moveToParent}),[I.ArrowRight]:()=>!this.isLoadMoreButton&&this.expand({expand:!this.localization.rtl,intercept:this.localization.rtl?this.moveToParent:this.moveToFirstVisibleChild}),[I.Home]:()=>this.activate(this.model.firstVisibleNode(),!0),[I.End]:()=>this.activate(this.model.lastVisibleNode(),!0),[I.Enter]:t=>this.handleEnter(t),[I.Space]:()=>this.handleSpace()},this.isFocused=!1,this.shouldScroll=!1,this._model=new an,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}get model(){return this._model}set model(e){this._model=e}get activeIndex(){return Me(this.activeItem)||null}get isActiveExpanded(){return this.activeItem&&this.activeItem.children.length>0}get isLoadMoreButton(){return this.activeItem&&this.activeItem.loadMoreButton}get focusableItem(){return this.activeItem||this.model.firstFocusableNode()}activate(e,t=!1){!this.navigable||!e||this.isActive(Me(e))||(this.isFocused=!0,this.activeItem=e||this.activeItem,this.shouldScroll=t,this.notifyMove())}activateParent(e){this.activate(this.model.findParent(e))}activateIndex(e){e&&this.activate(this.model.findNode(e))}activateClosest(e){!e||Me(this.focusableItem)!==e||(this.activeItem=this.model.closestNode(e),this.notifyMove())}activateFocusable(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())}deactivate(){!this.navigable||!this.isFocused||(this.isFocused=!1,this.notifyMove())}checkIndex(e){this.isDisabled(e)||this.checks.next(e)}selectIndex(e){this.isDisabled(e)||this.selects.next(e)}notifyLoadMore(e){G(e)&&this.loadMore.next(e)}isActive(e){return e?this.isFocused&&this.activeIndex===e:!1}isFocusable(e){return Me(this.focusableItem)===e}isDisabled(e){return e?this.model.findNode(e).disabled:!1}registerItem(e,t,n,o=!1,r=!0){let c=this.model.findNode(t);G(c)&&(this.model.unregisterItem(c.id,c.index),this.isActive(t)&&this.deactivate()),this.model.registerItem(e,t,n,o,r)}updateItem(e,t,n=!0){let o=this.model.findNode(e);G(o)&&this.isActive(e)&&this.deactivate(),o.disabled=t,o.visible=n}unregisterItem(e,t){this.isActive(t)&&this.activateParent(t),this.model.unregisterItem(e,t)}move(e){if(!this.navigable)return;let t=this.actions[e.keyCode];t&&(t(e),e.preventDefault())}expand({expand:e,intercept:t}){let n=Me(this.activeItem);!n||t(n)||this.notifyExpand(e)}moveToParent(){return this.isActiveExpanded?!1:(this.activate(this.model.findParent(Me(this.activeItem))),!0)}moveToFirstVisibleChild(){return this.isActiveExpanded?(this.activate(this.model.findVisibleChild(Me(this.activeItem))),!0):!1}notifyExpand(e){this.expands.next(this.navigationState(e))}notifyMove(){this.moves.next(this.navigationState())}navigationState(e=!1){return{expand:e,index:this.activeIndex,isFocused:this.isFocused,shouldScroll:this.shouldScroll}}handleEnter(e){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):e.ctrlKey||e.metaKey?this.selectIndex(this.activeIndex):this.selection==="multiple"?this.deselectAllButCurrentItem.next({dataItem:this.activeItem,index:this.activeIndex}):this.selectIndex(this.activeIndex))}handleSpace(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))}}return i.\u0275fac=function(e){return new(e||i)(Xe(P))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),dn=(()=>{class i{constructor(){this.changes=new ee}childrenLoaded(e,t){this.changes.next({item:e,children:t})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),ja=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q,8))},i.\u0275dir=N({type:i,selectors:[["","kendoTreeViewNodeTemplate",""]]}),i})(),Wa=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q,8))},i.\u0275dir=N({type:i,selectors:[["","kendoTreeViewLoadMoreButtonTemplate",""]]}),i})(),to=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),io=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),ei=(()=>{class i{constructor(){this.changes=new ee}isFirstSelected(e){return this.firstIndex===e}setFirstSelected(e,t){this.firstIndex===e&&t===!1?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)}select(e,t){this.changes.next({dataItem:t,index:e})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),Ka=/\d+$/,ti=(()=>{class i{constructor(){this.map=new Map}reset(){this.map.clear()}registerItem(e,t){let n={children:[],item:e,parent:this.item(Me(t))};this.map.set(e.index,n)}registerChildren(e,t){let n=this.item(e);n&&(n.children=t)}unregisterItem(e,t){let n=this.item(e);n&&n.item.dataItem===t&&(this.map.delete(e),n.parent&&n.parent.children&&(n.parent.children=n.parent.children.filter(o=>o.dataItem!==t)))}replaceItem(e,t,n){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,n),this.addToParent(t,n))}itemLookup(e){let t=this.item(e);return t?{children:this.mapChildren(t.children),item:t.item,parent:t.parent}:null}hasItem(e){return this.map.has(e)}item(e){return this.map.get(e)||null}addToParent(e,t){if(t){let n=this.item(t.index),o=parseInt(Ka.exec(e.index)[0],10);n.children=n.children||[],n.children.splice(o,0,e)}}mapChildren(e=[]){return e.map(t=>{let{item:n,parent:o,children:r}=this.item(t.index);return{children:this.mapChildren(r),item:n,parent:o}})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),$s=(i,s)=>({dataItem:s,index:i}),$a=0,Qa="treeitem",qa="button",Ja=(()=>{class i{constructor(e,t,n,o,r,c,p){this.element=e,this.expandService=t,this.navigationService=n,this.selectionService=o,this.lookupService=r,this.renderer=c,this.ib=p,this.role=Qa,this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=$a++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}set isChecked(e){e==="checked"?this.ariaChecked="true":e==="indeterminate"?this.ariaChecked="mixed":this.ariaChecked="false"}get isExpanded(){return this._isExpanded||!1}set isExpanded(e){this._isExpanded=e}get isSelected(){return this._isSelected||!1}set isSelected(e){this._isSelected=e}get isButton(){return this.role===qa}get treeItem(){return $s(this.index,this.dataItem)}get parentTreeItem(){return this.parentDataItem?$s(this.parentIndex,this.parentDataItem):null}ngOnInit(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.updateTabIndex()}ngOnChanges(e){let{index:t}=e;He(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(t),He(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()}ngOnDestroy(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((e,t)=>(t.unsubscribe(),e),[])}subscribe(){this.subscriptions=[this.navigationService.moves.subscribe(e=>{this.updateTabIndex(),this.focusItem(e.shouldScroll)}),this.navigationService.expands.pipe(R(({index:e})=>e===this.index&&!this.isDisabled)).subscribe(({expand:e})=>this.expand(e))]}registerNavigationItem(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()}activateItem(){if(this.isDisabled)return;let e=this.navigationService,t=this.selectionService,n=this.index;t.setFirstSelected(n,this.isSelected),!e.isActive(n)&&t.isFirstSelected(n)&&e.activateIndex(n)}expand(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)}isFocusable(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)}focusItem(e=!1){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus({preventScroll:!e})}moveLookupItem(e={}){let{dataItem:t,index:n,parentDataItem:o,parentIndex:r}=e;if(n&&n.firstChange||!t&&!n&&!o&&!r)return;let c=(n||{}).previousValue||this.index;this.lookupService.replaceItem(c,this.treeItem,this.parentTreeItem)}moveNavigationItem(e={}){let{currentValue:t,firstChange:n,previousValue:o}=e;!n&&G(t)&&G(o)&&(this.navigationService.unregisterItem(this.id,o),this.navigationService.registerItem(this.id,t,this.isDisabled,this.isButton))}updateNodeAvailability(){let e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.updateItem(this.index,this.isDisabled,this.isVisible)}setAriaAttributes(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)}updateTabIndex(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")}setAttribute(e,t){if(!G(t)){this.renderer.removeAttribute(this.element.nativeElement,e);return}this.renderer.setAttribute(this.element.nativeElement,e,t)}}return i.\u0275fac=function(e){return new(e||i)(h(z),h(Rt),h(Ft),h(ei),h(ti),h(Z),h(mt))},i.\u0275dir=N({type:i,selectors:[["","kendoTreeViewItem",""]],inputs:{dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",role:"role",loadOnDemand:"loadOnDemand",checkable:"checkable",selectable:"selectable",expandable:"expandable",isChecked:"isChecked",isDisabled:"isDisabled",isVisible:"isVisible",isExpanded:"isExpanded",isSelected:"isSelected"},features:[ue]}),i})(),Za=(()=>{class i{constructor(e,t,n,o){this.element=e,this.navigationService=t,this.selectionService=n,this.renderer=o,this.initialSelection=!1,this.isSelected=Ys,this.subscriptions=new ae,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(R(r=>r===this.index)).subscribe(r=>this.selectionService.select(r,this.dataItem))),this.subscriptions.add(this.selectionService.changes.subscribe(()=>{this.updateSelectionClass(this.isSelected(this.dataItem,this.index))}))}ngOnChanges(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()}ngOnDestroy(){this.subscriptions.unsubscribe()}updateFocusClass(){this.render(this.navigationService.isActive(this.index),"k-focus")}updateSelectionClass(e){this.render(e,"k-selected")}render(e,t){let n=e?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,t)}}return i.\u0275fac=function(e){return new(e||i)(h(z),h(Ft),h(ei),h(Z))},i.\u0275dir=N({type:i,selectors:[["","kendoTreeViewItemContent",""]],inputs:{dataItem:"dataItem",index:"index",initialSelection:"initialSelection",isSelected:"isSelected"},features:[ue]}),i})(),Xa=(()=>{class i{constructor(e,t,n){this.expandService=e,this.loadingService=t,this.cd=n,this._loading=!1}get loading(){return this._loading}set loading(e){this._loading=e,this.cd.markForCheck()}ngOnInit(){let e=this.loadingService.changes.pipe(R(t=>t===this.index));this.subscription=this.expandService.changes.pipe(R(({index:t})=>t===this.index),ge(({expand:t})=>{!t&&this.loading&&(this.loading=!1)}),R(({expand:t})=>t),Pt(t=>Je(t).pipe(Tn(100),xt(e)))).subscribe(()=>this.loading=!0),this.subscription.add(e.subscribe(()=>this.loading=!1))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(h(Rt),h(ln),h(me))},i.\u0275dir=N({type:i,selectors:[["","kendoTreeViewLoading",""]],hostVars:2,hostBindings:function(e,t){e&2&&V("k-i-loading",t.loading)},inputs:{index:[0,"kendoTreeViewLoading","index"]}}),i})(),Qs="k-treeview-top",qs="k-treeview-mid",on="k-treeview-bot",Ya=(()=>{class i{constructor(e,t,n,o,r,c,p,w,E){this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=o,this.navigationService=r,this.nodeChildrenService=c,this.dataChangeNotification=p,this.changeDetectorRef=w,this.localization=E,this.caretAltDownIcon=ht,this.caretAltRightIcon=ji,this.caretAltLeftIcon=Wi,this.kGroupClass=!0,this.loadOnDemand=!0,this.textField="",this.size="medium",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this.isItemExpandable=(H,K)=>this.expandDisabledNodes||!this.isItemDisabled(H,K),this._data=[],this.singleRecordSubscriptions=new ae,this.localizationSubscriptions=new ae,this.isChecked=()=>"none",this.isDisabled=()=>!1,this.hasCheckbox=()=>!0,this.isExpanded=()=>!1,this.isVisible=()=>!0,this.isSelected=()=>!1,this.children=()=>Je([]),this.hasChildren=()=>!1}get role(){return this.parentIndex?"group":"tree"}getFontIcon(e,t){return this.isExpanded(e,t)?"caret-alt-down":this.localization.rtl?"caret-alt-left":"caret-alt-right"}getSvgIcon(e,t){return this.isExpanded(e,t)?ht:this.localization.rtl?Wi:ji}get moreNodesAvailable(){return!G(this.loadMoreService)||this.data.length===0?!1:this.pageSize0?this.pageSize:0;return this._data.slice(0,e)}return this._data}set data(e){this._data=e,this.registerLoadedNodes(this.data)}get loadMoreButtonIndex(){return this.loadMoreService?this.nodeIndex(this.data.length):null}get totalNodesCount(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length}get hasTemplate(){return G(this.nodeTemplateRef)}expandNode(e,t,n){n?this.expandService.expand(e,t):this.expandService.collapse(e,t)}checkNode(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)}nodeIndex(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)}nodeText(e){let t=zs(this.textField)?this.textField[0]:this.textField;return zt(t)(e)}getCheckBoxState(e,t){let n=this.isChecked(e,t);return n==="indeterminate"?n:n==="checked"}getCheckboxAttributes(e){return{"aria-hidden":"true",role:"none","aria-labelledby":this.nodeIndex(e)}}ngOnDestroy(){G(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),G(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe(),this.localizationSubscriptions.unsubscribe()}ngOnInit(){this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(R(e=>e===this.loadMoreButtonIndex)).subscribe(this.loadMoreNodes.bind(this))),this.localizationSubscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this)))}ngOnChanges(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data)),this.localization.get("loadMore")&&(this.loadMoreTitle=this.localization.get("loadMore"))}l10nChange(){this.localization.get("loadMore")&&(this.loadMoreTitle=this.localization.get("loadMore")),this.changeDetectorRef.markForCheck()}fetchChildren(e,t){return this.children(e).pipe(St(()=>(this.loadingService.notifyLoaded(t),Dn)),ge(()=>this.loadingService.notifyLoaded(t)))}get nextFields(){return zs(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]}loadMoreNodes(){G(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()}isItemDisabled(e,t){return this.disabled&&!this.disableParentNodesOnly||this.isDisabled(e,this.nodeIndex(t))}setItemClasses(e,t){return e===1?this.parentIndex?on:`${Qs} ${on}`:t===0?Qs:t>0&&tthis.loadingMoreNodes=!1)).subscribe(e=>{if(!(Array.isArray(e)&&e.length>0))return;let t=this.loadMoreButtonIndex;this.pageSize+=e.length,this.data=this.data.concat(e),this.navigationService.isActive(t)&&(this.changeDetectorRef.detectChanges(),this.reselectItemAt(t))}))}setNodeChildren(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)}mapToTreeItem(e){return this.parentIndex?e.map((t,n)=>({dataItem:t,index:this.nodeIndex(n)})):[]}emitChildrenLoaded(e){if(!this.parentIndex)return;let t=e.filter(n=>n.dataItem);this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},t)}subscribeToNodesChange(){this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(e=>{this.data=e,this.initialNodesLoaded=!0})}reselectItemAt(e){G(e)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(e))}registerLoadedNodes(e=[]){let t=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(t),this.emitChildrenLoaded(t)}}return i.\u0275fac=function(e){return new(e||i)(h(Rt),h(ln),h(mt),h(ti),h(Ft),h(dn),h(Mt),h(me),h(P))},i.\u0275cmp=U({type:i,selectors:[["","kendoTreeViewGroup",""]],hostVars:3,hostBindings:function(e,t){e&2&&(k("role",t.role),V("k-treeview-group",t.kGroupClass))},inputs:{checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",disableParentNodesOnly:"disableParentNodesOnly",loadOnDemand:"loadOnDemand",trackBy:"trackBy",nodes:"nodes",textField:"textField",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService",size:"size",expandDisabledNodes:"expandDisabledNodes",isChecked:"isChecked",isDisabled:"isDisabled",hasCheckbox:"hasCheckbox",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren"},features:[ue],attrs:pa,decls:2,vars:3,consts:[["class","k-treeview-item","kendoTreeViewItem","",3,"k-hidden","dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-treeview-item","kendoTreeViewItem","","role","button",3,"k-treeview-load-more-checkboxes-container","selectable","checkable","expandable","index","parentDataItem","parentIndex",4,"ngIf"],["kendoTreeViewItem","",1,"k-treeview-item",3,"dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected"],[3,"ngClass"],["class","k-treeview-toggle",3,"k-disabled","kendoTreeViewLoading","click",4,"ngIf"],[3,"disabled","size","checkedState","tabindex","inputAttributes","checkedStateChange",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf",3,"id","dataItem","index","initialSelection","isSelected"],[1,"k-treeview-leaf-text"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["kendoTreeViewGroup","","role","group",3,"size","nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","hasCheckbox","disabled","expandDisabledNodes","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy","disableParentNodesOnly",4,"ngIf"],[1,"k-treeview-toggle",3,"click","kendoTreeViewLoading"],[3,"name","svgIcon"],[3,"checkedStateChange","disabled","size","checkedState","tabindex","inputAttributes"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoTreeViewGroup","","role","group",3,"size","nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","hasCheckbox","disabled","expandDisabledNodes","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy","disableParentNodesOnly"],["kendoTreeViewItem","","role","button",1,"k-treeview-item",3,"selectable","checkable","expandable","index","parentDataItem","parentIndex"],[1,"k-treeview-bot"],["class","k-icon k-i-loading",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf","k-treeview-load-more-button",3,"index"],[4,"ngIf"],[1,"k-icon","k-i-loading"]],template:function(e,t){e&1&&m(0,Sa,10,33,"li",0)(1,Ta,7,14,"li",1),e&2&&(a("ngForOf",t.data)("ngForTrackBy",t.trackBy),l(),a("ngIf",t.initialNodesLoaded&&t.moreNodesAvailable))},dependencies:[ve,Ve,se,Se,Vn,Bn,zn,as,Ce,i,Ja,Za,Xa],encapsulation:2,data:{animation:[Hn("toggle",[Ni("void => *",[Ae({height:0}),dt("0.1s ease-in",Ae({height:"*"}))]),Ni("* => void",[Ae({height:"*"}),dt("0.1s ease-in",Ae({height:0}))])])]}}),i})(),Js=(()=>{class i extends Kt{}return i.\u0275fac=(()=>{let s;return function(t){return(s||(s=Vt(i)))(t||i)}})(),i.\u0275dir=N({type:i,selectors:[["kendo-treeview-messages-base"]],inputs:{loadMore:"loadMore"},features:[Ye]}),i})(),el=(()=>{class i extends Js{constructor(e){super(),this.service=e}}return i.\u0275fac=function(e){return new(e||i)(h(P))},i.\u0275dir=N({type:i,selectors:[["","kendoTreeViewLocalizedMessages",""]],features:[_e([{provide:Js,useExisting:te(()=>i)}]),Ye]}),i})(),Zs=0,tl="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",il=[Rt,mt,ti,ln,dn,Ft,ei,Mt,P,{provide:xe,useValue:"kendo.treeview"},{provide:to,useExisting:te(()=>Xs)},{provide:io,useExisting:te(()=>Xs)}],Xs=(()=>{class i{constructor(e,t,n,o,r,c,p,w,E,H,K){this.element=e,this.changeDetectorRef=t,this.expandService=n,this.navigationService=o,this.nodeChildrenService=r,this.selectionService=c,this.treeViewLookupService=p,this.ngZone=w,this.renderer=E,this.dataChangeNotification=H,this.localization=K,this.searchIcon=$t,this.classNames=!0,this.filterInputPlaceholder="",this.fetchNodes=()=>this.data,this.childrenLoaded=new f,this.onBlur=new f,this.onFocus=new f,this.expand=new f,this.collapse=new f,this.nodeDragStart=new f,this.nodeDrag=new f,this.filterStateChange=new f,this.nodeDrop=new f,this.nodeDragEnd=new f,this.addItem=new f,this.removeItem=new f,this.checkedChange=new f,this.selectionChange=new f,this.filterChange=new f,this.nodeClick=new f,this.nodeDblClick=new f,this.trackBy=Va,this.isDisabled=Fa,this.hasCheckbox=Na,this.isVisible=Pa,this.navigable=!0,this.children=()=>Je([]),this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.disableParentNodesOnly=!1,this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new xn([]),this._animate=!0,this._size="medium",this.subscriptions=new ae,this.domSubscriptions=[],this._nextId=Zs,Ie(Aa),Zs++}get direction(){return this.localization.rtl?"rtl":"ltr"}set animate(e){this._animate=e}get animate(){return!this._animate}set nodeTemplateRef(e){this._nodeTemplateRef=e}get nodeTemplateRef(){return this._nodeTemplateRef||this.nodeTemplateQuery}set loadMoreButtonTemplateRef(e){this._loadMoreButtonTemplateRef=e}get loadMoreButtonTemplateRef(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery}set nodes(e){this.data.next(e||[]),this.dataChangeNotification.notify()}get nodes(){return this.data.value}get hasChildren(){return this._hasChildren||Ma}set hasChildren(e){this._hasChildren=e,this.expandIcons=!!(this._isExpanded&&this._hasChildren)}get isChecked(){return this._isChecked||Ra}set isChecked(e){this._isChecked=e,this.checkboxes=!!this._isChecked}get isExpanded(){return this._isExpanded||La}set isExpanded(e){this._isExpanded=e,this.expandIcons=!!(this._isExpanded&&this._hasChildren)}get isSelected(){return this._isSelected||Ys}set isSelected(e){this._isSelected=e,this.selectable=!!this._isSelected}set size(e){let t=e||"medium";this.size!=="none"&&this.renderer.removeClass(this.element.nativeElement,tn("treeview",this.size)),this.renderer.addClass(this.element.nativeElement,tn("treeview",t)),this._size=e}get size(){return this._size}get treeviewId(){return`treeview_${this._nextId}`}ngOnChanges(e){this.navigationService.navigable=!!this.navigable,He(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(e=>e())}ngOnInit(){this.subscriptions.add(this.nodeChildrenService.changes.subscribe(e=>this.childrenLoaded.emit(e))),this.subscriptions.add(this.expandService.changes.subscribe(({index:e,dataItem:t,expand:n})=>n?this.expand.emit({index:e,dataItem:t}):this.collapse.emit({index:e,dataItem:t}))),this.subscriptions.add(this.navigationService.checks.subscribe(e=>this.checkedChange.emit(this.treeViewLookupService.itemLookup(e)))),this.subscriptions.add(this.selectionService.changes.subscribe(e=>{L(this.selectionChange)&&this.ngZone.run(()=>{this.selectionChange.emit(e)})})),this.element&&this.ngZone.runOutsideAngular(()=>{this.attachDomHandlers()}),this.size&&this.renderer.addClass(this.element.nativeElement,tn("treeview",this.size))}ngAfterViewInit(){this.searchbox&&(this.renderer.setAttribute(this.searchbox.input.nativeElement,"role","searchbox"),this.renderer.setAttribute(this.searchbox.input.nativeElement,"aria-controls",this.treeviewId),this.renderer.setAttribute(this.searchbox.input.nativeElement,"aria-label","searchbar"))}blur(){if(!F())return;let e=Ws(this.element);document.activeElement===e&&e.blur()}focus(e){let t=e||Me(this.navigationService.focusableItem);this.navigationService.activateIndex(t);let n=Ws(this.element);n&&n.focus()}itemLookup(e){return this.treeViewLookupService.itemLookup(e)}rebindChildren(){this.dataChangeNotification.notify()}expandNode(e,t){this.expandService.expand(t,e)}collapseNode(e,t){this.expandService.collapse(t,e)}getNodePageSize(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)}setNodePageSize(e,t){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,t)}preloadChildNodes(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)}attachDomHandlers(){let e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))}focusHandler(e){let t;if(ut(e.target,".k-treeview-item")?t=e.target:Hs(e.target)||(t=Gs(e.target)),t){let n=Ks(e.target);if(this.navigationService.isDisabled(n))return;this.navigationService.activateIndex(n),!this.isActive&&L(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()}),this.isActive=!0}}blurHandler(e){this.isActive&&ut(e.target,".k-treeview-item")&&(!e.relatedTarget||!ut(e.relatedTarget,".k-treeview-item")||!js(e.relatedTarget,this.element.nativeElement))&&(this.navigationService.deactivate(),this.isActive=!1,L(this.onBlur)&&this.ngZone.run(()=>{this.onBlur.emit()}))}clickHandler(e){let t=e.target;if(e.type==="contextmenu"&&!L(this.nodeClick)||e.type==="click"&&!L(this.nodeClick)&&!L(this.selectionChange)&&!Us(t)||e.type==="dblclick"&&!L(this.nodeDblClick)||Hs(t)||!za(t)&&!Us(t)||!js(t,this.element.nativeElement))return;let n=Ks(Gs(t));!n||this.navigationService.isDisabled(n)||this.ngZone.run(()=>{let o=this.treeViewLookupService.itemLookup(n);if(e.type==="click")if(this.navigationService.model.findNode(n).loadMoreButton){this.navigationService.notifyLoadMore(n);return}else this.navigationService.selectIndex(n);(e.type==="dblclick"?this.nodeDblClick:this.nodeClick).emit({item:o.item,originalEvent:e,type:e.type})})}keydownHandler(e){this.isActive&&this.navigable&&this.ngZone.run(()=>{this.navigationService.move(e)})}verifyLoadMoreService(){if(Pe()&&!G(this.loadMoreService))throw new Error(`To use the TreeView paging functionality, you need to assign the \`kendoTreeViewLoadMore\` directive. See ${tl}.`)}registerLookupItems(e,t=null){if(!G(e)||e.length===0)return;let n=Me(t),o=e.map((r,c)=>Ua(r,c,n));G(t)&&this.treeViewLookupService.registerChildren(n,o),o.forEach(r=>{this.treeViewLookupService.registerItem(r,t),this.hasChildren(r.dataItem)&&this.children(r.dataItem).subscribe(c=>this.registerLookupItems(c,r))})}}return i.\u0275fac=function(e){return new(e||i)(h(z),h(me),h(Rt),h(Ft),h(dn),h(ei),h(ti),h(he),h(Z),h(Mt),h(P))},i.\u0275cmp=U({type:i,selectors:[["kendo-treeview"]],contentQueries:function(e,t,n){if(e&1&&(y(n,ja,5),y(n,Wa,5)),e&2){let o;b(o=S())&&(t.nodeTemplateQuery=o.first),b(o=S())&&(t.loadMoreButtonTemplateQuery=o.first)}},viewQuery:function(e,t){if(e&1&&(A(ya,7,Ne),A(ka,5)),e&2){let n;b(n=S())&&(t.assetsContainer=n.first),b(n=S())&&(t.searchbox=n.first)}},hostVars:4,hostBindings:function(e,t){e&2&&(Rn("@.disabled",t.animate),k("dir",t.direction),V("k-treeview",t.classNames))},inputs:{filterInputPlaceholder:"filterInputPlaceholder",expandDisabledNodes:"expandDisabledNodes",animate:"animate",nodeTemplateRef:[0,"nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:[0,"loadMoreButtonTemplate","loadMoreButtonTemplateRef"],trackBy:"trackBy",nodes:"nodes",textField:"textField",hasChildren:"hasChildren",isChecked:"isChecked",isDisabled:"isDisabled",hasCheckbox:"hasCheckbox",isExpanded:"isExpanded",isSelected:"isSelected",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",size:"size",disableParentNodesOnly:"disableParentNodesOnly"},outputs:{childrenLoaded:"childrenLoaded",onBlur:"blur",onFocus:"focus",expand:"expand",collapse:"collapse",nodeDragStart:"nodeDragStart",nodeDrag:"nodeDrag",filterStateChange:"filterStateChange",nodeDrop:"nodeDrop",nodeDragEnd:"nodeDragEnd",addItem:"addItem",removeItem:"removeItem",checkedChange:"checkedChange",selectionChange:"selectionChange",filterChange:"filterChange",nodeClick:"nodeClick",nodeDblClick:"nodeDblClick"},exportAs:["kendoTreeView"],features:[_e(il),ue],decls:5,vars:24,consts:()=>{let s;return s=$localize`:kendo.treeview.loadMore|The title of the Load More button:Load more...`,[["assetsContainer",""],["searchbox",""],["kendoTreeViewLocalizedMessages","","loadMore",s],["class","k-treeview-filter",4,"ngIf"],["kendoTreeViewGroup","","role","tree",1,"k-treeview-lines",3,"size","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","hasCheckbox","disableParentNodesOnly","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","textField","nodes","loadMoreService","trackBy","expandDisabledNodes"],[1,"k-treeview-filter"],[3,"valueChange","size","value","clearButton","placeholder"],["kendoTextBoxPrefixTemplate",""],["innerCssClass","k-input-icon","name","search",3,"svgIcon"]]},template:function(e,t){e&1&&(X(0,2),m(1,Oa,4,4,"span",3),M(2,"ul",4),X(3,null,0)),e&2&&(l(),a("ngIf",t.filterable),l(),a("size",t.size)("loadOnDemand",t.loadOnDemand)("checkboxes",t.checkboxes)("expandIcons",t.expandIcons)("selectable",t.selectable)("touchActions",t.touchActions)("children",t.children)("hasChildren",t.hasChildren)("isChecked",t.isChecked)("isDisabled",t.isDisabled)("hasCheckbox",t.hasCheckbox)("disableParentNodesOnly",t.disableParentNodesOnly)("isExpanded",t.isExpanded)("isSelected",t.isSelected)("isVisible",t.isVisible)("nodeTemplateRef",t.nodeTemplateRef==null?null:t.nodeTemplateRef.templateRef)("loadMoreButtonTemplateRef",t.loadMoreButtonTemplateRef==null?null:t.loadMoreButtonTemplateRef.templateRef)("textField",t.textField)("nodes",t.fetchNodes)("loadMoreService",t.loadMoreService)("trackBy",t.trackBy)("expandDisabledNodes",t.expandDisabledNodes),k("id",t.treeviewId))},dependencies:[se,qt,Qt,Ce,Ya,el],encapsulation:2}),i})();var bp=nl(()=>{if(!(F()&&G(document.body)))return!1;let i=10,s=document.createElement("div");s.style.transform="matrix(10, 0, 0, 10, 0, 0)";let e=document.createElement("div");e.innerText="child",e.style.position="fixed",e.style.top=`${i}px`,s.appendChild(e),document.body.appendChild(s);let t=s.children[0].getBoundingClientRect().top!==i;return document.body.removeChild(s),t});function nl(i){let s,e=!1;return(...t)=>(e||(s=i(...t),e=!0),s)}var Sp=new RegExp("(auto|scroll)");var xp=new mt;var Ip=new mt;var sl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[Oe,ls,Be]}),i})();var no=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[sl]}),i})();var ol=["input"],rl=(i,s)=>({focus:i,blur:s}),al=["content"],ll=["list"],dl=["virtualContainer"],po=(i,s,e)=>({"height.px":i,"minHeight.px":s,boxSizing:e}),ze=(i,s)=>({templateRef:i,$implicit:s}),uo=(i,s)=>({"k-disabled":i,"k-table-alt-row":s});function cl(i,s){}function hl(i,s){if(i&1&&m(0,cl,0,0,"ng-template",12),i&2){let e=d(2);a("templateContext",oe(1,ze,e.fixedGroupTemplate.templateRef,e.currentGroup))}}function pl(i,s){if(i&1&&(g(0,"span"),B(1),_()),i&2){let e=d(2);Te(e.listGroupStickyHeaderTextClass),l(),J(e.currentGroup)}}function ul(i,s){if(i&1&&(g(0,"div",10),m(1,hl,1,4,null,7)(2,pl,2,3,"ng-template",11),_()),i&2){let e=d();Te(e.listGroupStickyHeaderClass),a("ngStyle",Bt(5,po,e.virtual==null?null:e.virtual.itemHeight,e.virtual==null?null:e.virtual.itemHeight,e.virtual?"border-box":"inherit")),l(),a("ngIf",e.fixedGroupTemplate),l(),a("ngIf",!e.fixedGroupTemplate)}}function ml(i,s){if(i&1){let e=O();g(0,"input",16),T("change",function(n){v(e);let o=d().index,r=d(2);return C(r.onCheckedChange(n,o))}),_()}if(i&2){let e=d().index,t=d(2);a("ngClass",t.checkboxClasses)("checked",t.isChecked(e))}}function fl(i,s){}function gl(i,s){if(i&1&&m(0,fl,0,0,"ng-template",12),i&2){let e=d().$implicit,t=d(2);a("templateContext",oe(1,ze,t.template.templateRef,e))}}function _l(i,s){if(i&1&&(g(0,"span",17),B(1),_()),i&2){let e=d().$implicit,t=d(2);l(),J(t.getText(e))}}function vl(i,s){if(i&1&&(g(0,"li",14),m(1,ml,1,2,"input",15)(2,gl,1,4,null,7)(3,_l,2,1,"ng-template",11),_()),i&2){let e=s.index,t=d(2);Te(t.listItemClass),a("checkboxes",t.checkboxes)("height",t.virtual==null?null:t.virtual.itemHeight)("index",e+t.startFrom)("multipleSelection",t.multipleSelection)("ngClass",oe(13,uo,t.isDisabled(e),t.isAltRow(e))),k("id",t.optionPrefix+"-"+e)("tabIndex",-1)("aria-selected",t.isItemSelected(e)),l(),a("ngIf",t.checkboxes.enabled),l(),a("ngIf",t.template),l(),a("ngIf",!t.template)}}function Cl(i,s){if(i&1&&m(0,vl,4,16,"ng-template",13),i&2){let e=d();a("ngForOf",e.data)}}function bl(i,s){}function Sl(i,s){if(i&1&&m(0,bl,0,0,"ng-template",12),i&2){let e=d(2).$implicit,t=d(2);a("templateContext",oe(1,ze,t.groupTemplate.templateRef,e.value))}}function xl(i,s){if(i&1&&B(0),i&2){let e=d(2).$implicit;J(e.value)}}function Il(i,s){if(i&1&&(g(0,"li",20,2)(2,"span"),m(3,Sl,1,4,null,7)(4,xl,1,1,"ng-template",11),_()()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d(2);Te(o.listGroupItemClass),V("k-table-alt-row",o.isAltRow(n-1)),a("ngStyle",Bt(12,po,o.virtual==null?null:o.virtual.itemHeight,o.virtual==null?null:o.virtual.itemHeight,o.virtual?"border-box":"inherit")),k("group-index",t.index)("id",o.optionPrefix+"-"+n)("tabIndex",-1),l(2),Te(o.listGroupItemTextClass),l(),a("ngIf",o.groupTemplate),l(),a("ngIf",!o.groupTemplate)}}function Dl(i,s){}function wl(i,s){if(i&1&&m(0,Dl,0,0,"ng-template",12),i&2){let e=d(2).$implicit,t=d(2);a("templateContext",oe(1,ze,t.template.templateRef,e.value))}}function Tl(i,s){if(i&1&&(g(0,"span",17),B(1),_()),i&2){let e=d(2).$implicit,t=d(2);l(),J(t.getText(e.value))}}function yl(i,s){if(i&1&&(g(0,"li",21,2),m(2,wl,1,4,null,7)(3,Tl,2,1,"ng-template",11),_()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d(2);Te(o.listItemClass),a("height",o.virtual==null?null:o.virtual.itemHeight)("index",t.offsetIndex)("multipleSelection",o.multipleSelection)("ngClass",oe(12,uo,o.isDisabled(t.offsetIndex),o.isAltRow(n-1))),k("absolute-index",t.index)("id",o.optionPrefix+"-"+n)("tabIndex",-1)("aria-selected",o.isItemSelected(t.offsetIndex)),l(2),a("ngIf",o.template),l(),a("ngIf",!o.template)}}function kl(i,s){if(i&1&&m(0,Il,5,16,"li",18)(1,yl,4,15,"li",19),i&2){let e=s.$implicit;a("ngIf",e.header),l(),a("ngIf",!e.header)}}function El(i,s){if(i&1&&m(0,kl,2,2,"ng-template",13),i&2){let e=d();a("ngForOf",e.data)}}function Ol(i,s){if(i&1){let e=O();g(0,"kendo-resize-sensor",22),T("resize",function(){v(e);let n=d();return C(n.listResize.emit())}),_()}}function Al(i,s){if(i&1){let e=O();g(0,"div",23,3)(2,"div")(3,"kendo-resize-sensor",22),T("resize",function(){v(e);let n=d();return C(n.listResize.emit())}),_()()()}if(i&2){let e=d();l(2),Le("height",e.scrollHeight,"px")}}var Ml=["actionSheetSearchBar"],Rl=i=>({duration:i});function Fl(i,s){i&1&&M(0,"kendo-icon",19)}function Nl(i,s){if(i&1){let e=O();g(0,"kendo-textbox",17,1),T("valueChange",function(n){v(e);let o=d(2);return C(o.onValueChange(n))}),m(2,Fl,1,0,"ng-template",18),_()}if(i&2){let e=d(2);a("value",e.searchBarValue)("size",e.size)}}function Ll(i,s){i&1&&X(0)}function Pl(i,s){if(i&1){let e=O();g(0,"div",20)(1,"button",21),T("click",function(){v(e);let n=d(2);return C(n.onCancel.emit())})("keydown.enter",function(n){return v(e),C(n.stopImmediatePropagation())}),B(2),_(),g(3,"button",22),T("click",function(){v(e);let n=d(2);return C(n.onApply.emit())})("keydown.enter",function(n){return v(e),C(n.stopImmediatePropagation())}),B(4),_()()}if(i&2){let e=d(2);l(),a("size",e.size),l(),et(" ",e.messageFor("cancelButton")," "),l(),a("size",e.size),l(),et(" ",e.messageFor("applyButton")," ")}}function Vl(i,s){if(i&1){let e=O();g(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),B(4),_(),g(5,"div",8),B(6),_()(),g(7,"div",9)(8,"button",10),T("click",function(){v(e);let n=d();return C(n.closePopup.emit())}),_()()(),g(9,"div",11),m(10,Nl,3,2,"kendo-textbox",12),_()(),g(11,"div",13)(12,"div",14),m(13,Ll,1,0,"ng-container",15),_()(),m(14,Pl,5,4,"div",16)}if(i&2){let e=d();l(4),J(e.title),l(2),J(e.subtitle),l(2),a("svgIcon",e.xIcon)("size",e.size)("tabIndex",-1),k("title",e.messageFor("clearTitle")),l(2),a("ngIf",e.showTextInput),l(3),a("ngTemplateOutlet",e.sharedPopupActionSheetTemplate),l(),a("ngIf",e.showActionButtons)}}var li=["container"],di=["popupTemplate"],ci=["optionsList"],we=i=>({templateRef:i});function Bl(i,s){}function zl(i,s){if(i&1&&(g(0,"span",15),m(1,Bl,0,0,"ng-template",16),_()),i&2){let e=d();l(),a("ngTemplateOutlet",e.prefixTemplate==null?null:e.prefixTemplate.templateRef)}}function Gl(i,s){i&1&&M(0,"kendo-separator")}function Hl(i,s){if(i&1){let e=O();g(0,"span",17),T("click",function(n){v(e);let o=d();return C(o.clearValue(n))})("mousedown",function(n){return v(e),C(n.preventDefault())}),M(1,"kendo-icon-wrapper",18),_()}if(i&2){let e=d();Le("visibility",e.clearButtonVisiblity),k("title",e.messageFor("clearTitle")),l(),a("svgIcon",e.xIcon)}}function Ul(i,s){i&1&&M(0,"span",19)}function jl(i,s){i&1&&M(0,"kendo-separator")}function Wl(i,s){}function Kl(i,s){if(i&1&&(g(0,"span",20),m(1,Wl,0,0,"ng-template",16),_()),i&2){let e=d();l(),a("ngTemplateOutlet",e.suffixTemplate==null?null:e.suffixTemplate.templateRef)}}function $l(i,s){i&1&&X(0)}function Ql(i,s){if(i&1&&m(0,$l,1,0,"ng-container",21),i&2){d();let e=Y(17);a("ngTemplateOutlet",e)}}function ql(i,s){if(i&1){let e=O();g(0,"kendo-resize-sensor",22),T("resize",function(){v(e);let n=d();return C(n.onResize())}),_()}}function Jl(i,s){}function Zl(i,s){if(i&1&&m(0,Jl,0,0,"ng-template",25),i&2){let e=d(2);a("templateContext",j(1,we,e.headerTemplate.templateRef))}}function Xl(i,s){}function Yl(i,s){if(i&1&&(g(0,"div"),B(1),_()),i&2){let e=d(3);l(),J(e.messageFor("noDataText"))}}function ed(i,s){if(i&1&&(g(0,"div",26),m(1,Xl,0,0,"ng-template",27)(2,Yl,2,1,"ng-template",28),_()),i&2){let e=d(2);l(),a("ngIf",e.noDataTemplate)("templateContext",j(3,we,e.noDataTemplate==null?null:e.noDataTemplate.templateRef)),l(),a("ngIf",!e.noDataTemplate)}}function td(i,s){}function id(i,s){if(i&1&&m(0,td,0,0,"ng-template",25),i&2){let e=d(2);a("templateContext",j(1,we,e.footerTemplate.templateRef))}}function nd(i,s){if(i&1){let e=O();m(0,Zl,1,3,null,8),g(1,"kendo-list",23,4),T("pageChange",function(n){v(e);let o=d();return C(o.pageChange(n))}),_(),m(3,ed,3,5,"div",24)(4,id,1,3,null,8)}if(i&2){let e=d();a("ngIf",e.headerTemplate),l(),a("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.valueField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual)("showStickyHeader",e.showStickyHeader),l(2),a("ngIf",e.data.length===0),l(),a("ngIf",e.footerTemplate)}}var sd=["select"],un=i=>({mousedown:i});function od(i,s){}function rd(i,s){if(i&1&&(g(0,"span",18),m(1,od,0,0,"ng-template",19),_()),i&2){let e=d();l(),a("ngTemplateOutlet",e.prefixTemplate==null?null:e.prefixTemplate.templateRef)}}function ad(i,s){i&1&&M(0,"kendo-separator")}function ld(i,s){if(i&1){let e=O();g(0,"span",20),T("click",function(n){v(e);let o=d();return C(o.clearValue(n))}),M(1,"kendo-icon-wrapper",21),_()}if(i&2){let e=d();Le("visibility",e.clearButtonVisiblity),a("kendoEventsOutsideAngular",j(5,un,e.preventEventDefault)),k("title",e.messageFor("clearTitle")),l(),a("svgIcon",e.xIcon)}}function dd(i,s){i&1&&M(0,"span",22)}function cd(i,s){i&1&&M(0,"kendo-separator")}function hd(i,s){}function pd(i,s){if(i&1&&(g(0,"span",23),m(1,hd,0,0,"ng-template",19),_()),i&2){let e=d();l(),a("ngTemplateOutlet",e.suffixTemplate==null?null:e.suffixTemplate.templateRef)}}function ud(i,s){i&1&&X(0)}function md(i,s){if(i&1&&m(0,ud,1,0,"ng-container",24),i&2){d();let e=Y(20);a("ngTemplateOutlet",e)}}function fd(i,s){if(i&1){let e=O();g(0,"kendo-resize-sensor",25),T("resize",function(){v(e);let n=d();return C(n.onResize())}),_()}}function gd(i,s){}function _d(i,s){if(i&1&&m(0,gd,0,0,"ng-template",28),i&2){let e=d(2);a("templateContext",j(1,we,e.headerTemplate.templateRef))}}function vd(i,s){}function Cd(i,s){if(i&1&&(g(0,"div"),B(1),_()),i&2){let e=d(3);l(),J(e.messageFor("noDataText"))}}function bd(i,s){if(i&1&&(g(0,"div",29),m(1,vd,0,0,"ng-template",30)(2,Cd,2,1,"ng-template",31),_()),i&2){let e=d(2);l(),a("ngIf",e.noDataTemplate)("templateContext",j(3,we,e.noDataTemplate?e.noDataTemplate.templateRef:void 0)),l(),a("ngIf",!e.noDataTemplate)}}function Sd(i,s){}function xd(i,s){if(i&1&&m(0,Sd,0,0,"ng-template",28),i&2){let e=d(2);a("templateContext",j(1,we,e.footerTemplate.templateRef))}}function Id(i,s){if(i&1){let e=O();m(0,_d,1,3,null,9),g(1,"kendo-list",26,5),T("pageChange",function(n){v(e);let o=d();return C(o.pageChange(n))}),_(),m(3,bd,3,5,"div",27)(4,xd,1,3,null,9)}if(i&2){let e=d();a("ngIf",e.headerTemplate),l(),a("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual)("showStickyHeader",e.showStickyHeader),l(2),a("ngIf",e.data.length===0),l(),a("ngIf",e.footerTemplate)}}var mo=i=>({"k-disabled":i});function Dd(i,s){}function wd(i,s){if(i&1&&m(0,Dd,0,0,"ng-template",15),i&2){let e=d();a("templateContext",oe(1,ze,e.valueTemplate.templateRef,e.dataItem))}}function Td(i,s){if(i&1&&B(0),i&2){let e=d();J(e.getText())}}function yd(i,s){i&1&&M(0,"span",16)}function kd(i,s){i&1&&X(0)}function Ed(i,s){if(i&1&&m(0,kd,1,0,"ng-container",17),i&2){d();let e=Y(15);a("ngTemplateOutlet",e)}}function Od(i,s){if(i&1){let e=O();g(0,"kendo-resize-sensor",18),T("resize",function(){v(e);let n=d();return C(n.onResize())}),_()}}function Ad(i,s){if(i&1){let e=O();g(0,"div",21),T("click",function(n){return v(e),C(n.stopImmediatePropagation())}),g(1,"span",22),M(2,"kendo-icon-wrapper",23),g(3,"input",24,4),wt("ngModelChange",function(n){v(e);let o=d(2);return Dt(o.filterText,n)||(o.filterText=n),C(n)}),T("keydown",function(n){v(e);let o=Y(4),r=d(2);return C(r.keydown(n,o))})("input",function(n){v(e);let o=d(2);return C(o.handleFilter(n))})("focus",function(){v(e);let n=d(2);return C(n.onFilterFocus())})("blur",function(){v(e);let n=d(2);return C(n.blurFilterInput())})("click",function(){v(e);let n=d(2);return C(n.handleClick())}),_()()()}if(i&2){let e=d(2);l(),a("ngClass",e.filterInputClasses),l(),a("svgIcon",e.searchIcon),l(),a("filterInput",e.isFocused&&!e.touchEnabled)("dir",e.direction),It("ngModel",e.filterText),k("aria-controls",e.isOpen?e.ariaControls:void 0)("aria-activedescendant",e.ariaActivedescendant)("aria-label",e.messageFor("filterInputLabel"))}}function Md(i,s){if(i&1&&(g(0,"div",25)(1,"div",26),B(2),_()()),i&2){let e=d(2);a("ngClass",e.optionLabelSizeClass),l(),a("ngClass",j(4,mo,e.isDisabledDefaultItem))("index",-1),l(),et(" ",e.getDefaultItemText()," ")}}function Rd(i,s){}function Fd(i,s){if(i&1&&(g(0,"div",25)(1,"div",26),m(2,Rd,0,0,"ng-template",15),_()()),i&2){let e=d(2);a("ngClass",e.optionLabelSizeClass),l(),a("ngClass",j(4,mo,e.isDisabledDefaultItem))("index",-1),l(),a("templateContext",oe(6,ze,e.itemTemplate.templateRef,e.defaultItem))}}function Nd(i,s){}function Ld(i,s){if(i&1&&m(0,Nd,0,0,"ng-template",15),i&2){let e=d(2);a("templateContext",j(1,we,e.headerTemplate.templateRef))}}function Pd(i,s){}function Vd(i,s){if(i&1&&(g(0,"div"),B(1),_()),i&2){let e=d(3);l(),J(e.messageFor("noDataText"))}}function Bd(i,s){if(i&1&&(g(0,"div",27),m(1,Pd,0,0,"ng-template",28)(2,Vd,2,1,"ng-template",9),_()),i&2){let e=d(2);l(),a("ngIf",e.noDataTemplate)("templateContext",j(3,we,e.noDataTemplate?e.noDataTemplate.templateRef:void 0)),l(),a("ngIf",!e.noDataTemplate)}}function zd(i,s){}function Gd(i,s){if(i&1&&m(0,zd,0,0,"ng-template",15),i&2){let e=d(2);a("templateContext",j(1,we,e.footerTemplate.templateRef))}}function Hd(i,s){if(i&1){let e=O();m(0,Ad,5,8,"ng-template",9)(1,Md,3,6,"ng-template",9)(2,Fd,3,9,"ng-template",9)(3,Ld,1,3,null,8),g(4,"kendo-list",19,3),T("pageChange",function(n){v(e);let o=d();return C(o.pageChange(n))}),_(),m(6,Bd,3,5,"div",20)(7,Gd,1,3,null,8)}if(i&2){let e=d();a("ngIf",e.filterable&&!e.isActionSheetExpanded),l(),a("ngIf",e.defaultItem&&!e.itemTemplate),l(),a("ngIf",e.defaultItem&&e.itemTemplate),l(),a("ngIf",e.headerTemplate),l(),a("id",e.listBoxId)("size",e.size)("rounded",e.rounded)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.itemTemplate)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual)("ariaLive",e.ariaLive)("showStickyHeader",e.showStickyHeader),l(2),a("ngIf",e.data.length===0),l(),a("ngIf",e.footerTemplate)}}var Ud=["*"],jd=(i,s,e,t,n,o,r,c,p,w,E,H)=>({"k-focus":i,"k-disabled":s,"k-chip-sm":e,"k-chip-md":t,"k-chip-lg":n,"k-rounded-sm":o,"k-rounded-md":r,"k-rounded-lg":c,"k-rounded-full":p,"k-chip-solid k-chip-solid-base":w,"k-chip-flat k-chip-flat-base":E,"k-chip-outline k-chip-outline-base":H});function Wd(i,s){}function Kd(i,s){i&1&&m(0,Wd,0,0,"ng-template")}function $d(i,s){}function Qd(i,s){if(i&1&&m(0,$d,0,0,"ng-template",12),i&2){let e=d(2).$implicit,t=d();a("templateContext",oe(1,ze,t.groupTemplate.templateRef,e))}}function qd(i,s){if(i&1&&B(0),i&2){let e=d(2).$implicit;Fn("",e.length," ",e.length===1?"item":"items"," selected")}}function Jd(i,s){if(i&1&&(g(0,"span",9),m(1,Qd,1,4,null,10)(2,qd,1,2,"ng-template",11),_()),i&2){let e=d(2);l(),a("ngIf",e.groupTemplate),l(),a("ngIf",!e.groupTemplate)}}function Zd(i,s){}function Xd(i,s){if(i&1&&m(0,Zd,0,0,"ng-template",12),i&2){let e=d(2).$implicit,t=d();a("templateContext",oe(1,ze,t.template.templateRef,e))}}function Yd(i,s){if(i&1&&B(0),i&2){let e=d(2),t=e.$implicit,n=e.index,o=d();J(o.tagProp(t,o.textField,n))}}function ec(i,s){if(i&1&&(g(0,"span",9),m(1,Xd,1,4,null,10)(2,Yd,1,1,"ng-template",11),_()),i&2){let e=d(2);l(),a("ngIf",e.template),l(),a("ngIf",!e.template)}}function tc(i,s){if(i&1){let e=O();g(0,"div",3)(1,"span",4),m(2,Kd,1,0,null,5)(3,Jd,3,2,"ng-template",null,0,re)(5,ec,3,2,"ng-template",null,1,re),_(),g(7,"span",6)(8,"span",7)(9,"kendo-icon-wrapper",8),T("mousedown",function(n){let o=v(e),r=o.$implicit,c=o.index,p=d();return C(p.deleteTag(n,r,c))}),_()()()()}if(i&2){let e=s.$implicit,t=s.index,n=Y(4),o=Y(6),r=d();a("ngClass",Ln(8,jd,[t===r.focused,r.isTagDisabled(e,t),r.size==="small",r.size==="medium",r.size==="large",r.rounded==="small",r.rounded==="medium",r.rounded==="large",r.rounded==="full",r.fillMode==="solid",r.fillMode==="flat",r.fillMode==="outline"])),k("id",r.itemId(e,t))("aria-hidden",r.tagAriaHidden(t)),l(2),a("ngIf",r.isGroupTag(e))("ngIfThen",n)("ngIfElse",o),l(6),k("aria-hidden",t!==r.focused),l(),a("svgIcon",r.xCircleIcon)}}function ic(i,s){}function nc(i,s){if(i&1&&(g(0,"span",18),m(1,ic,0,0,"ng-template",19),_()),i&2){let e=d();l(),a("ngTemplateOutlet",e.prefixTemplate==null?null:e.prefixTemplate.templateRef)}}function sc(i,s){i&1&&M(0,"kendo-separator")}function oc(i,s){if(i&1){let e=O();g(0,"span",20),T("mousedown",function(n){v(e);let o=d();return C(o.clearAll(n))}),M(1,"kendo-icon-wrapper",21),_()}if(i&2){let e=d();Le("visibility",e.clearButtonVisiblity),k("title",e.messageFor("clearTitle")),l(),a("svgIcon",e.xIcon)}}function rc(i,s){i&1&&M(0,"span",22)}function ac(i,s){i&1&&M(0,"kendo-separator")}function lc(i,s){}function dc(i,s){if(i&1&&(g(0,"span",23),m(1,lc,0,0,"ng-template",19),_()),i&2){let e=d();l(),a("ngTemplateOutlet",e.suffixTemplate==null?null:e.suffixTemplate.templateRef)}}function cc(i,s){i&1&&X(0)}function hc(i,s){if(i&1&&m(0,cc,1,0,"ng-container",24),i&2){d();let e=Y(19);a("ngTemplateOutlet",e)}}function pc(i,s){if(i&1){let e=O();g(0,"kendo-resize-sensor",25),T("resize",function(){v(e);let n=d();return C(n.onResize())}),_()}}function uc(i,s){}function mc(i,s){if(i&1&&m(0,uc,0,0,"ng-template",29),i&2){let e=d(2);a("templateContext",j(1,we,e.headerTemplate.templateRef))}}function fc(i,s){}function gc(i,s){if(i&1&&m(0,fc,0,0,"ng-template",29),i&2){let e=d(3);a("templateContext",oe(1,ze,e.customItemTemplate.templateRef,e.text))}}function _c(i,s){if(i&1&&B(0),i&2){let e=d(3);J(e.text)}}function vc(i,s){if(i&1&&(g(0,"div",30)(1,"div",31),m(2,gc,1,4,null,32)(3,_c,1,1,"ng-template",null,5,re),M(5,"kendo-icon-wrapper",33),_()()),i&2){let e=Y(4),t=d(2);a("ngClass",t.customItemSizeClass),l(),a("multipleSelection",!0)("index",-1),l(),a("ngIf",t.customItemTemplate)("ngIfElse",e),l(3),a("svgIcon",t.plusIcon)}}function Cc(i,s){}function bc(i,s){if(i&1&&(g(0,"div"),B(1),_()),i&2){let e=d(3);l(),J(e.messageFor("noDataText"))}}function Sc(i,s){if(i&1&&(g(0,"div",34),m(1,Cc,0,0,"ng-template",35)(2,bc,2,1,"ng-template",36),_()),i&2){let e=d(2);l(),a("ngIf",e.noDataTemplate)("templateContext",j(3,we,e.noDataTemplate?e.noDataTemplate.templateRef:void 0)),l(),a("ngIf",!e.noDataTemplate)}}function xc(i,s){}function Ic(i,s){if(i&1&&m(0,xc,0,0,"ng-template",29),i&2){let e=d(2);a("templateContext",j(1,we,e.footerTemplate.templateRef))}}function Dc(i,s){if(i&1){let e=O();m(0,mc,1,3,null,9)(1,vc,6,6,"div",26),g(2,"kendo-list",27,4),T("pageChange",function(n){v(e);let o=d();return C(o.pageChange(n))}),_(),m(4,Sc,3,5,"div",28)(5,Ic,1,3,null,9)}if(i&2){let e=d();a("ngIf",e.headerTemplate),l(),a("ngIf",e.allowCustom&&e.text),l(),a("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("multipleSelection",!0)("virtual",e.virtual)("checkboxes",e.checkboxes)("isMultiselect",!0)("isActionSheetExpanded",e.isActionSheetExpanded)("showStickyHeader",e.showStickyHeader),l(2),a("ngIf",e.data.length===0),l(),a("ngIf",e.footerTemplate)}}var hi={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1716480447,version:"16.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},u=i=>i!=null,wc=i=>!isNaN(i),fe=()=>{let i="",s,e;for(s=0;s<32;s++)e=Math.random()*16|0,(s===8||s===12||s===16||s===20)&&(i+="-"),i+=(s===12?4:s===16?e&3|8:e).toString(16);return i},Tc=(i,s)=>i.concat(s.substr(s.toLowerCase().indexOf(i.toLowerCase())+i.length));var ri=i=>Array.isArray(i),pi=i=>u(i)&&typeof i=="object",so=i=>typeof i=="string"&&i.length===0,yc=(i,s=[],e)=>i.map(t=>s.find(n=>x(n,e)===t)).filter(t=>t!==void 0),kc=(i,s)=>ri(i)&&i.filter(e=>pi(e)&&x(e,s)!==void 0),Ec=(i,s,e)=>{let t=kc(i,e)||[];return(yc(i,s,e)||[]).concat(t)},cn=i=>ri(i)&&i.every(s=>pi(s)),hn=(i,s,e)=>{let t=s.map(n=>u(n)&&u(x(n,e))?x(n,e):n);return i.reduce((n,o)=>{let r=u(o)&&u(x(o,e))?x(o,e):o,c=t.indexOf(r);return c!==-1&&n.push(c),n},[])},x=(i,s)=>u(i)?!u(s)||!pi(i)?i:zt(s)(i):null;var Oc=(i,s)=>{for(let e=0;e{let t=i;return e&&(t=[e].concat(t)),t.slice(s).concat(t.slice(0,s))},oo=(i,s,e)=>{if(!u(i))return!1;let t=String(i);return e&&(t=t.toLowerCase()),t.indexOf(s)===0};var Mc=(i,s)=>u(i)?s.every(e=>i.hasOwnProperty(e)):!1,it=i=>i.className.includes("ng-untouched"),ro=i=>{},Rc=(i,s)=>{let e=i.matches||i.msMatchesSelector||i.webkitMatchesSelector;return e?e.call(i,s):!1},Fc=(i,s)=>{let e=i;for(;e!==null&&e.nodeType===1;){if(Rc(e,s))return e;e=e.parentElement||e.parentNode}return null};var ui=(i,s,e)=>i.nativeElement.contains(s)||e&&e.popupElement.contains(s);var Q=(i,s)=>({small:`k-${i}-sm`,medium:`k-${i}-md`,large:`k-${i}-lg`})[s],be=i=>({small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"})[i],De=(i,s)=>({solid:`k-${i}-solid`,flat:`k-${i}-flat`,outline:`k-${i}-outline`})[s],Nc=(i,s,e)=>i.reduce((t,n)=>s(n)?[...t,e(n)]:t,[]),Lc=i=>/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(i);var W=()=>{if(typeof window<"u")return window.innerWidth>768?"large":window.innerWidth>500?"medium":"small"},mi=i=>!!i,fi=(i,s,e)=>{let t=i.element.nativeElement.querySelector(".k-actionsheet"),n=i.element.nativeElement.querySelector(".k-child-animation-container");s==="medium"?(e.removeClass(t,"k-actionsheet-fullscreen"),e.addClass(t,"k-actionsheet-bottom"),e.addClass(t,"k-adaptive-actionsheet"),e.removeStyle(n,"top"),e.removeStyle(n,"height"),e.setStyle(n,"bottom","0px")):s==="small"&&(e.removeClass(t,"k-actionsheet-bottom"),e.addClass(t,"k-actionsheet-fullscreen"),e.addClass(t,"k-adaptive-actionsheet"),e.setStyle(n,"bottom","0px"),e.setStyle(n,"height","100%"))},je=(i,s,e)=>{let t=i.wrapper.nativeElement.querySelector("kendo-list ul"),n=s.nativeElement.getAttribute("aria-labelledby");n&&e.setAttribute(t,"aria-labelledby",n)},gi=(i,s)=>{let e=i.nativeElement.getAttribute("aria-labelledby");return!s&&e?document.getElementById(e).innerText:s},Nt=300,ft=(()=>{class i{constructor(e,t,n){this.localization=e,this.injector=n,this.ariaExpanded=null,this.valueChange=new f,this.onBlur=new f,this.onFocus=new f,this.onClick=new f,this.onNavigate=new f,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this._isSuggestable=!1,this._isFilterable=!1,this.subs=new ae,this.parsedAttributes={},this.direction=e.rtl?"rtl":"ltr",this.renderer=t}set isSuggestable(e){this._isSuggestable=e,this.setAriaAutocomplete()}get isSuggestable(){return this._isSuggestable}set isFilterable(e){this._isFilterable=e,this.setAriaAutocomplete()}get isFilterable(){return this._isFilterable}get userInput(){return this._userInput}set userInput(e){this._userInput=e||""}get formControl(){return this.injector.get(ct,null)?.control||null}set inputAttributes(e){Qn(this.parsedAttributes)&&Jn(this.parsedAttributes,this.renderer,this.input.nativeElement),this._inputAttributes=e,this.parsedAttributes=this.inputAttributes?Zn(this.inputAttributes,this.defaultAttributes):this.inputAttributes,this.setInputAttributes()}get inputAttributes(){return this._inputAttributes}get value(){return this.input.nativeElement.value}set placeholder(e){this._placeholder=e||"",this.setInputSize()}get placeholder(){return this._placeholder}get defaultAttributes(){return{id:this.id,disabled:this.disabled?"":null,readonly:this.readonly?"":null,placeholder:this.placeholder,tabIndex:this.tabIndex,tabindex:this.tabIndex,dir:this.direction,required:this.isRequired?"":null,"aria-haspopup":"listbox","aria-expanded":this.ariaExpanded,"aria-controls":this.ariaControls,"aria-activedescendant":this.activeDescendant,"aria-busy":this.isLoading,"aria-invalid":this.formControl?.invalid}}get mutableAttributes(){return{autocomplete:"off",role:this.role,"aria-describedby":this.tagListId}}ngOnInit(){this.subs.add(this.localization.changes.subscribe(({rtl:e})=>this.direction=e?"rtl":"ltr"))}ngOnChanges(e){if(!F())return;let t;if(this.input&&(e.userInput||e.suggestedText)){e.userInput&&e.userInput.previousValue?this._previousValue===e.userInput.previousValue?t=this._previousValue:t=e.userInput.currentValue||"":t=this._previousValue;let n=this.input.nativeElement.selectionStart,o=t.length===n;this.writeInputValue(this.suggestedText?Tc(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):Bi(navigator.userAgent)&&!o?this.setInputSelection(n,this.userInput.length):o?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(n,n),this._previousValue=this.userInput}}ngOnDestroy(){this.subs.unsubscribe()}writeInputValue(e){F()&&this.renderer.setProperty(this.input.nativeElement,"value",e)}setInputSelection(e,t){if(F()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch{}}setAriaAutocomplete(){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")}handleInput(e){let t=e.target,o=Bi(navigator.userAgent)&&Lc(t.value)?e.data:t.value;o!==this.userInput&&(this._previousValue=o,this.valueChange.emit(o))}handleFocus(e){this.onFocus.emit(e)}handleBlur(e){this.onBlur.emit(e)}handleKeydown(e){let t=e.keyCode;[I.ArrowUp,I.ArrowDown,I.ArrowLeft,I.ArrowRight,I.Enter,I.Escape,I.Delete,I.Backspace,I.Home,I.End,I.PageDown,I.PageUp].indexOf(t)>-1&&this.onNavigate.emit(e)}focus(){F()&&this.input.nativeElement.focus()}blur(){F()&&this.input.nativeElement.blur()}setInputSize(){let e=c=>c?c.length:0,t=this.input.nativeElement,n=e(this.placeholder),o=e(this.value),r=Math.max(n,o,1);this.renderer.setAttribute(t,"size",r.toString())}setInputAttributes(){let e=Object.assign({},this.mutableAttributes,this.parsedAttributes);qn(e,this.renderer,this.input.nativeElement)}}return i.\u0275fac=function(e){return new(e||i)(h(P),h(Z),h(ot))},i.\u0275cmp=U({type:i,selectors:[["kendo-searchbar"]],viewQuery:function(e,t){if(e&1&&A(ol,7),e&2){let n;b(n=S())&&(t.input=n.first)}},hostVars:2,hostBindings:function(e,t){e&2&&V("k-searchbar",t.searchBarClass)},inputs:{id:"id",tagListId:"tagListId",activeDescendant:"activeDescendant",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",role:"role",isLoading:"isLoading",ariaControls:"ariaControls",ariaExpanded:"ariaExpanded",isRequired:"isRequired",isSuggestable:"isSuggestable",isFilterable:"isFilterable",userInput:"userInput",suggestedText:"suggestedText",inputAttributes:"inputAttributes",placeholder:"placeholder"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},features:[ue],decls:2,vars:19,consts:[["input",""],["autocomplete","off","aria-haspopup","listbox",1,"k-input-inner",3,"input","keydown","id","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope"]],template:function(e,t){if(e&1){let n=O();g(0,"input",1,0),T("input",function(r){return v(n),C(t.handleInput(r))})("keydown",function(r){return v(n),C(t.handleKeydown(r))}),_()}e&2&&(a("id",t.id)("disabled",t.disabled)("readonly",t.readonly)("placeholder",t.placeholder)("kendoEventsOutsideAngular",oe(16,rl,t.handleFocus,t.handleBlur))("scope",t),k("tabIndex",t.tabIndex)("dir",t.direction)("role",t.role)("aria-expanded",t.ariaExpanded)("aria-controls",t.ariaControls)("aria-describedby",t.tagListId)("aria-activedescendant",t.activeDescendant)("aria-busy",t.isLoading)("aria-invalid",t.formControl==null?null:t.formControl.invalid)("required",t.isRequired?"":null))},dependencies:[Ht],encapsulation:2}),i})(),_i=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q))},i.\u0275dir=N({type:i,selectors:[["","kendoDropDownListItemTemplate",""],["","kendoComboBoxItemTemplate",""],["","kendoAutoCompleteItemTemplate",""],["","kendoMultiSelectItemTemplate",""]]}),i})(),vi=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q))},i.\u0275dir=N({type:i,selectors:[["","kendoDropDownListHeaderTemplate",""],["","kendoComboBoxHeaderTemplate",""],["","kendoDropDownTreeHeaderTemplate",""],["","kendoMultiColumnComboBoxHeaderTemplate",""],["","kendoAutoCompleteHeaderTemplate",""],["","kendoMultiSelectHeaderTemplate",""],["","kendoMultiSelectTreeHeaderTemplate",""]]}),i})(),Ci=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q))},i.\u0275dir=N({type:i,selectors:[["","kendoDropDownListFooterTemplate",""],["","kendoComboBoxFooterTemplate",""],["","kendoDropDownTreeFooterTemplate",""],["","kendoMultiColumnComboBoxFooterTemplate",""],["","kendoAutoCompleteFooterTemplate",""],["","kendoMultiSelectFooterTemplate",""],["","kendoMultiSelectTreeFooterTemplate",""]]}),i})(),bi=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q))},i.\u0275dir=N({type:i,selectors:[["","kendoDropDownListGroupTemplate",""],["","kendoComboBoxGroupTemplate",""],["","kendoMultiColumnComboBoxGroupTemplate",""],["","kendoAutoCompleteGroupTemplate",""],["","kendoMultiSelectGroupTemplate",""]]}),i})(),Si=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q))},i.\u0275dir=N({type:i,selectors:[["","kendoDropDownListFixedGroupTemplate",""],["","kendoComboBoxFixedGroupTemplate",""],["","kendoMultiColumnComboBoxFixedGroupTemplate",""],["","kendoAutoCompleteFixedGroupTemplate",""],["","kendoMultiSelectFixedGroupTemplate",""]]}),i})(),Re=(()=>{class i{constructor(){this.grouped=!1,this.groupIndices=[]}set data(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))}get data(){return this.grouped?this._flatData:this._data}get itemsCount(){return!u(this.data)||this.data.length===0?0:(this.grouped?this._flatData.filter(t=>!t.header):this.data).length}isGrouped(e){return u(e)&&e.length!==0&&u(e[0])&&Mc(e[0],["aggregates","field","items","value"])}getGroupIndices(e){let t=[];for(let n=0;n<=e.length-1;n++)t[n]=(t[n-1]||0)+e[n].items.length;return t}filter(e){let t=[];if(this.isGrouped(this.data))for(let n=0;n<=this.groupIndices.length-1;n++){let o=this.data[n].items.filter(e);o&&(t=t.concat(o))}else t=this.data.filter(e);return t}indexOf(e,t=0){let n=o=>o===e;return this.grouped&&(n=o=>o.value===e),this.findIndex(n,t)}findIndex(e,t=0){let n=-1;if(this.grouped){let o=this._flatData.filter(r=>!r.header&&r.offsetIndex>=t);n=o.findIndex(e),n=o[n]?o[n].offsetIndex:-1}else{let r=this.data.slice(t).findIndex(e);n=r!==-1?r+t:-1}return n}closestGroup(e){for(let t=e;t>=0;t--)if(this._flatData[t].header)return this._flatData[t]}find(e){let t=this.findIndex(e);return this.itemAt(t)}flatIndex(e){if(this.itemsCount===0)return-1;if(this.grouped){let t=this._flatData.find(n=>!n.header&&n.offsetIndex===e);if(t)return t.index}else return e;return-1}itemAt(e){let t;if(this.itemsCount===0)return t;if(this.grouped){let n=this._flatData.find(o=>!o.header&&o.offsetIndex===e);n&&(t=n.value)}else t=this.data[e];return t}groupAt(e){if(!(this.itemsCount===0||!this.isGrouped))return this._flatData.find(t=>t.header&&t.index===e)}groupItemsIndices(){return this.isGrouped?Nc(this.data,e=>e.header,e=>e.index):[]}groupField(){return this.itemsCount===0||!this.isGrouped?null:this._data[0].field}itemGroup(e){if(!e||this.itemsCount===0||!this.isGrouped)return;let t=this.groupField();if(t)return x(e,t)}flatten(e,t=void 0,n=0,o=0){let r=[];u(t)&&r.push({header:!0,index:o+n,offsetIndex:o,value:t});for(let c=0;c{class i{constructor(e){this.dataService=e,this.itemDisabled=null}isIndexDisabled(e){if(this.itemDisabled){let t=this.dataService.itemAt(e);if(u(t))return this.itemDisabled({dataItem:t,index:e});if(u(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}isItemDisabled(e){if(this.itemDisabled){let t=this.dataService.indexOf(e);if(t!==-1)return this.itemDisabled({dataItem:e,index:t});if(u(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}}return i.\u0275fac=function(e){return new(e||i)(Xe(Re))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),Ee=(()=>{class i{constructor(e){this.disabledItemsService=e,this.onSelect=new f,this.onChange=new f,this.onFocus=new f,this.total=0,this.selectedIndices=[],this.indicesToBeRemoved=[],this.indicesToBeAdded=[]}getTotal(){return this.total}isSelected(e){return u(this.selectedIndices.find(t=>t===e))}isFocused(e){return e===this.focused}focus(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}select(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:u(e)}))}add(e,t){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice(),preventClosingPopup:t}))}emitMultipleAddedRemoved(){this.onChange.emit({added:this.indicesToBeAdded,removed:this.indicesToBeRemoved,indices:this.selectedIndices.slice(),preventClosingPopup:!0,isMultipleSelection:!0}),this.indicesToBeAdded=[],this.indicesToBeRemoved=[]}addMultiple(e){this.indicesToBeAdded=e.slice(),this.selectedIndices.push(...e)}deselect(e,t){if(!this.isSelected(e))return;let n=this.selectedIndices.indexOf(e);this.selectedIndices.splice(n,1),this.focused=e,this.selected.length===0&&(this.lastClickedIndex=null),this.onChange.emit({indices:this.selectedIndices.slice(),removed:e,preventClosingPopup:t})}unselectMultiple(e){e.forEach(t=>{let n=this.selectedIndices.indexOf(t);this.selectedIndices.splice(n,1)}),this.indicesToBeRemoved=e.slice()}change(e){let t=u(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})}resetSelection(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]}get selected(){return this.selectedIndices.slice()}get focused(){return this.focusedIndex}set focused(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))}selectFromTo(e,t){let n=[];for(let o=e;o<=t;o++)!this.isSelected(o)&&!this.disabledItemsService.isIndexDisabled(o)&&n.push(o);this.addMultiple(n)}unselectFromTo(e,t){let n=[];for(let o=e;o>=t;o--)this.isSelected(o)&&!this.disabledItemsService.isIndexDisabled(o)&&n.push(o);this.unselectMultiple(n)}unselectNotNeededIndices(e,t,n){let o=[];for(let r=0;r{class i{constructor(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new f,this.close=new f,this.enter=new f,this.tab=new f,this.esc=new f,this.up=new f,this.right=new f,this.down=new f,this.left=new f,this.delete=new f,this.backspace=new f,this.home=new f,this.end=new f,this.pagedown=new f,this.pageup=new f,this.selectnext=new f,this.selectprevious=new f,this.selectall=new f,this.selectalltobeginning=new f,this.selectalltoend=new f}process(e){let t=e.originalEvent.keyCode,n=e.originalEvent.altKey,o=e.originalEvent.shiftKey,r=e.originalEvent.ctrlKey||e.originalEvent.metaKey,c,p=D.Undefined;n&&t===I.ArrowDown?p=D.Open:n&&t===I.ArrowUp?p=D.Close:o&&t===I.ArrowUp?p=D.SelectPrevious:o&&t===I.ArrowDown?p=D.SelectNext:r&&t===I.KeyA?p=D.SelectAll:r&&o&&t===I.Home?p=D.SelectAllToBeginning:r&&o&&t===I.End?p=D.SelectAllToEnd:t===I.Enter?p=D.Enter:t===I.Escape?p=D.Esc:t===I.Tab?p=D.Tab:t===I.ArrowUp?(c=this.next({current:e.current,start:e.min,end:e.max,step:-1}),p=D.Up):t===I.ArrowLeft?(c=this.next({current:e.current,start:e.min,end:e.max,step:-1}),p=D.Left):t===I.ArrowDown?(c=this.next({current:e.current,start:e.min,end:e.max,step:1}),p=D.Down):t===I.ArrowRight?(c=this.next({current:e.current,start:e.min,end:e.max,step:1}),p=D.Right):t===I.Home?(c=this.isDisabled(ao)?e.current:ao,p=D.Home):t===I.End?(c=this.isDisabled(e.max)?e.current:e.max,p=D.End):t===I.Delete?p=D.Delete:t===I.Backspace?p=D.Backspace:t===I.PageDown?p=D.PageDown:t===I.PageUp&&(p=D.PageUp);let w=new ai(c,e.originalEvent);return p!==D.Undefined&&this[D[p].toLowerCase()].emit(w),p}next(e){let{current:t,start:n,end:o,step:r}=e,c=u(t)?this.clampIndex(t+r,n,o):n,p=this.firstFocusableIndex(c,n,o,r);if(u(p))return p;if(this.selectionService.isSelected(t)&&t>=n)return t;let w=-1*r;return this.firstFocusableIndex(c,n,o,w)}clampIndex(e,t,n){return!u(e)||en?n:e}firstFocusableIndex(e,t,n,o){for(;t<=e&&e<=n;){if(!this.isDisabled(e))return e;e+=o}}isDisabled(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)}}return i.\u0275fac=function(e){return new(e||i)(Xe(ke),Xe(Ee))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i})(),xi=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q))},i.\u0275dir=N({type:i,selectors:[["","kendoDropDownListNoDataTemplate",""],["","kendoDropDownTreeNoDataTemplate",""],["","kendoComboBoxNoDataTemplate",""],["","kendoMultiColumnComboBoxNoDataTemplate",""],["","kendoAutoCompleteNoDataTemplate",""],["","kendoMultiSelectNoDataTemplate",""],["","kendoMultiSelectTreeNoDataTemplate",""]]}),i})(),nt=class{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},gt=class{},lo=(()=>{class i{constructor(e){this.element=e}}return i.\u0275fac=function(e){return new(e||i)(h(z))},i.\u0275dir=N({type:i,selectors:[["li","role","option"],["li","role","group"]]}),i})(),mn=(()=>{class i{constructor(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}get focusedClassName(){return this.selectionService.isFocused(this.index)}get selectedClassName(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)}onClick(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))}}return i.\u0275fac=function(e){return new(e||i)(h(Ee))},i.\u0275dir=N({type:i,selectors:[["","kendoDropDownsSelectable",""]],hostVars:9,hostBindings:function(e,t){e&1&&T("click",function(o){return t.onClick(o)}),e&2&&(k("index",t.index),Le("height",t.height,"px")("min-height",t.height,"px"),V("k-focus",t.focusedClassName)("k-selected",t.selectedClassName))},inputs:{index:"index",checkboxes:"checkboxes",height:"height",isMultiselect:"isMultiselect",multipleSelection:"multipleSelection"}}),i})(),_t=(()=>{class i{constructor(e){this.viewContainerRef=e}set templateContext(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))}}return i.\u0275fac=function(e){return new(e||i)(h(Ne))},i.\u0275dir=N({type:i,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),i})(),Ii=(()=>{class i{constructor(e,t,n,o,r,c,p){this.dataService=e,this.wrapper=t,this.selectionService=n,this.disabledItemsService=o,this.cdr=r,this.zone=c,this.renderer=p,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new f,this.pageChange=new f,this.listResize=new f,this.popupListScroll=new f,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=le(this.selectionService.onSelect.pipe($(w=>w.indices[0])),this.selectionService.onFocus).pipe(Pt(w=>this.zone.onStable.pipe(Ze(1),$(()=>w)))).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}set data(e){this._data=e[0]&&e[0].header?e.slice(0):e}get data(){return this._data}set size(e){this.type==="list"&&(this.renderer.removeClass(this.wrapper.nativeElement,Q("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,Q("list",e)),this._size=e)}get size(){return this._size}get pageSize(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)}get scrollHeight(){return this.virtual.total*this.virtual.itemHeight}get overflowY(){if(u(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"}get checkboxClasses(){return`${this.size?Q("checkbox",this.size):""} ${this.rounded?be(this.rounded):""}`}ngOnChanges(e){Ge("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),Ge("virtual",e,!1)&&this.setOverflow(),Ge("type",e,!1)&&this.prepareClasses()}ngAfterViewInit(){this.setComponentClasses(),this.zone.runOutsideAngular(()=>{this.scrollSubscription=bt(this.content.nativeElement,"scroll").pipe(wn(100),ge(this.prefetchData.bind(this)),ge(this.findCurrentGroup.bind(this))).subscribe(()=>{this.lastScrollTop=this.content.nativeElement.scrollTop})}),this.setGroupAttributes(),this.setOverflow()}setGroupAttributes(){let e=document.querySelectorAll("li"),t,n=[],o=!1,r;e.forEach((c,p)=>{t=c.getAttribute("role")==="group",!t&&o&&(this.renderer.setAttribute(c,"aria-describedby",r.getAttribute("id")),n.push(c.getAttribute("id")),(p+1>=e.length||e[p+1]?.getAttribute("role")==="group")&&(this.renderer.setAttribute(r,"aria-owns",n.join(" ")),n=[])),t&&(o=!0,r=c)})}ngAfterViewChecked(){if(this.virtual&&this.positionItems(),this.items&&this.scrollToFocused){this.scrollToFocused=!1;let e=this.items.length&&this.selectionService.focused===-1?0:this.selectionService.focused;this.scrollToItem(e)}this.dataService.grouped&&this.findCurrentGroup()}ngOnDestroy(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}onCheckedChange(e,t){let n=e.target.checked;n&&!this.selectionService.isSelected(t)&&this.selectionService.add(t),!n&&this.selectionService.isSelected(t)&&this.selectionService.deselect(t)}prepareClasses(){this.type==="list"?(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")}isChecked(e){let t=this.virtual?e+this.virtual.skip:e;return this.selectionService.isSelected(t)}firstVisibleItem(){let e=this.content.nativeElement,t=e.getBoundingClientRect(),n=Array.prototype.slice.call(e.querySelectorAll(".k-disabled"));n.forEach(r=>this.renderer.setStyle(r,"pointer-events","auto"));let o=document.elementFromPoint(t.left+1,t.top+1);return n.forEach(r=>this.renderer.setStyle(r,"pointer-events","none")),Fc(o,"li")}findCurrentGroup(){if(!this.dataService.grouped){this.currentGroup=void 0;return}let e=this.firstVisibleItem();if(e){let t;e.getAttribute("role")==="group"?(t=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(t).value):(t=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(t)))}else this.currentGroup=void 0;this.cdr.detectChanges()}prefetchData(){if(!this.virtual)return;let e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),t=this.content.nativeElement.scrollTop,n=Math.trunc(t/this.virtual.itemHeight),o=t>this.lastScrollTop,r=n+e>=this.lastLoaded&&this.lastLoaded=n-c;o&&r&&this.changePage(n),!o&&p&&this.changePage(n-this.pageSize+e+1)}changePage(e){this.zone.run(()=>{let t=this.pageSize+e;t>this.virtual.total&&(e--,t=this.virtual.total),e<0&&(e=0),this.startFrom=e,this.lastLoaded=t,this.pageChange.emit({skip:e,take:this.pageSize})}),this.setGroupAttributes()}index(e,t){return e>0?this.dataService.groupIndices[e-1]+t:t}getText(e){return x(e,this.textField)}getValue(e){return x(e,this.valueField)}isDisabled(e){return u(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)}isAltRow(e){return this.type==="dropdowngrid"&&e%2!==0}scrollToItem(e){let t=e;if(this.dataService.grouped&&(t=this.dataService.flatIndex(e)),this.virtual&&t>-1){this.scrollToIndex(t);return}let n=this.items.toArray();u(n[t])&&t!==-1&&this.scroll(n[t].element)}scrollWithOnePage(e){let t=this.content.nativeElement,n=t.clientHeight;e===D.PageDown?t.scrollTop+=n:e===D.PageUp&&(t.scrollTop-=n)}scrollToIndex(e){let t=this.content.nativeElement,n=t.scrollTop,o=e*this.virtual.itemHeight,r=this.virtual.itemHeight,c=t.clientHeight,p=o+r;n>o?n=o:p>n+c&&(n=p-c),t.scrollTop=n}scroll(e){if(!e)return;let t=e.nativeElement,n=this.content.nativeElement,o=t.offsetTop,r=t.offsetHeight,c=n.scrollTop,p=n.clientHeight,w=o+r;c>o?c=o:w>c+p&&(c=w-p),n.scrollTop=c}hasScrollbar(){return u(this.items)&&this.items.length&&u(this.list)&&u(this.content)?u(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight:!1}isItemSelected(e){return this.selectionService.isSelected(e)||null}setOverflow(){if(this.virtual){let e=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",e)}}hasVirtualScrollbar(){let e=this.content.nativeElement.offsetHeight,t=this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight;return this.virtualContainer&&t>e}positionItems(){this.items.forEach((e,t)=>{let n=(t+this.startFrom)*this.virtual.itemHeight;this.renderer.setStyle(e.element.nativeElement,"transform",`translateY(${n}px`)})}firstGroupHeaderInTargetedPage(e){return u(this.virtual)?this.virtual.skip===0&&this.virtual.pageSize>e:!0}setComponentClasses(){this.type==="list"&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,Q("list",this.size))),this.type==="dropdowngrid"&&this.renderer.setStyle(this.wrapper.nativeElement,"overflow-y","scroll"),u(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)}}return i.\u0275fac=function(e){return new(e||i)(h(Re),h(z),h(Ee),h(ke),h(me),h(he),h(Z))},i.\u0275cmp=U({type:i,selectors:[["kendo-list"]],viewQuery:function(e,t){if(e&1&&(A(al,7),A(ll,7),A(dl,5),A(lo,5)),e&2){let n;b(n=S())&&(t.content=n.first),b(n=S())&&(t.list=n.first),b(n=S())&&(t.virtualContainer=n.first),b(n=S())&&(t.items=n)}},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",isActionSheetExpanded:"isActionSheetExpanded",showStickyHeader:"showStickyHeader",data:"data",size:"size",rounded:"rounded"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize",popupListScroll:"popupListScroll"},features:[ue],decls:9,vars:17,consts:[["content",""],["list",""],["li",""],["virtualContainer",""],[3,"class","ngStyle",4,"ngIf"],["unselectable","on",3,"scroll"],["role","listbox"],[4,"ngIf"],[3,"resize",4,"ngIf"],["class","k-height-container","role","presentation",4,"ngIf"],[3,"ngStyle"],[3,"ngIf"],[3,"templateContext"],["ngFor","",3,"ngForOf"],["role","option","kendoDropDownsSelectable","",3,"checkboxes","height","index","multipleSelection","ngClass"],["type","checkbox","class","k-checkbox","role","presentation","tabindex","-1","aria-hidden","true",3,"ngClass","checked","change",4,"ngIf"],["type","checkbox","role","presentation","tabindex","-1","aria-hidden","true",1,"k-checkbox",3,"change","ngClass","checked"],[1,"k-list-item-text"],["role","group",3,"class","k-table-alt-row","ngStyle",4,"ngIf"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","class","ngClass",4,"ngIf"],["role","group",3,"ngStyle"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","ngClass"],[3,"resize"],["role","presentation",1,"k-height-container"]],template:function(e,t){if(e&1){let n=O();m(0,ul,3,9,"div",4),g(1,"div",5,0),T("scroll",function(r){return v(n),C(t.popupListScroll.emit(r))}),g(3,"ul",6,1),m(5,Cl,1,1,null,7)(6,El,1,1,null,7)(7,Ol,1,0,"kendo-resize-sensor",8),_(),m(8,Al,4,2,"div",9),_()}e&2&&(a("ngIf",t.dataService.grouped&&t.showStickyHeader),l(),Te(t.listContentClass),Le("overscroll-behavior","none")("max-height",t.height,"px"),l(2),Te(t.listClass),k("id",t.id)("aria-live",t.ariaLive)("aria-multiselectable",t.isMultiselect)("aria-hidden",!t.show),l(2),a("ngIf",!t.dataService.grouped&&t.show),l(),a("ngIf",t.dataService.grouped),l(),a("ngIf",!t.virtual),l(),a("ngIf",t.virtual))},dependencies:[ve,Ve,se,Tt,Ue,lo,mn,_t],encapsulation:2}),i})(),co={pageSize:50,itemHeight:28},Di=(i,s)=>{let e=Object.assign({},co,s);return i===!0?e:i?Ct({pageSize:co.pageSize},i):null},vt=new An("dropdowns-touch-enabled"),Ke=(()=>{class i{constructor(e){this.localization=e,this.closePopup=new f,this.textInputChange=new f,this.navigate=new f,this.onExpand=new f,this.onCollapse=new f,this.onApply=new f,this.onCancel=new f,this.searchBarValue="",this.animationDuration=Nt,this.xIcon=pt}messageFor(e){return this.localization.get(e)}onValueChange(e){this.searchBarValue=e,this.textInputChange.emit(e)}}return i.\u0275fac=function(e){return new(e||i)(h(P))},i.\u0275cmp=U({type:i,selectors:[["responsive-renderer"]],viewQuery:function(e,t){if(e&1&&(A(At,5),A(Ml,5)),e&2){let n;b(n=S())&&(t.actionSheet=n.first),b(n=S())&&(t.actionSheetSearchBar=n.first)}},inputs:{title:"title",showActionButtons:"showActionButtons",subtitle:"subtitle",size:"size",showTextInput:"showTextInput",sharedPopupActionSheetTemplate:"sharedPopupActionSheetTemplate",isActionSheetExpanded:"isActionSheetExpanded",text:"text",placeholder:"placeholder"},outputs:{closePopup:"closePopup",textInputChange:"textInputChange",navigate:"navigate",onExpand:"onExpand",onCollapse:"onCollapse",onApply:"onApply",onCancel:"onCancel"},decls:3,vars:4,consts:[["actionSheet",""],["actionSheetSearchBar",""],[3,"overlayClick","keydown","expand","collapse","animation","expanded"],["kendoActionSheetTemplate",""],[1,"k-text-center","k-actionsheet-titlebar"],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-actions"],["kendoButton","","icon","x","type","button","fillMode","flat","aria-hidden","true","innerCssClass","k-button-icon",3,"click","svgIcon","size","tabIndex"],[1,"k-actionsheet-titlebar-group","k-actionsheet-filter"],["placeholder","Filter","class","k-searchbox","autocomplete","off",3,"value","size","valueChange",4,"ngIf"],[1,"k-actionsheet-content","!k-overflow-hidden"],[1,"k-list-container"],[4,"ngTemplateOutlet"],["class","k-actionsheet-footer k-actions k-actions-stretched",4,"ngIf"],["placeholder","Filter","autocomplete","off",1,"k-searchbox",3,"valueChange","value","size"],["kendoTextBoxPrefixTemplate",""],["name","search"],[1,"k-actionsheet-footer","k-actions","k-actions-stretched"],["kendoButton","","tabindex","0","aria-disabled","false","type","button","themeColor","base",3,"click","keydown.enter","size"],["kendoButton","","tabindex","0","aria-disabled","false","type","button","themeColor","primary",3,"click","keydown.enter","size"]],template:function(e,t){if(e&1){let n=O();g(0,"kendo-actionsheet",2,0),T("overlayClick",function(){return v(n),C(t.closePopup.emit())})("keydown",function(r){return v(n),C(t.navigate.emit(r))})("expand",function(){return v(n),C(t.onExpand.emit())})("collapse",function(){return v(n),C(t.onCollapse.emit())}),m(2,Vl,15,9,"ng-template",3),_()}e&2&&a("animation",j(2,Rl,t.animationDuration))("expanded",t.isActionSheetExpanded)},dependencies:[se,Se,os,At,Xt,rs,qt,Qt],encapsulation:2}),i})(),ho=(()=>{class i extends Kt{}return i.\u0275fac=(()=>{let s;return function(t){return(s||(s=Vt(i)))(t||i)}})(),i.\u0275dir=N({type:i,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText",selectButtonText:"selectButtonText",filterInputLabel:"filterInputLabel",popupLabel:"popupLabel",applyButton:"applyButton",cancelButton:"cancelButton"},features:[Ye]}),i})(),wi=(()=>{class i extends ho{constructor(e){super(),this.service=e}}return i.\u0275fac=function(e){return new(e||i)(h(P))},i.\u0275dir=N({type:i,selectors:[["","kendoDropDownListLocalizedMessages",""],["","kendoDropDownTreeLocalizedMessages",""],["","kendoComboBoxLocalizedMessages",""],["","kendoMultiColumnComboBoxLocalizedMessages",""],["","kendoAutoCompleteLocalizedMessages",""],["","kendoMultiSelectLocalizedMessages",""],["","kendoMultiSelectTreeLocalizedMessages",""]],features:[_e([{provide:ho,useExisting:te(()=>i)}]),Ye]}),i})(),fn=(()=>{class i{constructor(e,t,n){this.ngZone=e,this.renderer=t,this.cdr=n,this.isFocusedChange=new f,this.onFocus=new f,this.handleBlur=new f,this.subscriptions=new ae}ngAfterViewInit(){let e=this.hostElement.nativeElement,t=!1,n=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(e,"focusin",()=>{this.cdr.detectChanges(),this.isFocused||this.ngZone.run(()=>{this.onFocus.emit(),this.isFocused=!0,this.isFocusedChange.emit(this.isFocused)})})),this.subscriptions.add(this.renderer.listen(e,"focusout",o=>{this.isFocused&&(n?(Yn(o.relatedTarget,c=>c===e)||this.handleBlur.emit(),n=!1):t||this.handleBlur.emit())})),this.subscriptions.add(this.renderer.listen(e,"mouseenter",()=>{t=!0})),this.subscriptions.add(this.renderer.listen(e,"mouseleave",()=>{t=!1})),this.subscriptions.add(this.renderer.listen(e,"keydown",o=>{o.keyCode===I.Tab?n=!0:n=!1}))})}ngOnDestroy(){this.subscriptions.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(h(he),h(Z),h(me))},i.\u0275dir=N({type:i,selectors:[["","kendoDropDownSharedEvents",""]],inputs:{hostElement:"hostElement",clearButtonClicked:"clearButtonClicked",isFocused:"isFocused"},outputs:{isFocusedChange:"isFocusedChange",onFocus:"onFocus",handleBlur:"handleBlur"}}),i})(),ii="",Pc="medium",Vc="medium",Bc="solid",zc={multi:!0,provide:yt,useExisting:te(()=>Gc)},Gc=(()=>{class i{constructor(e,t,n,o,r,c,p,w,E,H,K,Fe){this.localization=e,this.dataService=t,this.popupService=n,this.selectionService=o,this.navigationService=r,this.disabledItemsService=c,this._zone=p,this.cdr=w,this.renderer=E,this.hostElement=H,this.touchEnabled=K,this.injector=Fe,this.animationDuration=Nt,this.xIcon=pt,this.highlightFirst=!0,this.showStickyHeader=!0,this.focusableId=`k-${fe()}`,this.placeholder="",this.adaptiveMode="none",this.title="",this._listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new f,this.filterChange=new f,this.open=new f,this.opened=new f,this.close=new f,this.closed=new f,this.onFocus=new f,this.onBlur=new f,this.inputFocus=new f,this.inputBlur=new f,this.widgetClasses=!0,this.listBoxId=`k-${fe()}`,this.optionPrefix=`k-${fe()}`,this.windowSize="large",this.onChangeCallback=ro,this.onTouchedCallback=ro,this.popupMouseDownHandler=$e=>$e.preventDefault(),this._popupSettings={animate:!0},this._open=!1,this._value="",this.subs=new ae,this.valueChangeSubject=new ee,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",Ie(hi),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}get width(){let e=0;F()&&(e=this.wrapper.offsetWidth);let t=this.popupSettings.width||e,n=isNaN(e)?e:`${e}px`,o=isNaN(t)?t:`${t}px`;return{min:n,max:o}}get height(){let e=this.popupSettings.height;return u(e)?`${e}px`:"auto"}get listContainerClasses(){let e=["k-list-container","k-autocomplete-popup"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e}get suggestion(){if(!this.text||!this.suggestedText){this.suggestedText=void 0;return}let e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());if(this.suggest&&!this.backspacePressed&&e)return this.suggestedText}get appendTo(){let{appendTo:e}=this.popupSettings;if(!(!e||e==="root"))return e==="component"?this.container:e}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}get ariaControls(){return this.isOpen?this.listBoxId:void 0}get isControlRequired(){return Gt(this.formControl)}toggle(e){Promise.resolve(null).then(()=>{let t=u(e)?e:!this._open;this._toggle(t)})}get isOpen(){return mi(this._open||this.isActionSheetExpanded)}handleClick(){this.windowSize=W(),this.isAdaptive&&this.togglePopup(!0)}togglePopup(e){let t=this.disabled||this.readonly,n=this.isOpen===e;if(t||n)return;this.triggerPopupEvents(e)||this._toggle(e)}get activeDescendant(){return!this.isOpen||!u(this.selectionService.focused)||this.selectionService.focused===-1?null:this.optionPrefix+"-"+this.selectionService.focused}set data(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=x(this.dataService.itemAt(0),this.valueField))}get data(){let e=this.virtual;if(e){let t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data}set value(e){this.verifySettings(e),this._value=e||ii,this.text=this.value,this.cdr.markForCheck()}get value(){return this._value||ii}set subtitle(e){this._subtitle=e}get subtitle(){return this._subtitle||this.placeholder}get isAdaptiveModeEnabled(){return this.adaptiveMode==="auto"}set popupSettings(e){this._popupSettings=Object.assign({animate:!0},e)}get popupSettings(){return this._popupSettings}set listHeight(e){this._listHeight=e}get listHeight(){if(!this.isAdaptive)return this._listHeight}set itemDisabled(e){if(typeof e!="function")throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(e)}.`);this.disabledItemsService.itemDisabled=e}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}set virtual(e){this._virtualSettings=Di(e)}get virtual(){return this._virtualSettings}set size(e){let t=e||Pc;this.renderer.removeClass(this.wrapper,Q("input",this.size)),e!=="none"&&this.renderer.addClass(this.wrapper,Q("input",t)),this._size=t}get size(){return this._size}set rounded(e){let t=e||Vc;this.renderer.removeClass(this.wrapper,be(this.rounded)),e!=="none"&&this.renderer.addClass(this.wrapper,be(t)),this._rounded=t}get rounded(){return this._rounded}set fillMode(e){let t=e||Bc;this.renderer.removeClass(this.wrapper,De("input",this.fillMode)),e!=="none"&&this.renderer.addClass(this.wrapper,De("input",t)),this._fillMode=t}get fillMode(){return this._fillMode}get isFocused(){return this._isFocused}set isFocused(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=e}get isDisabled(){return this.disabled}get isLoading(){return this.loading}get dir(){return this.direction}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&this.windowSize!=="large"}get formControl(){return this.injector.get(ct,null)?.control||null}ngOnInit(){this.renderer.removeAttribute(this.wrapper,"tabindex"),this.subs.add(this.localization.changes.subscribe(({rtl:e})=>{this.direction=e?"rtl":"ltr",this.cdr.detectChanges()})),this.setComponentClasses()}ngAfterViewInit(){this.windowSize=W(),this.cdr.detectChanges(),this.actionSheet&&F()&&(this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-height","60vh"),this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}ngOnDestroy(){this.destroyPopup(),this.subs.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()}ngOnChanges(e){let t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})}reset(){this.value=ii}messageFor(e){return this.localization.get(e)}onAdaptiveTextBoxChange(e){this.search(e)}clearValue(e){e.stopImmediatePropagation(),this.focus(),this.change(ii),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])}writeValue(e){this.value=e}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.cdr.markForCheck(),this.disabled=e}focusItemAt(e){let t=e>=0&&e=0)n=x(this.dataService.itemAt(t),this.valueField);else{let o=this.suggest&&this.suggestedText&&this.data.length&&x(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();this.isOpen&&o?n=this.suggestedText:n=this.searchbar.value}this.isActionSheetExpanded&&t>=0&&this.togglePopup(!1),this.change(n)}handleEscape(){this.isOpen?this.togglePopup(!1):this.value="",this.selectionService.focused=-1,this.suggestedText=null}searchBarChange(e){let t=u(this.text)?this.text.length:0;this.backspacePressed=e.length0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)}onFilterChange(e){this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)}handleInputFocus(){this.handleFocus(),L(this.inputFocus)&&this._zone.run(()=>{this.inputFocus.emit()})}handleFocus(){this._zone.run(()=>{!this.isFocused&&L(this.onFocus)&&this.onFocus.emit(),this.isFocused=!0})}handleBlur(){if(!this.isActionSheetExpanded){this.isFocused=!1;let e=this.value!==this.text;L(this.onBlur)||L(this.close)||it(this.wrapper)||e?this._zone.run(()=>{e&&this.change(this.searchbar.value),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}}handleInputBlur(){if(!this.isActionSheetExpanded){let e=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0;let t,n;e!==-1?(t=this.dataService.itemAt(e),n=x(t,this.valueField)||""):n=this.searchbar.value;let o=n===this.searchbar.value,r=n.toLowerCase()===this.searchbar.value.toLowerCase();!o&&r&&this.selectionService.resetSelection([]);let c=this.value!==this.text;L(this.inputBlur)||L(this.close)||it(this.wrapper)||c||this.formControl?.updateOn==="blur"?this._zone.run(()=>{c&&this.change(this.searchbar.value),this.inputBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}}pageChange(e){let t=this.virtual;t.skip=e.skip}change(e){this.togglePopup(!1),this.valueChangeSubject.next(e)}subscribeEvents(){F()&&(this.subs.add(this.valueChangeSubject.subscribe(e=>{let t=this.value!==e,n=this.findIndex(e);this.selectionService.focused=n,this.value=e,this.text=e,t&&this.emitChange(e)})),this.subs.add(this.selectionService.onChange.subscribe(this.handleItemChange.bind(this))),this.subs.add(this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this))),this.subs.add(le(this.navigationService.up,this.navigationService.down).subscribe(e=>this.navigate(e.index))),this.subs.add(this.navigationService.close.subscribe(()=>this.togglePopup(!1))),this.subs.add(this.navigationService.open.subscribe(()=>this.togglePopup(!0))),this.subs.add(this.navigationService.enter.subscribe(this.handleEnter.bind(this))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(le(this.navigationService.pagedown,this.navigationService.pageup).subscribe(e=>{this.isOpen&&(e.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(D[e.originalEvent.code]))})))}findIndex(e,t=0){let n;return e&&e.length&&this.dataService.itemsCount?n=this.dataService.findIndex(this.findIndexPredicate(e),t):n=-1,n}subscribeTouchEvents(){!F()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",e=>{let t=e.target;this.isFocused&&!ui(this.hostElement,t,this.popupRef)&&this._zone.run(()=>this.blur())}))}handleItemChange(e){let t=e.indices.length?e.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),!u(t))return;let n=x(this.dataService.itemAt(t),this.valueField);this.change(n),this.isActionSheetExpanded&&this.togglePopup(!1)}handleItemFocus(e){let t=this.selectionService.focused;!!(this.suggest&&this.data&&this.data.length&&t>=0)&&(this.suggestedText=x(this.dataService.itemAt(t),this.valueField))}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=W(),this.isAdaptive){this.openActionSheet();return}let e=this.direction==="rtl"?"right":"left",t={horizontal:e,vertical:"bottom"},n={horizontal:e,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:n,anchorAlign:t});let o=this.popupRef.popupElement,{min:r,max:c}=this.width;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=r,o.style.width=c,o.style.height=this.height,o.setAttribute("dir",this.direction),this.appendTo||(this.renderer.setAttribute(o,"role","region"),this.renderer.setAttribute(o,"aria-label",this.messageFor("popupLabel"))),this.subs.add(this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),je(this.optionsList,this.searchbar.input,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()})),this.subs.add(this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})),this.subs.add(this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1)))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}_toggle(e){this._open=e,this.destroyPopup(),this.isActionSheetExpanded&&this.closeActionSheet(),this._open&&this.createPopup()}triggerPopupEvents(e){let t=new nt;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}firstFocusableIndex(e){let t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e{let n=x(t.value,this.valueField);return n=u(n)?n.toString().toLowerCase():"",n.startsWith(e.toLowerCase())}:t=>{let n=x(t,this.valueField);return n=u(n)?n.toString().toLowerCase():"",n.startsWith(e.toLowerCase())}}setComponentClasses(){this.size!=="none"&&this.renderer.addClass(this.wrapper,Q("input",this.size)),this.rounded!=="none"&&this.renderer.addClass(this.wrapper,be(this.rounded)),this.fillMode!=="none"&&this.renderer.addClass(this.wrapper,De("input",this.fillMode))}closeActionSheet(){this.actionSheet.toggle(!1),this.actionSheetSearchBar.value="",this.filterable&&this.filterChange.emit(""),this.searchbar.input.nativeElement.focus(),this.closed.emit()}openActionSheet(){this.actionSheet.toggle(!0),this.cdr.detectChanges(),je(this.optionsList,this.searchbar.input,this.renderer),this.title=gi(this.searchbar.input,this.title),fi(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.actionSheetSearchBar.focus()}}return i.\u0275fac=function(e){return new(e||i)(h(P),h(Re),h(Ot),h(Ee),h(We),h(ke),h(he),h(me),h(Z),h(z),h(vt,8),h(ot))},i.\u0275cmp=U({type:i,selectors:[["kendo-autocomplete"]],contentQueries:function(e,t,n){if(e&1&&(y(n,_i,5),y(n,vi,5),y(n,Ci,5),y(n,xi,5),y(n,bi,5),y(n,Si,5),y(n,jt,5),y(n,Ut,5)),e&2){let o;b(o=S())&&(t.template=o.first),b(o=S())&&(t.headerTemplate=o.first),b(o=S())&&(t.footerTemplate=o.first),b(o=S())&&(t.noDataTemplate=o.first),b(o=S())&&(t.groupTemplate=o.first),b(o=S())&&(t.fixedGroupTemplate=o.first),b(o=S())&&(t.suffixTemplate=o.first),b(o=S())&&(t.prefixTemplate=o.first)}},viewQuery:function(e,t){if(e&1&&(A(Ke,5),A(li,7,Ne),A(di,7),A(ft,7),A(ci,5)),e&2){let n;b(n=S())&&(t.responsiveRendererComponent=n.first),b(n=S())&&(t.container=n.first),b(n=S())&&(t.popupTemplate=n.first),b(n=S())&&(t.searchbar=n.first),b(n=S())&&(t.optionsList=n.first)}},hostVars:11,hostBindings:function(e,t){e&2&&(k("dir",t.dir),V("k-readonly",t.readonly)("k-autocomplete",t.widgetClasses)("k-input",t.widgetClasses)("k-disabled",t.isDisabled)("k-loading",t.isLoading))},inputs:{highlightFirst:"highlightFirst",showStickyHeader:"showStickyHeader",focusableId:"focusableId",data:"data",value:"value",valueField:"valueField",placeholder:"placeholder",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",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",inputAttributes:"inputAttributes"},outputs:{valueChange:"valueChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur",inputFocus:"inputFocus",inputBlur:"inputBlur"},exportAs:["kendoAutoComplete"],features:[_e([zc,Re,Ee,We,ke,P,{provide:xe,useValue:"kendo.autocomplete"},{provide:gt,useExisting:te(()=>i)},{provide:Et,useExisting:te(()=>i)}]),ue],decls:18,vars:31,consts:()=>{let s;s=$localize`:kendo.autocomplete.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`;let e;e=$localize`:kendo.autocomplete.clearTitle|The title of the clear button:clear`;let t;return t=$localize`:kendo.autocomplete.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,[["searchbar",""],["popupTemplate",""],["container",""],["sharedPopupActionSheetTemplate",""],["optionsList",""],["kendoAutoCompleteLocalizedMessages","","noDataText",s,"clearTitle",e,"popupLabel",t],["kendoDropDownSharedEvents","",3,"isFocusedChange","handleBlur","onFocus","hostElement","isFocused"],["class","k-input-prefix k-input-prefix-horizontal",4,"ngIf"],[4,"ngIf"],[3,"onNavigate","valueChange","onBlur","onFocus","click","role","ariaExpanded","isSuggestable","isFilterable","isLoading","ariaControls","id","activeDescendant","userInput","suggestedText","disabled","readonly","tabIndex","isRequired","placeholder","inputAttributes"],["class","k-clear-value","role","button","tabindex","-1",3,"visibility","click","mousedown",4,"ngIf"],["class","k-icon k-i-loading k-input-loading-icon",4,"ngIf"],["class","k-input-suffix k-input-suffix-horizontal",4,"ngIf"],[3,"resize",4,"ngIf"],[3,"closePopup","textInputChange","navigate","sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","subtitle","placeholder"],[1,"k-input-prefix","k-input-prefix-horizontal"],[3,"ngTemplateOutlet"],["role","button","tabindex","-1",1,"k-clear-value",3,"click","mousedown"],["name","x",3,"svgIcon"],[1,"k-icon","k-i-loading","k-input-loading-icon"],[1,"k-input-suffix","k-input-suffix-horizontal"],[4,"ngTemplateOutlet"],[3,"resize"],[3,"pageChange","size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","showStickyHeader"],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(e,t){if(e&1){let n=O();X(0,5),de(1,6),wt("isFocusedChange",function(r){return v(n),Dt(t.isFocused,r)||(t.isFocused=r),C(r)}),T("handleBlur",function(){return v(n),C(t.handleBlur())})("onFocus",function(){return v(n),C(t.handleFocus())}),m(2,zl,2,1,"span",7)(3,Gl,1,0,"kendo-separator",8),g(4,"kendo-searchbar",9,0),T("onNavigate",function(r){return v(n),C(t.handleNavigate(r))})("valueChange",function(r){return v(n),C(t.searchBarChange(r))})("onBlur",function(){return v(n),C(t.handleInputBlur())})("onFocus",function(){return v(n),C(t.handleInputFocus())})("click",function(){return v(n),C(t.handleClick())}),_(),m(6,Hl,2,4,"span",10)(7,Ul,1,0,"span",11)(8,jl,1,0,"kendo-separator",8)(9,Kl,2,1,"span",12),ce(),m(10,Ql,1,1,"ng-template",null,1,re),X(12,null,2),m(14,ql,1,0,"kendo-resize-sensor",13),g(15,"responsive-renderer",14),T("closePopup",function(){return v(n),C(t.togglePopup(!1))})("textInputChange",function(r){return v(n),C(t.onFilterChange(r))})("navigate",function(r){return v(n),C(t.handleNavigate(r))}),_(),m(16,nd,5,17,"ng-template",null,3,re)}if(e&2){let n=Y(17);l(),a("hostElement",t.hostElement),It("isFocused",t.isFocused),l(),a("ngIf",t.prefixTemplate),l(),a("ngIf",t.prefixTemplate&&t.prefixTemplate.showSeparator),l(),a("role","combobox")("ariaExpanded",t.isOpen)("isSuggestable",t.suggest)("isFilterable",t.filterable)("isLoading",t.isLoading)("ariaControls",t.ariaControls)("id",t.focusableId)("activeDescendant",t.activeDescendant)("userInput",t.text)("suggestedText",t.suggestion)("disabled",t.disabled)("readonly",t.readonly||t.isAdaptive)("tabIndex",t.tabIndex)("isRequired",t.isControlRequired)("placeholder",t.placeholder)("inputAttributes",t.inputAttributes),l(2),a("ngIf",!t.loading&&!t.readonly&&t.clearButton&&(t.text==null?null:t.text.length)),l(),a("ngIf",t.loading),l(),a("ngIf",t.suffixTemplate&&t.suffixTemplate.showSeparator),l(),a("ngIf",t.suffixTemplate),l(5),a("ngIf",t.isOpen||t.isAdaptiveModeEnabled),l(),a("sharedPopupActionSheetTemplate",n)("isActionSheetExpanded",t.isActionSheetExpanded)("title",t.title)("showTextInput",!0)("subtitle",t.subtitle)("placeholder",t.placeholder)}},dependencies:[Ii,ft,_t,Ke,se,Se,Ue,wi,Ce,Wt,fn],encapsulation:2}),i})(),ni={array:"Expected values of array type. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/value-binding",object:"Expected values of Object type. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/value-binding/#toc-object-values",primitive:"Expected values of primitive type. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/value-binding/#toc-primitive-values",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/data-binding/#toc-arrays-of-complex-data"};var si={object:"Expected value of type Object. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/value-binding/#toc-object-values",primitive:"Expected value of primitive type. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/value-binding/#toc-primitive-values",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/data-binding/#toc-arrays-of-complex-data",noItemHeight:"Expected virtual.itemHeight of type number."};var oi={defaultItem:"defaultItem and data items must be of same type. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem",object:"Expected value of type Object. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/value-binding/#toc-object-values",primitive:"Expected value of primitive type. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/value-binding/#toc-primitive-values",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/data-binding/#toc-arrays-of-complex-data"};var Hc={multi:!0,provide:yt,useExisting:te(()=>Kc)},Uc="medium",jc="medium",Wc="solid",Kc=(()=>{class i extends Hi{constructor(e,t,n,o,r,c,p,w,E,H,K,Fe,$e){super(),this.wrapper=e,this.localization=t,this.popupService=n,this.selectionService=o,this.navigationService=r,this.disabledItemsService=c,this.dataService=p,this.zone=w,this.cdr=E,this.renderer=H,this.touchEnabled=K,this.injector=Fe,this.hostElement=$e,this.animationDuration=Nt,this.xIcon=pt,this.caretAltDownIcon=ht,this.selected=[],this.showStickyHeader=!0,this.focusableId=`k-${fe()}`,this.allowCustom=!1,this.valueNormalizer=Qe=>Qe.pipe($(qe=>qe)),this.placeholder="",this.adaptiveMode="none",this.title="",this._listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new f,this.selectionChange=new f,this.filterChange=new f,this.open=new f,this.opened=new f,this.close=new f,this.closed=new f,this.onFocus=new f,this.onBlur=new f,this.inputFocus=new f,this.inputBlur=new f,this.escape=new f,this.widgetClasses=!0,this._isFocused=!1,this.windowSize="large",this.listBoxId=`k-${fe()}`,this.optionPrefix=`k-${fe()}`,this.onChangeCallback=Qe=>{},this.onTouchedCallback=Qe=>{},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=Qe=>Qe.preventDefault(),this.customValueSubject=new ee,this.valueSubject=new ee,this.clearValueSubject=new ee,this.subs=new ae,this._size="medium",this._rounded="medium",this._fillMode="solid",Ie(hi),this.direction=t.rtl?"rtl":"ltr",this.data=[]}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}set text(e){this._text=u(e)?e.toString():""}get text(){return this._text}get ariaControls(){return this.isOpen?this.listBoxId:void 0}get isControlRequired(){return Gt(this.formControl)}togglePopup(e){let t=this.disabled||this.readonly,n=this.isOpen===e;if(t||n)return;this.triggerPopupEvents(e)||this._toggle(e)}get activeDescendant(){return!this.isOpen||!u(this.selectionService.focused)||this.selectionService.focused===-1?null:this.optionPrefix+"-"+this.selectionService.focused}get appendTo(){let{appendTo:e}=this.popupSettings;if(!(!e||e==="root"))return e==="component"?this.container:e}set data(e){if(this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering){let n=this.text.length>0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=n}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=x(this.dataService.itemAt(0),this.textField))}get data(){let e=this.virtual;if(e){let t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data}set value(e){this._value=e,this.setState(),this.cdr.markForCheck()}get value(){return this._value}set valuePrimitive(e){this._valuePrimitive=e}get valuePrimitive(){return u(this._valuePrimitive)?this._valuePrimitive:!u(this.valueField)}set subtitle(e){this._subtitle=e}get subtitle(){return this._subtitle||this.placeholder}get isAdaptiveModeEnabled(){return this.adaptiveMode==="auto"}set popupSettings(e){this._popupSettings=Object.assign({animate:!0},e)}get popupSettings(){return this._popupSettings}set listHeight(e){this._listHeight=e}get listHeight(){if(!this.isAdaptive)return this._listHeight}set itemDisabled(e){if(typeof e!="function")throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(e)}.`);this.disabledItemsService.itemDisabled=e}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}set virtual(e){this._virtualSettings=Di(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})}get virtual(){return this._virtualSettings}set size(e){let t=e||Uc;this.renderer.removeClass(this.wrapper.nativeElement,Q("input",this.size)),e!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,Q("input",t)),this._size=t}get size(){return this._size}set rounded(e){let t=e||jc;this.renderer.removeClass(this.wrapper.nativeElement,be(this.rounded)),e!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,be(t)),this._rounded=t}get rounded(){return this._rounded}set fillMode(e){let t=e||Wc;this.renderer.removeClass(this.wrapper.nativeElement,De("input",this.fillMode)),e!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,De("input",t)),this._fillMode=t}get fillMode(){return this._fillMode}get isDisabled(){return this.disabled}get isLoading(){return this.loading}get dir(){return this.direction}get isFocused(){return this._isFocused}set isFocused(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}get formControl(){return this.injector.get(ct,null)?.control||null}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&this.windowSize!=="large"}get popupWidth(){let e=0;F()&&(e=this.wrapper.nativeElement.offsetWidth);let t=this.popupSettings.width||e,n=isNaN(e)?e:`${e}px`,o=isNaN(t)?t:`${t}px`;return{min:n,max:o}}get popupHeight(){let e=this.popupSettings.height;return u(e)?`${e}px`:"auto"}ngOnInit(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()}ngAfterViewInit(){this.windowSize=W(),this.cdr.detectChanges(),this.actionSheet&&F()&&(this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-height","60vh"),this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}createValueStream(){let e=this.valueSubject.pipe(R(p=>{let w=x(this.value,this.valueField),E=x(p,this.valueField),H=x(p,this.textField);return!u(this.value)&&!u(E)?!1:(u(H)&&(H=H.toString()),w===E&&this.text===H?(this.clearFilter(),!1):!0)}),$(p=>{let w=x(p,this.valueField),E=x(p,this.textField);return{dataItem:p,text:E,value:this.valuePrimitive?w:p}})),t=On(()=>this.allowCustom)(this.customValueSubject.pipe(En(300))),n=t[0].pipe(ge(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),R(()=>{let p=this.text!==x(this.value,this.valueField);return this.loading=p,this.disabled=p,p||this.clearFilter(),p}),this.valueNormalizer,$(p=>({custom:!0,dataItem:p,text:this.text,value:p}))),o=t[1].pipe($(()=>({custom:!0,dataItem:void 0,text:void 0,value:void 0}))),r=this.clearValueSubject.pipe($(()=>({dataItem:void 0,text:void 0,value:void 0})));this.valueSubscription&&this.valueSubscription.unsubscribe();let c=le(e,n,o,r);this.valueSubscription=c.pipe(St(()=>{let p=x(this.dataItem,this.valueField)!==void 0;return this.dataItem=void 0,this.value=void 0,this.text=void 0,this.loading=!1,this.disabled=!1,p&&this.selectionChange.emit(void 0),this.emitValueChange(),this.createValueStream(),Je(null)})).subscribe(p=>{let w=x(this.dataItem,this.valueField)!==x(p.dataItem,this.valueField);if(this.dataItem=p.dataItem,this.value=p.value,this.text=p.text,this.loading=!1,this.disabled=!1,this.clearFilter(),p.custom&&(this.selectionService.focused=-1),w){let E=p.custom?void 0:this.dataItem;this.selectionChange.emit(E)}this.emitValueChange()})}attachStreams(){F()&&(this.subs.add(this.localization.changes.subscribe(({rtl:e})=>{this.direction=e?"rtl":"ltr",this.cdr.detectChanges()})),this.subs.add(le(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(R(e=>u(e.index))).subscribe(e=>this.navigate(e.index))),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(()=>this.togglePopup(!1))),this.subs.add(le(this.navigationService.pagedown,this.navigationService.pageup).subscribe(e=>{this.isOpen&&(e.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(D[e.originalEvent.code]))})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(ge(e=>{this.isOpen&&e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(le(this.selectionService.onChange,this.selectionService.onSelect.pipe(R(e=>!this.isOpen))).pipe(ge(e=>{this._filtering=!1,this.togglePopup(!1)}),$(e=>this.dataService.itemAt(e.indices[0]))).subscribe(e=>{this.change(e)})),this.subs.add(this.selectionService.onSelect.pipe(R(e=>this.isOpen),ge(e=>this._filtering=!1),$(e=>this.dataService.itemAt(e.indices[0]))).subscribe(e=>{let t=x(e,this.valueField)!==x(this.dataItem,this.valueField);this.updateState({dataItem:e}),t&&this.selectionChange.emit(e)})))}ngOnDestroy(){this.destroyPopup(),this.subs.unsubscribe(),u(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()}ngOnChanges(e){let t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Ge("valueNormalizer",e)&&this.createValueStream(),He(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}focusItemAt(e){let t=e>=0&&e{let t=u(e)?e:!this._open;this._toggle(t),this.cdr.markForCheck()})}get isOpen(){return mi(this._open||this.isActionSheetExpanded)}handleClick(){this.windowSize=W(),this.isAdaptive&&this.togglePopup(!0)}reset(){this.value=void 0,this.clearState(),this.resetSelection()}isEmpty(){let e=!u(this.text)||so(this.text),t=!u(this.value)||so(this.value);return e&&t}messageFor(e){return this.localization.get(e)}clearValue(e){e?.stopImmediatePropagation(),e&&this.focus(),this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1}writeValue(e){this.value=e===null?void 0:e}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.cdr.markForCheck(),this.disabled=e}get selectButtonClasses(){return`${this.size?Q("button",this.size):""} ${this.fillMode?"k-button-"+this.fillMode:""} ${this.fillMode?"k-button-"+this.fillMode+"-base":""} `}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==W()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=W(),this.cdr.detectChanges()),this.isOpen&&!this.isActionSheetExpanded){let e=this.popupRef.popupElement,{min:t,max:n}=this.popupWidth;e.style.minWidth=t,e.style.width=n}}verifySettings(){if(!Pe())return;if(this.valuePrimitive===!0&&u(this.value)&&typeof this.value=="object")throw new Error(si.primitive);if(this.valuePrimitive===!1&&u(this.value)&&typeof this.value!="object")throw new Error(si.object);if(!u(this.valueField)!=!u(this.textField))throw new Error(si.textAndValue);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(si.noItemHeight)}setState(){if(this._filtering)return;let e=this.value,t=this.valueField,n=this.findDataItem({valueField:t,value:e});u(n.index)&&n.index!==-1?(this.updateState({dataItem:n.dataItem,confirm:!0}),this.resetSelection(n.index)):u(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))}updateState({dataItem:e,confirm:t=!1}){this.dataItem=e,this.text=x(e,this.textField),t&&(this._previousDataItem=e)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(e){let t=!u(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e}firstFocusableIndex(e){let t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e{let n=x(t.value,this.textField);return n=u(n)?n.toString().toLowerCase():"",n.startsWith(e.toLowerCase())}:t=>{let n=x(t,this.textField);return n=u(n)?n.toString().toLowerCase():"",n.startsWith(e.toLowerCase())}}findDataItem({valueField:e,value:t}){let n={dataItem:null,index:-1},o=c=>{let p=this.dataService.grouped?c.value:c;return x(p,e)===x(t,e)},r=this.dataService.findIndex(o);return n.dataItem=this.dataService.itemAt(r),n.index=r,n}search(e,t=0){let n=this.findIndex(e,t);this.disabledItemsService.isIndexDisabled(n)?n+1{!this.isFocused&&L(this.onFocus)&&this.onFocus.emit(),this.isFocused=!0})}handleBlur(){if(!this.isActionSheetExpanded){this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1;let e=x(this.dataItem,this.valueField)!==x(this.value,this.valueField),t=this.searchbar.value,n=t!==(x(this.dataItem,this.textField)||""),o=e||n;o||L(this.onBlur)||L(this.close)||it(this.wrapper.nativeElement)?this.zone.run(()=>{o&&(u(this.focusedItemText)&&this.focusedItemText.toLowerCase()===t.toLowerCase()||e?this.selectionService.change(this.selectionService.focused):this.change(t,!0)),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}}handleInputBlur(){if(!this.isActionSheetExpanded){this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0;let e=x(this.dataItem,this.valueField)!==x(this.value,this.valueField),t=this.searchbar.value,n=t!==(x(this.dataItem,this.textField)||""),o=e||n;o||L(this.onBlur)||L(this.close)||it(this.wrapper.nativeElement)||this.formControl?.updateOn==="blur"?this.zone.run(()=>{o&&(u(this.focusedItemText)&&this.focusedItemText.toLowerCase()===t.toLowerCase()||e?this.selectionService.change(this.selectionService.focused):this.change(t,!0)),this.inputBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}}handleEscape(){this.isOpen?this.togglePopup(!1):this.clearValue(),this.selectionService.selected.length>0||(this.suggestedText=null,this.selectionService.focused=-1),L(this.escape)&&this.escape.emit()}handleNavigationOpen(){this.restoreItemFocus(),this.togglePopup(!0)}searchBarChange(e){let t=this.text?this.text.length:0;this.backspacePressed=e.lengththis.inputFocus.emit())}pageChange(e){let t=this.virtual;t.skip=e.skip}change(e,t=!1){t?this.customValueSubject.next(e):(this.valueSubject.next(e),this.isActionSheetExpanded&&this.togglePopup(!1))}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem}selectClick(){this.touchEnabled||(this.searchbar.focus(),this.isFocused=!0),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)}get listContainerClasses(){return["k-list-container","k-combobox-popup"].concat(this.popupSettings.popupClass||[])}preventEventDefault(e){e.preventDefault()}get focusedItemText(){let e=this.selectionService.focused;if(!u(e)||e===-1)return null;let t=x(this.dataService.itemAt(e),this.textField);return u(t)?t.toString():""}restoreItemFocus(){!(u(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))}useSuggestion(){if(!(this.suggest&&u(this.searchbar.value)))return!1;let e=this.dataService.itemAt(this.selectionService.focused),t=x(e,this.textField);return u(t)?this.searchbar.value.toLowerCase()===t.toLowerCase():!1}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=W(),this.isAdaptive){this.openActionSheet();return}let e=this.direction==="rtl"?"right":"left",t={horizontal:e,vertical:"bottom"},n={horizontal:e,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:t,popupAlign:n});let o=this.popupRef.popupElement,{min:r,max:c}=this.popupWidth;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=r,o.style.width=c,o.style.height=this.popupHeight,o.setAttribute("dir",this.direction),this.appendTo||(this.renderer.setAttribute(o,"role","region"),this.renderer.setAttribute(o,"aria-label",this.messageFor("popupLabel")));let p=this.popupRef.popupElement.querySelector("ul"),w=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");w&&p.setAttribute("aria-labelledby",w),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),je(this.optionsList,this.searchbar.input,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}_toggle(e){this._open=e,this.destroyPopup(),this.isActionSheetExpanded&&this.closeActionSheet(),this._open&&(this.windowSize=W(),this.createPopup())}triggerPopupEvents(e){let t=new nt;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}clearFilter(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))}subscribeTouchEvents(){!F()||!this.touchEnabled||this.zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",e=>{let t=e.target,n=ui(this.wrapper,t,this.popupRef);this.isFocused&&!n?this.zone.run(()=>this.blur()):this.isOpen&&!n&&this.zone.run(()=>this.togglePopup(!1))}))}attachSelectClickHandler(){let e=this.select.nativeElement,t=$n?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))}setComponentClasses(){this.size!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,Q("input",this.size)),this.rounded!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,be(this.rounded)),this.fillMode!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,De("input",this.fillMode))}findIndex(e,t=0){let n;return e&&e.length&&this.dataService.itemsCount?n=this.dataService.findIndex(this.findIndexPredicate(e),t):n=-1,n}closeActionSheet(){this.actionSheet.toggle(!1),this.actionSheetSearchBar.value="",this.filterable&&this.filterChange.emit(""),this.searchbar.input.nativeElement.focus(),this.closed.emit()}openActionSheet(){this.windowSize=W(),this.actionSheet.toggle(!0),this.cdr.detectChanges(),je(this.optionsList,this.searchbar.input,this.renderer),this.title=gi(this.searchbar.input,this.title),fi(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.actionSheetSearchBar.focus()}}return i.\u0275fac=function(e){return new(e||i)(h(z),h(P),h(Ot),h(Ee),h(We),h(ke),h(Re),h(he),h(me),h(Z),h(vt,8),h(ot),h(z))},i.\u0275cmp=U({type:i,selectors:[["kendo-combobox"]],contentQueries:function(e,t,n){if(e&1&&(y(n,_i,5),y(n,vi,5),y(n,Ci,5),y(n,xi,5),y(n,bi,5),y(n,Si,5),y(n,jt,5),y(n,Ut,5)),e&2){let o;b(o=S())&&(t.template=o.first),b(o=S())&&(t.headerTemplate=o.first),b(o=S())&&(t.footerTemplate=o.first),b(o=S())&&(t.noDataTemplate=o.first),b(o=S())&&(t.groupTemplate=o.first),b(o=S())&&(t.fixedGroupTemplate=o.first),b(o=S())&&(t.suffixTemplate=o.first),b(o=S())&&(t.prefixTemplate=o.first)}},viewQuery:function(e,t){if(e&1&&(A(Ke,5),A(li,7,Ne),A(di,7),A(ft,7),A(ci,5),A(sd,7)),e&2){let n;b(n=S())&&(t.responsiveRendererComponent=n.first),b(n=S())&&(t.container=n.first),b(n=S())&&(t.popupTemplate=n.first),b(n=S())&&(t.searchbar=n.first),b(n=S())&&(t.optionsList=n.first),b(n=S())&&(t.select=n.first)}},hostVars:11,hostBindings:function(e,t){e&2&&(k("dir",t.dir),V("k-readonly",t.readonly)("k-combobox",t.widgetClasses)("k-input",t.widgetClasses)("k-disabled",t.isDisabled)("k-loading",t.isLoading))},inputs:{icon:"icon",svgIcon:"svgIcon",inputAttributes:"inputAttributes",showStickyHeader:"showStickyHeader",focusableId:"focusableId",allowCustom:"allowCustom",data:"data",value:"value",textField:"textField",valueField:"valueField",valuePrimitive:"valuePrimitive",valueNormalizer:"valueNormalizer",placeholder:"placeholder",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",popupSettings:"popupSettings",listHeight:"listHeight",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",inputFocus:"inputFocus",inputBlur:"inputBlur",escape:"escape"},exportAs:["kendoComboBox"],features:[_e([Hc,Re,Ee,We,ke,P,{provide:xe,useValue:"kendo.combobox"},{provide:gt,useExisting:te(()=>i)},{provide:Et,useExisting:te(()=>i)},{provide:Hi,useExisting:te(()=>i)}]),Ye,ue],decls:21,vars:38,consts:()=>{let s;s=$localize`:kendo.combobox.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`;let e;e=$localize`:kendo.combobox.clearTitle|The title of the clear button:clear`;let t;t=$localize`:kendo.combobox.selectButtonText|The text set as aria-label on the select button:Select`;let n;return n=$localize`:kendo.combobox.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,[["searchbar",""],["select",""],["popupTemplate",""],["container",""],["sharedPopupActionSheetTemplate",""],["optionsList",""],["kendoComboBoxLocalizedMessages","","noDataText",s,"clearTitle",e,"selectButtonText",t,"popupLabel",n],["kendoDropDownSharedEvents","",3,"isFocusedChange","handleBlur","onFocus","hostElement","isFocused"],["class","k-input-prefix k-input-prefix-horizontal",4,"ngIf"],[4,"ngIf"],[3,"onNavigate","valueChange","onBlur","onFocus","click","role","ariaExpanded","ariaControls","id","isLoading","isSuggestable","isFilterable","activeDescendant","userInput","suggestedText","disabled","readonly","tabIndex","isRequired","placeholder","inputAttributes"],["class","k-clear-value","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["class","k-i-loading k-input-loading-icon k-icon",4,"ngIf"],["class","k-input-suffix k-input-suffix-horizontal",4,"ngIf"],["tabindex","-1","unselectable","on","type","button",1,"k-input-button","k-button","k-icon-button",3,"keydown.enter","ngClass","kendoEventsOutsideAngular"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[3,"resize",4,"ngIf"],[3,"closePopup","textInputChange","navigate","sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","subtitle","placeholder"],[1,"k-input-prefix","k-input-prefix-horizontal"],[3,"ngTemplateOutlet"],["aria-hidden","true",1,"k-clear-value",3,"click","kendoEventsOutsideAngular"],["name","x",3,"svgIcon"],[1,"k-i-loading","k-input-loading-icon","k-icon"],[1,"k-input-suffix","k-input-suffix-horizontal"],[4,"ngTemplateOutlet"],[3,"resize"],[3,"pageChange","size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","showStickyHeader"],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(e,t){if(e&1){let n=O();X(0,6),de(1,7),wt("isFocusedChange",function(r){return v(n),Dt(t.isFocused,r)||(t.isFocused=r),C(r)}),T("handleBlur",function(){return v(n),C(t.handleBlur())})("onFocus",function(){return v(n),C(t.handleFocus())}),m(2,rd,2,1,"span",8)(3,ad,1,0,"kendo-separator",9),g(4,"kendo-searchbar",10,0),T("onNavigate",function(r){return v(n),C(t.handleNavigate(r))})("valueChange",function(r){return v(n),C(t.searchBarChange(r))})("onBlur",function(){return v(n),C(t.handleInputBlur())})("onFocus",function(){return v(n),C(t.handleInputFocus())})("click",function(){return v(n),C(t.handleClick())}),_(),m(6,ld,2,7,"span",11)(7,dd,1,0,"span",12)(8,cd,1,0,"kendo-separator",9)(9,pd,2,1,"span",13),g(10,"button",14,1),T("keydown.enter",function(r){return v(n),C(r.stopImmediatePropagation())}),M(12,"kendo-icon-wrapper",15),_(),ce(),m(13,md,1,1,"ng-template",null,2,re)(15,fd,1,0,"kendo-resize-sensor",16),X(16,null,3),g(18,"responsive-renderer",17),T("closePopup",function(){return v(n),C(t.togglePopup(!1))})("textInputChange",function(r){return v(n),C(t.onAdaptiveTextBoxChange(r))})("navigate",function(r){return v(n),C(t.handleNavigate(r))}),_(),m(19,Id,5,17,"ng-template",null,4,re)}if(e&2){let n=Y(20);l(),a("hostElement",t.hostElement),It("isFocused",t.isFocused),l(),a("ngIf",t.prefixTemplate),l(),a("ngIf",t.prefixTemplate&&t.prefixTemplate.showSeparator),l(),a("role","combobox")("ariaExpanded",t.isOpen)("ariaControls",t.ariaControls)("id",t.focusableId)("isLoading",t.loading)("isSuggestable",t.suggest)("isFilterable",t.filterable)("activeDescendant",t.activeDescendant)("userInput",t.text)("suggestedText",t.getSuggestion())("disabled",t.disabled)("readonly",t.readonly||t.isAdaptive)("tabIndex",t.tabIndex)("isRequired",t.isControlRequired)("placeholder",t.placeholder)("inputAttributes",t.inputAttributes),l(2),a("ngIf",t.clearButton&&!t.loading&&!t.disabled&&!t.readonly&&(t.text==null?null:t.text.length)),l(),a("ngIf",t.loading),l(),a("ngIf",t.suffixTemplate&&t.suffixTemplate.showSeparator),l(),a("ngIf",t.suffixTemplate),l(),a("ngClass",t.selectButtonClasses)("kendoEventsOutsideAngular",j(36,un,t.preventEventDefault)),k("aria-label",t.messageFor("selectButtonText")),l(2),a("name",t.icon||"caret-alt-down")("svgIcon",t.svgIcon||t.caretAltDownIcon),l(3),a("ngIf",t.isOpen||t.isAdaptiveModeEnabled),l(3),a("sharedPopupActionSheetTemplate",n)("isActionSheetExpanded",t.isActionSheetExpanded)("title",t.title)("showTextInput",!0)("subtitle",t.subtitle)("placeholder",t.placeholder)}},dependencies:[Ii,ft,_t,Ke,ve,se,Se,Ue,wi,Ht,Ce,Wt,fn],encapsulation:2}),i})(),$c=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q))},i.\u0275dir=N({type:i,selectors:[["","kendoDropDownListValueTemplate",""],["","kendoDropDownTreeValueTemplate",""]]}),i})(),Qc=(()=>{class i{constructor(e,t){this.element=e,this.zone=t}ngOnChanges(){this.focused&&this.nextTick(()=>this.element.nativeElement.focus())}nextTick(e){this.zone.runOutsideAngular(()=>setTimeout(e))}}return i.\u0275fac=function(e){return new(e||i)(h(z),h(he))},i.\u0275dir=N({type:i,selectors:[["","filterInput",""]],inputs:{focused:[0,"filterInput","focused"]},features:[ue]}),i})(),qc={multi:!0,provide:yt,useExisting:te(()=>Yc)},Jc="medium",Zc="medium",Xc="solid",Yc=(()=>{class i{constructor(e,t,n,o,r,c,p,w,E,H,K,Fe){this.wrapper=e,this.localization=t,this.popupService=n,this.selectionService=o,this.navigationService=r,this.disabledItemsService=c,this.dataService=p,this._zone=w,this.renderer=E,this.cdr=H,this.touchEnabled=K,this.injector=Fe,this.animationDuration=Nt,this.xIcon=pt,this.searchIcon=$t,this.caretAltDownSVGIcon=ht,this.listBoxId=`k-${fe()}`,this.showStickyHeader=!0,this.adaptiveMode="none",this.title="",this.subtitle="",this.windowSize="large",this._listHeight=200,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.leftRightArrowsNavigation=!0,this.valueChange=new f,this.filterChange=new f,this.selectionChange=new f,this.open=new f,this.opened=new f,this.close=new f,this.closed=new f,this.onFocus=new f,this.onBlur=new f,this.hostClasses=!0,this.focusableId=`k-${fe()}`,this.role="combobox",this.haspopup="listbox",this.groupIndices=[],this.optionPrefix=`k-${fe()}`,this.filterText="",this.subs=new ae,this._isFocused=!1,this.onTouchedCallback=$e=>{},this.onChangeCallback=$e=>{},this.word="",this.last="",this.filterFocused=new f,this.filterBlurred=new f,this.hostElementFocused=new f,this.hostElementBlurred=new f,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",Ie(hi),this.direction=t.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}get width(){let e=F()?this.wrapper.nativeElement.offsetWidth:0,t=this.popupSettings.width||e,n=isNaN(e)?e:`${e}px`,o=isNaN(t)?t:`${t}px`;return{min:n,max:o}}get height(){let e=this.popupSettings.height;return u(e)?`${e}px`:"auto"}get widgetTabIndex(){if(this.disabled)return;let e=Number(this.tabIndex);return isNaN(e)?0:e}get ariaExpanded(){return this.isOpen}get ariaControls(){if(this.isOpen)return this.listBoxId}get ariaActivedescendant(){if(!(!u(this.dataItem)||!this.isOpen))return this.optionPrefix+"-"+this.selectionService.focused}get appendTo(){let{appendTo:e}=this.popupSettings;if(!(!e||e==="root"))return e==="component"?this.container:e}onFilterChange(e){this.filterable&&this.filterChange.emit(e)}get ariaLive(){return this.filterable?"polite":"off"}set data(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()}get data(){let e=this.virtual;if(e){let t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data}set value(e){u(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()}get value(){return this._value}get isAdaptiveModeEnabled(){return this.adaptiveMode==="auto"}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&this.windowSize!=="large"}set popupSettings(e){this._popupSettings=Object.assign({animate:!0},e)}get popupSettings(){return this._popupSettings}set listHeight(e){this._listHeight=e}get listHeight(){if(!this.isAdaptive)return this._listHeight}set itemDisabled(e){if(typeof e!="function")throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(e)}.`);this.disabledItemsService.itemDisabled=e}set virtual(e){this._virtualSettings=Di(e)}get virtual(){return this._virtualSettings}set valuePrimitive(e){this._valuePrimitive=e}get valuePrimitive(){return u(this._valuePrimitive)?this._valuePrimitive:!u(this.valueField)}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}set size(e){let t=e||Jc;this.renderer.removeClass(this.wrapper.nativeElement,Q("picker",this.size)),e!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,Q("picker",t)),this._size=t}get size(){return this._size}set rounded(e){let t=e||Zc;this.renderer.removeClass(this.wrapper.nativeElement,be(this.rounded)),e!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,be(t)),this._rounded=e}get rounded(){return this._rounded}set fillMode(e){let t=e||Xc;this.renderer.removeClass(this.wrapper.nativeElement,De("picker",this.fillMode)),e!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,De("picker",t)),this._fillMode=t}get fillMode(){return this._fillMode}blurComponent(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())}blurFilterInput(){this.filterBlurred.emit()}focusComponent(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,L(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()})))}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==W()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=W()),this.isOpen&&!this.isActionSheetExpanded){let e=this.popupRef.popupElement,{min:t,max:n}=this.width;e.style.minWidth=t,e.style.width=n}}get isDisabledClass(){return this.disabled}get isDisabledAttribute(){return this.disabled?"":null}get isLoading(){return this.loading}get dir(){return this.direction}get hostTabIndex(){return this.widgetTabIndex}get readonlyClass(){return this.readonly}get readonlyAttr(){return this.readonly?"":null}get isBusy(){return this.isLoading}get isAriaExpanded(){return this.ariaExpanded}get hostAriaInvalid(){return this.formControl?this.formControl?.invalid.toString():null}get hostAriaActivedescendant(){return this.ariaActivedescendant}keydown(e,t){t&&e.stopPropagation();let n=u(this.defaultItem)?-1:0,o=isNaN(this.selectionService.focused)?this.firstFocusableIndex(n):this.selectionService.focused,r=0;if(this.disabled||this.readonly)return;let c=e.keyCode===I.Home||e.keyCode===I.End;if(this.filterable&&this.isFocused&&this.isOpen&&c)return;let w=u(this.selectionService.selected[0]),E=u(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);(!w||E)&&(e.keyCode===I.ArrowDown||e.keyCode===I.ArrowRight&&this.leftRightArrowsNavigation?r=-1:(e.keyCode===I.ArrowUp||e.keyCode===I.ArrowLeft&&this.leftRightArrowsNavigation)&&(r=1));let H=e,K=this.navigationService.process({current:o+r,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:H}),Fe=K===D.Left||K===D.Right&&this.leftRightArrowsNavigation;K!==D.Undefined&&K!==D.Tab&&K!==D.Backspace&&K!==D.Delete&&K!==D.PageDown&&K!==D.PageUp&&K!==D.SelectAll&&!(Fe&&this.filterable)&&K!==D.Enter&&H.preventDefault(),K===D.Tab&&this.isActionSheetExpanded&&this.togglePopup(!1)}keypress(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)}click(){this.isActionSheetExpanded||(this.focus(),this.togglePopup(!this.isOpen))}set isFocused(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}get isFocused(){return this._isFocused}ngOnInit(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.subs.add(this.localization.changes.subscribe(({rtl:e})=>{this.direction=e?"rtl":"ltr",this.cdr.detectChanges()})),this.assignAriaDescribedBy(),this.setComponentClasses()}ngAfterViewInit(){this.windowSize=W(),this.actionSheet&&F()&&(this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-height","60vh"),this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}isEmpty(){let e=this.value;return!(e===0||e===!1||e||this.defaultItem)}onFilterFocus(){this.filterFocused.emit()}ngOnDestroy(){this.destroyPopup(),this.subs.unsubscribe(),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()}ngOnChanges(e){let t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Ge("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),He(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}get formControl(){return this.injector.get(ct,null)?.control||null}focusItemAt(e){let n=(u(this.defaultItem)?-1:0)<=e&&e{let t=u(e)?e:!this._open;this._toggle(t)})}_toggle(e){this._open=e,this.destroyPopup(),this.isActionSheetExpanded&&this.closeActionSheet(),this._open&&this.createPopup()}triggerPopupEvents(e){let t=new nt;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}togglePopup(e){let t=this.disabled||this.readonly,n=this.isOpen===e;if(t||n)return;this.triggerPopupEvents(e)||(!e&&this.filterable&&this.isFocused&&this.focus(),this._toggle(e))}get isOpen(){return mi(this._open||this.isActionSheetExpanded)}reset(){this.value=void 0}messageFor(e){return this.localization.get(e)}writeValue(e){this.value=e===null?void 0:e}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.cdr.markForCheck(),this.disabled=e}get selectButtonClasses(){return`${this.size?Q("button",this.size):""} ${this.fillMode?"k-button-"+this.fillMode:""} ${this.fillMode?"k-button-"+this.fillMode+"-base":""}`}get filterInputClasses(){return`${this.size?Q("input",this.size):""} ${this.fillMode?"k-input-"+this.fillMode:""} ${this.rounded?be(this.rounded):""}`}get optionLabelSizeClass(){return`${this.size?Q("list",this.size):""}`}get listContainerClasses(){let e=["k-list-container","k-dropdownlist-popup"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e}get isDisabledDefaultItem(){return this.disabledItemsService.isItemDisabled(this.defaultItem)}getText(){return this.text}getDefaultItemText(){return x(this.defaultItem,this.textField)}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=W(),this.isAdaptive){this.openActionSheet();return}let e=this.direction==="rtl"?"right":"left",t={horizontal:e,vertical:"bottom"},n={horizontal:e,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:t,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:n,popupClass:this.listContainerClasses,positionMode:"absolute"});let o=this.popupRef.popupElement,{min:r,max:c}=this.width;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=r,o.style.width=c,o.style.height=this.height,o.setAttribute("dir",this.direction),this.appendTo||(this.renderer.setAttribute(o,"role","region"),this.renderer.setAttribute(o,"aria-label",this.messageFor("popupLabel")));let p=o.querySelector("ul.k-list-ul"),w=this.wrapper.nativeElement.getAttribute("aria-labelledby");w&&p.setAttribute("aria-labelledby",w),this.subs.add(this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),je(this.optionsList,this.wrapper,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()})),this.subs.add(this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})),this.filterable||this.subs.add(this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1)))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}updateState({dataItem:e,confirm:t=!1}){this.dataItem=e,this.text=x(e,this.textField),t&&(this._previousDataItem=e)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(e){let t=!u(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e}onSelectionChange({dataItem:e}){this.updateState({dataItem:e}),this.selectionChange.emit(e),this.assignAriaDescribedBy()}subscribeEvents(){F()&&(this.subs.add(this.selectionService.onSelect.pipe(R(e=>this.isOpen),$(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.subs.add(le(this.selectionService.onSelect.pipe(R(e=>!this.isOpen)),this.selectionService.onChange).pipe($(this.itemFromEvent.bind(this)),ge(e=>this.togglePopup(!1))).subscribe(({dataItem:e,value:t,newSelection:n})=>{n&&this.onSelectionChange({dataItem:e});let o=!u(e)&&this._previousDataItem,r=t!==x(this.value,this.valueField);o?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):r&&(this.value=this.valuePrimitive?t:e,this._previousDataItem=e,this.emitChange(this.value)),this.clearFilter()})),this.subs.add(le(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(R(()=>this.leftRightArrowsNavigation),Ei(()=>this.filterable)),this.navigationService.right.pipe(R(()=>this.leftRightArrowsNavigation),Ei(()=>this.filterable)),this.navigationService.home,this.navigationService.end).pipe(R(e=>!isNaN(e.index))).subscribe(e=>this.selectionService.select(e.index))),this.subs.add(le(this.navigationService.pagedown,this.navigationService.pageup).subscribe(e=>{this.isOpen&&(e.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(D[e.originalEvent.code]))})),this.subs.add(this.navigationService.open.subscribe(()=>this.togglePopup(!0))),this.subs.add(this.navigationService.close.subscribe(()=>{this.togglePopup(!1),this.focus()})),this.subs.add(this.navigationService.enter.pipe(ge(e=>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(yi(()=>Ti(10).pipe(Ze(1),xt(this.hostElementFocused)))).subscribe(()=>{this.hostElementBlurred.emit()})),this._zone.runOutsideAngular(()=>{this.subs.add(le(this.hostElementBlurred.pipe(yi(()=>Ti(10).pipe(Ze(1),xt(this.filterFocused)))),this.navigationService.tab).pipe(ge(e=>e instanceof ai&&this.focus()),R(()=>this.isFocused)).subscribe(()=>this.componentBlur()))}))}subscribeTouchEvents(){!F()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",e=>{let t=e.target;this.isFocused&&!ui(this.wrapper,t,this.popupRef)&&this._zone.run(()=>{this.filterFocused&&this.togglePopup(!1),this.blur()})}))}subscribeFocusEvents(){F()&&(this.focusComponent=this.focusComponent.bind(this),this.blurComponent=this.blurComponent.bind(this),this._zone.runOutsideAngular(()=>{document.addEventListener("focus",this.focusComponent,!0),document.addEventListener("blur",this.blurComponent,!0)}))}unSubscribeFocusEvents(){F()&&(document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0))}itemFromEvent(e){let t=e.indices[0],n=this.dataService.itemAt(t);n=u(n)?n:this.currentOrDefault(t);let o=x(n,this.valueField),r=e.newSelection;return{dataItem:n,index:t,newSelection:r,value:o}}currentOrDefault(e){return u(this.dataItem)&&e!==-1?this.dataItem:this.defaultItem}firstFocusableIndex(e){let t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e{t&&this.selectionService.change(this.selectionService.selected[0]),this.togglePopup(!1),this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):this.togglePopup(!1)}}onMouseDown(e){e.target.tagName.toLowerCase()!=="input"&&e.preventDefault()}onKeyPress(e){if(e.which===0||e.keyCode===I.Enter)return;let t=String.fromCharCode(e.charCode||e.keyCode);this.ignoreCase&&(t=t.toLowerCase()),t===" "&&e.preventDefault(),this.word+=t,this.last=t,this.search()}search(){clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(()=>{this.word=""},this.delay),this.selectNext())}selectNext(){let e=this.dataService.filter(E=>u(E)&&!E.header&&!this.disabledItemsService.isItemDisabled(E)).map(E=>this.dataService.grouped?{item:E.value,itemIndex:E.offsetIndex}:{item:E,itemIndex:this.dataService.indexOf(E)}),t=Oc(this.word,this.last),n=e.length,o=!isNaN(this.selectionService.selected[0]),r=o?this.selectionService.selected[0]:0,c,p,w;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(w={item:this.defaultItem,itemIndex:-1},n+=1,r+=1),r+=t&&o?1:0,e=Ac(e,r,w),p=0;px(p,e),r;this.dataService.grouped?r=p=>o(p.value)===o(t):r=p=>o(p)===o(t);let c=this.dataService.findIndex(r);return n.dataItem=this.dataService.itemAt(c),n.index=c,n}setState(){let e=this.value,t=this.valueField,n=this.textField,o=this.valuePrimitive;if(this.defaultItem){let p=x(this.defaultItem,t),w=x(e,t);if(!u(e)||w===p){this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0));return}}let r=this.findDataItem({valueField:t,value:e}),c=!(o&&n);r.dataItem?(this.updateState({dataItem:r.dataItem,confirm:!0}),this.resetSelection(r.index)):u(e)&&c?(this.updateState({dataItem:e}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())}handleFilter(e){this.filterChange.emit(e.target.value)}handleClick(){this.windowSize=W(),this.isAdaptive&&this.togglePopup(!0)}pageChange(e){let t=this.virtual;t.skip=e.skip}assignAriaDescribedBy(){let t=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=`k-${fe()}`;let n=`${this.valueLabelId} ${t}`.trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",n)}setComponentClasses(){this.size!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,Q("picker",this.size)),this.rounded!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,be(this.rounded)),this.fillMode!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,De("picker",this.fillMode))}closeActionSheet(){this.actionSheet.toggle(!1),this.filterable&&(this.actionSheetSearchBar.value="",this.filterChange.emit("")),this.closed.emit()}openActionSheet(){this.windowSize=W(),this.actionSheet.toggle(!0),this.cdr.detectChanges(),je(this.optionsList,this.wrapper,this.renderer),this.title=gi(this.wrapper,this.title),fi(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.filterable&&this.actionSheetSearchBar.focus()}}return i.\u0275fac=function(e){return new(e||i)(h(z),h(P),h(Ot),h(Ee),h(We),h(ke),h(Re),h(he),h(Z),h(me),h(vt,8),h(ot))},i.\u0275cmp=U({type:i,selectors:[["kendo-dropdownlist"]],contentQueries:function(e,t,n){if(e&1&&(y(n,_i,5),y(n,bi,5),y(n,Si,5),y(n,$c,5),y(n,vi,5),y(n,Ci,5),y(n,xi,5)),e&2){let o;b(o=S())&&(t.itemTemplate=o.first),b(o=S())&&(t.groupTemplate=o.first),b(o=S())&&(t.fixedGroupTemplate=o.first),b(o=S())&&(t.valueTemplate=o.first),b(o=S())&&(t.headerTemplate=o.first),b(o=S())&&(t.footerTemplate=o.first),b(o=S())&&(t.noDataTemplate=o.first)}},viewQuery:function(e,t){if(e&1&&(A(Ke,5),A(li,7,Ne),A(di,7),A(ci,5)),e&2){let n;b(n=S())&&(t.responsiveRendererComponent=n.first),b(n=S())&&(t.container=n.first),b(n=S())&&(t.popupTemplate=n.first),b(n=S())&&(t.optionsList=n.first)}},hostVars:22,hostBindings:function(e,t){e&1&&T("keydown",function(o){return t.keydown(o)})("keypress",function(o){return t.keypress(o)})("click",function(){return t.click()}),e&2&&(k("aria-controls",t.ariaControls)("disabled",t.isDisabledAttribute)("id",t.focusableId)("dir",t.dir)("tabindex",t.hostTabIndex)("readonly",t.readonlyAttr)("aria-busy",t.isBusy)("role",t.role)("aria-haspopup",t.haspopup)("aria-expanded",t.isAriaExpanded)("aria-invalid",t.hostAriaInvalid)("aria-activedescendant",t.hostAriaActivedescendant),V("k-readonly",t.readonly)("k-dropdownlist",t.hostClasses)("k-picker",t.hostClasses)("k-disabled",t.isDisabledClass)("k-loading",t.isLoading))},inputs:{customIconClass:"customIconClass",showStickyHeader:"showStickyHeader",icon:"icon",svgIcon:"svgIcon",loading:"loading",data:"data",value:"value",textField:"textField",valueField:"valueField",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",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",leftRightArrowsNavigation:"leftRightArrowsNavigation",focusableId:[0,"id","focusableId"]},outputs:{valueChange:"valueChange",filterChange:"filterChange",selectionChange:"selectionChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoDropDownList"],features:[_e([qc,Re,Ee,We,ke,P,{provide:xe,useValue:"kendo.dropdownlist"},{provide:gt,useExisting:te(()=>i)},{provide:Et,useExisting:te(()=>i)}]),ue],decls:16,vars:18,consts:()=>{let s;s=$localize`:kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`;let e;e=$localize`:kendo.dropdownlist.selectButtonText|The text set as aria-label on the select button:Select`;let t;t=$localize`:kendo.dropdownlist.filterInputLabel|The text set as aria-label on the filter input:Filter`;let n;return n=$localize`:kendo.dropdownlist.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,[["popupTemplate",""],["container",""],["sharedPopupActionSheetTemplate",""],["optionsList",""],["searchInput",""],["kendoDropDownListLocalizedMessages","","noDataText",s,"selectButtonText",e,"filterInputLabel",t,"popupLabel",n],["unselectable","on",1,"k-input-inner",3,"click","id"],[1,"k-input-value-text"],[4,"ngIf"],[3,"ngIf"],["class","k-i-loading k-input-loading-icon k-icon",4,"ngIf"],["tabindex","-1","unselectable","on","type","button",1,"k-input-button","k-button","k-icon-button",3,"ngClass","kendoEventsOutsideAngular"],["unselectable","on","innerCssClass","k-button-icon",3,"name","customFontClass","svgIcon"],[3,"resize",4,"ngIf"],[3,"closePopup","textInputChange","sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","subtitle"],[3,"templateContext"],[1,"k-i-loading","k-input-loading-icon","k-icon"],[4,"ngTemplateOutlet"],[3,"resize"],[3,"pageChange","id","size","rounded","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","ariaLive","showStickyHeader"],["class","k-no-data",4,"ngIf"],[1,"k-list-filter",3,"click"],[1,"k-searchbox","k-input",3,"ngClass"],["innerCssClass","k-input-icon","name","search",1,"k-icon",3,"svgIcon"],["role","searchbox","aria-autocomplete","list","aria-haspopup","listbox","tabindex","-1",1,"k-input-inner",3,"ngModelChange","keydown","input","focus","blur","click","filterInput","dir","ngModel"],[1,"k-list",3,"ngClass"],["kendoDropDownsSelectable","",1,"k-list-optionlabel",3,"ngClass","index"],[1,"k-no-data"],[3,"ngIf","templateContext"]]},template:function(e,t){if(e&1){let n=O();X(0,5),g(1,"span",6),T("click",function(r){return v(n),C(r.preventDefault())}),g(2,"span",7),m(3,wd,1,4,null,8)(4,Td,1,1,"ng-template",9),_()(),m(5,yd,1,0,"span",10),g(6,"button",11),M(7,"kendo-icon-wrapper",12),_(),m(8,Ed,1,1,"ng-template",null,0,re)(10,Od,1,0,"kendo-resize-sensor",13),X(11,null,1),g(13,"responsive-renderer",14),T("closePopup",function(){return v(n),C(t.togglePopup(!1))})("textInputChange",function(r){return v(n),C(t.onFilterChange(r))}),_(),m(14,Hd,8,21,"ng-template",null,2,re)}if(e&2){let n=Y(15);l(),a("id",t.valueLabelId),l(2),a("ngIf",t.valueTemplate),l(),a("ngIf",!t.valueTemplate),l(),a("ngIf",t.loading),l(),a("ngClass",t.selectButtonClasses)("kendoEventsOutsideAngular",j(16,un,t.onMouseDown)),k("aria-label",t.messageFor("selectButtonText")),l(),a("name",t.icon||"caret-alt-down")("customFontClass",t.customIconClass)("svgIcon",t.svgIcon||t.caretAltDownSVGIcon),l(3),a("ngIf",t.isOpen||t.isAdaptiveModeEnabled),l(3),a("sharedPopupActionSheetTemplate",n)("isActionSheetExpanded",t.isActionSheetExpanded)("title",t.title)("showTextInput",t.filterable)("subtitle",t.subtitle)}},dependencies:[Ii,mn,_t,Ke,ve,se,Se,jn,Wn,Kn,Ue,wi,Qc,Ht,Ce],encapsulation:2}),i})(),eh=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q))},i.\u0275dir=N({type:i,selectors:[["","kendoMultiSelectCustomItemTemplate",""]]}),i})(),th=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q))},i.\u0275dir=N({type:i,selectors:[["","kendoMultiSelectTagTemplate",""],["","kendoMultiSelectTreeTagTemplate",""]]}),i})(),ih=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(h(q))},i.\u0275dir=N({type:i,selectors:[["","kendoMultiSelectGroupTagTemplate",""],["","kendoMultiSelectTreeGroupTagTemplate",""]]}),i})(),pn=class extends nt{constructor(s){super(),this.dataItem=s}},nh=i=>pi(i)?Object.assign({},{enabled:!0,checkOnClick:!0},i):{enabled:!!i,checkOnClick:!0},sh=(()=>{class i{constructor(e,t){this.renderer=e,this.hostElement=t,this.xCircleIcon=ss,this.rounded="medium",this.fillMode="solid",this.disabledIndices=new Set,this.removeTag=new f,this.hostClasses=!0,this._size="medium"}set size(e){this.renderer.removeClass(this.hostElement.nativeElement,Q("chip-list",this.size)),e&&this.renderer.addClass(this.hostElement.nativeElement,Q("chip-list",e)),this._size=e}get size(){return this._size}get hostId(){return this.id}tagProp(e,t,n){let o=t&&this.getPropField(e,t,n);return x(e,o)}isTagDisabled(e,t){return this.isGroupTag(e)?e.every((n,o)=>this.disabledIndices.has(o+t)):this.disabledIndices.has(t)}deleteTag(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),!this.disabled&&e.which===1&&this.removeTag.emit({tag:t,index:n})}itemId(e,t){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,t)}isGroupTag(e){return e instanceof Array}tagAriaHidden(e){return u(this.focused)&&this.focused!==e}getPropField(e,t,n){let o=t.length-1;if(typeof t=="string")return t;if(this.valueDepth){let r=this.valueDepth[n];return or in e)}}return i.\u0275fac=function(e){return new(e||i)(h(Z),h(z))},i.\u0275cmp=U({type:i,selectors:[["kendo-taglist"]],hostVars:5,hostBindings:function(e,t){e&2&&(k("id",t.hostId),V("k-chip-list",t.hostClasses)("k-selection-multiple",t.hostClasses))},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"},ngContentSelectors:Ud,decls:2,vars:1,consts:[["groupTag",""],["singleTag",""],["class","k-chip",3,"ngClass",4,"ngFor","ngForOf"],[1,"k-chip",3,"ngClass"],[1,"k-chip-content"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"k-chip-actions"],["aria-label","delete",1,"k-chip-action","k-chip-remove-action"],["name","x-circle",3,"mousedown","svgIcon"],[1,"k-chip-label","k-text-ellipsis"],[4,"ngIf"],[3,"ngIf"],[3,"templateContext"]],template:function(e,t){e&1&&(rt(),m(0,tc,10,21,"div",2),at(1)),e&2&&a("ngForOf",t.tags)},dependencies:[ve,Ve,se,Ce,_t],encapsulation:2}),i})(),oh={multi:!0,provide:yt,useExisting:te(()=>dh)},rh="medium",ah="medium",lh="solid",dh=(()=>{class i{constructor(e,t,n,o,r,c,p,w,E,H,K,Fe,$e,Qe){this.wrapper=e,this.localization=t,this.popupService=n,this.dataService=o,this.selectionService=r,this.navigationService=c,this.disabledItemsService=p,this.cdr=w,this.differs=E,this.renderer=H,this._zone=K,this.touchEnabled=Fe,this.injector=$e,this.hostElement=Qe,this.animationDuration=Nt,this.xIcon=pt,this.plusIcon=Ki,this.listBoxId=`k-${fe()}`,this.tagListId=`k-${fe()}`,this.tagPrefix="tag-"+fe(),this.optionPrefix="option-"+fe(),this.focusedTagIndex=void 0,this.showStickyHeader=!0,this.focusableId=`k-${fe()}`,this.autoClose=!0,this.tabindex=0,this.adaptiveMode="none",this.title="",this.disabled=!1,this.readonly=!1,this.filterable=!1,this._listHeight=200,this.clearButton=!0,this.tagMapper=qe=>qe||[],this.allowCustom=!1,this.valueNormalizer=qe=>qe.pipe($(_n=>{let vn=Sn=>typeof Sn=="string"&&_n.toLowerCase()===Sn.toLowerCase(),Cn=this.value.find(vn);if(Cn)return Cn;let bn=this.dataService.find(vn);return bn||_n})),this.filterChange=new f,this.valueChange=new f,this.open=new f,this.opened=new f,this.close=new f,this.closed=new f,this.onFocus=new f,this.onBlur=new f,this.inputFocus=new f,this.inputBlur=new f,this.removeTag=new f,this.hostClasses=!0,this.windowSize="large",this.initialized=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this._valueHolder=[],this.onChangeCallback=qe=>{},this.onTouchedCallback=qe=>{},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new ee,this.subs=new ae,Ie(hi),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}get ariaControls(){return this.isOpen?this.listBoxId:void 0}get isControlRequired(){return Gt(this.formControl)}get formControl(){return this.injector.get(ct,null)?.control||null}focusItemAt(e){let n=(this.allowCustom?-1:0)<=0&&e{this.inputFocus.emit()})}onAdaptiveTextBoxChange(e){if(this.filterable){this.filterChange.emit(e);return}this.searchTextAndFocus(e)}blur(){this.disabled||this.searchbar.blur()}handleFocus(){this._zone.run(()=>{!this.isFocused&&L(this.onFocus)&&this.onFocus.emit(),this.isFocused=!0})}handleBlur(){if(!this.isActionSheetExpanded){if(!this.isFocused)return;this.isFocused=!1,L(this.onBlur)||L(this.filterChange)||L(this.close)||it(this.wrapper.nativeElement)?this._zone.run(()=>{this.closePopup(),this.isOpen&&this.allowCustom||this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup())}}handleInputBlur(){if(!this.isActionSheetExpanded){if(!this.isFocused)return;L(this.inputBlur)||L(this.filterChange)||L(this.close)||it(this.wrapper.nativeElement)||this.formControl?.updateOn==="blur"?this._zone.run(()=>{this.closePopup(),this.isOpen&&this.allowCustom||this.clearFilter(),this.inputBlur.emit(),this.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup())}}onMouseDown(e){e.preventDefault()}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==W()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=W(),this.cdr.detectChanges()),this.isOpen&&!this.isActionSheetExpanded){let e=this.popupRef.popupElement,{min:t,max:n}=this.width;e.style.minWidth=t,e.style.width=n}}get appendTo(){let{appendTo:e}=this.popupSettings;if(!(!e||e==="root"))return e==="component"?this.container:e}set data(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)}get data(){let e=this.virtual;if(e){let t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data}set value(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)}get value(){return this._value}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}set size(e){let t=e||rh;this.renderer.removeClass(this.wrapper.nativeElement,Q("input",this.size)),e!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,Q("input",t)),this._size=t}get size(){return this._size}set rounded(e){let t=e||ah;this.renderer.removeClass(this.wrapper.nativeElement,be(this.rounded)),e!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,be(t)),this._rounded=t}get rounded(){return this._rounded}set fillMode(e){let t=e||lh;this.renderer.removeClass(this.wrapper.nativeElement,De("input",this.fillMode)),e!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,De("input",t)),this._fillMode=t}get fillMode(){return this._fillMode}set placeholder(e){this._placeholder=e||""}get placeholder(){return this.selectedDataItems.length?"":this._placeholder}set subtitle(e){this._subtitle=e}get subtitle(){return this._subtitle||this.placeholder}get isAdaptiveModeEnabled(){return this.adaptiveMode==="auto"}set itemDisabled(e){if(typeof e!="function")throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(e)}.`);this.disabledItemsService.itemDisabled=e}set checkboxes(e){this._checkboxes=nh(e)}get checkboxes(){return this._checkboxes}set virtual(e){this._virtualSettings=Di(e)}get virtual(){return this._virtualSettings}set popupSettings(e){this._popupSettings=Object.assign({animate:!0},e)}get popupSettings(){return this._popupSettings}set listHeight(e){this._listHeight=e}get listHeight(){if(!this.isAdaptive)return this._listHeight}set valuePrimitive(e){this._valuePrimitive=e}get valuePrimitive(){return u(this._valuePrimitive)?this._valuePrimitive:!u(this.valueField)}get dir(){return this.direction}get disabledClass(){return this.disabled}get isLoading(){return this.loading}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&this.windowSize!=="large"}get listContainerClasses(){let e=["k-list-container","k-multiselect-popup"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e}get customItemSizeClass(){return`${this.size?Q("list",this.size):""}`}get width(){let e=0;F()&&(e=this.wrapper.nativeElement.offsetWidth);let t=this.popupSettings.width||e,n=isNaN(e)?e:`${e}px`,o=isNaN(t)?t:`${t}px`;return{min:n,max:o}}get height(){let e=this.popupSettings.height;return u(e)?`${e}px`:"auto"}get activeDescendant(){let e=this.focusedTagIndex,t=this.selectionService.focused,n,o;if(u(e)&&!this.isOpen)o=this.tags[e],n=this.tagPrefix;else if(u(t)&&t!==-1&&this.isOpen)o=this.dataService.itemAt(t),n=this.optionPrefix;else return null;return n+"-"+x(o,this.valueField)}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}applyValue(){this.value=this._valueHolder,this._valueHolder=[],this.emitValueChange(),this.togglePopup(!1)}cancelValue(){this._valueHolder=[],this.togglePopup(!1)}verifySettings(){if(!Pe()||this.value.length===0)return;if(!ri(this.value))throw new Error(ni.array);if(this.valuePrimitive===!0&&cn(this.value))throw new Error(ni.primitive);if(this.valuePrimitive===!1&&!cn(this.value))throw new Error(ni.object);if(!u(this.valueField)!=!u(this.textField))throw new Error(ni.textAndValue)}change(e){if(e.isMultipleSelection)u(e.added)&&e.added.length>0&&e.added.forEach(t=>{let n=this.dataService.itemAt(t),o=this.valuePrimitive&&u(n)&&u(n[this.valueField])?n[this.valueField]:n;o&&(!this.isAdaptive||!this.isActionSheetExpanded?this.value=[...this.value,o]:this._valueHolder=[...this._valueHolder,o])}),u(e.removed)&&e.removed.length>0&&(e.removed.forEach(t=>{let n=this.dataService.itemAt(t),o=r=>x(r,this.valueField)!==x(n,this.valueField);!this.isAdaptive||!this.isActionSheetExpanded?this.value=this.value.filter(o):this._valueHolder=this._valueHolder.filter(o)}),this.cdr.detectChanges());else{if((u(e.added)||u(e.removed))&&(e.added===-1||e.removed===-1)){this.addCustomValue(this.text);return}if(u(e.added)){let n=this.dataService.itemAt(e.added),o=this.valuePrimitive&&u(n)&&u(n[this.valueField])?n[this.valueField]:n;!this.isAdaptive||!this.isActionSheetExpanded?this.value=[...this.value,o]:this._valueHolder=[...this._valueHolder,o]}if(u(e.removed)){let n=this.dataService.itemAt(e.removed),o=r=>x(r,this.valueField)!==x(n,this.valueField);!this.isAdaptive||!this.isActionSheetExpanded?this.value=this.value.filter(o):this._valueHolder=this._valueHolder.filter(o),this.selectionService.focused=e.removed,this.cdr.detectChanges()}}(!this.isAdaptive||!this.isActionSheetExpanded)&&this.emitValueChange()}setState(e){let t=this.dataService.data;this.dataService.grouped&&(t=t.filter(o=>!o.header).map(o=>o.value));let n=hn(this.value,t,this.valueField);this.selectionService.resetSelection(n),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&this.selectionService.focused===void 0&&(this.dataService.itemsCount>0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(cn(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=Ec(e,t,this.valueField)),this.selectedDataItems.length{let r=this.selectedDataItems.find(c=>x(c,this.valueField)===x(o,this.valueField));return u(r)?r:this.resolveDataItemFromTags(o)}).filter(o=>u(o))),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()}handleFilter(e){this.text=e,e&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()}pageChange(e){let t=this.virtual;t.skip=e.skip}clearFilter(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()}handleNavigate(e){let t=this.text&&e.keyCode!==I.ArrowDown&&e.keyCode!==I.ArrowUp,n=this.text&&e.keyCode===I.Enter||e.keyCode===I.Escape,o=!this.text&&e.keyCode===I.Backspace&&this.tags.length>0;if(e.keyCode===I.Backspace&&this.isActionSheetExpanded)return;if(o){this.handleBackspace();return}if(this.disabled||t&&!n)return;let r=e,c=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,p=this.navigationService.process({current:c,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:r});p!==D.Undefined&&(p===D.Enter&&this.isOpen||p!==D.Enter)&&!this.isActionSheetExpanded&&p===D.Tab&&e.preventDefault()}handleRemoveTag({tag:e}){let t=new pn(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()))}clearAll(e){e?.stopImmediatePropagation(),e?.preventDefault(),this.focus(),this.clearFilter(),this.selectionService.lastClickedIndex=null;let t=this.selectionService.selected;this.value=this.value.filter((n,o)=>this.disabledItemsService.isIndexDisabled(t[o])),this.emitValueChange()}addCustomValue(e){this.customValueSubject.next(e)}ngAfterContentChecked(){this.verifySettings()}ngDoCheck(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1}ngOnInit(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.subs.add(this.localization.changes.subscribe(({rtl:e})=>{this.direction=e?"rtl":"ltr",this.cdr.markForCheck()})),this.setState(this.value),this.setComponentClasses(),this.initialized=!0}ngOnChanges(e){let t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Ge("valueNormalizer",e)&&this.createCustomValueStream(),He(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)}ngAfterViewInit(){this.windowSize=W(),this.cdr.detectChanges(),this.searchbar.setInputSize(),this.subs.add(this.renderer.listen(this.searchbar.input.nativeElement,"mousedown",this.handleMousedown.bind(this))),this.subs.add(this.renderer.listen(this.wrapper.nativeElement,"keydown",this.handleKeydown.bind(this))),this.actionSheet&&F()&&(this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-height","60vh"),this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}ngOnDestroy(){this._toggle(!1),this.unsubscribeEvents()}toggle(e){Promise.resolve(null).then(()=>{let t=u(e)?e:!this._open;this._toggle(t),this.cdr.markForCheck()})}get isOpen(){return mi(this._open||this.isActionSheetExpanded)}reset(){this.text="",this.value=[]}messageFor(e){return this.localization.get(e)}writeValue(e){this.value=e||[]}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.cdr.markForCheck(),this.disabled=e}onTagMapperChange(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()}handleClick(){this.windowSize=W(),this.isAdaptive&&this.togglePopup(!0)}set isFocused(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}get isFocused(){return this._isFocused}subscribeEvents(){if(!F())return;let e=()=>this.isOpen,t=()=>!this.isOpen,n=()=>!this.isOpen&&this.focusedTagIndex!==void 0;[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(R(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(R(e)).subscribe(o=>this.handleUp(o.index)),this.navigationService.home.pipe(R(()=>t)).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(R(()=>t)).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(R(n)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(R(n)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe(this.direction==="rtl"?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe(this.direction==="rtl"?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe(o=>this.handleDownKey(o.index)),this.navigationService.selectprevious.pipe(R(e)).subscribe(o=>this.handleSelectUpDown(o)),this.navigationService.selectnext.pipe(R(e)).subscribe(o=>this.handleSelectUpDown(o)),this.navigationService.selectalltobeginning.pipe(R(e)).subscribe(()=>this.handleSelectAllToBeginning()),this.navigationService.selectalltoend.pipe(R(e)).subscribe(()=>this.handleSelectAllToEnd()),le(this.navigationService.pagedown,this.navigationService.pageup).subscribe(o=>{this.isOpen&&(o.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(D[o.originalEvent.code]))})].forEach(o=>this.subs.add(o))}subscribeTouchEvents(){!F()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",e=>{let t=e.target;(this.isFocused||this.isOpen)&&!ui(this.wrapper,t,this.popupRef)&&this._zone.run(()=>{this.blur(),this.isOpen&&this.togglePopup(!1)})}))}unsubscribeEvents(){F()&&(this.subs.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}removeGroupTag(e){let t=this.dataService.data;this.dataService.grouped&&(t=t.filter(o=>!o.header).map(o=>o.value));let n=new Set(e.map(o=>x(o,this.valueField)));this.value=this.value.filter(o=>{let r=hn([o],t,this.valueField)[0],c=this.disabledItemsService.isIndexDisabled(r);return!n.has(x(o,this.valueField))||c}),this.emitValueChange()}removeSingleTag(e){let t=this.dataService.data;this.dataService.grouped&&(t=t.filter(o=>!o.header).map(o=>o.value));let n=hn([e],t,this.valueField)[0];if(!this.disabledItemsService.isIndexDisabled(n))if(wc(n))this.selectionService.deselect(n),this.selectionService.focused=n,this.togglePopup(!1);else{let o=r=>x(r,this.valueField)!==x(e,this.valueField);this.value=this.value.filter(o),this.emitValueChange()}}disabledItemsMapper(){let{selected:e}=this.selectionService;return new Set(this.selectedDataItems.reduce((t,n,o)=>(this.disabledItemsService.isIndexDisabled(e[o])&&t.push(o),t),[]))}createCustomValueStream(){this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(ge(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),this.valueNormalizer,St(()=>(this.loading=!1,this.disabled=!1,this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()}),this.createCustomValueStream(),Je(null)))).subscribe(e=>{if(this.loading=!1,this.disabled=!1,u(e)){let t=this.valuePrimitive?x(e,this.valueField):e,n=this.dataService.indexOf(t),o=n===-1;this.value.indexOf(t)===-1?(this.tags=this.tagMapper([...this.selectedDataItems,e]),o?this.value=[...this.value,t]:this.selectionService.add(n)):!o&&this.selectionService.isSelected(n)?(this.selectionService.deselect(n),this.selectionService.focused=n):this.value=this.value.filter(r=>x(r,this.valueField)!==t),this.emitValueChange()}this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()})})}handleItemChange(e){this.change(e),this.autoClose&&!e.preventClosingPopup&&!this.isActionSheetExpanded&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}handleMousedown(e){if(!this.isActionSheetExpanded){let t=this.searchbar.input.nativeElement;if(e.button===0){if(this.isFocused&&this.isOpen&&e.target===t||((!this.touchEnabled||this.touchEnabled&&e.target.tagName!=="SPAN")&&this.searchbar.focus(),this.popupRef&&this.popupRef.popupElement.contains(e.target)))return;e.preventDefault(),this.togglePopup(!this.isOpen)}}}handleKeydown(e){this.isFocused&&this.isOpen&&(e.ctrlKey||e.metaKey)&&e.keyCode===I.KeyA&&(e.preventDefault(),this.handleSelectAll())}handleEnter(e){let t=this.selectionService,n=this.selectionService.focused;if(this.selectionService.lastClickedIndex=n,this.isOpen&&e.originalEvent.preventDefault(),n===-1){this.allowCustom&&this.text&&this.addCustomValue(this.text);return}t.isSelected(n)?(t.deselect(n),t.focused=n):t.add(n),this.autoClose&&!this.isActionSheetExpanded&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}handleClose(){this.closePopup(),this.searchbar.focus()}handleEnd(){this.focusedTagIndex=this.tags.length-1}handleHome(){this.focusedTagIndex=0}sortSelectionAscending(){return this.selectionService.selected.sort((e,t)=>e-t)}handleSelectAll(){let e=this.selectionService.selected.length,t=this.dataService.data.length,n=this.dataService.data.filter(o=>!o.header).length;!this.dataService.grouped&&e===t||this.dataService.grouped&&e===n?this.clearAll():(this.selectionService.selectFromTo(0,t-1),this.selectionService.emitMultipleAddedRemoved())}handleSelectAllToBeginning(){let e=this.selectionService.selected.length,t=this.dataService.data.length,n=this.selectionService.focused,o=this.sortSelectionAscending()[e-1];e!==t&&(this.selectionService.unselectFromTo(o,n+1),this.selectionService.selectFromTo(0,n)),this.nextTick(()=>this.selectionService.focus(0)),this.selectionService.emitMultipleAddedRemoved()}handleSelectAllToEnd(){let e=this.selectionService.selected.length,t=this.dataService.data.length,n=this.selectionService.focused;if(e!==t&&(this.selectionService.unselectFromTo(n-1,0),this.selectionService.selectFromTo(n,t-1)),this.dataService.grouped){let o=this.dataService.groupIndices[this.dataService.groupIndices.length-1]-1;this.nextTick(()=>this.selectionService.focus(o))}else this.nextTick(()=>this.selectionService.focus(t-1));this.selectionService.emitMultipleAddedRemoved()}handleSelectUpDown(e){let t=this.selectionService.focused;if(!u(t))return;let n;e.originalEvent.key==="ArrowUp"?n=t>0?t-1:t:n=te?(this.selectionService.unselectNotNeededIndices(e,t,this.dataService.data.length),this.selectionService.selectFromTo(e,this.selectionService.lastClickedIndex),this.selectionService.emitMultipleAddedRemoved()):(this.selectionService.unselectNotNeededIndices(t,e,this.dataService.data.length),this.selectionService.selectFromTo(t,e),this.selectionService.emitMultipleAddedRemoved()),this.nextTick(()=>this.selectionService.focus(e))}handleUp(e){this.selectionService.focused=e}handleBackspace(){this.focusedTagIndex!==void 0?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())}handleDelete(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}handleLeftKey(){this.focusedTagIndex===void 0||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:this.focusedTagIndex!==0&&this.focusedTagIndex--}handleDownKey(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()}handleRightKey(){let e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex(this.dataService.grouped?n=x(r.value,this.textField):n=x(r,this.textField),n=u(n)?n.toString().toLowerCase():"",e&&n.startsWith(e)),t);return this.disabledItemsService.isIndexDisabled(o)?o+1>this.dataService.itemsCount?-1:this.findIndex(e,o+1):o}searchTextAndFocus(e){let t=this.findIndex(e);this.selectionService.focused=t}closePopup(){this.togglePopup(!1),this.focusedTagIndex=void 0}openPopup(){this.togglePopup(!0),this.focusedTagIndex=void 0}togglePopup(e){let t=this.disabled||this.readonly,n=this.isOpen===e;if(t||n)return;this.triggerPopupEvents(e)||this._toggle(e)}triggerPopupEvents(e){let t=new nt;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}_toggle(e){this._open=e,this.destroyPopup(),this.isActionSheetExpanded&&(this.closeActionSheet(),this.focus()),this._open&&this.createPopup()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=W(),this.isAdaptive){this.openActionSheet();return}let e=this.direction==="rtl"?"right":"left",t={horizontal:e,vertical:"bottom"},n={horizontal:e,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:t,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:n,popupClass:this.listContainerClasses,positionMode:"absolute"});let o=this.popupRef.popupElement,{min:r,max:c}=this.width;this.appendTo||(this.renderer.setAttribute(o,"role","region"),this.renderer.setAttribute(o,"aria-label",this.messageFor("popupLabel"))),o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=r,o.style.width=c,o.style.height=this.height,o.setAttribute("dir",this.direction);let p=o.querySelector("ul.k-list-ul"),w=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");w&&p.setAttribute("aria-labelledby",w),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),je(this.optionsList,this.searchbar.input,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.togglePopup(!1)})}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)}resolveDataItemFromTags(e){return this.tags&&this.tags.length&&u(e)?this.tags.reduce((n,o)=>{let r=ri(o)?o:[o];return n.push(...r),n},[]).find(n=>x(n,this.valueField)===x(e,this.valueField)):void 0}firstFocusableIndex(e){let t=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){let n=e+1;return n{setTimeout(()=>this._zone.run(e))})}setComponentClasses(){this.size!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,Q("input",this.size)),this.rounded!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,be(this.rounded)),this.fillMode!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,De("input",this.fillMode))}closeActionSheet(){this.actionSheet.toggle(!1),this.actionSheetSearchBar.value="",this.filterable&&this.filterChange.emit(""),this.closed.emit()}openActionSheet(){this.windowSize=W(),this.actionSheet.toggle(!0),this._valueHolder=[...this.value],this.cdr.detectChanges(),je(this.optionsList,this.searchbar.input,this.renderer),this.title=gi(this.searchbar.input,this.title),fi(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.actionSheetSearchBar.focus()}}return i.\u0275fac=function(e){return new(e||i)(h(z),h(P),h(Ot),h(Re),h(Ee),h(We),h(ke),h(me),h(Pn),h(Z),h(he),h(vt,8),h(ot),h(z))},i.\u0275cmp=U({type:i,selectors:[["kendo-multiselect"]],contentQueries:function(e,t,n){if(e&1&&(y(n,_i,5),y(n,eh,5),y(n,bi,5),y(n,Si,5),y(n,vi,5),y(n,Ci,5),y(n,th,5),y(n,ih,5),y(n,xi,5),y(n,jt,5),y(n,Ut,5)),e&2){let o;b(o=S())&&(t.template=o.first),b(o=S())&&(t.customItemTemplate=o.first),b(o=S())&&(t.groupTemplate=o.first),b(o=S())&&(t.fixedGroupTemplate=o.first),b(o=S())&&(t.headerTemplate=o.first),b(o=S())&&(t.footerTemplate=o.first),b(o=S())&&(t.tagTemplate=o.first),b(o=S())&&(t.groupTagTemplate=o.first),b(o=S())&&(t.noDataTemplate=o.first),b(o=S())&&(t.suffixTemplate=o.first),b(o=S())&&(t.prefixTemplate=o.first)}},viewQuery:function(e,t){if(e&1&&(A(Ke,5),A(li,7,Ne),A(ft,7),A(di,7),A(ci,5)),e&2){let n;b(n=S())&&(t.responsiveRendererComponent=n.first),b(n=S())&&(t.container=n.first),b(n=S())&&(t.searchbar=n.first),b(n=S())&&(t.popupTemplate=n.first),b(n=S())&&(t.optionsList=n.first)}},hostVars:11,hostBindings:function(e,t){e&2&&(k("dir",t.dir),V("k-readonly",t.readonly)("k-multiselect",t.hostClasses)("k-input",t.hostClasses)("k-disabled",t.disabledClass)("k-loading",t.isLoading))},inputs:{showStickyHeader:"showStickyHeader",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",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",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",inputAttributes:"inputAttributes"},outputs:{filterChange:"filterChange",valueChange:"valueChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur",inputFocus:"inputFocus",inputBlur:"inputBlur",removeTag:"removeTag"},exportAs:["kendoMultiSelect"],features:[_e([oh,Re,Ee,We,ke,P,{provide:xe,useValue:"kendo.multiselect"},{provide:gt,useExisting:te(()=>i)},{provide:Et,useExisting:te(()=>i)}]),ue],decls:20,vars:44,consts:()=>{let s;s=$localize`:kendo.multiselect.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`;let e;e=$localize`:kendo.multiselect.clearTitle|The title of the clear button:clear`;let t;t=$localize`:kendo.multiselect.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`;let n;n=$localize`:kendo.multiselect.applyButton|The text of the Apply button in the action sheet:Apply`;let o;return o=$localize`:kendo.multiselect.cancelButton|The text of the Cancel button in the action sheet:Cancel`,[["searchbar",""],["popupTemplate",""],["container",""],["sharedPopupActionSheetTemplate",""],["optionsList",""],["default_custom_item_template",""],["kendoMultiSelectLocalizedMessages","","noDataText",s,"clearTitle",e,"popupLabel",t,"applyButton",n,"cancelButton",o],["kendoDropDownSharedEvents","",3,"isFocusedChange","handleBlur","onFocus","hostElement","isFocused"],["class","k-input-prefix k-input-prefix-horizontal",4,"ngIf"],[4,"ngIf"],[1,"k-input-values"],[3,"removeTag","size","rounded","fillMode","id","tags","textField","valueField","focused","disabled","template","groupTemplate","tagPrefix","disabledIndices"],[3,"onNavigate","valueChange","onBlur","onFocus","click","ariaExpanded","ariaControls","id","role","tagListId","isLoading","isFilterable","activeDescendant","userInput","disabled","readonly","tabIndex","isRequired","placeholder","inputAttributes"],["class","k-clear-value","role","button","tabindex","-1",3,"visibility","mousedown",4,"ngIf"],["class","k-icon k-i-loading k-input-loading-icon",4,"ngIf"],["class","k-input-suffix k-input-suffix-horizontal",4,"ngIf"],[3,"resize",4,"ngIf"],[3,"closePopup","textInputChange","navigate","onApply","onCancel","sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","showActionButtons","subtitle","placeholder"],[1,"k-input-prefix","k-input-prefix-horizontal"],[3,"ngTemplateOutlet"],["role","button","tabindex","-1",1,"k-clear-value",3,"mousedown"],["name","x",1,"k-icon",3,"svgIcon"],[1,"k-icon","k-i-loading","k-input-loading-icon"],[1,"k-input-suffix","k-input-suffix-horizontal"],[4,"ngTemplateOutlet"],[3,"resize"],["class","k-list",3,"ngClass",4,"ngIf"],[3,"pageChange","size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","multipleSelection","virtual","checkboxes","isMultiselect","isActionSheetExpanded","showStickyHeader"],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-list",3,"ngClass"],["kendoDropDownsSelectable","",1,"k-list-item","k-custom-item",3,"multipleSelection","index"],[4,"ngIf","ngIfElse"],["name","plus",1,"k-icon",3,"svgIcon"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(e,t){if(e&1){let n=O();X(0,6),de(1,7),wt("isFocusedChange",function(r){return v(n),Dt(t.isFocused,r)||(t.isFocused=r),C(r)}),T("handleBlur",function(){return v(n),C(t.handleBlur())})("onFocus",function(){return v(n),C(t.handleFocus())}),m(2,nc,2,1,"span",8)(3,sc,1,0,"kendo-separator",9),g(4,"div",10)(5,"kendo-taglist",11),T("removeTag",function(r){return v(n),C(t.handleRemoveTag(r))}),_(),g(6,"kendo-searchbar",12,0),T("onNavigate",function(r){return v(n),C(t.handleNavigate(r))})("valueChange",function(r){return v(n),C(t.handleFilter(r))})("onBlur",function(){return v(n),C(t.handleInputBlur())})("onFocus",function(){return v(n),C(t.handleInputFocus())})("click",function(){return v(n),C(t.handleClick())}),_()(),m(8,oc,2,4,"span",13)(9,rc,1,0,"span",14)(10,ac,1,0,"kendo-separator",9)(11,dc,2,1,"span",15),ce(),m(12,hc,1,1,"ng-template",null,1,re)(14,pc,1,0,"kendo-resize-sensor",16),X(15,null,2),g(17,"responsive-renderer",17),T("closePopup",function(){return v(n),C(t.togglePopup(!1))})("textInputChange",function(r){return v(n),C(t.onAdaptiveTextBoxChange(r))})("navigate",function(r){return v(n),C(t.handleNavigate(r))})("onApply",function(){return v(n),C(t.applyValue())})("onCancel",function(){return v(n),C(t.cancelValue())}),_(),m(18,Dc,6,22,"ng-template",null,3,re)}if(e&2){let n=Y(19);l(),a("hostElement",t.hostElement),It("isFocused",t.isFocused),l(),a("ngIf",t.prefixTemplate),l(),a("ngIf",t.prefixTemplate&&t.prefixTemplate.showSeparator),l(2),a("size",t.size)("rounded",t.rounded)("fillMode",t.fillMode)("id",t.tagListId)("tags",t.tags)("textField",t.textField)("valueField",t.valueField)("focused",t.focusedTagIndex)("disabled",t.disabled)("template",t.tagTemplate)("groupTemplate",t.groupTagTemplate)("tagPrefix",t.tagPrefix)("disabledIndices",t.disabledIndices),l(),a("ariaExpanded",t.isOpen)("ariaControls",t.ariaControls)("id",t.focusableId)("role","combobox")("tagListId",t.tagListId)("isLoading",t.loading)("isFilterable",t.filterable)("activeDescendant",t.activeDescendant)("userInput",t.text)("disabled",t.disabled)("readonly",t.readonly||t.isAdaptive)("tabIndex",t.tabIndex)("isRequired",t.isControlRequired)("placeholder",t.placeholder)("inputAttributes",t.inputAttributes),l(2),a("ngIf",!t.loading&&!t.readonly&&t.clearButton&&((t.tags==null?null:t.tags.length)||(t.text==null?null:t.text.length))),l(),a("ngIf",t.loading),l(),a("ngIf",t.suffixTemplate&&t.suffixTemplate.showSeparator),l(),a("ngIf",t.suffixTemplate),l(3),a("ngIf",t.isOpen||t.isAdaptiveModeEnabled),l(3),a("sharedPopupActionSheetTemplate",n)("isActionSheetExpanded",t.isActionSheetExpanded)("title",t.title)("showTextInput",!0)("showActionButtons",!0)("subtitle",t.subtitle)("placeholder",t.placeholder)}},dependencies:[Ii,mn,ft,_t,sh,Ke,ve,se,Se,Ue,wi,Ce,Wt,fn],encapsulation:2}),i})();var st=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({}),i})();var Lt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[Oe,Li,Pi,$i,kt,st,Gi,Be,Yt,Qi,qi,Oe,Li,Pi,$i,kt,st,Gi,Be,Yt,Qi,qi]}),i})();var ch=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[Lt,no,st]}),i})();var gn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({}),i})();var hh=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[Lt,tt,gn,st,tt]}),i})();var ph=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({providers:[{provide:vt,useValue:Vi}],imports:[Lt,tt,gn,st,tt,ts]}),i})();var uh=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[Lt,st]}),i})();var mh=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({providers:[{provide:vt,useValue:Vi}],imports:[Lt,tt,gn,st,tt]}),i})(),cu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=ne({type:i}),i.\u0275inj=ie({imports:[hh,ph,uh,mh,ch]}),i})();export{Xt as a,At as b,zh as c,_i as d,Gc as e,$c as f,Yc as g,dh as h,hh as i,uh as j,mh as k,cu as l}; //# sourceMappingURL=chunk-AGYSBQVO.js.map