import{a as om,b as sm,c as $l,e as rm,g as _i,i as Wl,j as ql,l as am}from"./chunk-AGYSBQVO.js";import{a as im,b as nm}from"./chunk-GQHUYLOL.js";import{$ as Zp,B as cr,C as dr,E as Tp,F as kp,G as Yp,H as Et,I as jl,J as Wn,L as is,aa as Dn,ba as Hl,ca as Xp,ea as em,fa as Kl,h as Un,i as cp,j as Rl,ja as tm,k as Xo,m as co,n as lr,na as Cr,o as dp,p as Ol,q as up,r as hp,s as Ml,t as pp,u as mp}from"./chunk-GZ66TQ2G.js";import{$a as c,$b as Il,$d as Li,$e as fr,$f as vt,A as Ve,Aa as A,Ab as q,Ac as rp,Ae as ht,Af as Bl,B as Uh,Ba as Qh,Bb as Q,Be as ie,Cb as Xe,Ce as pt,Db as K,De as pr,Eb as Yh,Ee as Kn,Fe as Sn,Gb as Zh,Gc as vn,Ge as Zi,H as Wt,Ha as be,Hb as Xh,He as bn,Ia as y,Ib as ep,Ie as xp,J as Xs,Ja as I,Jb as O,Je as Rp,K as _t,Ka as oi,Kb as h,Kd as gp,Ke as Fl,L as pe,Lb as Le,Lc as st,Ld as ur,Le as mr,M as Bh,Ma as Zo,Mb as Ne,Mc as qe,Md as fp,Me as Gl,N as jh,Nb as tp,Nc as oe,Nd as ae,Ne as Op,O as Hh,Ob as ip,Oc as rr,Od as ot,Oe as Mp,Pa as C,Pb as B,Pc as ar,Pd as Ji,Pe as Ap,Pf as Wp,Qa as re,Qb as j,Qc as ap,Qd as bt,Qe as gr,Qf as Je,R as Dl,Rb as D,Rc as Pt,Rd as ri,Re as Lp,Sb as E,Sc as Fe,Se as Np,Sf as Qt,T as Ke,Ta as W,Tb as me,Td as tt,Te as Pp,Ua as Ze,Ub as ee,Ud as _p,Ue as Fp,V as Vn,Vb as De,Vc as Me,Vd as Al,W as Kh,Wa as Jh,Wb as St,Wd as vp,We as Gp,Xa as pi,Xb as El,Xd as Cp,Yb as np,Yd as Sp,Zb as wl,Zd as bp,Ze as Vl,Zf as ho,_a as u,_b as yl,_d as Ll,_e as zl,_f as $n,a as at,aa as $h,ab as le,ac as Y,ae as hr,ag as fi,b as Fh,bb as ir,cc as si,ce as Dp,cf as Vp,cg as qp,db as X,dc as We,de as Nl,df as es,dg as Qp,eb as Ei,ec as et,ee as Ep,eg as Jp,fa as xt,fc as mi,fd as lp,fe as Yi,gc as Mi,ge as Ni,gf as Ul,h as Se,ha as Yo,hb as z,hd as kl,he as yi,hf as zp,ia as qt,ic as lo,id as Cn,ie as Pi,if as _r,j as ao,ja as Wh,jd as lt,je as uo,jf as vr,ka as $e,kc as op,ke as T,kf as ts,la as qh,lb as _,lc as sp,ld as Ce,le as wp,lf as Up,m as Qe,ma as er,mb as M,mc as zn,md as wi,me as Bn,n as fn,nb as l,ne as jn,o as Gh,oa as tr,ob as ce,oc as Tl,od as Ai,oe as Hn,p as Vh,pb as N,pc as sr,pd as xl,q as zh,qa as ue,qc as ut,ra as ne,rb as nr,s as Gn,sa as Te,sb as or,sf as Bp,t as Qi,te as Ii,tf as jp,ua as _n,ue as yp,uf as Hp,ve as Pl,wa as J,we as Ip,xb as g,ya as k,yb as f,yc as fe,ye as gi,yf as Kp,za as ke,zb as b,zc as ve,zf as $p}from"./chunk-IGEIHT67.js";var ye=t=>t!=null,po=t=>t==null,En=t=>Array.isArray(t),Sr=t=>typeof t=="function",qn=t=>typeof t=="string";var rC=t=>po(t)||t.trim().length===0,Ql=t=>!rC(t),mo=t=>!isNaN(t-parseFloat(t)),Ti=t=>t&&t.getTime;var ns={},aC=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;ns.undefined=t=>t;var Ft=(t,n)=>{let e=t+n;if(ns[e])return ns[e];let i=[];return t.replace(aC,(o,s,r,a)=>{i.push(ye(s)?s:r||a)}),ns[e]=o=>{let s=o;for(let r=0;rpo(t)?t===n?0:-1:po(n)?1:t.localeCompare?t.localeCompare(n):t>n?1:tlm(n,t),cC=t=>{if(typeof t.compare=="function")return t.compare;let n=Ft(t.field,!0);return(e,i)=>(t.dir==="asc"?lm:lC)(n(e),n(i))},dC=(t,n)=>0,os=t=>t.filter(n=>ye(n.dir)||ye(n.compare)).map(n=>cC(n)).reduce((n,e)=>(i,o)=>n(i,o)||e(i,o),dC);var uC=t=>(t=ye(t)&&t.getTime?t.getTime():t,t+""),cm=t=>{let n=Ft(t,!0),e=0;return(i,o)=>{i[t]=i[t]||{};let s=n(o),r=uC(s),a=i[t][r]||{__position:e++,aggregates:{},items:[],value:s};return a.items.push(o),i[t][r]=a,i}},dm=(t={})=>(Object.keys(t).forEach(n=>{let e=t[n];Object.keys(e).forEach(i=>{e[i]=e[i].result()})}),t),hC=t=>({average:()=>{let n=0,e=0,i=!1,o=null;return{calc:s=>{mo(s)?(n+=s,e++,i=!0):!i&&o===null&&(o=s)},result:()=>i?n/e:o}},count:()=>{let n=0;return{calc:()=>n++,result:()=>n}},max:()=>{let n=Number.NEGATIVE_INFINITY;return{calc:e=>{n=mo(n)||Ti(n)?n:e,nn}},min:()=>{let n=Number.POSITIVE_INFINITY;return{calc:e=>{n=mo(n)||Ti(n)?n:e,n>e&&(mo(e)||Ti(e))&&(n=e)},result:()=>n}},sum:()=>{let n=0;return{calc:e=>{e=ye(e)?e:0,n+=e},result:()=>n}}})[t](),um=t=>{let n=t.map(e=>{let i=Ft(e.field,!0),o=(e.aggregate||"").toLowerCase(),s=Ft(o,!0);return(r,a)=>{let d=r[e.field]||{},p=s(d)||hC(o);return p.calc(i(a)),d[e.aggregate]=p,r[e.field]=d,r}});return(e,i)=>n.reduce((o,s)=>s(o,i),e)},hm=(t,n)=>(t.push(n),t),br=t=>n=>(e,i,o)=>n(e,t(i,o)),Jl=t=>n=>(e,i)=>t(i)?n(e,i):e,pm=t=>ye(t.__value),pC=t=>pm(t)?t:{__value:t,reduced:!0},mm=t=>n=>(e,i)=>t-- >0?n(e,i):pC(e);var gm=t=>n=>(e,i)=>t--<=0?n(e,i):e,go=(t,n,e)=>{let i=n;for(let o=0,s=e.length;ot),Yl=(t,n=[],e=mC)=>{let i={};if(!n.length)return i;let o=go(e(um(n)),i,t);return dm(o)};var Gt=t=>ye(t.filters);var gC=t=>({"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"})[t.toLowerCase()]||t,fm=t=>{t.filters&&(t.filters=t.filters.map(n=>{let e=Object.assign({},n);return!Gt(n)&&qn(n.operator)&&(e.operator=gC(n.operator)),Gt(n)&&fm(e),e}))},fC=t=>Gt(t)?Object.assign({},t):{filters:En(t)?t:[t],logic:"and"},fo=t=>(ye(t)&&(t=fC(t),fm(t)),t);var _C={or:{concat:(t,n)=>e=>t(e)||n(e),identity:()=>!1},and:{concat:(t,n)=>e=>t(e)&&n(e),identity:()=>!0}},vC={contains:(t,n)=>(t||"").indexOf(n)>=0,doesnotcontain:(t,n)=>(t||"").indexOf(n)===-1,doesnotendwith:(t,n)=>(t||"").indexOf(n,(t||"").length-(n||"").length)<0,doesnotstartwith:(t,n)=>(t||"").lastIndexOf(n,0)===-1,endswith:(t,n)=>(t||"").indexOf(n,(t||"").length-(n||"").length)>=0,eq:(t,n)=>t===n,gt:(t,n)=>t>n,gte:(t,n)=>t>=n,isempty:t=>t==="",isnotempty:t=>t!=="",isnotnull:t=>ye(t),isnull:t=>po(t),lt:(t,n)=>tt<=n,neq:(t,n)=>t!=n,startswith:(t,n)=>(t||"").lastIndexOf(n,0)===0},_m=/^\/Date\((.*?)\)\/$/,CC=(t,n)=>{if(t!=null&&qn(t)){let e=_m.exec(t);if(e)return new Date(+e[1]).getTime();if(n)return t.toLowerCase()}else if(t!=null&&Ti(t))return t.getTime();return t},SC=(t,n,e,i)=>{if(!ye(n))return t;let o=t;if(qn(n)){let s=_m.exec(n);if(s)n=new Date(+s[1]);else{let r=Sr(i);o=a=>{let d=t(a);if(d===null||r&&En(d))return d;let p=typeof d=="string"?d:d+"";return e?p.toLowerCase():p}}}return Ti(n)?s=>{let r=o(s);return Ti(r)?r.getTime():r}:o},bC=({field:t,ignoreCase:n,value:e,operator:i})=>{t=ye(t)?t:r=>r,n=ye(n)?n:!0;let o=SC(Sr(t)?t:Ft(t,!0),e,n,i);e=CC(e,n);let s=Sr(i)?i:vC[i];return r=>s(o(r),e,n)},Zl=t=>{let n=_C[t.logic];return t.filters.filter(ye).map(e=>Gt(e)?Zl(e):bC(e)).reduce(n.concat,n.identity)};var Dr=t=>!t||t.filters.length===0?()=>!0:Zl(t),ss=(t,n)=>!ye(n)||Gt(n)&&n.filters.length===0?t:t.filter(Dr(fo(n)));var Er=t=>(t=En(t)?t:[t],t.map(n=>Object.assign({dir:"asc"},n))),vm=br(t=>t),Qn=(t,n=[],e=vm,i=t)=>{if(n=Er(n),!n.length)return t;let o=n[0],s={},r=go(e(cm(o.field)),s,t),a=[];if(Object.keys(r).forEach(d=>{Object.keys(r[d]).forEach(p=>{let m=r[d][p],v={},S=i;ye(o.aggregates)&&(S=ss(i,{field:o.field,ignoreCase:!1,operator:"eq",value:m.value}),v=Yl(S,o.aggregates)),a[m.__position]={aggregates:v,field:d,items:n.length>1?Qn(m.items,n.slice(1),vm,S):m.items,value:m.value}})}),ye(o.dir)||ye(o.compare)){let d=o.compare,p=os([{field:"value",dir:o.dir,compare:d?(m,v)=>d(m.value,v.value):void 0}]);a.sort(p)}return a};var rs=(t,n,e)=>i=>t(i)?n(i):e(i),Jt=(...t)=>n=>t.reduceRight((e,i)=>i(e),n),Cm=t=>()=>t;var as=(t,n)=>{if(n.some(e=>ye(e.dir)||ye(e.compare))){t=t.slice(0);let e=os(n);t.sort(e)}return t};var DC=(t,n)=>{let e=0;for(let i=0,o=t.length;in?t.filter(n):t,wr=(t,n)=>{let{skip:e,take:i,filter:o,sort:s,group:r}=n,a=[...Er(r||[]),...s||[]];a.length&&(t=as(t,a));let d=ye(o)&&Jl.length,p=ye(r)&&r.length;if(!d&&!p)return{data:i?t.slice(e,e+i):t,total:t.length};let m,v=[],S;if(d?(S=Dr(fo(o)),m=DC(t,S),v.push(Jl(S))):m=t.length,ye(e)&&ye(i)&&(v.push(gm(e)),v.push(mm(i))),v.length){let w=Jt(...v);return{data:p?Qn(t,r,w,EC(t,S)):go(w(hm),[],t),total:m}}return{data:p?Qn(t,r):t,total:m}};var Xl=t=>new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));var ec=t=>Ti(t.value);var O2=Cm("");var ls=t=>n=>[t,n],kC=()=>null,xC=t=>ye(t)&&En(t)&&t.length>0,tc=t=>n=>ye(t(n)),bm=t=>n=>xC(t(n)),cs=(t,n)=>rs(t,n,kC),RC=({skip:t,take:n})=>Math.floor((t||0)/n)+1,ic=(t,n)=>e=>t(e).map(n).join("~"),OC=t=>n=>n.slice(0,n.indexOf(t)),MC=t=>Jt(...t.map(([n,e])=>i=>i.replace(new RegExp(n,"g"),e))),AC=MC([['"',""],[":","-"]]),LC=OC("."),Dm=({field:t,dir:n="asc"})=>`${t}-${n}`,NC=({field:t,aggregate:n})=>`${t}-${n}`,Em=Ft("take"),wm=Ft("aggregates"),PC=Ft("skip"),ym=Ft("group"),nc=Ft("sort",!0),FC=ic(nc,Dm),GC=ic(ym,Dm),VC=ic(wm,NC),zC=t=>`datetime'${t}'`,UC=Jt(zC,LC,AC,JSON.stringify,Xl),BC=({field:t,value:n,ignoreCase:e,operator:i})=>({value:UC(n),field:t,ignoreCase:e,operator:i}),jC=t=>Object.assign({},t,{sort:(nc(t)||[]).filter(({dir:n})=>Ql(n))}),HC=Jt(ls("page"),RC),KC=Jt(ls("pageSize"),Em),$C=Jt(ls("group"),GC),WC=Jt(ls("sort"),FC),qC=Jt(ls("aggregate"),VC),V2=cs(tc(PC),HC),z2=cs(tc(Em),KC),U2=cs(bm(ym),$C),B2=cs(tc(wm),qC),j2=Jt(cs(bm(nc),WC),jC);var Sm=({field:t,operator:n,value:e})=>`${t}~${n}~${e}`,H2=rs(ec,Jt(Sm,BC),Sm);var Tm=(t,n,e)=>(n[t]=e,n),QC=t=>t.replace(/(^[A-Z])/g,(n,e)=>e.toLowerCase()),oc=t=>n=>{let e=n[t];return ye(e)?e:n[QC(t)]},q2=oc("Member"),Q2=oc("AggregateMethodName"),J2=oc("Value"),km=t=>n=>Object.keys(n).reduce(t.bind(null,n),{}),JC=km((t,n,e)=>Tm(e.toLowerCase(),n,t[e])),YC=km((t,n,e)=>Tm(e,n,JC(t[e]))),Im=(t,n)=>ye(t)?t:n,ZC=t=>({aggregates:t.Aggregates||t.aggregates,field:t.Member||t.member||t.field,hasSubgroups:t.HasSubgroups||t.hasSubgroups||!1,items:t.Items||t.items,value:Im(t.Key,Im(t.key,t.value))}),XC=Jt(({field:t,hasSubgroups:n,value:e,aggregates:i,items:o})=>({aggregates:YC(i),field:t,items:n?o.map(XC):o,value:e}),ZC);vn();vn();er();tr();pr();vn();vn();pr();var eS=(t,n)=>{let e=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=Math.max(i.top,e.top),s=Math.max(i.left,e.left),r=Math.min(i.left+i.width,e.left+e.width),a=Math.min(i.top+i.height,e.top+e.height),d=r-s,p=a-o;if(s{let e=0,i=null;return n.forEach(o=>{if(o&&t){let s=eS(t,o);s>e&&(e=s,i=o)}}),i};var tS=()=>{let t=window&&window.navigator.userAgent;if(!t)return!1;let n=!1,e=[],i={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in i)if(i.hasOwnProperty(o)&&(e=t.match(i[o]),e)){n={},n[o]=!0,n[e[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.DOCUMENT_NODE||e[2],10);break}return n},yr=t=>t&&t.ownerDocument||window.document,Rm=t=>{let n=yr(t);return n&&n.defaultView||window},ds=t=>{let n={browser:tS()},e=yr(t);return n.browser.edge||n.browser.safari?e.body:e.documentElement},iS=t=>{if(t&&t.className&&typeof t.className=="string"&&t.className.indexOf("k-auto-scrollable")>-1)return!0;let n=window.getComputedStyle(t,"overflow").overflow;return n.indexOf("auto")>-1||n.indexOf("scroll")>-1},Xi=t=>{let n=ds(t);if(!t||t===document.body||t===document.documentElement)return n;let e=t;for(;e&&e!==document.body&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE&&!iS(e);)e=e.parentNode;return e&&(e===document.body||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)?n:e},Om=(t,n,e)=>{let i={x:0,y:0},o=50;return t-e.left{let e=ds(t);if(t===e)return{top:e.scrollTop,left:e.scrollLeft,bottom:e.scrollTop+n.innerHeight,right:e.scrollLeft+n.innerWidth};{let i=t.getBoundingClientRect();return{bottom:i.top+i.height,right:i.left+i.width,left:i.left,top:i.top}}},Am=(t,n,e)=>{let i=e.getBoundingClientRect();return i.top<=n&&i.left<=t&&n<=i.bottom&&t<=i.right};var Ye=function(t){return t.POINTER_DOWN="pointerdown",t.POINTER_MOVE="pointermove",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.MOUSE_DOWN="mousedown",t.MOUSE_MOVE="mousemove",t.MOUSE_UP="mouseup",t.CONTEXT_MENU="contextmenu",t.TOUCH_START="touchstart",t.TOUCH_MOVE="touchmove",t.TOUCH_END="touchend",t.TOUCH_CANCEL="touchcancel",t.SCROLL="scroll",t.START="KENDO_DRAG_AND_DROP_START",t.MOVE="KENDO_DRAG_AND_DROP_MOVE",t.END="KENDO_DRAG_AND_DROP_END",t.CANCEL="KENDO_DRAG_AND_DROP_CANCEL",t}(Ye||{}),nS=t=>/^touch/.test(t.type),oS=t=>/^(scroll)/.test(t.type),sS=(t,n)=>nS(t)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,scrollX:n.scrollOffset.x,scrollY:n.scrollOffset.y,offsetX:n.offset.x,offsetY:n.offset.y,type:t.type,originalEvent:t,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:oS(t)?{pageX:n.pageOffset.x,pageY:n.pageOffset.y,clientX:n.clientOffset.x,clientY:n.clientOffset.y,scrollX:n.scrollOffset.x,scrollY:n.scrollOffset.y,offsetX:n.offset.x,offsetY:n.offset.y,type:t.type,originalEvent:t,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,scrollX:n.scrollOffset.x,scrollY:n.scrollOffset.y,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,originalEvent:t},wn=()=>{},sc=(t,n,e={})=>{let{onIsPressedChange:i=wn,onIsScrollingChange:o=wn,onVelocityChange:s=wn,onOffsetChange:r=wn,onPageOffsetChange:a=wn,onClientOffsetChange:d=wn,onScrollOffsetChange:p=wn,onInitialScrollOffsetChange:m=wn}=e,v=n.payload,S=v.element,w=v.hint,L=t.autoScrollDirection,F=t.scrollableParent,R=sS(n.event,t);switch(R.type){case Ye.POINTER_DOWN:if(R.type===Ye.POINTER_DOWN&&(!R.originalEvent.isPrimary||R.originalEvent.button!==0))break;case Ye.MOUSE_DOWN:if(R.type===Ye.MOUSE_DOWN&&R.originalEvent.which&&R.originalEvent.which>1||t.ignoreMouse)break;case Ye.TOUCH_START:if(R.type===Ye.TOUCH_START&&R.originalEvent.touches.length!==1)break;case Ye.START:{let x=F||Xi(n.payload.element);m(x instanceof Window?{x:x.scrollX,y:x.scrollY}:{x:x.scrollLeft,y:x.scrollTop}),d({x:R.clientX,y:R.clientY}),a({x:R.pageX,y:R.pageY}),r({x:R.offsetX,y:R.offsetY}),i(!0),v.onPress&&v.onPress(R);break}case Ye.SCROLL:if(R.type===Ye.SCROLL&&!t.pressed)break;let U=F||Xi(S),te=U instanceof Window?{x:U.scrollX,y:U.scrollY}:{x:U.scrollLeft,y:U.scrollTop};R.scrollX=te.x-t.initialScrollOffset.x,R.scrollY=te.y-t.initialScrollOffset.y,p({x:R.scrollX,y:R.scrollY});case Ye.POINTER_MOVE:if(R.type===Ye.POINTER_MOVE&&!R.originalEvent.isPrimary)break;case Ye.MOUSE_MOVE:case Ye.TOUCH_MOVE:if(R.type===Ye.TOUCH_MOVE&&R.originalEvent.touches.length!==1)break;case Ye.MOVE:{if(t.pressed){if(t.autoScroll&&R.originalEvent.type!=="scroll"&&S){let V=yr(S),_e=F||Xi(V.elementFromPoint(R.clientX,R.clientY)),Ee=Om(R.clientX,R.clientY,Mm(_e,Rm(S)));s({x:L&&L.horizontal===!1?0:Ee.x,y:L&&L.vertical===!1?0:Ee.y}),o(Ee.y!==0||Ee.x!==0)}!t.drag&&v.onDragStart&&v.onDragStart(R),v.onDrag&&v.onDrag(R);let x=xm(w||S,t.drops.map(V=>V&&V.element).filter(V=>V!==(w||S))),de=t.drops.find(V=>V.element===x);de&&x&&Am(R.clientX,R.clientY,F||Xi(x))&&x!==S?(t.drop&&t.drop.element)!==x?(t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(R),de.onDragEnter&&de.onDragEnter(R)):de.onDragOver&&de.onDragOver(R):t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(R)}d({x:R.clientX,y:R.clientY}),a({x:R.pageX,y:R.pageY});break}case Ye.POINTER_UP:if(R.type===Ye.POINTER_UP&&!R.originalEvent.isPrimary)break;case Ye.MOUSE_UP:case Ye.TOUCH_END:if(R.type===Ye.TOUCH_END&&R.originalEvent.touches.length!==1)break;case Ye.END:{i(!1),o(!1),p({x:0,y:0}),v.onRelease&&v.onRelease(R),t.drop&&t.drop.onDrop&&t.drop.onDrop(R),t.drag&&v.onDragEnd&&v.onDragEnd(R);break}case Ye.POINTER_CANCEL:case Ye.CONTEXT_MENU:case Ye.TOUCH_CANCEL:case Ye.CANCEL:{i(!1),o(!1),p({x:0,y:0}),v.onDragEnd&&v.onDragEnd(R),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(R);break}default:break}};var rc=(t,n)=>{if(!t)return;let e,i;t===ds(t)?(e=document.body.scrollHeight>window.innerHeight,i=document.body.scrollWidth>window.innerWidth):(e=t.offsetHeight<=t.scrollHeight,i=t.offsetWidth<=t.scrollWidth);let s=t.scrollTop+n.y,r=e&&s>0&&s0&&a({$implicit:t,index:n,data:e});function aS(t,n){t&1&&Xe(0)}var Fm={name:"@progress/kendo-angular-utils",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1716480349,version:"16.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};function lS(t){return t.nodeType===9}var ac=(t,n)=>({event:t,payload:n}),cS="transform .3s ease-in-out",Ae=t=>t!=null;function Lm(t,n){if(t.closest)return t.closest(n);let e=Element.prototype.matches?(o,s)=>o.matches(s):(o,s)=>o.msMatchesSelector(s),i=t;for(;i&&!lS(i);){if(e(i,n))return i;i=i.parentNode}}var dS=(t,n)=>{let e=0,i=null;return n.forEach(o=>{if(o&&t){let s=uS(t,o);s>e&&(e=s,i=o)}}),i},uS=(t,n)=>{let e=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=Math.max(i.top,e.top),s=Math.max(i.left,e.left),r=Math.min(i.left+i.width,e.left+e.width),a=Math.min(i.top+i.height,e.top+e.height),d=r-s,p=a-o;if(s{Object.keys(e).forEach(o=>{t.setStyle(n,o,e[o])})},hS=["pointerdown","mousedown","touchstart"],pS=["pointermove","mousemove","touchmove"],mS=["pointerup","pointercancel","mouseup","contextmenu","touchend","touchcancel"],Gm=(()=>{class t{constructor(){this.dragTarget=null,this.dropTarget=null,this.dragTargets=[],this.dropTargets=[],this.pressed=!1,this.ignoreMouse=!1,this.autoScroll=!0,this.isScrolling=!1,this.scrollableParent=null,this.autoScrollDirection={horizontal:!0,vertical:!0},this.initialClientOffset={x:0,y:0},this.clientOffset={x:0,y:0},this.initialScrollOffset={x:0,y:0},this.scrollOffset={x:0,y:0},this.offset={x:0,y:0},this.pageOffset={x:0,y:0},this.velocity={x:0,y:0},this.dragIndex=null,this.dropIndex=null,this.callbacks={},this.scrollInterval=null,this.setCallbacks()}handleDragAndDrop(e){this.updateState(),sc(this.state,e,this.callbacks)}setPressed(e){this.pressed=e}setScrolling(e){if(this.isScrolling=e,e){let i=Xi(document.elementFromPoint(this.clientOffset.x,this.clientOffset.y));window.clearInterval(this.scrollInterval),this.scrollInterval=window.setInterval(()=>{rc(i,{x:this.velocity.x,y:this.velocity.y})},50)}else this.scrollInterval&&(window.clearInterval(this.scrollInterval),this.scrollInterval=null)}setVelocity(e){this.velocity=e}setOffset(e){this.offset=e}setClientOffset(e){this.clientOffset=e}setPageOffset(e){this.pageOffset=e}setInitialClientOffset(e){this.initialClientOffset=e}setScrollOffset(e){this.scrollOffset=e}setInitialScrollOffset(e){this.initialScrollOffset=e}get dragTargetPresent(){return Ae(this.dragTarget?.element)}get dropTargetPresent(){return Ae(this.dropTarget?.element)}updateState(){this.state={drag:this.dragTarget,drop:this.dropTarget,drags:this.dragTargets,drops:this.dropTargets,pressed:this.pressed,ignoreMouse:this.ignoreMouse,autoScroll:this.autoScroll,isScrolling:this.isScrolling,scrollableParent:this.scrollableParent,autoScrollDirection:this.autoScrollDirection,initialClientOffset:this.initialClientOffset,clientOffset:this.clientOffset,initialScrollOffset:this.initialScrollOffset,scrollOffset:this.scrollOffset,offset:this.offset,pageOffset:this.pageOffset,velocity:this.velocity}}setCallbacks(){this.callbacks={onVelocityChange:this.setVelocity.bind(this),onOffsetChange:this.setOffset.bind(this),onClientOffsetChange:this.setClientOffset.bind(this),onPageOffsetChange:this.setPageOffset.bind(this),onInitialClientOffsetChange:this.setInitialClientOffset.bind(this),onScrollOffsetChange:this.setScrollOffset.bind(this),onInitialScrollOffsetChange:this.setInitialScrollOffset.bind(this),onIsPressedChange:this.setPressed.bind(this),onIsScrollingChange:this.setScrolling.bind(this)}}ngOnDestroy(){this.scrollInterval&&(window.clearInterval(this.scrollInterval),this.scrollInterval=null)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Pm=(()=>{class t{constructor(e){this.element=e,this.pointerEvents="none"}}return t.\u0275fac=function(e){return new(e||t)(c(W))},t.\u0275cmp=k({type:t,selectors:[["kendo-draghint"]],hostVars:2,hostBindings:function(e,i){e&2&&ce("pointer-events",i.pointerEvents)},inputs:{template:"template",directive:"directive",targetIndex:"targetIndex",contextData:"contextData"},decls:1,vars:6,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){e&1&&_(0,aS,1,0,"ng-container",0),e&2&&l("ngTemplateOutlet",i.template)("ngTemplateOutletContext",mi(2,rS,i.directive,i.targetIndex,i.contextData))},dependencies:[Fe],encapsulation:2}),t})(),cc=class{constructor(n){Object.assign(this,n)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}},dc=class{constructor(n){Object.assign(this,n)}},uc=class extends Ii{constructor(n){super(),Object.assign(this,n)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}},hc=class{constructor(n){Object.assign(this,n)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}},pc=class extends Ii{constructor(n){super(),Object.assign(this,n)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}},mc=class{constructor(n){Object.assign(this,n)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}};var gc=class{constructor(n){Object.assign(this,n)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dropTarget}};var Ir=!1,lc=!1,Tr=(()=>{class t{constructor(e,i,o,s,r,a){this.wrapper=e,this.ngZone=i,this.renderer=o,this.service=s,this.viewContainer=r,this.cdr=a,this.hint=!1,this.dragDelay=0,this.threshold=0,this.mode="auto",this.onDragReady=new C,this.onPress=new C,this.onDragStart=new C,this.onDrag=new C,this.onRelease=new C,this.onDragEnd=new C,this.currentDragTarget=null,this.dragTimeout=null,this.pressed=!1,this.dragStarted=!1,this.hintComponent=null,this.defaultHint=null,this.currentDragTargetElement=null,this.scrollableParent=null,this.previousDragTargets=[],this.initialPosition={x:0,y:0},this.position={x:0,y:0},this.positionsMap=new Map,this._dragTargetFilter=null,this._dragDisabled=!1,this._dragData=()=>null,this._dragTargetId=()=>null,pt(Fm)}set dragTargetFilter(e){this._dragTargetFilter=e,this.dragDisabled||this.initializeDragTargets()}get dragTargetFilter(){return this._dragTargetFilter}set dragTargetId(e){if(fe&&typeof e!="function")throw new Error(`dragTargetId must be a function, but received ${JSON.stringify(e)}.`);this._dragTargetId=e}get dragTargetId(){return this._dragTargetId}set dragData(e){if(fe&&typeof e!="function")throw new Error(`dragData must be a function, but received ${JSON.stringify(e)}.`);this._dragData=e}get dragData(){return this._dragData}set dragDisabled(e){this._dragDisabled=e,e?(this.clearPreviousTargets(),this.unsubscribe(),Ae(this.hintElem)&&this.destroyHint()):((Ae(this.wrapper)||Ae(this.currentDragTarget))&&this.subscribe(),this.initializeDragTargets())}get dragDisabled(){return this._dragDisabled}notify(){this.cdr.detectChanges(),this.initializeDragTargets()}get allDragTargets(){return this.queryHost(this.dragTargetFilter)}get dragHandles(){return this.isHandleSelectorValid?this.queryHost(this.dragHandle):null}get hintTemplate(){return Ae(this.hint)&&typeof this.hint=="object"?this.hint.hintTemplate:null}ngAfterViewInit(){let e=Ae(this.wrapper)||Ae(this.currentDragTarget);!this.dragDisabled&&e&&this.subscribe(),!this.dragDisabled&&this.initializeDragTargets()}onPointerDown(e){if(Ae(this.dragHandles)&&!this.isDragHandle(e.target))return;let i=ac(e,this.currentDragTarget);this.service.handleDragAndDrop(i),this.subscribe()}onPointerMove(e){e.preventDefault();let i=ac(e,this.currentDragTarget);this.service.handleDragAndDrop(i)}onPointerUp(e){e.preventDefault();let i=ac(e,this.currentDragTarget);this.service.handleDragAndDrop(i),this.ngZone.runOutsideAngular(()=>{this.subscribe()})}handlePress(e){this.dragDelay>0?this.dragTimeout=window.setTimeout(()=>{this.pressed=!0,this.emitZoneAwareEvent("onDragReady",e)},this.dragDelay):this.pressed=!0;let i=e.originalEvent.target;this.currentDragTargetElement=Lm(i,this.dragTargetFilter),this.currentDragTarget.element=this.currentDragTargetElement,this.service.dragIndex=this.getDragIndex(),this.scrollableParent=this.hintTemplate?document.body:this.currentDragTargetElement?Xi(this.currentDragTargetElement):null,this.emitZoneAwareEvent("onPress",e)}handleDragStart(e){if(!this.pressed){this.dragTimeout&&(window.clearTimeout(this.dragTimeout),this.dragTimeout=null);return}if(Ir=this.emitZoneAwareEvent("onDragStart",e).isDefaultPrevented(),Ir)return;this.position=this.positionsMap.has(this.currentDragTargetElement)?this.positionsMap.get(this.currentDragTargetElement):{x:0,y:0},this.hint?(this.createHint(),this.mode==="auto"&&this.renderer.setStyle(this.currentDragTargetElement,"opacity","0.7")):this.initialPosition={x:e.clientX-this.position.x,y:e.clientY-this.position.y},this.dragStarted=this.threshold===0,this.service.dragTarget=this.currentDragTarget;let i={dragTarget:this.currentDragTargetElement,dragTargetIndex:this.service.dragIndex};this.service.dragTargetId=this.dragTargetId(i);let o=Object.assign({dragTargetId:this.service.dragTargetId},i);this.service.dragData=this.dragData(o)}handleDrag(e){if(!this.pressed||Ir)return;let i=this.hint?this.hintElem:this.currentDragTargetElement;this.position=this.calculatePosition(i,e);let o=Math.abs(this.position.x)0&&(this.dragStarted=!0),lc=this.emitZoneAwareEvent("onDrag",e).isDefaultPrevented(),!lc&&(this.mode==="auto"?this.performDrag():this.dragStarted=!0))}handleRelease(e){this.dragStarted&&this.positionsMap.set(this.currentDragTargetElement,this.position),this.dragTimeout&&(clearTimeout(this.dragTimeout),this.dragTimeout=null,this.pressed=!1),this.emitZoneAwareEvent("onRelease",e)}handleDragEnd(e){if(this.dragStarted){if(this.mode==="auto"){let i=Ae(this.service.dropTarget)&&!Nl(this.service.dropTarget?.element,this.service.dragTarget?.element,!0),o=this.hint?this.hintElem:this.currentDragTargetElement;(i||this.service.dropTargets.length>0&&Ae(o))&&(this.renderer.removeStyle(o,"transform"),Nm(this.renderer,o,{transition:cS}),this.positionsMap.delete(this.currentDragTargetElement))}this.hint&&Ae(this.hintElem)&&(this.destroyHint(),this.mode==="auto"&&this.renderer.removeStyle(this.currentDragTargetElement,"opacity")),this.service.dragTarget=null,this.service.dragIndex=null,this.currentDragTarget.element=null,this.emitZoneAwareEvent("onDragEnd",e),!(Ir||lc)&&(this.dragStarted=!1)}}get nativeElement(){return this.wrapper.nativeElement}get hintElem(){return this.hintTemplate&&Ae(this.hintComponent)?this.hintComponent.instance.element.nativeElement:this.defaultHint}unsubscribe(){this.pointerDownSubscription&&this.pointerDownSubscription.unsubscribe(),this.pointerMoveSubscription&&this.pointerMoveSubscription.unsubscribe(),this.pointerUpSubscription&&this.pointerUpSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}subscribe(){this.ngZone.runOutsideAngular(()=>{if(this.unsubscribe(),!(ae()&&Ae(this.wrapper)))return;let e=this.nativeElement;if(this.service.pressed){let i=pS.map(s=>Wt(document,s)),o=mS.map(s=>Wt(document,s));this.pointerMoveSubscription=_t(...i).pipe(pe(()=>this.dragTargetFilter!=="")).subscribe(s=>this.onPointerMove(s)),this.pointerUpSubscription=_t(...o).subscribe(s=>this.onPointerUp(s)),Ae(this.scrollableParent)&&(this.scrollSubscription=Wt(this.scrollableParent,"scroll").subscribe(s=>this.onPointerMove(s)))}else{let i=hS.map(o=>Wt(e,o));this.pointerDownSubscription=_t(...i).pipe(pe(()=>this.dragTargetFilter!=="")).subscribe(o=>{Lm(o.target,this.isHandleSelectorValid?this.dragHandle:this.dragTargetFilter)&&this.onPointerDown(o)})}})}emitZoneAwareEvent(e,i){let o={dragTarget:this.currentDragTargetElement,dragTargetIndex:this.service.dragIndex},s={dragTarget:this.currentDragTargetElement,dragEvent:i,dragTargetIndex:this.service.dragIndex,dragTargetId:this.dragTargetId(o)};this.hint&&Ae(this.hintElem)&&(s.hintElement=this.hintElem);let r;switch(e){case"onDragReady":r=new dc(s);break;case"onPress":r=new cc(s);break;case"onDragStart":r=new uc(s);break;case"onDrag":r=new pc(s);break;case"onRelease":r=new mc(s);break;case"onDragEnd":r=new hc(s);break;default:break}return this.ngZone.run(()=>{this[e].emit(r)}),r}createHint(){ae()&&Ae(this.wrapper)&&(Ae(this.hint)&&typeof this.hint=="object"?Ae(this.hint.hintTemplate)?this.createCustomHint():this.createDefaultHint():this.createDefaultHint(),this.currentDragTarget.hint=this.hintElem,typeof this.hint=="object"&&Ae(this.hint.appendTo)?this.hint.appendTo.element.nativeElement.appendChild(this.hintElem):document.body.appendChild(this.hintElem))}createDefaultHint(){this.defaultHint=this.currentDragTargetElement.cloneNode(!0),typeof this.hint=="object"&&Ae(this.hint.hintClass)&&vp(this.hint.hintClass).forEach(i=>this.renderer.addClass(this.defaultHint,i))}createCustomHint(){Ae(this.hint.appendTo)?this.hintComponent=this.hint.appendTo.createComponent(Pm):this.hintComponent=this.viewContainer.createComponent(Pm),this.hintComponent.instance.template=this.hintTemplate,this.hintComponent.instance.directive=this,this.hintComponent.instance.targetIndex=this.service.dragIndex;let e={dragTarget:this.currentDragTargetElement,dragTargetId:this.service.dragTargetId,dragTargetIndex:this.service.dragIndex};this.hintComponent.instance.contextData=this.dragData(e),this.hintComponent.changeDetectorRef.detectChanges()}destroyHint(){Ae(this.hintTemplate)?(this.hintComponent.destroy(),this.hintComponent.changeDetectorRef.detectChanges(),this.hintComponent=null):(document.body.removeChild(this.defaultHint),this.defaultHint=null),this.currentDragTarget.hint=null}getDragIndex(){return this.allDragTargets.indexOf(this.currentDragTargetElement)}initializeDragTargets(){if(!Ae(this.allDragTargets)){this.previousDragTargets.length>0&&this.clearPreviousTargets();return}this.allDragTargets.forEach(e=>{this.service.dragTargets.find(o=>o.element===e)||this.service.dragTargets.push({element:e,hint:null,onPress:this.handlePress.bind(this),onRelease:this.handleRelease.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)})}),this.previousDragTargets.length>0&&this.previousDragTargets.filter(i=>!this.allDragTargets.includes(i)).forEach(i=>{let o=this.service.dragTargets.findIndex(s=>s.element===i);o>-1&&this.service.dragTargets.splice(o,1)}),this.previousDragTargets=this.allDragTargets,this.currentDragTarget={element:null,hint:null,onPress:this.handlePress.bind(this),onRelease:this.handleRelease.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)},this.setCursorStyle()}isDragHandle(e){return this.dragHandles.some(i=>Nl(i,e,!0))}get isHandleSelectorValid(){return Ae(this.dragHandle)&&this.dragHandle!==""}setCursorStyle(){ae()&&(Ae(this.dragHandle)&&this.dragHandle!==""?Ae(this.dragHandles)&&this.dragHandles.length>0&&this.dragHandles.forEach(e=>{this.renderer.setStyle(e,"cursor","move")}):this.allDragTargets.forEach(e=>{this.renderer.setStyle(e,"cursor","move")}))}queryHost(e){if(Ae(e)&&e!=="")return Array.from(this.nativeElement.querySelectorAll(e))}clearPreviousTargets(){this.previousDragTargets.forEach(e=>{let i=this.service.dragTargets.findIndex(o=>o.element===e);i>-1&&this.service.dragTargets.splice(i,1)}),this.previousDragTargets=[]}performDrag(){let e=this.hint?this.hintElem:this.currentDragTargetElement;if(e){let i=this.getStylesPerElement(e);Nm(this.renderer,e,i)}}calculatePosition(e,i){let o=null;return e===this.hintElem?o={x:i.clientX,y:i.clientY}:o={x:i.clientX-this.initialPosition.x+i.scrollX,y:i.clientY-this.initialPosition.y+i.scrollY},o}getStylesPerElement(e){if(e===this.hintElem){let i={x:this.position.x-this.initialPosition.x,y:this.position.y-this.initialPosition.y};return{top:`${i.y}px`,left:`${i.x}px`,transition:"none",position:"absolute",zIndex:1999}}else return{transform:`translate(${this.position.x}px, ${this.position.y}px)`,transition:"none"}}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(re),c(X),c(Gm),c(Ei),c(ve))},t.\u0275dir=A({type:t,selectors:[["","kendoDragTargetContainer",""]],inputs:{hint:"hint",dragTargetFilter:"dragTargetFilter",dragHandle:"dragHandle",dragDelay:"dragDelay",threshold:"threshold",dragTargetId:"dragTargetId",dragData:"dragData",dragDisabled:"dragDisabled",mode:"mode"},outputs:{onDragReady:"onDragReady",onPress:"onPress",onDragStart:"onDragStart",onDrag:"onDrag",onRelease:"onRelease",onDragEnd:"onDragEnd"},exportAs:["kendoDragTargetContainer"]}),t})(),kr=(()=>{class t{constructor(e,i,o,s){this.service=e,this.element=i,this.ngZone=o,this.cdr=s,this.onDragEnter=new C,this.onDragOver=new C,this.onDragLeave=new C,this.onDrop=new C,this.currentDropTargetElement=null,this.previousDropTargets=[],this._dropTargetFilter=null,this._dropDisabled=!1,pt(Fm)}set dropTargetFilter(e){this._dropTargetFilter=e,this.dropDisabled||this.initializeDropTargets()}get dropTargetFilter(){return this._dropTargetFilter}set dropDisabled(e){this._dropDisabled=e,e?this.clearPreviousTargets():this.initializeDropTargets()}get dropDisabled(){return this._dropDisabled}notify(){this.cdr.detectChanges(),this.initializeDropTargets()}get nativeElement(){return this.element.nativeElement}ngAfterViewInit(){!this.dropDisabled&&this.initializeDropTargets()}get allDropTargets(){if(Ae(this.dropTargetFilter)&&this.dropTargetFilter!=="")return Array.from(this.nativeElement.querySelectorAll(this.dropTargetFilter))}handleDragEnter(e){if(!this.service.dragTargetPresent||this.service.dropTargetPresent)return;let i=e.originalEvent.target,o=dS(i,this.allDropTargets),s=this.service.dropTargets.find(r=>r.element===o);!Ae(o)||!Ae(s)||(this.currentDropTargetElement=o,this.service.dropTarget=s,this.service.dropIndex=this.getDropIndex(),this.emitZoneAwareEvent("onDragEnter",e))}handleDragLeave(e){!this.service.dragTargetPresent||!this.service.dropTargetPresent||(this.emitZoneAwareEvent("onDragLeave",e),this.currentDropTargetElement=null,this.service.dropTarget=null,this.service.dropIndex=null)}handleDragOver(e){!this.service.dragTargetPresent||!this.service.dropTargetPresent||this.emitZoneAwareEvent("onDragOver",e)}handleDrop(e){!this.service.dragTargetPresent||!this.service.dropTargetPresent||(this.emitZoneAwareEvent("onDrop",e),this.currentDropTargetElement=null,this.service.dropTarget=null,this.service.dropIndex=null)}initializeDropTargets(){if(!Ae(this.allDropTargets)){this.previousDropTargets.length>0&&this.clearPreviousTargets();return}this.allDropTargets.forEach(e=>{this.service.dropTargets.find(o=>o.element===e)||this.service.dropTargets.push({element:e,onDragEnter:this.handleDragEnter.bind(this),onDragLeave:this.handleDragLeave.bind(this),onDragOver:this.handleDragOver.bind(this),onDrop:this.handleDrop.bind(this)})}),this.previousDropTargets.length>0&&this.previousDropTargets.filter(i=>!this.allDropTargets.includes(i)).forEach(i=>{let o=this.service.dropTargets.findIndex(s=>s.element===i);o>-1&&this.service.dropTargets.splice(o,1)}),this.previousDropTargets=this.allDropTargets}emitZoneAwareEvent(e,i){let o={dragTarget:this.service.dragTarget?.element,dropTarget:this.currentDropTargetElement,dragData:this.service.dragData,dragEvent:i,dropTargetIndex:this.service.dropIndex};Ae(this.service.dragTarget?.hint)&&(o.hintElement=this.service.dragTarget.hint);let s=new gc(o);this.ngZone.run(()=>{this[e].emit(s)})}getDropIndex(){return this.allDropTargets.indexOf(this.currentDropTargetElement)}clearPreviousTargets(){this.previousDropTargets.forEach(e=>{let i=this.service.dropTargets.findIndex(o=>o.element===e);i>-1&&this.service.dropTargets.splice(i,1)}),this.previousDropTargets=[]}}return t.\u0275fac=function(e){return new(e||t)(c(Gm),c(W),c(re),c(ve))},t.\u0275dir=A({type:t,selectors:[["","kendoDropTargetContainer",""]],inputs:{dropTargetFilter:"dropTargetFilter",dropDisabled:"dropDisabled"},outputs:{onDragEnter:"onDragEnter",onDragOver:"onDragOver",onDragLeave:"onDragLeave",onDrop:"onDrop"},exportAs:["kendoDropTargetContainer"]}),t})();var Vm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me]}),t})();is();vn();vn();var P=t=>t?new Date(t.getTime()):null;var Fi=(t,n)=>{let e=P(t);return n===0&&e.getHours()===23&&e.setHours(e.getHours()+2),e};var Vt=(t,n)=>{let e=P(t);return e.setDate(e.getDate()+n),Fi(e,t.getHours())};var it=(t,n,e,i=0,o=0,s=0,r=0)=>{let a=new Date(t,n,e,i,o,s,r);return t>-1&&t<100&&a.setFullYear(a.getFullYear()-1900),Fi(a,i)};var zt=t=>{let n=it(t.getFullYear(),t.getMonth()+1,1,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());return Vt(n,-1)};var vc=12,fS=(t,n)=>t.getMonth()!==n?zt(nt(t,-1)):t,nt=(t,n)=>{let e=P(t),i=(e.getMonth()+n)%vc,o=(vc+i)%vc;return e.setMonth(e.getMonth()+n),fS(Fi(e,t.getHours()),o)};var xr=(t,n)=>{let e=t.getMonth(),i=it(n,e,t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());return i.getMonth()===e?i:zt(nt(i,-1))};var Rt=(t,n)=>Fi(xr(t,t.getFullYear()+n),t.getHours());var _o=(t,n)=>Rt(t,100*n);var ai=(t,n)=>Rt(t,10*n);var Cc=(t,n)=>Vt(t,n*7);var us=function(t){return t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward",t}(us||{});var Rr=(t,n,e=us.Forward)=>{let i=P(t),o=(n-i.getDay()+7*e)%7;return i.setDate(i.getDate()+o),Fi(i,t.getHours())};var Or=function(t){return t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t}(Or||{});var yn=(t,n)=>xr(t,n(t.getFullYear()));var en=t=>yn(t,n=>n-n%100);var Sc=(t,n)=>(en(n).getFullYear()-en(t).getFullYear())/100;var Ot=t=>yn(t,n=>n-n%10);var bc=(t,n)=>(Ot(n).getFullYear()-Ot(t).getFullYear())/10;var Dc=(t,n)=>(n.getFullYear()-t.getFullYear())*12+(n.getMonth()-t.getMonth());var Ec=(t,n)=>n.getFullYear()-t.getFullYear();var wc=t=>it(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());var Mr=(t,n)=>{let e=t.getDate(),i=it(t.getFullYear(),n,e,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());return i.getDate()===e?i:zt(nt(i,-1))};var yc=t=>Mr(t,0);var mt=t=>it(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0);var gt=(t,n)=>!t&&!n?!0:t&&n&&t.getTime()===n.getTime();var hs=t=>yn(t,n=>n-n%100+90);var vo=t=>Mr(t,11);var Co=t=>yn(t,n=>n-n%10+9);var zm=(t,n)=>Rr(t,n,us.Backward);var _S=(t,n)=>n!==Or.Monday?Vt(zm(t,n),4):Vt(t,4-(t.getDay()||7)),Ic=(t,n)=>{let e=it(t.getFullYear(),0,1,-6),o=_S(t,n).getTime()-e.getTime(),s=Math.floor(o/864e5);return 1+Math.floor(s/7)},Tc=(t,n=Or.Monday)=>{t=mt(t);let e=Vt(t,-7),i=Vt(t,7),o=Ic(t,n);return o===0?Ic(e,n)+1:o===53&&Ic(i,n)>1?1:o};pr();is();is();er();tr();var Ar=class{constructor(){this.symbols="",this.partMap=[]}};var ze={formatSeparator:"_",twoDigitYearMax:68,defaultDateFormat:"d",defaultLocaleId:"en"};var Jn={DELETE:"Delete",BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",SPACE:" ",END:"End",HOME:"Home",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"};var Yn=t=>new Array(Math.max(t,0)).fill("0").join(""),kc=t=>t.replace(/^0*/,""),Um=({oldText:t,newText:n,formatPattern:e,selectionStart:i,isInCaretMode:o,keyEvent:s})=>{let r=i+t.length-n.length,a=t[r],d=t.substring(0,r),p=n.substring(0,i),m=[];if(d===p&&i>0)return m.push([e[i-1],p[i-1]]),m;if(d.indexOf(p)===0&&o&&(s.key===Jn.DELETE||s.key===Jn.BACKSPACE)||d.indexOf(p)===0&&!o&&(p.length===0||e[p.length-1]!==e[p.length])){let S="";!o&&p.length===1&&m.push([e[0],p[0]]);for(let w=p.length;w(t[n.pattern[0]]=n.type,t);var vS=t=>(n,e)=>{let i=P(n);return i[t](e),i},je=t=>t!=null,jm=()=>!!document,ps=t=>je(t)&&typeof t=="number"&&!Number.isNaN(t),tn=t=>parseInt(t,10),xc=t=>ps(tn(t))&&/^[0-9]+$/.test(t),In=(t,n,e)=>Math.min(e,Math.max(n,t)),Ue=(...t)=>Object.assign(...t);var Hm=t=>typeof t=="function",Km=t=>!je(t)||isNaN(t.getTime())?0:Number(t.getFullYear().toString().slice(-2)),$m=vS("setFullYear"),Wm=t=>{let n=t&&t.match(/S+(\1)/);return n?n[0].length:0},qm=t=>Math.pow(10,3-t),Lr=(t,n,e,i,o,s,r,a)=>!!(t&&t.getFullYear()===n&&t.getMonth()===e&&t.getDate()===i&&t.getHours()===o&&t.getMinutes()===s&&t.getSeconds()===r&&t.getMilliseconds()===a),Gi=t=>je(t)&&t.getTime&&ps(t.getTime());var CS=1,Qm=2e3,SS=1900,bS=2e3,DS=/d|M|H|h|m|s/,Rc=2,ES="M",So=1,Nr=class{constructor({intlService:n,formatPlaceholder:e,format:i,cycleTime:o=!1,twoDigitYearMax:s=ze.twoDigitYearMax,value:r=null,autoCorrectParts:a=!0}){if(this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.dayperiod=!0,this.leadingZero=null,this.typedMonthPart="",this.knownParts="adHhmMsEyS",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y",S:"S"},this._value=this.getDefaultDate(),this.cycleTime=!1,this._partiallyInvalidDate={startDate:null,invalidDateParts:{E:{value:null,date:null,startDateOffset:0},H:{value:null,date:null,startDateOffset:0},M:{value:null,date:null,startDateOffset:0},a:{value:null,date:null,startDateOffset:0},d:{value:null,date:null,startDateOffset:0},h:{value:null,date:null,startDateOffset:0},m:{value:null,date:null,startDateOffset:0},s:{value:null,date:null,startDateOffset:0},y:{value:null,date:null,startDateOffset:0},S:{value:null,date:null,startDateOffset:0}}},this.setOptions({intlService:n,formatPlaceholder:e,format:i,cycleTime:o,twoDigitYearMax:s,value:r,autoCorrectParts:a}),r)this._value=P(r);else{this._value=this.getDefaultDate();let d=this.dateFormatString(this.value,this.format).symbols;for(let p=0;pe||i.type!=="literal"&&i.type!=="dayperiod"&&this.getExisting(i.pattern[0]);return this.intl.splitDateFormat(this.format,this.localeId).reduce(n,!1)}getValue(){for(let n=0;nRc)r+=d[m][p];else if(this.getInvalidDatePartValue(m)){let w=Yn(v.length-S.length)+S;r+=w,p+=v.length-1}else r+=d[m][p]}else if(this.getInvalidDatePartValue(m)){let S=this.getInvalidDatePartValue(m).toString(),w=Yn(v.length-S.length)+S;r+=w,p+=v.length-1}else r+=d[m][p]}else r+=i[p]}i=r}return this.merge(i,o)}getFormattedInvalidDates(n=""){let e=n||this.format,i={E:"",H:"",M:"",a:"",d:"",h:"",m:"",s:"",y:"",S:""};return Object.keys(this._partiallyInvalidDate.invalidDateParts).forEach(o=>{let s=this.getInvalidDatePart(o).date;if(s){let r=this.intl.formatDate(s,e,this.localeId);i[o]=r}}),i}modifyExisting(n){let e=this.dateFormatString(this.value,this.format).symbols;for(let i=0;i11)&&d){this.setExisting(n,!1),this.resetInvalidDateSymbol(n);return}if(!d){if(S<0)S=In(11+(S%11+1),0,11);else{let V=je(m)?S:(e-So)%12;S=In(V,0,11)}S=In(S,0,11)}S=In(S,0,11)}else if(n==="d"){if(d){if(w<=0||w>31){this.setExisting(n,!1),this.resetInvalidDateSymbol(n);return}}else if(!d){if(je(m)&&(w<=0||w>31)){this.setExisting(n,!1),this.resetInvalidDateSymbol(n);return}if(e<0){let V=je(m)?w:1+(31-Math.abs(e%31));w=In(V,1,31)}else{let V=je(m)?w:e%31;w=In(V,1,31)}w=In(w,1,31)}}let te=it(v,S,w,L,F,R,U),x=r||a?this.modifyDateSymbolWithValue(i,n,r?S:w):null,de=Lr(te,v,S,w,L,F,R,U);this.getValue()&&Lr(te,v,S,w,L,F,R,U)?(i=P(te),this.markDatePartsAsExisting()):r&&x?x.getMonth()===S?this.getExisting("d")?de?(i=P(te),this.resetInvalidDateSymbol(n)):(s=!0,this.setInvalidDatePart(n,{value:S,date:P(x),startDateOffset:e,startDate:P(this.value)}),this.setExisting(n,!1)):de?(this.resetInvalidDateSymbol(n),i=P(te),this.getExisting("M")&&this.getExisting("y")&&(this.setExisting("d",!0),this.resetInvalidDateSymbol("d"))):(this.resetInvalidDateSymbol(n),i=P(x)):(s=!0,this.setInvalidDatePart(n,{value:S,date:P(x),startDateOffset:e,startDate:P(this.value)}),this.setExisting(n,!1)):a&&x&&(x.getDate()===w?this.getExisting("M")?de?(i=P(te),this.resetInvalidDateSymbol(n)):(s=!0,this.setInvalidDatePart(n,{value:w,date:P(x),startDateOffset:e,startDate:P(this.value)}),this.setExisting(n,!1)):de?(i=P(te),this.resetInvalidDateSymbol(n),this.getExisting("d")&&this.getExisting("y")&&(this.setExisting("M",!0),this.resetInvalidDateSymbol("M"))):(this.resetInvalidDateSymbol(n),i=P(x)):(s=!0,this.setInvalidDatePart(n,{value:w,date:P(this.value),startDateOffset:e,startDate:P(this.value)}),this.setExisting(n,!1)))}else switch(n){case"y":i.setFullYear(i.getFullYear()+e);break;case"M":i=nt(this.value,e);break;case"d":case"E":i.setDate(i.getDate()+e);break;case"h":case"H":i.setHours(i.getHours()+e),o=!0;break;case"m":i.setMinutes(i.getMinutes()+e),o=!0;break;case"s":i.setSeconds(i.getSeconds()+e),o=!0;break;case"S":i.setMilliseconds(i.getMilliseconds()+e);break;case"a":i.setHours(i.getHours()+12*e),o=!0;break;default:break}this.shouldNormalizeCentury()&&(i=this.normalizeCentury(i)),o&&!this.cycleTime&&(i.getDate(),this._value.getDate()),s||(this.setExisting(n,!0),this._value=i,this.getValue()&&this.resetInvalidDate())}parsePart({symbol:n,currentChar:e,resetSegmentValue:i,cycleSegmentValue:o,rawTextValue:s,isDeleting:r,originalFormat:a}){let d=!o,p=this.dateFormatString(this.value,this.format),m=p.partMap.filter(Z=>Z.type==="literal").map((Z,Oe)=>({datePartIndex:Oe,type:Z.type,pattern:Z.pattern,literal:""})),v=p.partMap.map(Z=>({type:Z.type,pattern:Z.pattern,text:""}));for(let Z=0;ZZ.type==="month").some(Z=>Z.pattern.length>Rc),hasInvalidDatePart:!1};if(!e)if(d)for(let Z=0;Z=0;if(Ge||ui||Oi)return this.resetLeadingZero(),this.setExisting(n,!1),this.resetInvalidDateSymbol(n),Ue(w,{value:null,switchToNext:!1})}else return this.resetLeadingZero(),this.setExisting(n,!1),this.resetInvalidDateSymbol(n),Ue(w,{value:null,switchToNext:!1});let L=this.intl.formatDate(this.value,this.format,this.localeId),F=p.symbols,R=!1,U="",te="",x="",de="",V="",_e="",Ee="";for(let Z=0;Z0?x.length+Cts.length,x.length>Zt))return Ue(w,{value:null,switchToNext:!1});if(!he||he&&!this.autoCorrectParts){te="",x="",U="",_e="",R=!1;for(let Z=0;Z0?x.length+Ct-1&&Be<12&&(we=P(this.value),we.setMonth(Be),we.getMonth()!==Be&&(we=zt(nt(we,-1))))}n==="y"&&(we=it(parseInt(kt,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),(d&&Gi(we)||!d&&we)&&this.date&&we.getDate()!==this.value.getDate()&&(we=zt(nt(we,-1))))}if(d&&Gi(we)||!d&&we){let Be=this.isPeekDateOverflowingDatePart({useBasePrefixAndSuffix:ui,middle:kt,patternValue:Pn,basePrefix:de,baseSuffix:V,prefix:U,suffix:_e,symbol:n,patternLength:so,leadingZero:Nn}),$t=Be.switchToNext;return this.shouldNormalizeCentury()&&(we=this.normalizeCentury(we)),n==="H"&&we.getHours()>=12&&this.setExisting("a",!0),this._value=we,this.setExisting(n,!0),this.resetInvalidDateSymbol(n),this.autoCorrectParts||(n==="M"?this.getExisting("M")&&this.getExisting("y")&&(this.setExisting("d",!0),this.resetInvalidDateSymbol("d")):n==="d"&&this.getExisting("d")&&this.getExisting("y")&&(this.setExisting("M",!0),this.resetInvalidDateSymbol("M")),this.hasInvalidDatePart()||(this.markDatePartsAsExisting(),!Be.peekedDate&&Be.switchToNext&&!this.autoCorrectParts&&(n==="M"||n==="d"&&Be.parsedPeekedValue===30&&this.value.getMonth()===CS&&($t=!1)))),Ue(w,{value:this.value,switchToNext:$t})}}if(Dt&&(we=this.intl.parseDate(U+Dt+_e,this.format,this.localeId),we))return this._value=we,this.setExisting(n,!0),Ue(w,{value:this.value,switchToNext:!1});if(Ie&&(we=this.intl.parseDate(U+Ie+_e,this.format)||this.intl.parseDate(de+Ie+V,this.format),we))return this._value=we,this.setExisting(n,!0),Ue(w,{value:this.value,switchToNext:!0});if(Ki&&this.setExisting(n,!1),!this.autoCorrectParts){let Z,Oe=d?x:kt,Ge=tn(Oe);if(ps(Ge)&&xc(Oe)){if(n==="d"&&(Ge<=0||Ge>31)||n==="M"&&(Ge<=0||Ge>11)){if(d)return Ue(w,{value:null,switchToNext:!1});Oe=e,Ge=tn(Oe)}if(!ps(Ge)||!xc(Oe))return Ue(w,{value:null,switchToNext:!1});Z=n==="M"?Ge-So:Ge;let ui=n==="M",Oi=n==="d",Be=P(this._value),$t=this._partiallyInvalidDate.invalidDateParts||{},$o=$t.y.value||Be.getFullYear(),$i=ui?Z:$t.M.value||Be.getMonth(),Wi=Oi?Z:$t.d.value||$t.E.value||Be.getDate(),Wo=$t.h.value||$t.H.value||Be.getHours(),qo=$t.m.value||Be.getMinutes(),Qo=$t.s.value||Be.getSeconds(),Jo=$t.S.value||Be.getMilliseconds(),mn=it($o,$i,Wi,Wo,qo,Qo,Jo),Fn=Lr(mn,$o,$i,Wi,Wo,qo,Qo,Jo),hi=ui||Oi?this.modifyDateSymbolWithValue(Be,n,ui?$i:Wi):null,qi=!1;if(ui&&hi?hi.getMonth()===$i?this.getExisting("d")?Fn?(Be=P(mn),this.resetInvalidDateSymbol(n)):(qi=!0,this.setInvalidDatePart(n,{value:$i,date:P(hi),startDate:P(this.value)}),this.setExisting(n,!1)):Fn?(this.resetInvalidDateSymbol(n),Be=P(mn),this.getExisting("M")&&this.getExisting("y")&&(this.setExisting("d",!0),this.resetInvalidDateSymbol("d"))):(this.resetInvalidDateSymbol(n),Be=P(hi)):(qi=!0,this.setInvalidDatePart(n,{value:$i,date:P(hi),startDate:P(this.value)}),this.setExisting(n,!1)):Oi&&hi&&(hi.getDate()===Wi?this.getExisting("M")?Fn?(Be=P(mn),this.resetInvalidDateSymbol(n)):(qi=!0,this.setInvalidDatePart(n,{value:Wi,date:P(hi),startDate:P(this.value)}),this.setExisting(n,!1)):Fn?(Be=P(mn),this.resetInvalidDateSymbol(n),this.getExisting("d")&&this.getExisting("y")&&(this.setExisting("M",!0),this.resetInvalidDateSymbol("M"))):(this.resetInvalidDateSymbol(n),Be=P(hi)):(qi=!0,this.setInvalidDatePart(n,{value:Wi,date:P(this.value),startDate:P(this.value)}),this.setExisting(n,!1))),!qi){if(this.setExisting(n,!0),d&&!Gi(we)){let ro=this.intl.parseDate(de+kt+V,this.format,this.localeId);Gi(ro)&&(this._value=ro)}else this._value=Be;this.getValue()&&this.resetInvalidDate()}let gn=!1;return n==="M"?Ge>=2||Oe.length>=2?gn=!0:gn=!1:he?gn=this.isPeekDateOverflowingDatePart({useBasePrefixAndSuffix:!this.autoCorrectParts,middle:kt,patternValue:Pn,basePrefix:de,baseSuffix:V,prefix:U,suffix:_e,symbol:n,patternLength:so,leadingZero:Nn}).switchToNext:gn=Oe.length>Zt,Ue(w,{value:null,switchToNext:gn,hasInvalidDatePart:qi})}}return Ue(w,{value:null,switchToNext:!1})}symbolMap(n){return this.intl.splitDateFormat(this.format,this.localeId).reduce(Bm,{})[n]}resetLeadingZero(){let n=this.leadingZero!==null;return this.setLeadingZero(null),n}setLeadingZero(n){this.leadingZero=n}getLeadingZero(){return this.leadingZero||{}}normalizeCentury(n){if(!je(n))return n;let e=Km(n),i=this.getNormalizedCenturyBase(e);return $m(n,i+e)}incrementLeadingZero(n){let e=this.leadingZero||{};e[n]=(e[n]||0)+1,this.leadingZero=e}isAbbrMonth(n,e){let i=this.partPattern(n,e);return i.type==="month"&&i.names}partPattern(n,e){return n.filter(i=>i.pattern.indexOf(e)!==-1)[0]}peek(n,e){let i=n.replace(/^0*/,"")+"0";return Yn(e.length-i.length)+i}matchMonth(n){if(this.typedMonthPart+=n.toLowerCase(),this.monthNames.length===0)return"";for(;this.typedMonthPart.length>0;){for(let i=0;i=1&&e<=12&&e.toString()===this.typedMonthPart)return this.monthNames[e-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}matchDayPeriod(n,e){let i=n.toLowerCase();if(e==="a"&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(i))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(i))return this.dayPeriods.pm}return""}allFormattedMonths(n="en"){let e=this.intl.splitDateFormat(this.format,this.localeId);for(let i=0;i0;)o.push(this.symbols[i[a].pattern[0]]||ze.formatSeparator),s.push(i[a]),d--}let r=new Ar;return r.symbols=o.join(""),r.partMap=s,r}merge(n,e){let i="",o="",s=e.symbols,r=!1,a=0,d=this.getFormattedInvalidDates(s);for(let p=s.length-1;p>=0;p--){let m=this.getPartsForSegment(e,p);if(this.knownParts.indexOf(s[p])===-1||this.getExisting(s[p]))this.autoCorrectParts?i=n[p]+i:n.length!==s.length?r?i=n[p]+i:a>0?(i=n[p]+i,a--,a<=0&&(r=!0)):i=(n[p+n.length-s.length]||"")+i:i=n[p]+i,o=s[p]+o;else{let v=s[p],S=0;if(this.autoCorrectParts||!this.autoCorrectParts&&!this.getInvalidDatePartValue(v)){for(;p>=0&&v===s[p];)p--;p++}if(this.leadingZero&&this.leadingZero[v])i="0"+i;else if(!this.autoCorrectParts&&this.getInvalidDatePartValue(v)){let w=this.getInvalidDatePartValue(v).toString();v==="M"?(w=(tn(this.getInvalidDatePartValue(v))+So).toString(),m.length>Rc?i=d[v][p]+i:(w=(tn(this.getInvalidDatePartValue(v))+So).toString(),i=Yn(m.length-w.length)+w+i,S=m.length-1,a=w.length-m.length)):(i=Yn(m.length-w.length)+w+i,S=m.length-1,a=w.length-m.length)}else i=this.dateFieldName(e.partMap[p])+i;for(;o.lengththis.twoDigitYearMax?SS:bS}shouldNormalizeCentury(){return this.intl.splitDateFormat(this.format).some(n=>n.pattern==="yy")}resetInvalidDate(){this._partiallyInvalidDate.startDate=null,Object.keys(this._partiallyInvalidDate.invalidDateParts).forEach(n=>{this.resetInvalidDatePart(n)})}resetInvalidDateSymbol(n){this.resetInvalidDatePart(n);let e=!0;Object.keys(this._partiallyInvalidDate.invalidDateParts).forEach(i=>{this._partiallyInvalidDate.invalidDateParts[i]&&je(this._partiallyInvalidDate.invalidDateParts[i].value)&&(e=!1)}),e&&this.resetInvalidDate()}resetInvalidDatePart(n){this._partiallyInvalidDate.invalidDateParts[n]&&(this._partiallyInvalidDate.invalidDateParts[n]={value:null,date:null,startDateOffset:0})}getInvalidDatePart(n){return this._partiallyInvalidDate.invalidDateParts[n]||{}}getInvalidDatePartValue(n){return(this._partiallyInvalidDate.invalidDateParts[n]||{}).value}setInvalidDatePart(n,{value:e=null,date:i=null,startDateOffset:o=0,startDate:s=null}){this._partiallyInvalidDate.invalidDateParts[n]&&(this._partiallyInvalidDate.invalidDateParts[n].value=e,this._partiallyInvalidDate.invalidDateParts[n].date=i,this._partiallyInvalidDate.invalidDateParts[n].startDateOffset=o,this._partiallyInvalidDate.startDate=s)}hasInvalidDatePart(){let n=!1;return Object.keys(this._partiallyInvalidDate.invalidDateParts).forEach(e=>{this._partiallyInvalidDate.invalidDateParts[e]&&je(this._partiallyInvalidDate.invalidDateParts[e].value)&&(n=!0)}),n}modifyDateSymbolWithOffset(n,e,i){let o=P(n),s=!1;switch(e){case"y":o.setFullYear(o.getFullYear()+i);break;case"M":o=nt(this.value,i);break;case"d":case"E":o.setDate(o.getDate()+i);break;case"h":case"H":o.setHours(o.getHours()+i),s=!0;break;case"m":o.setMinutes(o.getMinutes()+i),s=!0;break;case"s":o.setSeconds(o.getSeconds()+i),s=!0;break;case"S":o.setMilliseconds(o.getMilliseconds()+i);break;case"a":o.setHours(o.getHours()+12*i),s=!0;break;default:break}return{date:o,timeModified:s}}modifyDateSymbolWithValue(n,e,i){let o=P(n);switch(e){case"y":o.setFullYear(i);break;case"M":o=nt(n,i-n.getMonth());break;case"d":case"E":o.setDate(i);break;case"h":case"H":o.setHours(i);break;case"m":o.setMinutes(i);break;case"s":o.setSeconds(i);break;case"S":o.setMilliseconds(i);break;case"a":o.setHours(i);break;default:break}return o}markDatePartsAsExisting(){this.modifyExisting(!0)}getPartsForSegment(n,e){let i=n.partMap[e],o=[];for(let s=e;s=0;s--){let r=n.partMap[s];if(i.type===r.type&&i.pattern===r.pattern)o.unshift(r);else break}return o}isPeekDateOverflowingDatePart({useBasePrefixAndSuffix:n,middle:e,patternValue:i,basePrefix:o,baseSuffix:s,prefix:r,suffix:a,symbol:d,patternLength:p,leadingZero:m}){let v=this.peek(e,i),S=n?`${o}${v}${s}`:`${r}${v}${a}`,w=this.intl.parseDate(S,this.format,this.localeId),F=((this.leadingZero||{})[d]||0)+kc(e).length>=p,R=tn(v),U=w===null||(m[d]?i.length<=e.length:F);return{peekedDate:w,peekedDateString:S,peekedValue:v,parsedPeekedValue:R,switchToNext:U}}};var vi={BACKSPACE:8,DELETE:46,TAB:9,ENTER:13,ESCAPE:27,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,SPACE:32,END:35,HOME:36,PAGE_UP:33,PAGE_DOWN:34};var wS={events:{}},Pr=class{constructor(n){this.options=Ue({},wS,n)}destroy(){}trigger(n,e={}){let i={defaultPrevented:!1,preventDefault:()=>{i.defaultPrevented=!0}};return Hm(this.options.events[n])?(this.options.events[n](Ue(i,e,{sender:this})),i.defaultPrevented):!1}};var Ut=function(t){return t.None="none",t.Caret="caret",t.Selection="selection",t}(Ut||{});var Vi=1,Jm="dragStart",Ym="drop",Zm="touchstart",Xm="mousedown",eg="mouseup",tg="click",Fr="input",Gr="keydown",Vr="focus",zr="blur",ig="paste",ng="DOMMouseScroll",Ur="mousewheel",og="valueChange",sg="inputEnd",rg="blurEnd",ag="focusEnd",Br="change",Oc={format:"d",hasPlaceholder:!1,placeholder:null,cycleTime:!0,locale:null,steps:{millisecond:Vi,second:Vi,minute:Vi,hour:Vi,day:Vi,month:Vi,year:Vi},formatPlaceholder:null,events:{[og]:null,[Fr]:null,[sg]:null,[Vr]:null,[ag]:null,[zr]:null,[rg]:null,[Gr]:null,[Ur]:null,[Br]:null},selectNearestSegmentOnFocus:!1,selectPreviousSegmentOnBackspace:!1,enableMouseWheel:!1,allowCaretMode:!1,autoSwitchParts:!0,autoSwitchKeys:[],twoDigitYearMax:ze.twoDigitYearMax,autoCorrectParts:!0,autoFill:!1},ms=class extends Pr{constructor(n,e){super(e),this.dateObject=null,this.currentText="",this.currentFormat="",this.interactionMode=Ut.None,this.previousElementSelection={start:0,end:0},this.init(n,e)}get value(){return this.dateObject&&this.dateObject.getValue()}init(n,e){let i=Gi(this.options.value)?P(this.options.value):new Date(e.formattedValue);Gi(i)||(i=null),this.element=n,this.options=Ue({},Oc,e,{steps:Object.assign({},Oc.steps,e.steps)}),this.intl=this.options.intlService,this.dateObject=this.createDateObject(),this.dateObject.setValue(i),this.setTextAndFormat(),this.bindEvents(),this.resetSegmentValue=!0,this.interactionMode=Ut.None,this.forceUpdate()}destroy(){this.unbindEvents(),this.dateObject=null,super.destroy()}bindEvents(){this.onElementDragStart=this.onElementDragStart.bind(this),this.element.addEventListener(Jm,this.onElementDragStart),this.onElementDrop=this.onElementDrop.bind(this),this.element.addEventListener(Ym,this.onElementDrop),this.onElementClick=this.onElementClick.bind(this),this.element.addEventListener(tg,this.onElementClick),this.onElementMouseDown=this.onElementMouseDown.bind(this),this.element.addEventListener(Xm,this.onElementMouseDown),this.element.addEventListener(Zm,this.onElementMouseDown),this.onElementMouseUp=this.onElementMouseUp.bind(this),this.element.addEventListener(eg,this.onElementMouseUp),this.onElementInput=this.onElementInput.bind(this),this.element.addEventListener(Fr,this.onElementInput),this.onElementKeyDown=this.onElementKeyDown.bind(this),this.element.addEventListener(Gr,this.onElementKeyDown),this.onElementFocus=this.onElementFocus.bind(this),this.element.addEventListener(Vr,this.onElementFocus),this.onElementBlur=this.onElementBlur.bind(this),this.element.addEventListener(zr,this.onElementBlur),this.onElementChange=this.onElementChange.bind(this),this.element.addEventListener(Br,this.onElementChange),this.onElementPaste=this.onElementPaste.bind(this),this.element.addEventListener(ig,this.onElementPaste),this.onElementMouseWheel=this.onElementMouseWheel.bind(this),this.element.addEventListener(ng,this.onElementMouseWheel),this.element.addEventListener(Ur,this.onElementMouseWheel)}unbindEvents(){this.element.removeEventListener(Jm,this.onElementDragStart),this.element.removeEventListener(Ym,this.onElementDrop),this.element.removeEventListener(Zm,this.onElementMouseDown),this.element.removeEventListener(Xm,this.onElementMouseDown),this.element.removeEventListener(eg,this.onElementMouseUp),this.element.removeEventListener(tg,this.onElementClick),this.element.removeEventListener(Fr,this.onElementInput),this.element.removeEventListener(Gr,this.onElementKeyDown),this.element.removeEventListener(Vr,this.onElementFocus),this.element.removeEventListener(zr,this.onElementBlur),this.element.removeEventListener(Br,this.onElementChange),this.element.removeEventListener(ig,this.onElementPaste),this.element.removeEventListener(ng,this.onElementMouseWheel),this.element.removeEventListener(Ur,this.onElementMouseWheel)}setOptions(n,e=!1){this.options=Ue({},this.options,n,{steps:Object.assign({},Oc.steps,n.steps)}),this.setDateObjectOptions(),e&&(this.unbindEvents(),this.init(this.element,this.options))}setDateObjectOptions(){if(this.dateObject){let n=this.getDateObjectOptions();this.dateObject.setOptions(n)}}resetLocale(){this.unbindEvents(),this.init(this.element,this.options)}isInCaretMode(){return this.interactionMode===Ut.Caret}focus(){this.element.focus(),this.options.selectNearestSegmentOnFocus&&this.selectNearestSegment(0)}onElementDragStart(n){n.preventDefault()}onElementDrop(n){n.preventDefault()}onElementMouseDown(){this.mouseDownStarted=!0,this.focusedPriorToMouseDown=this.isActive}onElementMouseUp(n){this.mouseDownStarted=!1,n.preventDefault()}onElementClick(n){this.mouseDownStarted=!1,this.switchedPartOnPreviousKeyAction=!1;let e=this.selection;if(this.isInCaretMode()&&this.forceUpdate(),n.detail!==3)if(this.isActive&&this.options.selectNearestSegmentOnFocus){let i=this.element.selectionStart!==this.element.selectionEnd,o=je(this.options.placeholder)&&!this.dateObject.hasValue()&&!this.focusedPriorToMouseDown,r=!i&&o?0:this.caret()[0];this.selectNearestSegment(r)}else this.setSelection(this.selectionByIndex(e.start))}onElementInput(n){this.triggerInput({event:n});let e=this.elementValue;if(!this.element||!this.dateObject)return;let i=this.switchedPartOnPreviousKeyAction;if(this.isPasteInProgress){this.options.allowCaretMode&&(this.resetSegmentValue=!1),this.updateOnPaste(n),this.isPasteInProgress=!1;return}let o=this.keyDownEvent||{},s=o.keyCode===vi.BACKSPACE||o.key===Jn.BACKSPACE,r=o.keyCode===vi.DELETE||o.key===Jn.DELETE,a=this.interactionMode;this.options.allowCaretMode&&a!==Ut.Caret&&!r&&!s&&(this.resetSegmentValue=!0),this.options.allowCaretMode?this.interactionMode=Ut.Caret:this.interactionMode=Ut.Selection;let d=this.isInCaretMode();if(d&&this.keyDownEvent.key===Jn.SPACE){this.restorePreviousInputEventState();return}let p=this.dateObject&&this.dateObject.getValue(),m=this.dateObject?this.dateObject.value:null,{text:v,format:S}=this.dateObject.getTextAndFormat();this.currentFormat=S;let w="";d?s||r?w=this.previousElementValue:a===Ut.Caret?w=this.previousElementValue:w=v:w=v;let L=this.elementValue,F=Um({oldText:w,newText:L,formatPattern:this.currentFormat,selectionStart:this.selection.start,isInCaretMode:d,keyEvent:this.keyDownEvent});if(F&&F.length&&F[0]&&F[0][1]!==ze.formatSeparator&&(this.switchedPartOnPreviousKeyAction=!1),d&&(!F||F.length===0)){this.restorePreviousInputEventState();return}else if(d&&F.length===1){if(!F[0]||!F[0][0]){this.restorePreviousInputEventState();return}else if(d&&F[0]&&(F[0][0]===ze.formatSeparator||F[0][1]===ze.formatSeparator)){this.restorePreviousInputEventState();return}}let R=F.length===1&&F[0][1]===ze.formatSeparator,U=[],te=!1,x=null;if(!R)for(let Dt=0;Dt1,V=U[U.length-1],_e=V&&!je(V.value),Ee=d&&(s||r)&&_e,he=V?V.resetPart:!1,rt=this.dateObject.getValue(),Nt=!gt(p,rt),Zt=this.dateObject.value,Ct,we=this.selection;if(d){let Dt=F&&F.length>0?F[0][0]:null,Ie=this.dateObject.getLeadingZero()[Dt];F.length&&F[0][0]!==ze.formatSeparator?te?(this.forceUpdateWithSelection(),this.switchDateSegment(1)):he?(Ct=this.currentFormat[we.start],Ct?(this.forceUpdate(),this.setSelection(this.selectionBySymbol(Ct))):this.restorePreviousInputEventState()):Ee?(this.forceUpdate(),F.length&&F[0][0]!==ze.formatSeparator&&this.setSelection(this.selectionBySymbol(F[0][0]))):_e?n.data==="0"&&Ie||(je(p)&&!je(rt)?this.restorePreviousInputEventState():!je(p)&&je(rt)?this.forceUpdateWithSelection():je(p)&&je(rt)?Nt?this.forceUpdateWithSelection():this.restorePreviousInputEventState():!je(p)&&!je(rt)?this.forceUpdateWithSelection():m!==Zt||this.restorePreviousInputEventState()):_e||de||this.forceUpdateWithSelection():!this.options.autoSwitchParts&&F[0][1]===ze.formatSeparator||this.setSelection(this.selectionBySymbol(F[0][0]))}else d||(this.forceUpdate(),F.length&&F[0][0]!==ze.formatSeparator&&this.setSelection(this.selectionBySymbol(F[0][0])),this.options.autoSwitchParts?R?(this.resetSegmentValue=!0,i||this.switchDateSegment(1),this.switchedPartOnPreviousKeyAction=!0):te&&(this.switchDateSegment(1),this.switchedPartOnPreviousKeyAction=!0):V&&V.switchToNext?this.resetSegmentValue=!0:R&&(this.resetSegmentValue=!0,i||this.switchDateSegment(1),this.switchedPartOnPreviousKeyAction=!0),s&&this.options.selectPreviousSegmentOnBackspace&&this.switchDateSegment(-1));this.tryTriggerValueChange({oldValue:p,event:n}),this.triggerInputEnd({event:n,error:x,oldElementValue:e,newElementValue:this.elementValue}),d&&this.setTextAndFormat()}onElementFocus(n){this.triggerFocus({event:n})||(this.isActive=!0,this.interactionMode=Ut.None,this.switchedPartOnPreviousKeyAction=!1,this.refreshElementValue(),this.mouseDownStarted||this.caret(0,this.elementValue.length),this.mouseDownStarted=!1,this.triggerFocusEnd({event:n}))}onElementBlur(n){this.resetSegmentValue=!0,this.isActive=!1,!this.triggerBlur({event:n})&&(this.options.autoFill&&this.autoFill(),this.interactionMode=Ut.None,this.switchedPartOnPreviousKeyAction=!1,this.refreshElementValue(),this.triggerBlurEnd({event:n}))}onElementChange(n){this.triggerChange({event:n})}onElementKeyDown(n){if(this.triggerKeyDown({event:n}))return;let{start:e,end:i}=this.selection,o=n;if(this.keyDownEvent=n,this.previousElementValue=this.element.value,this.previousElementSelection={start:e,end:i},this.keyEventMatchesAutoSwitchKeys(n)){let p=n.keyCode===vi.TAB;if(p){let{start:m,end:v}=this.selection;if(n.shiftKey&&p?this.switchDateSegment(-1):this.switchDateSegment(1),m!==this.selection.start||v!==this.selection.end){n.preventDefault();return}}else{n.preventDefault(),this.switchDateSegment(1);return}}let s=this.currentFormat[this.selection.start],r=this.getStepFromSymbol(s),a=!1,d=this.elementValue;if(!(n.altKey||n.ctrlKey||n.metaKey||n.keyCode===vi.TAB)){switch(n.keyCode){case vi.ARROW_LEFT:this.switchDateSegment(-1),a=!0,this.switchedPartOnPreviousKeyAction=!1;break;case vi.ARROW_UP:this.modifyDateSegmentValue(r,s,o),d!==this.elementValue&&this.triggerInputEnd({event:n,error:null,newElementValue:this.elementValue,oldElementValue:d}),a=!0,this.switchedPartOnPreviousKeyAction=!1;break;case vi.ARROW_RIGHT:this.switchDateSegment(1),a=!0,this.switchedPartOnPreviousKeyAction=!1;break;case vi.ARROW_DOWN:this.modifyDateSegmentValue(-r,s,o),d!==this.elementValue&&this.triggerInputEnd({event:n,error:null,newElementValue:this.elementValue,oldElementValue:d}),a=!0,this.switchedPartOnPreviousKeyAction=!1;break;case vi.ENTER:break;case vi.HOME:this.selectNearestSegment(0),a=!0,this.switchedPartOnPreviousKeyAction=!1,this.resetSegmentValue=!0;break;case vi.END:this.selectNearestSegment(this.elementValue.length),a=!0,this.switchedPartOnPreviousKeyAction=!1,this.resetSegmentValue=!0;break;default:return}a&&n.preventDefault()}}onElementPaste(){this.isPasteInProgress=!0}onElementMouseWheel(n){let e=this.elementValue;if(!this.options.enableMouseWheel||this.triggerMouseWheel({event:n})||!this.isActive)return;let i=n;i.shiftKey?this.switchDateSegment((i.wheelDelta||-i.detail)>0?-1:1):this.modifyDateSegmentValue((i.wheelDelta||-i.detail)>0?1:-1),i.returnValue=!1,i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),e!==this.elementValue&&this.triggerInputEnd({event:n,error:null,newElementValue:this.elementValue,oldElementValue:e})}updateOnPaste(n){let e=this.intl.parseDate(this.elementValue,this.inputFormat)||this.value;je(e)&&this.dateObject.shouldNormalizeCentury()&&(e=this.dateObject.normalizeCentury(e));let i=this.dateObject&&this.dateObject.getValue();this.writeValue(e),this.tryTriggerValueChange({oldValue:i,event:n})}get elementValue(){return(this.element||{}).value||""}get inputFormat(){return this.options.format?typeof this.options.format=="string"?this.options.format:this.options.format.inputFormat:ze.defaultDateFormat}get displayFormat(){return this.options.format?typeof this.options.format=="string"?this.options.format:this.options.format.displayFormat:ze.defaultDateFormat}get selection(){let n={start:0,end:0};return this.element!==null&&this.element.selectionStart!==void 0&&(n={start:this.element.selectionStart,end:this.element.selectionEnd}),n}setSelection(n){this.element&&document.activeElement===this.element&&(this.element.setSelectionRange(n.start,n.end),n.start!==n.end&&(this.interactionMode=Ut.Selection))}selectionBySymbol(n){let e=-1,i=0;for(let o=0;o=0;i++,o--){if(i=0&&this.currentFormat[o]!==ze.formatSeparator){e=this.selectionBySymbol(this.currentFormat[o]);break}}return e}switchDateSegment(n){let e=this.selection;if(this.isInCaretMode()){let d=e.start,p=this.currentFormat[d-1],m="",v="";if(n<0){for(let S=d+n;S>=0;S--)if(v=this.currentFormat[S],v!==ze.formatSeparator&&v!==p){d=S,m=v;break}}else for(let S=d+n;S0?i:o-1)),this.resetSegmentValue=!0,this.interactionMode=Ut.None;return}let s=this.currentFormat[i],r=i+n;for(;r>0&&r=0&&aa&&(a+1!==i||r+1!==o)?(this.setSelection({start:a+1,end:r+1}),this.resetSegmentValue=!0):r=0;e++,i--){if(e=0&&this.currentFormat[i]!=="_"){this.selectDateSegment(this.currentFormat[i]);return}}}selectDateSegment(n){let e=-1,i=0;for(let o=0;oi.toString().toLowerCase().trim());return e.indexOf(n.keyCode.toString())>=0||e.indexOf(n.keyCode)>=0||e.indexOf(n.key.toLowerCase().trim())>=0}autoFill(){let n=this.dateObject,e=new Date,i,o,s,r,a,d;(n.date||n.month||n.year||n.hours||n.minutes||n.seconds)&&(s=n.year?n.value.getFullYear():e.getFullYear(),o=n.month?n.value.getMonth():e.getMonth(),i=n.date?n.value.getDate():e.getDate(),r=n.hours?n.value.getHours():e.getHours(),a=n.minutes?n.value.getMinutes():e.getMinutes(),d=n.seconds?n.value.getSeconds():e.getSeconds(),n.setValue(new Date(s,o,i,r,a,d)),this.refreshElementValue(),this.triggerValueChange())}};var IS=["kendoCalendarView",""],Rg=(t,n)=>({$implicit:t,cellContext:n});function TS(t,n){t&1&&(g(0,"td",3),ee(1,"\xA0"),f())}function kS(t,n){if(t&1&&(g(0,"tr",4)(1,"th",5),ee(2),f()()),t&2){let e=h();M("aria-hidden",e.ariaHidden),u(),l("colSpan",e.colSpan),u(),De(e.title)}}function xS(t,n){if(t&1&&ee(0),t&2){let e=h(3).$implicit,i=h();St(" ",i.getWeekNumber(i.firstDate(e))," ")}}function RS(t,n){}function OS(t,n){if(t&1){let e=K();g(0,"td",9),O("click",function(){y(e);let o=h(2).$implicit,s=h();return I(s.handleWeekNumberClick(o))}),_(1,xS,1,1,"ng-template",6)(2,RS,0,0,"ng-template",10),f()}if(t&2){let e=h(2).$implicit,i=h();u(),l("ngIf",!i.weekNumberTemplateRef),u(),l("ngIf",i.weekNumberTemplateRef)("ngTemplateOutlet",i.weekNumberTemplateRef)("ngTemplateOutletContext",et(4,Rg,i.firstDate(e),i.getWeekNumberContext(e)))}}function MS(t,n){if(t&1&&_(0,OS,3,7,"td",8),t&2){let e=h().$implicit,i=h(),o=me(1);l("ngIf",i.firstDate(e))("ngIfElse",o)}}function AS(t,n){if(t&1&&ee(0),t&2){let e=h(2).$implicit;De(e.formattedValue)}}function LS(t,n){}function NS(t,n){if(t&1&&_(0,LS,0,0,"ng-template",15),t&2){let e=h(2).$implicit,i=h(2);l("ngTemplateOutlet",i.templateRef)("ngTemplateOutletContext",et(2,Rg,e.value,e))}}function PS(t,n){if(t&1&&(g(0,"td",12)(1,"span",13),_(2,AS,1,1,"ng-template",6)(3,NS,1,5,null,14),f()()),t&2){let e=h(),i=e.$implicit,o=e.index,s=h().index,r=h();l("ngClass",r.getStyles(i))("title",i.title),M("id",i.id)("data-cell-index",r.tableCellIndex(s,o))("aria-selected",i.isSelected||i.isRangeStart||i.isRangeMid||i.isRangeEnd)("aria-disabled",i.isDisabled)("aria-label",r.getMonthLabel(i.value)),u(2),l("ngIf",!r.templateRef),u(),l("ngIf",r.templateRef)}}function FS(t,n){if(t&1&&(q(0),_(1,PS,4,9,"td",11),Q()),t&2){let e=n.$implicit,i=h(2),o=me(1);u(),l("ngIf",i.shouldRenderCellContent(e))("ngIfElse",o)}}function GS(t,n){if(t&1&&(g(0,"tr",4),_(1,MS,1,2,"ng-template",6)(2,FS,2,2,"ng-container",7),f()),t&2){let e=n.$implicit,i=h();u(),l("ngIf",i.weekNumber),u(),l("kForOf",e)}}var Og=t=>({date:t,className:"k-pointer-events-none"}),VS=t=>({date:t});function zS(t,n){if(t&1&&(g(0,"caption",7),ee(1),f()),t&2){let e=h().date,i=h();l("ngClass",i.getCaptionClass()),u(),De(i.getCaptionTitle(e))}}function US(t,n){if(t&1&&(g(0,"th",11),ee(1),f()),t&2){let e=n.$implicit,i=n.index,o=h(3);M("aria-label",o.wideWeekNames[i]),u(),De(e)}}function BS(t,n){if(t&1&&(g(0,"thead",8)(1,"tr",9),_(2,US,2,2,"th",10),f()()),t&2){let e=h(2);u(2),l("ngForOf",e.weekNames)}}function jS(t,n){if(t&1){let e=K();g(0,"table",3),O("focus",function(){y(e);let o=h();return I(o.handleClassicCalendarFocus())})("blur",function(o){y(e);let s=h();return I(s.handleClassicCalendarBlur(o))}),_(1,zS,2,2,"caption",4)(2,BS,3,1,"thead",5),g(3,"tbody",6),O("cellClick",function(o){y(e);let s=h();return I(s.cellClick.emit(o))})("weekNumberCellClick",function(o){y(e);let s=h();return I(s.weekNumberCellClick.emit(o))})("cellEnter",function(o){y(e);let s=h();return I(s.cellEnter.emit(o))})("cellLeave",function(o){y(e);let s=h();return I(s.cellLeave.emit(o))})("focusedCellId",function(o){y(e);let s=h();return I(s.focusedCellChange.emit(o))}),f()()}if(t&2){let e=n.date,i=n.className,o=h();l("ngClass",i),M("role",o.views>=2?"none":"grid")("aria-labelledby",o.id)("aria-activedescendant",o.getActiveDescendant)("tabindex",o.getTabIndex),u(),l("ngIf",o.showViewHeader),u(),l("ngIf",o.isMonthView()),u(),l("allowReverse",o.allowReverse)("showOtherMonthDays",o.showOtherMonthDays)("activeView",o.activeView)("isActive",o.isActive)("min",o.min)("max",o.max)("cellUID",o.cellUID)("focusedDate",o.focusedDate)("selectedDates",o.selectedDates)("selectionRange",o.selectionRange)("activeRangeEnd",o.activeRangeEnd)("weekNumber",o.weekNumber)("templateRef",o.cellTemplateRef)("weekNumberTemplateRef",o.weekNumberTemplateRef)("viewDate",e)}}function HS(t,n){}function KS(t,n){if(t&1&&_(0,HS,0,0,"ng-template",12),t&2){let e=h(),i=me(1);l("ngTemplateOutlet",i)("ngTemplateOutletContext",We(2,Og,e.nextAnimationDate))}}function $S(t,n){}function WS(t,n){if(t&1&&_(0,$S,0,0,"ng-template",12),t&2){let e=n.$implicit;h();let i=me(1);l("ngTemplateOutlet",i)("ngTemplateOutletContext",We(2,VS,e))}}function qS(t,n){}function QS(t,n){if(t&1&&_(0,qS,0,0,"ng-template",12),t&2){let e=h(),i=me(1);l("ngTemplateOutlet",i)("ngTemplateOutletContext",We(2,Og,e.prevAnimationDate))}}var JS=(t,n,e)=>({title:t,activeView:n,date:e}),Xr=t=>({click:t}),Mg=(t,n,e)=>({$implicit:t,activeView:n,date:e});function YS(t,n){}function ZS(t,n){if(t&1&&_(0,YS,0,0,"ng-template",2),t&2){let e=h();l("ngTemplateOutlet",e.headerTemplateRef)("ngTemplateOutletContext",mi(2,JS,e.title,e.activeViewValue,e.currentDate))}}function XS(t,n){if(t&1&&ee(0),t&2){let e=h(2);De(e.title)}}function eb(t,n){}function tb(t,n){if(t&1){let e=K();g(0,"button",11),O("click",function(){y(e);let o=h(2);return I(o.prevButtonClick.emit())}),f()}if(t&2){let e=h(2);l("size",e.size)("svgIcon",e.chevronLeftIcon)("disabled",e.isPrevDisabled)("title",e.prevButtonTitle),M("aria-disabled",e.isPrevDisabled)}}function ib(t,n){if(t&1){let e=K();g(0,"button",12),O("click",function(){y(e);let o=h(2);return I(o.nextButtonClick.emit())}),f()}if(t&2){let e=h(2);l("svgIcon",e.chevronRightIcon)("disabled",e.isNextDisabled)("title",e.nextButtonTitle),M("aria-disabled",e.isNextDisabled)}}function nb(t,n){if(t&1&&(g(0,"button",3),_(1,XS,1,1,"ng-template",4)(2,eb,0,0,"ng-template",5),f(),b(3,"span",6),g(4,"span",7),_(5,tb,1,5,"button",8),g(6,"button",9),ee(7),f(),_(8,ib,1,4,"button",10),f()),t&2){let e=h();l("id",e.id)("size",e.size)("disabled",!e.navigate)("kendoEventsOutsideAngular",We(17,Xr,e.handleNavigation))("title",e.parentViewButtonTitle)("scope",e),u(),l("ngIf",!e.titleTemplateRef),u(),l("ngIf",e.titleTemplateRef)("ngTemplateOutlet",e.titleTemplateRef)("ngTemplateOutletContext",mi(19,Mg,e.title,e.activeViewValue,e.currentDate)),u(3),l("ngIf",e.showNavigationButtons),u(),l("size",e.size)("disabled",!e.todayAvailable)("kendoEventsOutsideAngular",We(23,Xr,e.handleTodayClick))("scope",e),u(),St(" ",e.todayMessage," "),u(),l("ngIf",e.showNavigationButtons)}}var ob=(t,n)=>({activeView:t,date:n});function sb(t,n){}function rb(t,n){if(t&1&&_(0,sb,0,0,"ng-template",2),t&2){let e=h();l("ngTemplateOutlet",e.footerTemplateRef)("ngTemplateOutletContext",et(2,ob,e.activeViewValue,e.currentDate))}}function ab(t,n){if(t&1&&(g(0,"button",3),ee(1),f()),t&2){let e=h();u(),St(" ",e.intl.formatDate(e.getToday(),"D")," ")}}function lb(t,n){if(t&1){let e=K();g(0,"kendo-calendar-header",4),O("todayButtonClick",function(o){y(e);let s=h();return I(s.handleTodayButtonClick({selectedDates:[o],focusedDate:o}))})("prevButtonClick",function(){y(e);let o=h();return I(o.navigateView(o.prevView))})("nextButtonClick",function(){y(e);let o=h();return I(o.navigateView(o.nextView))}),f()}if(t&2){let e=h();l("activeView",e.activeViewEnum)("currentDate",e.activeDate)("size",e.size)("min",e.min)("max",e.max)("id",e.headerId)("rangeLength",e.views)("titleTemplateRef",e.headerTitleTemplateRef==null?null:e.headerTitleTemplateRef.templateRef)("headerTemplateRef",e.headerTemplateRef==null?null:e.headerTemplateRef.templateRef)("isPrevDisabled",e.isPrevDisabled)("isNextDisabled",e.isNextDisabled)("showNavigationButtons",!0)("orientation",e.orientation)}}function cb(t,n){if(t&1&&b(0,"kendo-calendar-footer",5),t&2){let e=h();l("footerTemplateRef",e.footerTemplateRef==null?null:e.footerTemplateRef.templateRef)("activeViewValue",e.activeView)("currentDate",e.activeDate)}}var db=["*"],Ag=["list"];function ub(t,n){if(t&1&&ee(0),t&2){let e=h().$implicit,i=h();De(i.service.navigationTitle(e))}}function hb(t,n){}function pb(t,n){if(t&1&&(g(0,"li")(1,"span"),_(2,ub,1,1,"ng-template",5)(3,hb,0,0,"ng-template",6),f()()),t&2){let e=n.$implicit,i=n.index,o=h();M("data-date-index",i),u(),N("k-calendar-navigation-marker",o.service.isRangeStart(e)),u(),l("ngIf",!o.templateRef),u(),l("ngIf",o.templateRef)("ngTemplateOutlet",o.templateRef)("ngTemplateOutletContext",mi(7,Mg,o.service.navigationTitle(e),o.activeViewValue,e))}}function mb(t,n){if(t&1&&(g(0,"th",12),ee(1),f()),t&2){let e=n.$implicit,i=n.index,o=h(2);M("aria-label",o.wideWeekNames[i]),u(),De(e)}}function gb(t,n){if(t&1&&(g(0,"table",8)(1,"thead",9)(2,"tr",10),_(3,mb,2,2,"th",11),f()()()),t&2){let e=h();ce("table-layout","auto"),u(3),l("ngForOf",e.weekNames)}}function fb(t,n){t&1&&b(0,"col")}function _b(t,n){if(t&1){let e=K();g(0,"tbody",13),O("cellClick",function(o){y(e);let s=h();return I(s.cellClick.emit(o))})("weekNumberCellClick",function(o){y(e);let s=h();return I(s.weekNumberCellClick.emit(o))})("focusedCellId",function(o){y(e);let s=h();return I(s.focusedCellChange.emit(o))})("cellEnter",function(o){y(e);let s=h();return I(s.cellEnter.emit(o))}),f()}if(t&2){let e=n.$implicit,i=h();l("allowReverse",i.allowReverse)("activeRangeEnd",i.activeRangeEnd)("selectionRange",i.selectionRange)("showOtherMonthDays",i.showOtherMonthDays)("headerTitle",i.headerTitle)("activeView",i.activeView)("isActive",i.isActive)("min",i.min)("max",i.max)("cellUID",i.cellUID)("focusedDate",i.focusedDate)("selectedDates",i.selectedDates)("weekNumber",i.weekNumber)("templateRef",i.cellTemplateRef)("weekNumberTemplateRef",i.weekNumberTemplateRef)("viewDate",e)}}function vb(t,n){if(t&1&&b(0,"kendo-calendar-footer",14),t&2){let e=h();l("footerTemplateRef",e.footerTemplateRef)("activeViewValue",e.activeViewValue)("currentDate",e.activeDate)}}function Cb(t,n){if(t&1){let e=K();g(0,"kendo-calendar-navigation",6),O("valueChange",function(o){y(e);let s=h(2);return I(s.handleNavigation(o))})("pageChange",function(){y(e);let o=h(2);return I(o.onPageChange())}),f()}if(t&2){let e=h(2);l("activeView",e.activeViewEnum)("focusedDate",e.focusedDate)("min",e.min)("max",e.max)("templateRef",e.navigationItemTemplateRef==null?null:e.navigationItemTemplateRef.templateRef)}}function Sb(t,n){if(t&1){let e=K();q(0),_(1,Cb,1,5,"kendo-calendar-navigation",3),g(2,"kendo-calendar-viewlist",4),O("todayButtonClick",function(o){y(e);let s=h();return I(s.handleDateChange({selectedDates:[o],focusedDate:o}))})("cellClick",function(o){y(e);let s=h();return I(s.handleCellClick(o))})("weekNumberCellClick",function(o){y(e);let s=h();return I(s.handleWeekNumberClick(o))})("activeDateChange",function(o){y(e);let s=h();return I(s.handleActiveDateChange(o))})("pageChange",function(){y(e);let o=h();return I(o.onPageChange())})("focusCalendar",function(){y(e);let o=h();return I(o.handleFocus())})("blurCalendar",function(o){y(e);let s=h();return I(s.handleBlur(o))})("cellEnter",function(o){y(e);let s=h();return I(s.onCellEnter(o))}),f(),g(3,"kendo-resize-sensor",5),O("resize",function(){y(e);let o=h();return I(o.onResize())}),f(),Q()}if(t&2){let e,i=h();u(),l("ngIf",i.navigation),u(),l("activeView",i.activeViewEnum)("allowReverse",i.allowReverse)("showOtherMonthDays",i.showOtherMonthDays)("activeRangeEnd",i.activeRangeEnd)("selectionRange",i.selectionRange)("size",i.size)("isActive",i.isActive)("id",i.headerId)("weekDaysFormat",i.weekDaysFormat)("cellTemplateRef",(e=i.activeCellTemplate())==null?null:e.templateRef)("headerTitleTemplateRef",i.headerTitleTemplateRef==null?null:i.headerTitleTemplateRef.templateRef)("headerTemplateRef",i.headerTemplateRef==null?null:i.headerTemplateRef.templateRef)("showFooter",i.footer)("footerTemplateRef",i.footerTemplateRef==null?null:i.footerTemplateRef.templateRef)("weekNumberTemplateRef",i.weekNumberTemplateRef==null?null:i.weekNumberTemplateRef.templateRef)("cellUID",i.cellUID)("min",i.min)("max",i.max)("focusedDate",i.focusedDate)("weekNumber",i.weekNumber)("selectedDates",i.selectedDates)("tabIndex",i.tabIndex)("disabled",i.disabled)}}function bb(t,n){if(t&1){let e=K();q(0),g(1,"kendo-multiviewcalendar",7,0),O("activeViewChange",function(o){y(e);let s=h();return I(s.handleActiveViewChange(o))})("navigate",function(o){y(e);let s=h();return I(s.handleNavigate(o))})("valueChange",function(o){y(e);let s=me(2),r=h();return I(r.handleMultiViewCalendarValueChange(o,s.focusedDate))})("focusCalendar",function(){y(e);let o=h();return I(o.handleFocus())})("blur",function(o){y(e);let s=h();return I(s.handleBlur(o))})("blurEvent",function(o){y(e);let s=h();return I(s.handleBlur(o))})("keydown",function(o){y(e);let s=h();return I(s.handleMultiViewCalendarKeydown(o))}),b(3,"kendo-multiviewcalendar-messages",8),f(),Q()}if(t&2){let e=h();u(),l("views",1)("min",e.min)("max",e.max)("size",e.size)("id",e.id)("activeRangeEnd",e.activeRangeEnd)("selectionRange",e.selectionRange)("allowReverse",e.allowReverse)("disabled",e.disabled)("isActive",e.isActive)("showOtherMonthDays",e.showOtherMonthDays)("tabIndex",e.tabIndex)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("weekDaysFormat",e.weekDaysFormat)("weekNumber",e.weekNumber)("animateNavigation",e.animateNavigation)("cellTemplate",e.activeCellTemplate())("monthCellTemplate",e.monthCellTemplateRef)("yearCellTemplate",e.yearCellTemplateRef)("decadeCellTemplate",e.decadeCellTemplateRef)("centuryCellTemplate",e.centuryCellTemplateRef)("headerTitleTemplate",e.headerTitleTemplateRef)("headerTemplate",e.headerTemplateRef)("footerTemplate",e.footerTemplateRef)("footer",e.footer)("weekNumberTemplate",e.weekNumberTemplateRef)("focusedDate",e.focusedDate)("selection",e.selection)("value",e.value)("disabledDates",e.disabledDates),u(2),l("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))("parentViewButtonTitle",e.localization.get("parentViewButtonTitle"))}}var Db=["dateInput"],Eb=["spinup"],wb=["spindown"],yb=(t,n)=>({dragstart:t,drop:n});function Ib(t,n){if(t&1){let e=K();g(0,"span",7),O("click",function(){y(e);let o=h();return I(o.resetInput())})("mousedown",function(o){return y(e),I(o.preventDefault())}),b(1,"kendo-icon-wrapper",8),f()}if(t&2){let e=h();M("title",e.localization.get("clearTitle")),u(),l("svgIcon",e.xIcon)}}function Tb(t,n){if(t&1){let e=K();g(0,"span",9),O("mousedown",function(o){return y(e),I(o.preventDefault())}),g(1,"button",10,1),O("mousedown",function(){y(e);let o=h();return I(o.arrowDirection=o.arrow.Up)})("mouseleave",function(){y(e);let o=h();return I(o.arrowDirection=o.arrow.None)})("click",function(){y(e);let o=h();return I(o.handleButtonClick(1))}),b(3,"kendo-icon-wrapper",11),f(),g(4,"button",12,2),O("click",function(){y(e);let o=h();return I(o.handleButtonClick(-1))})("mousedown",function(){y(e);let o=h();return I(o.arrowDirection=o.arrow.Down)})("mouseleave",function(){y(e);let o=h();return I(o.arrowDirection=o.arrow.None)}),b(6,"kendo-icon-wrapper",13),f()()}if(t&2){let e=h();u(),N("k-active",e.arrowDirection===e.arrow.Up),l("title",e.localization.get("increment")),M("aria-label",e.localization.get("increment")),u(2),l("svgIcon",e.caretAltUpIcon),u(),N("k-active",e.arrowDirection===e.arrow.Down),l("title",e.localization.get("decrement")),M("aria-label",e.localization.get("decrement")),u(2),l("svgIcon",e.caretAltDownIcon)}}var kb=["container"],xb=["popupTemplate"],Rb=["toggleButton"],Ob=["actionSheet"],Mb=(t,n)=>({click:t,mousedown:n}),Ab=t=>({keydown:t});function Lb(t,n){t&1&&Xe(0)}function Nb(t,n){if(t&1&&_(0,Lb,1,0,"ng-container",15),t&2){h();let e=me(16);l("ngTemplateOutlet",e)}}function Pb(t,n){if(t&1){let e=K();g(0,"kendo-resize-sensor",16),O("resize",function(){y(e);let o=h();return I(o.onResize())}),f()}}function Fb(t,n){t&1&&Xe(0)}function Gb(t,n){if(t&1){let e=K();g(0,"div",17)(1,"div",18)(2,"div",19)(3,"div",20),ee(4),f(),g(5,"div",21),ee(6),f()(),g(7,"div",22)(8,"button",23),O("click",function(){y(e);let o=h();return I(o.show=!1)}),f()()()(),g(9,"div",24),_(10,Fb,1,0,"ng-container",15),f()}if(t&2){let e=h(),i=me(16);u(4),De(e.title),u(2),De(e.subtitle),u(2),l("svgIcon",e.xIcon)("tabIndex",-1),M("title",e.localization.get("clearTitle")),u(2),l("ngTemplateOutlet",i)}}function Vb(t,n){if(t&1){let e=K();g(0,"kendo-calendar",25,6),O("valueChange",function(o){y(e);let s=h();return I(s.handleChange(s.mergeTime(o)))}),b(2,"kendo-calendar-messages",26),f()}if(t&2){let e=h();l("type",e.calendarType)("size",e.isAdaptive?"large":e.size)("min",e.min)("max",e.max)("weekDaysFormat",e.weekDaysFormat)("navigation",e.navigation)("animateNavigation",e.animateCalendarNavigation)("activeView",e.activeView)("bottomView",e.bottomView)("showOtherMonthDays",e.showOtherMonthDays)("topView",e.topView)("weekNumber",e.weekNumber)("cellTemplate",e.cellTemplate)("monthCellTemplate",e.monthCellTemplate)("yearCellTemplate",e.yearCellTemplate)("decadeCellTemplate",e.decadeCellTemplate)("centuryCellTemplate",e.centuryCellTemplate)("weekNumberTemplate",e.weekNumberTemplate)("headerTitleTemplate",e.headerTitleTemplate)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("footer",e.footer)("navigationItemTemplate",e.navigationItemTemplate)("focusedDate",e.focusedDate)("value",e.value)("kendoEventsOutsideAngular",We(32,Ab,e.handleKeydown))("scope",e)("disabledDates",e.disabledDates),u(2),l("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))("parentViewButtonTitle",e.localization.get("parentViewButtonTitle"))}}var Kc={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1716480435,version:"16.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},ge=function(t){return t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Up=2]="Up",t[t.Down=3]="Down",t[t.PrevView=4]="PrevView",t[t.NextView=5]="NextView",t[t.FirstInView=6]="FirstInView",t[t.LastInView=7]="LastInView",t[t.LowerView=8]="LowerView",t[t.UpperView=9]="UpperView",t}(ge||{}),Cs={start:null,end:null},ha=new Date(1980,0,1),sn=new Date(1900,0,1),rn=new Date(2099,11,31),kU=new Date(1980,0,1),xU=new Date(1980,0,1,23,59,59),$c=t=>t&&(!t.touched||t.control&&t.control.updateOn==="blur"),zb=t=>t.preventDefault(),Ub=t=>t.relatedTarget||document.activeElement,Pe=t=>t!=null,Eo=t=>t===null||t instanceof Date;var Bb=t=>Array.isArray(t)&&t.length>0&&t.every(n=>typeof n=="number"),jb=t=>Array.isArray(t)&&t.length>0&&t.every(n=>n instanceof Date),Lg=t=>t.shiftKey&&(t.keyCode===fs.ArrowRight||t.keyCode===fs.ArrowLeft||t.keyCode===fs.ArrowDown||t.keyCode===fs.ArrowUp),fs=function(t){return t[t.ArrowDown=40]="ArrowDown",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowUp=38]="ArrowUp",t}(fs||{}),Mc={infiniteCalendarTable:".k-content .k-calendar-table",multiViewCalendarTable:".k-calendar-table"},li={ariaActiveDescendant:"aria-activedescendant",ariaControls:"aria-controls",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",valueNow:"aria-valuenow",valuetext:"aria-valuetext",ariaInvalid:"aria-invalid"},lg=t=>t!=null,Ss=t=>(n,e)=>{let i=P(n);return i[t](e),i},Ng=(t,n)=>{let e=P(t);return e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e};var RU=Ss("setFullYear"),Wr=Ss("setHours"),qr=Ss("setMinutes"),Qr=Ss("setSeconds"),Jr=Ss("setMilliseconds"),jt=(t,n,e=1)=>{let i=[];for(let o=t;o!t||!(n&&n>t||e&&e!lg(t)||!lg(n)||t<=n,on=(t,n,e)=>t&&(n&&te?P(e):t);var Bt=()=>mt(new Date),Re=t=>{},Kb=()=>typeof window<"u",$b=t=>{let n=(e,i)=>t[i]?e.concat(i):e;return Object.keys(t).reduce(n,[]).join(" ")},Fg=(t,n)=>t.slice(n).concat(t.slice(0,n));var ci=t=>(n,e="",i={})=>{let o=document.createElement(t);return o.className=e,Object.keys(i).map(s=>o.style[s]=i[s]),typeof n=="string"?o.innerHTML=n||"":(n||[]).forEach(s=>s&&o.appendChild(s)),o},Do=(t,n)=>t[n]!==void 0,Gg=(t,n)=>t[n]&&t[n].currentValue!==void 0&&t[n].currentValue!==null,Ci=(t=[])=>t&&t[t.length-1],Si=(t,n)=>{let{start:e,end:i}=n||Cs;return!e||!i?!1:e(t=t||[],n=n||[],t.length===n.length&&t.every((e,i)=>gt(e,n[i]))),cg=t=>t.filter(n=>Pe(n)).sort((n,e)=>n.getTime()-e.getTime());var Wb=(t,n,e)=>{if(!(t&&n&&e)||t>n)return[];let i=[],o=t;for(;o<=n;)e(o)&&i.push(o),o=Vt(o,1);return i};var qb=(t,n,e)=>Pe(n)?t==="infinite"||t==="classic"&&e&&n.classList.contains("k-calendar-table")||!e&&n.classList.contains("k-calendar-table"):!1,Xt=(t,n)=>({small:`k-${t}-sm`,medium:`k-${t}-md`,large:`k-${t}-lg`})[n],wo=t=>({small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"})[t],nn=(t,n)=>({solid:`k-${t}-solid`,flat:`k-${t}-flat`,outline:`k-${t}-outline`})[n],ta="medium",Zn="medium",ia="solid",jr=()=>{if(ae())return window.innerWidth>768?"large":window.innerWidth>500?"medium":"small"},Qb=[[]],Ac=4,Jb=3,Yb=t=>{let n=Number(t.toString().slice(-2,-1));return n<2?-2:n<4?-6:-4},Zb=t=>{let n=Number(t.toString().slice(-2,-1));return n>7?2:n>5?6:4},Xb={[ge.Left]:t=>ai(t,-1),[ge.Up]:t=>ai(t,Yb(t.getFullYear())),[ge.Right]:t=>ai(t,1),[ge.Down]:t=>ai(t,Zb(t.getFullYear())),[ge.PrevView]:t=>_o(t,-1),[ge.NextView]:t=>_o(t,1),[ge.FirstInView]:t=>en(t),[ge.LastInView]:t=>hs(t)},Wc=(()=>{class t{constructor(){this.dateRange=(e,i)=>{if(!Pe(e)||!Pe(i))return[];let o=[],s=e;for(;s<=i;)o.push(s),s=ai(s,1);return o}}addToDate(e,i){return _o(e,i)}datesList(e,i){return jt(0,i).map(o=>_o(e,o))}data(e){let{cellUID:i,focusedDate:o,isActiveView:s,max:r,min:a,selectedDates:d,selectionRange:p=Cs,viewDate:m,allowReverse:v}=e;if(!m)return Qb;let S=jt(0,Ac),w=en(m),L=hs(m),F=Bt();return jt(0,Jb).map(R=>{let U=ai(w,R*Ac);return S.map(te=>{let x=this.normalize(ai(U,te),a,r),de=x.getFullYear()>L.getFullYear();if(!this.isInRange(x,a,r)||de)return null;let V=!1,_e=!1;v?((this.isEqual(x,p.start)&&p.start<=p.end||this.isEqual(x,p.end)&&p.end<=p.start)&&(V=!0),(this.isEqual(x,p.start)&&p.start>=p.end||this.isEqual(x,p.end)&&p.end>=p.start)&&(_e=!0)):(V=this.isEqual(x,p.start),_e=this.isEqual(x,p.end));let Ee=!V&&!_e,he;return v?he=Ee&&(Si(x,p)||Si(x,{start:p.end,end:p.start})):he=Ee&&Si(x,p),{formattedValue:this.value(x),id:`${i}${x.getTime()}`,isFocused:this.isEqual(x,o),isSelected:s&&d.some(rt=>this.isEqual(x,rt)),isWeekend:!1,isRangeStart:V,isRangeMid:he,isRangeEnd:_e,isRangeSplitEnd:he&&this.isEqual(x,L),isRangeSplitStart:he&&this.isEqual(x,w),isToday:this.isEqual(x,F),title:this.cellTitle(x),value:x,allowReverse:v}})})}isEqual(e,i){return!e||!i?!1:Ot(e).getFullYear()===Ot(i).getFullYear()}isInArray(e,i){if(!i.length)return!1;let o=e.getFullYear();return i[0].getFullYear()<=o&&o<=i[i.length-1].getFullYear()+99}isInRange(e,i,o){let s=Ot(e).getFullYear(),r=!i||Ot(i).getFullYear()<=s,a=!o||s<=Ot(o).getFullYear();return r&&a}beginningOfPeriod(e){if(!e)return e;let i=Ot(en(e));return it(i.getFullYear(),0,1)}lastDayOfPeriod(e){let i=hs(e),o=Co(i),s=vo(o);return zt(s)}isRangeStart(e){return e.getFullYear()%1e3===0}move(e,i){let o=Xb[i];return o?o(e):e}cellTitle(e){return Ot(e).getFullYear().toString()}navigationTitle(e){return e?en(e).getFullYear().toString():""}title(e){return e?`${en(e).getFullYear()} - ${hs(e).getFullYear()}`:""}rowLength(){return Ac}skip(e,i){return Sc(i,e)}total(e,i){return Sc(e,i)+1}value(e){return e?Ot(e).getFullYear().toString():""}viewDate(e,i,o=1){let s=this.total(e,i);if(so&&this.isEqual(e,o)?P(o):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),eD=[[]],Lc=4,tD=3,iD=t=>{let n=Number(t.toString().slice(-1));return n<2?-2:n<4?-6:-4},nD=t=>{let n=Number(t.toString().slice(-1));return n>7?2:n>5?6:4},oD={[ge.Left]:t=>Rt(t,-1),[ge.Up]:t=>Rt(t,iD(t.getFullYear())),[ge.Right]:t=>Rt(t,1),[ge.Down]:t=>Rt(t,nD(t.getFullYear())),[ge.PrevView]:t=>ai(t,-1),[ge.NextView]:t=>ai(t,1),[ge.FirstInView]:t=>Ot(t),[ge.LastInView]:t=>Co(t)},qc=(()=>{class t{constructor(){this.dateRange=(e,i)=>{if(!Pe(e)||!Pe(i))return[];let o=[],s=e;for(;s<=i;)o.push(s),s=Rt(s,1);return o}}addToDate(e,i){return ai(e,i)}datesList(e,i){return jt(0,i).map(o=>ai(e,o))}data(e){let{cellUID:i,focusedDate:o,isActiveView:s,max:r,min:a,selectedDates:d,selectionRange:p=Cs,viewDate:m,allowReverse:v}=e;if(!m)return eD;let S=jt(0,Lc),w=Ot(m),L=Co(m),F=Bt();return jt(0,tD).map(R=>{let U=Rt(w,R*Lc);return S.map(te=>{let x=this.normalize(Rt(U,te),a,r),de=x.getFullYear()>L.getFullYear();if(!this.isInRange(x,a,r)||de)return null;let V=!1,_e=!1;v?((this.isEqual(x,p.start)&&p.start<=p.end||this.isEqual(x,p.end)&&p.end<=p.start)&&(V=!0),(this.isEqual(x,p.start)&&p.start>=p.end||this.isEqual(x,p.end)&&p.end>=p.start)&&(_e=!0)):(V=this.isEqual(x,p.start),_e=this.isEqual(x,p.end));let Ee=!V&&!_e,he;return v?he=Ee&&(Si(x,p)||Si(x,{start:p.end,end:p.start})):he=Ee&&Si(x,p),{formattedValue:this.value(x),id:`${i}${x.getTime()}`,isFocused:this.isEqual(x,o),isSelected:s&&d.some(rt=>this.isEqual(x,rt)),isWeekend:!1,isRangeStart:V,isRangeMid:he,isRangeEnd:_e,isRangeSplitEnd:he&&this.isEqual(x,L),isRangeSplitStart:he&&this.isEqual(x,w),isToday:this.isEqual(x,F),title:this.cellTitle(x),value:x,allowReverse:v}})})}isEqual(e,i){return!e||!i?!1:e.getFullYear()===i.getFullYear()}isInArray(e,i){if(!i.length)return!1;let o=e.getFullYear();return i[0].getFullYear()<=o&&o<=i[i.length-1].getFullYear()+9}isInRange(e,i,o){let s=e.getFullYear(),r=!i||i.getFullYear()<=s,a=!o||s<=o.getFullYear();return r&&a}beginningOfPeriod(e){if(!e)return e;let i=Ot(e);return it(i.getFullYear(),0,1)}lastDayOfPeriod(e){let i=Co(e),o=vo(i);return zt(o)}isRangeStart(e){return e.getFullYear()%100===0}move(e,i){let o=oD[i];return o?o(e):e}cellTitle(e){return e.getFullYear().toString()}navigationTitle(e){return e?Ot(e).getFullYear().toString():""}title(e){return e?`${Ot(e).getFullYear()} - ${Co(e).getFullYear()}`:""}rowLength(){return Lc}skip(e,i){return bc(i,e)}total(e,i){return bc(e,i)+1}value(e){return e?e.getFullYear().toString():""}viewDate(e,i,o=1){let s=this.total(e,i);if(so&&this.isEqual(e,o)?P(o):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),sD=[[]],Nc=7,rD=6,aD={[ge.Left]:t=>Vt(t,-1),[ge.Up]:t=>Cc(t,-1),[ge.Right]:t=>Vt(t,1),[ge.Down]:t=>Cc(t,1),[ge.PrevView]:t=>nt(t,-1),[ge.NextView]:t=>nt(t,1),[ge.FirstInView]:t=>wc(t),[ge.LastInView]:t=>zt(t)},Qc=(()=>{class t{constructor(e){this._intlService=e,this.dateRange=(i,o)=>{if(!Pe(i)||!Pe(o))return[];let s=[],r=i;for(;r<=o;)s.push(r),r=Vt(r,1);return s}}addToDate(e,i){return nt(e,i)}datesList(e,i){return jt(0,i).map(o=>nt(e,o))}data(e){let{cellUID:i,focusedDate:o,isActiveView:s,max:r,min:a,selectedDates:d,selectionRange:p=Cs,viewDate:m,isDateDisabled:v=()=>!1,allowReverse:S}=e;if(!m)return sD;let w=wc(m),L=mt(w),F=zt(m),R=mt(F),te=Rr(w,this._intlService.firstDay(),-1),x=jt(0,Nc),de=Bt();return jt(0,rD).map(V=>{let _e=Vt(te,V*Nc);return x.map(Ee=>{let he=this.normalize(Vt(_e,Ee),a,r),rt=mt(he),Nt=rtR;if(her)return null;let Ct=!1,we=!1;S?((this.isEqual(he,p.start)&&p.start<=p.end||this.isEqual(he,p.end)&&p.end<=p.start)&&(Ct=!0),(this.isEqual(he,p.start)&&p.start>=p.end||this.isEqual(he,p.end)&&p.end>=p.start)&&(we=!0)):(Ct=this.isEqual(he,p.start),we=this.isEqual(he,p.end));let Dt=!Ct&&!we,Ie;return S?Ie=Dt&&(Si(he,p)||Si(he,{start:p.end,end:p.start})):Ie=Dt&&Si(he,p),{formattedValue:this.value(he),id:`${i}${Nt?he.getTime()+"1":he.getTime()}`,isFocused:this.isEqual(he,o),isSelected:s&&d.some(Ki=>this.isEqual(he,Ki)),isWeekend:this.isWeekend(he),isRangeStart:Ct,isRangeMid:Ie,isRangeEnd:we,isRangeSplitStart:Ie&&this.isEqual(he,w),isRangeSplitEnd:Ie&&this.isEqual(he,F),isToday:this.isEqual(he,de),title:this.cellTitle(he),value:he,isDisabled:v(he),isOtherMonth:Nt,allowReverse:S}})})}isEqual(e,i){return!e||!i?!1:mt(e).getTime()===mt(i).getTime()}isInArray(e,i){if(i.length===0)return!1;let o=this.beginningOfPeriod(i[0]),s=this.beginningOfPeriod(nt(i[i.length-1],1));return o<=e&&eo&&this.isEqual(e,o)?P(o):e}wideMonthNames(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}}return t.\u0275fac=function(e){return new(e||t)(J(Et))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),lD=[[]],Pc=4,cD=3,dD={[ge.Left]:t=>nt(t,-1),[ge.Up]:t=>nt(t,-4),[ge.Right]:t=>nt(t,1),[ge.Down]:t=>nt(t,4),[ge.PrevView]:t=>Rt(t,-1),[ge.NextView]:t=>Rt(t,1),[ge.FirstInView]:t=>yc(t),[ge.LastInView]:t=>vo(t)},Jc=(()=>{class t{constructor(e){this._intlService=e,this.dateRange=(i,o)=>{if(!Pe(i)||!Pe(o))return[];let s=[],r=i;for(;r<=o;)s.push(r),r=nt(r,1);return s}}addToDate(e,i){return Rt(e,i)}datesList(e,i){return jt(0,i).map(o=>Rt(e,o))}data(e){let{cellUID:i,focusedDate:o,isActiveView:s,max:r,min:a,selectedDates:d,selectionRange:p=Cs,viewDate:m,allowReverse:v}=e;if(!m)return lD;let S=this.abbrMonthNames(),w=yc(m),L=vo(m),F=w.getFullYear(),R=jt(0,Pc),U=Bt();return jt(0,cD).map(te=>{let x=nt(w,te*Pc);return R.map(de=>{let V=this.normalize(nt(x,de),a,r),_e=F=p.end||this.isEqual(V,p.end)&&p.end>=p.start)&&(he=!0)):(Ee=this.isEqual(V,p.start),he=this.isEqual(V,p.end));let rt=!Ee&&!he,Nt;return v?Nt=rt&&(Si(V,p)||Si(V,{start:p.end,end:p.start})):Nt=rt&&Si(V,p),{formattedValue:S[V.getMonth()],id:`${i}${V.getTime()}`,isFocused:this.isEqual(V,o),isSelected:s&&d.some(Zt=>this.isEqual(V,Zt)),isWeekend:!1,isRangeStart:Ee,isRangeMid:Nt,isRangeEnd:he,isRangeSplitEnd:Nt&&this.isEqual(V,L),isRangeSplitStart:Nt&&this.isEqual(V,w),isToday:this.isEqual(V,U),title:this.cellTitle(V),value:V,allowReverse:v}})})}isEqual(e,i){return!e||!i?!1:e.getFullYear()===i.getFullYear()&&e.getMonth()===i.getMonth()}isInArray(e,i){if(!i.length)return!1;let o=e.getFullYear();return i[0].getFullYear()<=o&&o<=i[i.length-1].getFullYear()}isInRange(e,i,o){let s=it(e.getFullYear(),e.getMonth(),1),r=!i||it(i.getFullYear(),i.getMonth(),1)<=s,a=!o||s<=it(o.getFullYear(),o.getMonth(),1);return r&&a}beginningOfPeriod(e){return e&&it(e.getFullYear(),0,1)}lastDayOfPeriod(e){let i=vo(e);return zt(i)}isRangeStart(e){return e.getFullYear()%10===0}move(e,i){let o=dD[i];return o?o(e):e}cellTitle(e){return`${e.getFullYear()} ${this.value(e)}`}navigationTitle(e){return this.title(e)}title(e){return e?e.getFullYear().toString():""}rowLength(){return Pc}skip(e,i){return Ec(i,e)}total(e,i){return Ec(e,i)+1}value(e){return e?this.abbrMonthNames()[e.getMonth()]:""}viewDate(e,i,o=1){let s=this.total(e,i);if(so&&this.isEqual(e,o)?P(o):e}}return t.\u0275fac=function(e){return new(e||t)(J(Et))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),se=function(t){return t[t.month=0]="month",t[t.year=1]="year",t[t.decade=2]="decade",t[t.century=3]="century",t}(se||{}),uD={[se.month]:Qc,[se.year]:Jc,[se.decade]:qc,[se.century]:Wc},hD=(t,n)=>{let e=se[se[t+n]];return e!==void 0?e:t},pD=0,ki=(()=>{class t{constructor(e){this.injector=e,this.viewChanged=new C,this.bottom=se.month,this.top=se.century,this.calendarId=pD++}configure(e,i){this.bottom=e,this.top=i}service(e){let i=uD[e];return i?this.injector.get(i):null}moveDown(e){this.move(e,-1)}moveUp(e){this.move(e,1)}moveToBottom(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})}canMoveDown(e){return this.bottomthis.top?this.top:e}move(e,i){let o=this.clamp(hD(e,i));o!==e&&this.viewChanged.emit({view:o})}}return t.\u0275fac=function(e){return new(e||t)(J(Zo))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Yc=(()=>{class t{constructor(e){this.intl=e}getWeekNames(e=!1,i){let o=Fg(this.intl.dateFormatNames({nameType:i,type:"days"}),this.intl.firstDay());return e?[""].concat(o):o}}return t.\u0275fac=function(e){return new(e||t)(J(Et))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Vc=class{constructor(n,e,i,o){this.$implicit=n,this.kForOf=e,this.index=i,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},pa=(()=>{class t{constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._differ=null}set kForTemplate(e){e&&(this._template=e)}ngOnChanges(e){if("kForOf"in e){let i=e.kForOf.currentValue;if(this._differ||!i)return;try{this._differ=this._differs.find(i).create(this.kForTrackBy)}catch{throw new Error(`Cannot find a differ supporting object '${i}' of type '${mD(i)}'.`)}}}ngDoCheck(){if(this._differ){let e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}}_applyChanges(e){if(!ae())return;let i=this._viewContainer.length,o=this.kForOf.length,s={};e.forEachOperation((r,a,d)=>{d!==null&&(s[d]=r.item)});for(let r=i;ro;r--)this._viewContainer.remove(r-1);for(let r=0;r!1,gD="https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/",kn=(()=>{class t{constructor(){this.changes=new Qe,this.isDateDisabled=dg}initialize(e){if(typeof e=="function")this.isDateDisabled=i=>e(mt(i));else if(Bb(e)){let i=new Set(e);this.isDateDisabled=o=>i.has(o.getDay())}else if(jb(e)){let i=new Set(e.map(o=>mt(o).getTime()));this.isDateDisabled=o=>i.has(mt(o).getTime())}else this.isDateDisabled=dg,this.notifyInvalidInput(e);this.notifyServiceChange()}notifyInvalidInput(e){if(Pe(e)&&fe())throw new Error(`The 'disabledDates' value should be a function, a Day array or a Date array. Check ${gD} for more information.`)}notifyServiceChange(){this.changes.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Vg=(t,n,e)=>{for(;t&&t!==e&&!n(t);)t=t.parentNode;if(t!==e)return t},zg=(t,n)=>{for(;t&&!n(t);)t=t.parentNode;return t},Ug=(()=>{class t{constructor(e,i,o,s,r,a,d){this.bus=e,this.intl=i,this.cdr=o,this.element=s,this.zone=r,this.renderer=a,this.disabledDatesService=d,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new C,this.weekNumberCellClick=new C,this.cellEnter=new C,this.cellLeave=new C,this.focusedCellId=new C,this.colSpan=0,this.subscriptions=new Se,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}get weekNumber(){return this.showWeekNumbers&&this.activeView===se.month}set weekNumber(e){this.showWeekNumbers=e}get ariaHidden(){return this.headerTitle===this.title?null:!0}ngOnInit(){this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(e){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber}),this.title=this.service.title(this.viewDate),this.updateData(),e.activeView&&(this.currentCellIndex=null))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domEvents.forEach(e=>e())}isHorizontal(){return this.direction==="horizontal"}isMonthView(){return this.activeView===se.month}shouldRenderCellContent(e){return Pe(e)&&(!e.isOtherMonth||e.isOtherMonth&&this.showOtherMonthDays)}firstDate(e){let i=this.firstWeekDateContext(e);return i?i.value:null}getWeekNumber(e){return this.weekNumber?Tc(e,this.intl.firstDay()):null}getWeekNumberContext(e){let i=this.firstWeekDateContext(e);if(!this.weekNumber||!i)return null;let o=Tc(i.value,this.intl.firstDay()).toString();return{formattedValue:o,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:o,value:P(i.value)}}getStyles(e){!e.isOtherMonth&&this.isActive&&e.isFocused&&this.focusedCellId.emit(e.id);let{isRangeEnd:i,isRangeStart:o}=e,s=this.activeRangeEnd==="end"&&i,r=this.activeRangeEnd==="start"&&o;return $b({"k-range-end":!e.isOtherMonth&&i,"k-range-mid":!e.isOtherMonth&&e.isRangeMid,"k-range-split-end":!e.isOtherMonth&&e.isRangeSplitEnd,"k-range-split-start":!e.isOtherMonth&&e.isRangeSplitStart,"k-range-start":!e.isOtherMonth&&o,"k-active":r||s,"k-focus":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-selected":!e.isOtherMonth&&(e.isSelected||o||i),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-disabled":e.isDisabled,"k-other-month":e.isOtherMonth})}tableCellIndex(e,i){return`${e}:${i}`}handleWeekNumberClick(e){let i=e.map(o=>o.value).filter(o=>!this.disabledDatesService.isDateDisabled(o));this.weekNumberCellClick.emit(i)}getMonthLabel(e){return this.activeView===1?this.intl.formatDate(e,"MMMM"):null}firstWeekDateContext(e){if(!this.weekNumber)return null;let i=0,o=this.shouldRenderCellContent(e[i])?e[i]:null;for(;!o&&ii.hasAttribute("data-cell-index"),this.element.nativeElement)}emitCellLeave(){let e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null}cellByIndex(e){let[i,o]=e.split(":");return this.data[i][o]}}return t.\u0275fac=function(e){return new(e||t)(c(ki),c(Et),c(ve),c(W),c(re),c(X),c(kn))},t.\u0275cmp=k({type:t,selectors:[["","kendoCalendarView",""]],inputs:{allowReverse:"allowReverse",showOtherMonthDays:"showOtherMonthDays",direction:"direction",isActive:"isActive",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",viewDate:"viewDate",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber",viewIndex:"viewIndex",templateRef:"templateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitle:"headerTitle"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",focusedCellId:"focusedCellId"},features:[be],attrs:IS,decls:4,vars:2,consts:[["emptyCell",""],["class","k-calendar-tr","role","row",4,"ngIf"],["class","k-calendar-tr","role","row",4,"kFor","kForOf"],["role","gridcell",1,"k-empty","k-calendar-td"],["role","row",1,"k-calendar-tr"],["scope","col",1,"k-calendar-caption",3,"colSpan"],[3,"ngIf"],[4,"kFor","kForOf"],["class","k-alt k-calendar-td","role","gridcell",3,"click",4,"ngIf","ngIfElse"],["role","gridcell",1,"k-alt","k-calendar-td",3,"click"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["class","k-calendar-td","role","gridcell",3,"ngClass","title",4,"ngIf","ngIfElse"],["role","gridcell",1,"k-calendar-td",3,"ngClass","title"],[1,"k-link"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){e&1&&_(0,TS,2,0,"ng-template",null,0,ut)(2,kS,3,3,"tr",1)(3,GS,3,2,"tr",2),e&2&&(u(2),l("ngIf",!i.isHorizontal()),u(),l("kForOf",i.data))},dependencies:[st,oe,Fe,pa],encapsulation:2}),t})(),ug=2,hg=(()=>{class t{constructor(e,i,o,s,r,a){this.bus=e,this.intl=i,this.weekService=o,this.cdr=s,this.element=r,this.renderer=a,this.showOtherMonthDays=!0,this.activeView=se.month,this.isActive=!0,this.min=new Date(sn),this.max=new Date(rn),this.selectedDates=[],this.views=ug,this.showViewHeader=!1,this.animateNavigation=!1,this.orientation="horizontal",this.tabIndex=0,this.disabled=!1,this.weekDaysFormat="short",this.cellClick=new C,this.weekNumberCellClick=new C,this.cellEnter=new C,this.cellLeave=new C,this.activeDateChange=new C,this.focusCalendar=new C,this.blurCalendar=new C,this.focusedCellChange=new C,this.getComponentClass=!0,this.weekNames=[],this.wideWeekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}handleMultiViewCalendarFocus(){this.focusCalendar.emit()}handleMultiViewCalendarBlur(e){this.blurCalendar.emit(e)}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(e){this.showWeekNumbers=e}get horizontalHostClass(){return this.orientation==="horizontal"}get verticalHostClass(){return this.orientation==="vertical"}get getComponentMonthClass(){return this.activeView===se.month}get getComponentYearClass(){return this.activeView===se.year}get getComponentDecadeClass(){return this.activeView===se.decade}get getComponentCenturyClass(){return this.activeView===se.century}get role(){return this.views>=2?"grid":null}get tabindex(){return this.views>=2?"0":null}get getActiveDescendant(){return this.views===1?this.activeDescendant:null}get getTabIndex(){return this.disabled||this.views>=2?null:this.tabIndex}ngOnChanges(e){if(this.initService(),(this.weekNames.length===0||e.weekNumber)&&(this.weekNames=this.getWeekNames(this.weekDaysFormat),this.wideWeekNames=this.getWeekNames("wide")),!this.service)return;this.views=this.views||ug;let i=this.focusedDate,o=this.clampDate(this.service.viewDate(i,this.max,this.views));this.skip=this.service.skip(o,this.min),this.total=this.service.total(this.min,this.max);let s=Do(e,"activeView"),r=this.views>0&&Do(e,"views");(s||!this.isInDates(i)||r||!this.activeDate)&&(this.dates=this.service.datesList(o,this.getTake(this.skip)),this.activeDate=P(this.dates[0]),this.activeDateChange.emit(this.activeDate)),this.setAriaActivedescendant(),this.views>=2&&this.renderer.setAttribute(this.element.nativeElement,"tabindex",this.tabIndex.toString())}ngAfterViewInit(){this.views===1&&this.setTableMinWidth()}ngOnDestroy(){this.intlSubscription.unsubscribe()}initService(){this.service=this.bus.service(this.activeView)}isMonthView(){return this.activeView===se.month}getCaptionTitle(e){return this.service.title(e)}getCaptionClass(){return this.isMonthView()?"k-month-header":"k-meta-header"}handleClassicCalendarFocus(){this.focusCalendar.emit()}handleClassicCalendarBlur(e){this.blurCalendar.emit(e)}animateView(e){let i=this.element.nativeElement,o=i.querySelector("table"),s=parseFloat(getComputedStyle(i).width),r=parseFloat(getComputedStyle(o).width);this.renderer.setStyle(i,"width",`${s}px`),this.renderer.setStyle(i,"overflow","visible"),e===ge.NextView?this.nextAnimationDate=P(this.dates[0]):this.prevAnimationDate=P(this.dates[this.dates.length-1]),this.cdr.detectChanges(),i.querySelectorAll("table").forEach(v=>{this.renderer.setStyle(v,"width",`${r}px`),this.views===1&&this.renderer.setStyle(v,"min-width",`${s}px`)});let a=o.getBoundingClientRect(),d=parseFloat(getComputedStyle(i).columnGap),p=e===ge.NextView?"translateX(0)":`translateX(-${a.width+d}px)`,m=e===ge.NextView?`translateX(-${a.width+d}px)`:"translateX(0)";this.animation?this.animation.cancel():(this.animation=i.animate([{transform:p},{transform:m}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=()=>{this.renderer.removeStyle(i,"width"),this.renderer.removeStyle(i,"overflow"),i.querySelectorAll("table").forEach(v=>{this.renderer.removeStyle(v,"width")}),this.animation=null,this.nextAnimationDate=null,this.prevAnimationDate=null,this.cdr.detectChanges()})}navigate(e){this.animateNavigation&&ae()&&Pe(this.element.nativeElement.animate)&&this.animateView(e);let i=this.move(e),o=this.service.datesList(i,this.getTake(this.skip));return this.isListInRange(o)&&(this.dates=o),this.activeDate=P(this.dates[0]),this.focusedDate=P(i),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),P(i)}canNavigate(e){return this.service?this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip))):!1}getWeekNames(e){return this.weekService.getWeekNames(this.weekNumber,e)}setTableMinWidth(){let e=this.element.nativeElement,i=e.querySelector("table");if(i){let o=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(i,"min-width",`${o}px`)}}intlChange(){this.weekNames=this.getWeekNames(this.weekDaysFormat),this.wideWeekNames=this.getWeekNames("wide"),this.cdr.markForCheck()}clampDate(e){return on(e,this.min,this.max)}move(e){return this.service.move(this.dates[0]||this.focusedDate,e)}isListInRange(e){let i=this.service.beginningOfPeriod(this.min),o=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return i<=e[0]&&e[e.length-1]=2&&this.renderer.setAttribute(this.element.nativeElement,li.ariaActiveDescendant,this.activeDescendant)}}return t.\u0275fac=function(e){return new(e||t)(c(ki),c(Et),c(Yc),c(ve),c(W),c(X))},t.\u0275cmp=k({type:t,selectors:[["kendo-calendar-horizontal"]],hostVars:20,hostBindings:function(e,i){e&1&&O("focus",function(){return i.handleMultiViewCalendarFocus()})("blur",function(s){return i.handleMultiViewCalendarBlur(s)}),e&2&&(M("role",i.role)("tabindex",i.tabindex),N("k-calendar-view",i.getComponentClass)("k-align-items-start",i.getComponentClass)("k-justify-content-center",i.getComponentClass)("k-hstack",i.horizontalHostClass)("k-vstack",i.verticalHostClass)("k-calendar-monthview",i.getComponentMonthClass)("k-calendar-yearview",i.getComponentYearClass)("k-calendar-decadeview",i.getComponentDecadeClass)("k-calendar-centuryview",i.getComponentCenturyClass))},inputs:{showOtherMonthDays:"showOtherMonthDays",cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",allowReverse:"allowReverse",activeRangeEnd:"activeRangeEnd",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectionRange:"selectionRange",selectedDates:"selectedDates",views:"views",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",orientation:"orientation",activeDescendant:"activeDescendant",tabIndex:"tabIndex",disabled:"disabled",id:"id",weekDaysFormat:"weekDaysFormat",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",activeDateChange:"activeDateChange",focusCalendar:"focusCalendar",blurCalendar:"blurCalendar",focusedCellChange:"focusedCellChange"},features:[be],decls:5,vars:3,consts:[["tableTemplate",""],[4,"ngIf"],[4,"kFor","kForOf"],[1,"k-calendar-table",3,"focus","blur","ngClass"],[3,"ngClass",4,"ngIf"],["class","k-calendar-thead","role","rowgroup",4,"ngIf"],["kendoCalendarView","","role","rowgroup","direction","horizontal",1,"k-calendar-tbody",3,"cellClick","weekNumberCellClick","cellEnter","cellLeave","focusedCellId","allowReverse","showOtherMonthDays","activeView","isActive","min","max","cellUID","focusedDate","selectedDates","selectionRange","activeRangeEnd","weekNumber","templateRef","weekNumberTemplateRef","viewDate"],[3,"ngClass"],["role","rowgroup",1,"k-calendar-thead"],["role","row",1,"k-calendar-tr"],["class","k-calendar-th","scope","col","role","columnheader",4,"ngFor","ngForOf"],["scope","col","role","columnheader",1,"k-calendar-th"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){e&1&&_(0,jS,4,22,"ng-template",null,0,ut)(2,KS,1,4,null,1)(3,WS,1,4,null,2)(4,QS,1,4,null,1),e&2&&(u(2),l("ngIf",i.nextAnimationDate),u(),l("kForOf",i.dates),u(),l("ngIf",i.prevAnimationDate))},dependencies:[st,qe,oe,Fe,pa,Ug],encapsulation:2,changeDetection:0}),t})(),na=(()=>{class t{constructor(e,i,o,s,r){this.bus=e,this.cdr=i,this.localization=o,this.intl=s,this.disabledDatesService=r,this.chevronRightIcon=mr,this.chevronLeftIcon=Op,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(sn),this.max=new Date(rn),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.orientation="horizontal",this.todayButtonClick=new C,this.prevButtonClick=new C,this.nextButtonClick=new C,this.getComponentClass=!0,this.subscriptions=new Se}get verticalHostClass(){return this.orientation==="vertical"}ngOnInit(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))}ngOnChanges(e){this.bus.service(this.activeView)&&(this.activeViewValue=se[this.activeView],this.todayMessage=this.localization.get("today"),this.parentViewButtonTitle=this.localization.get("parentViewButtonTitle"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())}ngOnDestroy(){this.subscriptions.unsubscribe()}handleTodayClick(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(on(Bt(),this.min,this.max)))}handleNavigation(){this.navigate&&this.bus.moveUp(this.activeView)}isDisabled(){return this.navigate?null:""}intlChange(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())}l10nChange(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.parentViewButtonTitle=this.localization.get("parentViewButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()}getTitle(){if(!this.currentDate)return"";let e=this.bus.service(this.activeView),i=this.rangeLength-1,o=e.title(this.currentDate),s=e.addToDate(this.currentDate,i);return i<1||!e.isInRange(s,this.min,this.max)?o:`${o} - ${e.title(s)}`}setTodayAvailability(){let e=Bt(),i=Hb(e,mt(this.min),mt(this.max)),o=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=i&&!o,this.cdr.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c(ki),c(ve),c(ie),c(Et),c(kn))},t.\u0275cmp=k({type:t,selectors:[["kendo-calendar-header"]],hostVars:4,hostBindings:function(e,i){e&2&&N("k-calendar-header",i.getComponentClass)("k-vstack",i.verticalHostClass)},inputs:{activeView:"activeView",currentDate:"currentDate",min:"min",max:"max",rangeLength:"rangeLength",titleTemplateRef:"titleTemplateRef",headerTemplateRef:"headerTemplateRef",isPrevDisabled:"isPrevDisabled",isNextDisabled:"isNextDisabled",showNavigationButtons:"showNavigationButtons",orientation:"orientation",id:"id",size:"size"},outputs:{todayButtonClick:"todayButtonClick",prevButtonClick:"prevButtonClick",nextButtonClick:"nextButtonClick"},features:[be],decls:3,vars:2,consts:[["defaultRendering",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoButton","","role","button","type","button","fillMode","flat","themeColor","primary","tabindex","-1",1,"k-calendar-title",3,"id","size","disabled","kendoEventsOutsideAngular","title","scope"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-spacer"],[1,"k-calendar-nav","k-hstack"],["kendoButton","","fillMode","flat","icon","chevron-left","tabindex","-1","type","button","class","k-calendar-nav-prev",3,"size","svgIcon","disabled","title","click",4,"ngIf"],["kendoButton","","tabindex","-1","themeColor","primary","fillMode","flat","role","link","type","button",1,"k-calendar-nav-today",3,"size","disabled","kendoEventsOutsideAngular","scope"],["kendoButton","","fillMode","flat","icon","chevron-right","class","k-calendar-nav-next","tabindex","-1","type","button",3,"svgIcon","disabled","title","click",4,"ngIf"],["kendoButton","","fillMode","flat","icon","chevron-left","tabindex","-1","type","button",1,"k-calendar-nav-prev",3,"click","size","svgIcon","disabled","title"],["kendoButton","","fillMode","flat","icon","chevron-right","tabindex","-1","type","button",1,"k-calendar-nav-next",3,"click","svgIcon","disabled","title"]],template:function(e,i){if(e&1&&_(0,ZS,1,6,null,1)(1,nb,9,25,"ng-template",null,0,ut),e&2){let o=me(2);l("ngIf",i.headerTemplateRef)("ngIfElse",o)}},dependencies:[oe,Fe,Yi,vt],encapsulation:2}),t})(),oa=(()=>{class t{constructor(e){this.bus=e}performSelection(e){let{date:i,modifiers:o,selectionMode:s,activeViewEnum:r,rangePivot:a}=e,d=e.selectedDates.slice();if(s==="multiple")if(o.ctrlKey||o.metaKey)this.isDateSelected(d,i)?d=d.filter(p=>!gt(p,i)):d.push(i),a=i;else if(o.shiftKey){let[p,m]=cg([a||i,i]);if(d=this.bus.service(r).dateRange(p,m),a=i>d[0]?d[0]:Ci(d),o.anyArrow){let[v,S]=cg([this.lastClicked||i,i]);d=this.bus.service(0).dateRange(v,S)}}else d=[i],a=i;else d=[i],a=i;return{selectedDates:d,rangePivot:a}}isDateSelected(e,i){return e.some(o=>gt(o,i))}}return t.\u0275fac=function(e){return new(e||t)(J(ki))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Zc=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarCellTemplate",""]]}),t})(),Xc=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarMonthCellTemplate",""]]}),t})(),ed=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarYearCellTemplate",""]]}),t})(),td=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarDecadeCellTemplate",""]]}),t})(),id=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarCenturyCellTemplate",""]]}),t})(),nd=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarWeekNumberCellTemplate",""]]}),t})(),od=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarHeaderTitleTemplate",""]]}),t})();function Bg(t,n,e,i=!1){return e==="start"&&n.start?.getTime()===t?.getTime()&&(i&&!n.end||!i)||e==="end"&&n.end?.getTime()===t?.getTime()?{activeRangeEnd:e,selectionRange:n}:(i&&(e==="start"?(n.start=t,e="end"):e==="end"&&(n.end=t,e="start")),i||(e==="start"&&t>n.end||e==="end"&&t=n.start&&t.getTime()!==n.end?.getTime()&&(n.end=t,e="start")),{activeRangeEnd:e,selectionRange:n})}var ma=t=>n=>{let e={minError:{minValue:t,value:n.value}};return!t||!n.value?null:n.valuen=>{let e={maxError:{maxValue:t,value:n.value}};return!t||!n.value?null:n.value>t?e:null},fD=()=>null,_D=t=>Pe(t)?n=>{if(!(Pe(n)&&Pe(n.start)&&Pe(n.end))||n.start>n.end)return null;let i=Wb(n.start,n.end,t),o={disabledDatesInRange:i};return i.length?o:null}:fD,vD={33:ge.PrevView,34:ge.NextView,35:ge.LastInView,36:ge.FirstInView,37:ge.Left,38:ge.Up,39:ge.Right,40:ge.Down,"meta+38":ge.UpperView,"meta+40":ge.LowerView},vs=(()=>{class t{constructor(e){this.bus=e}action(e){let i=`${e.ctrlKey||e.metaKey?"meta+":""}${e.keyCode}`;return vD[i]}move(e,i,o){let s=this.bus.service(o);return s?i===ge.UpperView&&this.bus.canMoveUp(o)?(this.bus.moveUp(o),e):i===ge.LowerView&&this.bus.canMoveDown(o)?(this.bus.moveDown(o),e):s.move(e,i):e}}return t.\u0275fac=function(e){return new(e||t)(J(ki))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),sd=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarHeaderTemplate",""]]}),t})(),rd=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarFooterTemplate",""]]}),t})(),jg=(()=>{class t{constructor(e){this.intl=e,this.showFooter=!0,this.getToday=Bt}}return t.\u0275fac=function(e){return new(e||t)(c(Et))},t.\u0275cmp=k({type:t,selectors:[["kendo-calendar-footer"]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-calendar-footer",i.showFooter)},inputs:{footerTemplateRef:"footerTemplateRef",activeViewValue:"activeViewValue",currentDate:"currentDate"},decls:3,vars:2,consts:[["defaultRendering",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoButton","","fillMode","flat","themeColor","primary","type","button","tabindex","-1",1,"k-calendar-nav-today"]],template:function(e,i){if(e&1&&_(0,rb,1,5,null,1)(1,ab,2,1,"ng-template",null,0,ut),e&2){let o=me(2);l("ngIf",i.footerTemplateRef)("ngIfElse",o)}},dependencies:[oe,Fe,vt],encapsulation:2}),t})(),sa=(()=>{class t extends gi{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=oi(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["kendo-multiview-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle"},features:[z]}),t})(),CD=(()=>{class t extends sa{constructor(e){super(),this.service=e}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275dir=A({type:t,selectors:[["","kendoMultiViewCalendarLocalizedMessages",""]],features:[Y([{provide:sa,useExisting:ue(()=>t)}]),z]}),t})(),SD="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview",bD="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview",DD="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min",ED="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max",Hr="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",wD={multi:!0,provide:Un,useExisting:ue(()=>ra)},yD={multi:!0,provide:Xo,useExisting:ue(()=>ra)},ra=(()=>{class t{constructor(e,i,o,s,r,a,d,p){this.bus=e,this.element=i,this.navigator=o,this.renderer=s,this.cdr=r,this.zone=a,this.disabledDatesService=d,this.selectionService=p,this.showOtherMonthDays=!0,this.showCalendarHeader=!0,this._size=Zn,this.footer=!1,this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this._selection="single",this.allowReverse=!1,this.disabled=!1,this.tabindex=0,this.weekDaysFormat="short",this.isActive=!1,this.activeView=se[se.month],this.bottomView=se[se.month],this.topView=se[se.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.orientation="horizontal",this.activeViewChange=new C,this.navigate=new C,this.cellEnter=new C,this.cellLeave=new C,this.valueChange=new C,this.rangeSelectionChange=new C,this.blurEvent=new C,this.focusEvent=new C,this.focusCalendar=new C,this.onClosePopup=new C,this.onTabPress=new C,this.onShiftTabPress=new C,this.cellUID=ri(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=ge.PrevView,this.nextView=ge.NextView,this.selectedDates=[],this.shouldHoverWhenNoStart=!1,this.canHover=!1,this.changes={},this.valueSetter=!1,this.selectionSetter=!1,this._min=new Date(sn),this._max=new Date(rn),this._focusedDate=Bt(),this._selectionRange={start:null,end:null},this.resolvedPromise=Promise.resolve(),this.onControlChange=Re,this.onControlTouched=Re,this.onValidatorChange=Re,this.minValidateFn=Re,this.maxValidateFn=Re,this.disabledDatesRangeValidateFn=Re,this.subscriptions=new Se,this.id=`kendo-multiviewcalendarid-${this.bus.calendarId}-`}set size(e){let i=e||Zn;this.renderer.removeClass(this.element.nativeElement,Xt("calendar",this.size)),i!=="none"&&this.renderer.addClass(this.element.nativeElement,Xt("calendar",i)),this._size=i}get size(){return this._size}set focusedDate(e){this._focusedDate=e||Bt()}get focusedDate(){return this._focusedDate}get headerId(){return this.id+"header-"}get multiViewCalendarHeaderIdLabel(){return this.views>=2?this.id+"header-":null}get calendarHeaderIdLabel(){return this.views===1?this.id+"header-":null}set min(e){this._min=e||new Date(sn)}get min(){return this._min}set max(e){this._max=e||new Date(rn)}get max(){return this._max}set selection(e){this.selectionSetter=!0,this._selection=e}get selection(){return this._selection}set value(e){this.valueSetter=!0,this._value=e}get value(){return this._value}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}set disabledDates(e){this.disabledDatesService.initialize(e)}set activeRangeEnd(e){this._activeRangeEnd=e}get activeRangeEnd(){return this.selection==="range"&&!this._activeRangeEnd?"start":this._activeRangeEnd}set selectionRange(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()}get selectionRange(){return this._selectionRange}set cellTemplateRef(e){this._cellTemplateRef=e}get cellTemplateRef(){return this._cellTemplateRef||this.cellTemplate}set monthCellTemplateRef(e){this._monthCellTemplateRef=e}get monthCellTemplateRef(){return this._monthCellTemplateRef||this.monthCellTemplate}set yearCellTemplateRef(e){this._yearCellTemplateRef=e}get yearCellTemplateRef(){return this._yearCellTemplateRef||this.yearCellTemplate}set decadeCellTemplateRef(e){this._decadeCellTemplateRef=e}get decadeCellTemplateRef(){return this._decadeCellTemplateRef||this.decadeCellTemplate}set centuryCellTemplateRef(e){this._centuryCellTemplateRef=e}get centuryCellTemplateRef(){return this._centuryCellTemplateRef||this.centuryCellTemplate}set weekNumberTemplateRef(e){this._weekNumberTemplateRef=e}get weekNumberTemplateRef(){return this._weekNumberTemplateRef||this.weekNumberTemplate}set footerTemplateRef(e){this._footerTemplateRef=e}get footerTemplateRef(){return this._footerTemplateRef||this.footerTemplate}set headerTitleTemplateRef(e){this._headerTitleTemplateRef=e}get headerTitleTemplateRef(){return this._headerTitleTemplateRef||this.headerTitleTemplate}set headerTemplateRef(e){this._headerTemplateRef=e}get headerTemplateRef(){return this._headerTemplateRef||this.headerTemplate}get activeViewEnum(){let e=se[this.activeView];return e=2?this.id:null}get ariaDisabled(){return this.disabled}get ariaActivedescendant(){return this.cellUID+this.focusedDate.getTime()}handleFocusout(e){let i=e.relatedTarget;this.element.nativeElement.contains(i)||(this.views===1?this.blurEvent.emit(e):this.blurEvent.emit(),this.onControlTouched()),this.isActive=!1,this.isHovered=!1}handleFocus(){this.isActive=!0,this.views===1?this.focusCalendar.emit():this.focusEvent.emit(),this.focusEvent.emit()}handleMouseEnter(){this.isHovered=!0}handleMouseLeave(){this.isHovered=!1,this.setRangeSelectionToValue()}handleMousedown(e){e.preventDefault()}handleClick(){this.isActive||this.focus()}keydown(e){let i=[T.ArrowUp,T.ArrowDown].indexOf(e.keyCode)!==-1,o=e.ctrlKey||e.metaKey,s=e.keyCode===T.ArrowRight&&o,r=e.keyCode===T.ArrowLeft&&o,a=e.keyCode===T.KeyT,d=e.keyCode===T.Enter,p=e.keyCode===T.ArrowUp,m=e.altKey,v=e.keyCode===T.Escape,S=e.keyCode===T.Tab,w=e.shiftKey;if(s){e.preventDefault(),this.navigateView(this.nextView);return}else if(r){e.preventDefault(),this.navigateView(this.prevView);return}else if(o&&i)e.preventDefault();else if(a){this.focusedDate=Bt(),this.bus.moveToBottom(this.activeViewEnum);return}else d&&(this.selection!=="range"?(this.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,e)):this.performRangeSelection(this.focusedDate));this.views>=2&&(v||m&&p?this.onClosePopup.emit(e):S&&w?this.onShiftTabPress.emit(e):S&&!w&&this.onTabPress.emit(e));let L=on(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);if(gt(this.focusedDate,L))return;this.focusedDate=L,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate),Lg(e)&&this.selection!=="range"&&(e.anyArrow=!0,this.performSelection(this.focusedDate,e))}ngOnInit(){this.setClasses(this.element.nativeElement),this.subscriptions.add(this.bus.viewChanged.subscribe(({view:e})=>{this.activeView=se[e],this.activeViewChange.emit(this.activeView),this.cdr.detectChanges(),this.updateButtonState()}))}ngOnChanges(e){this.changes=e,this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum)}ngDoCheck(){if((this.valueSetter||this.selectionSetter)&&(this.selection==="range"&&(this.value?.start||this.value?.end)&&this.focusedDate.getTime()!==this.value.start?.getTime()&&this.focusedDate.getTime()!==this.value.end?.getTime()&&(this.focusedDate=this.value.start||this.value.end||Bt()),this.setValue(this.value),this.valueSetter=!1,this.selectionSetter=!1),Gg(this.changes,"focusedDate")){let e=this.changes.focusedDate.currentValue;this.focusedDate=on(e,this.min,this.max)}(this.changes.min||this.changes.max||this.changes.rangeValidation||this.changes.disabledDates||this.changes.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?ma(this.min):Re,this.maxValidateFn=this.rangeValidation?ga(this.max):Re,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?_D(this.disabledDatesService.isDateDisabled):Re,this.onValidatorChange()),(this.changes.min||this.changes.max||this.changes.focusedDate||this.changes.activeView)&&this.updateButtonState(),this.changes={}}ngOnDestroy(){this.subscriptions.unsubscribe()}ngAfterViewInit(){this.updateButtonState()}focus(){this.element&&this.element.nativeElement.querySelector(".k-calendar-view").focus({preventScroll:!0})}blur(){if(!this.element)return;(this.views>=2?this.element.nativeElement.querySelector(".k-calendar-view"):this.element.nativeElement.querySelector(".k-calendar-table")).blur()}handleDateChange(e){let i=this.bus.canMoveDown(this.activeViewEnum),o=e.selectedDates.filter(r=>!this.disabledDatesService.isDateDisabled(r));this.focusedDate=e.focusedDate||this.focusedDate;let s=!i&&ea(o,this.selectedDates);if(!(this.disabled||s)){if(i){this.bus.moveDown(this.activeViewEnum);return}this.disabledDatesService.isDateDisabled(this.focusedDate)||this.selection!=="range"&&(this.selectedDates=o.map(r=>P(r)),this.value=this.parseSelectionToValue(o),this.onControlChange(this.parseSelectionToValue(o)),this.valueChange.emit(this.parseSelectionToValue(o)))}}onCellEnter(e,i){this.emitCellEvent(e,i),this.selection==="range"&&(this.canHover||this.shouldHoverWhenNoStart)&&this.zone.run(()=>{this.canHover&&!this.shouldHoverWhenNoStart?this.allowReverse?(this.activeRangeEnd==="end"&&this.selectionRange.start&&(this.selectionRange={start:this.selectionRange.start,end:i}),this.activeRangeEnd==="start"&&this.selectionRange.end&&(this.selectionRange={start:i,end:this.selectionRange.end})):(this.activeRangeEnd==="end"&&this.selectionRange.start&&i>=this.selectionRange.start&&(this.selectionRange={start:this.selectionRange.start,end:i}),this.selectionRange.start&&i{e.emit(i)})}handleCellClick({date:e,modifiers:i}){this.selection==="range"?this.performRangeSelection(e):(this.selectionService.lastClicked=e,this.performSelection(e,i)),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}handleWeekNumberClick(e){this.selection!=="single"&&this.zone.run(()=>{if(this.selection==="multiple"&&this.handleDateChange({selectedDates:e,focusedDate:Ci(e)}),this.selection==="range"){this.activeRangeEnd="start";let i=this.selectionRange.start?.getTime()!==e[0].getTime()||this.selectionRange.end?.getTime()!==Ci(e).getTime();this.selectionRange.start=e[0],this.selectionRange.end=Ci(e),this.value=this.selectionRange,i&&this.valueChange.emit(this.value)}})}setClasses(e){this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,Xt("calendar",this.size)),this.views>=2&&this.renderer.addClass(e,"k-calendar-range")}verifyChanges(){if(fe()){if(this.min>this.max)throw new Error(`The max value should be bigger than the min. See ${DD} and ${ED}.`);if(this.bottomViewEnum>this.topViewEnum)throw new Error(`The topView should be greater than bottomView. See ${SD} and ${bD}.`)}}verifyValue(e){if(fe()){if(this.selection==="single"&&e&&!Eo(e))throw new Error(`When using 'single' selection the 'value' should be a valid JavaScript Date instance. Check ${Hr} for possible resolution.`);if(this.selection==="multiple"&&e){if(Array.isArray(e)&&!e.every(o=>o instanceof Date))throw new Error(`When using 'multiple' selection the 'value' should be an array of valid JavaScript Date instances. Check ${Hr} for possible resolution.`);if(Object.keys(e).find(i=>i==="start")&&Object.keys(e).find(i=>i==="end"))throw new Error(`When using 'multiple' selection the 'value' should be an array of valid JavaScript Date instances. Check ${Hr} for possible resolution.`)}else if(this.selection==="range"&&e&&!(Eo(e.start)&&Eo(e.end)))throw new Error(`The 'value' should be an object with start and end dates. Check ${Hr} for possible resolution.`)}}updateButtonState(){this.resolvedPromise.then(()=>{this.isPrevDisabled=!this.viewList.canNavigate(this.prevView),this.isNextDisabled=!this.viewList.canNavigate(this.nextView),this.cdr.markForCheck()})}parseSelectionToValue(e){return e=e||[],this.selection==="single"?P(Ci(e)):e.map(i=>P(i))}setValue(e){if(this.verifyValue(e),e===null?(this._value=null,this.selectedDates=[]):Array.isArray(e)?(this.selectionRange={start:null,end:null},this._value=e.filter(i=>Pe(i)).map(i=>P(i))):Al(e)&&Object.keys(e).find(i=>i==="start")&&Object.keys(e).find(i=>i==="end")?(this.selectedDates=[],this.selectionRange={start:null,end:null},this._value={start:null,end:null},this._value.start=e.start instanceof Date?P(e.start):null,this._value.end=e.end instanceof Date?P(e.end):null,this.selectionRange=Object.assign({},this._value),this._value?.start&&!this._value?.end&&(this.activeRangeEnd="end",this.canHover=!0),this._value?.end&&!this._value?.start&&(this.activeRangeEnd="start",this.canHover=!0),this._value?.end&&this._value?.start&&(this.canHover=!1)):(this.selectionRange={start:null,end:null},this._value=P(e)),this.selection!=="range"){let i=[].concat(e).filter(o=>Pe(o)).map(o=>P(o));if(!ea(i,this.selectedDates)){let o=Ci(i);this.rangePivot=P(o),this.focusedDate=P(o)||this.focusedDate,this.selectedDates=i}}}setRangeSelectionToValue(){this.selection==="range"&&this.value&&(this.selectionRange=this.value,this.cdr.markForCheck())}performRangeSelection(e){this.focusedDate=e;let i=Object.assign({},this.selectionRange),o=this.activeRangeEnd==="start"&&this.value?.start?.getTime()!==e?.getTime()||this.activeRangeEnd==="end"&&this.value?.end?.getTime()!==e?.getTime();this.zone.run(()=>{let s=Bg(e,i,this.activeRangeEnd,this.allowReverse);this.activeRangeEnd=s.activeRangeEnd,this.canHover&&s.activeRangeEnd==="end"&&s.selectionRange.end?.getTime()===e.getTime()&&(this.activeRangeEnd="start",s.activeRangeEnd="start"),this.canHover=this.activeRangeEnd==="end"&&s.selectionRange.start&&!s.selectionRange.end,o&&(this.value?.start?.getTime()!==s.selectionRange?.start?.getTime()||this.value?.end?.getTime()!==s.selectionRange?.end?.getTime())&&(this.value=s.selectionRange,this.valueChange.emit(this.value),this.rangeSelectionChange.emit(s)),this.cdr.markForCheck()})}performSelection(e,i){let o=this.selectionService.performSelection({date:e,modifiers:i,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=o.rangePivot,this.handleDateChange({selectedDates:o.selectedDates,focusedDate:e})}}return t.\u0275fac=function(e){return new(e||t)(c(ki),c(W),c(vs),c(X),c(ve),c(re),c(kn),c(oa))},t.\u0275cmp=k({type:t,selectors:[["kendo-multiviewcalendar"]],contentQueries:function(e,i,o){if(e&1&&(B(o,Zc,5),B(o,Xc,5),B(o,ed,5),B(o,td,5),B(o,id,5),B(o,nd,5),B(o,od,5),B(o,sd,5),B(o,rd,5)),e&2){let s;D(s=E())&&(i.cellTemplate=s.first),D(s=E())&&(i.monthCellTemplate=s.first),D(s=E())&&(i.yearCellTemplate=s.first),D(s=E())&&(i.decadeCellTemplate=s.first),D(s=E())&&(i.centuryCellTemplate=s.first),D(s=E())&&(i.weekNumberTemplate=s.first),D(s=E())&&(i.headerTitleTemplate=s.first),D(s=E())&&(i.headerTemplate=s.first),D(s=E())&&(i.footerTemplate=s.first)}},viewQuery:function(e,i){if(e&1&&(j(na,5,W),j(hg,5)),e&2){let o;D(o=E())&&(i.headerElement=o.first),D(o=E())&&(i.viewList=o.first)}},hostVars:4,hostBindings:function(e,i){e&1&&O("mouseenter",function(){return i.handleMouseEnter()})("mouseleave",function(){return i.handleMouseLeave()})("mousedown",function(s){return i.handleMousedown(s)})("click",function(){return i.handleClick()})("keydown",function(s){return i.keydown(s)}),e&2&&(M("id",i.widgetId)("aria-disabled",i.ariaDisabled),N("k-disabled",i.ariaDisabled))},inputs:{showOtherMonthDays:"showOtherMonthDays",showCalendarHeader:"showCalendarHeader",size:"size",id:"id",focusedDate:"focusedDate",footer:"footer",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",allowReverse:"allowReverse",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",weekDaysFormat:"weekDaysFormat",isActive:"isActive",disabledDates:"disabledDates",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",views:"views",orientation:"orientation",cellTemplateRef:[0,"cellTemplate","cellTemplateRef"],monthCellTemplateRef:[0,"monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:[0,"yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:[0,"decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:[0,"centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:[0,"weekNumberTemplate","weekNumberTemplateRef"],footerTemplateRef:[0,"footerTemplate","footerTemplateRef"],headerTitleTemplateRef:[0,"headerTitleTemplate","headerTitleTemplateRef"],headerTemplateRef:[0,"headerTemplate","headerTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange",rangeSelectionChange:"rangeSelectionChange",blurEvent:"blur",focusEvent:"focus",focusCalendar:"focusCalendar",onClosePopup:"onClosePopup",onTabPress:"onTabPress",onShiftTabPress:"onShiftTabPress"},exportAs:["kendo-multiviewcalendar"],features:[Y([ki,wD,yD,ie,kn,{provide:ht,useValue:"kendo.multiviewcalendar"},vs,oa]),be],decls:4,vars:26,consts:()=>{let n;n=$localize`:kendo.multiviewcalendar.today|The label for the today button in the calendar header:Today`;let e;e=$localize`:kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar:Navigate to previous view`;let i;i=$localize`:kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar:Navigate to next view`;let o;return o=$localize`:kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header:Navigate to parent view`,[["kendoMultiViewCalendarLocalizedMessages","","today",n,"prevButtonTitle",e,"nextButtonTitle",i,"parentViewButtonTitle",o],[3,"activeView","currentDate","size","min","max","id","rangeLength","titleTemplateRef","headerTemplateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation","todayButtonClick","prevButtonClick","nextButtonClick",4,"ngIf"],[3,"cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange","focusCalendar","blurCalendar","showOtherMonthDays","allowReverse","id","activeView","activeDescendant","isActive","cellTemplateRef","weekNumberTemplateRef","cellUID","weekDaysFormat","views","min","max","focusedDate","animateNavigation","showViewHeader","weekNumber","activeRangeEnd","selectionRange","selectedDates","orientation","tabIndex","disabled"],[3,"footerTemplateRef","activeViewValue","currentDate",4,"ngIf"],[3,"todayButtonClick","prevButtonClick","nextButtonClick","activeView","currentDate","size","min","max","id","rangeLength","titleTemplateRef","headerTemplateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation"],[3,"footerTemplateRef","activeViewValue","currentDate"]]},template:function(e,i){if(e&1&&(Xe(0,0),_(1,lb,1,13,"kendo-calendar-header",1),g(2,"kendo-calendar-horizontal",2),O("cellClick",function(s){return i.handleCellClick(s)})("weekNumberCellClick",function(s){return i.handleWeekNumberClick(s)})("cellEnter",function(s){return i.onCellEnter(i.cellEnter,s)})("cellLeave",function(s){return i.emitCellEvent(i.cellLeave,s)})("activeDateChange",function(s){return i.setActiveDate(s)})("focusCalendar",function(){return i.handleFocus()})("blurCalendar",function(s){return i.handleFocusout(s)}),f(),_(3,cb,1,3,"kendo-calendar-footer",3)),e&2){let o;u(),l("ngIf",i.showCalendarHeader),u(),l("showOtherMonthDays",i.showOtherMonthDays)("allowReverse",i.allowReverse)("id",i.calendarHeaderIdLabel)("activeView",i.activeViewEnum)("activeDescendant",i.ariaActivedescendant)("isActive",i.isActive||i.isHovered)("cellTemplateRef",(o=i.activeCellTemplate())==null?null:o.templateRef)("weekNumberTemplateRef",i.weekNumberTemplateRef==null?null:i.weekNumberTemplateRef.templateRef)("cellUID",i.cellUID)("weekDaysFormat",i.weekDaysFormat)("views",i.views)("min",i.min)("max",i.max)("focusedDate",i.focusedDate)("animateNavigation",i.animateNavigation)("showViewHeader",i.showViewHeader)("weekNumber",i.weekNumber)("activeRangeEnd",i.activeRangeEnd)("selectionRange",i.selectionRange)("selectedDates",i.selectedDates)("orientation",i.orientation)("tabIndex",i.tabIndex)("disabled",i.disabled),M("aria-labelledby",i.multiViewCalendarHeaderIdLabel),u(),l("ngIf",i.footer)}},dependencies:[oe,na,jg,hg,CD],encapsulation:2,changeDetection:0}),t})(),fa=ci("div"),ID=ci("ul"),TD=ci("li"),kD=ci("td"),Hg=ci("th"),zc=ci("tr"),xD=ci("tbody"),RD=ci("thead"),Kg=ci("table"),OD=()=>fa(` March 2017 `,"k-calendar-header"),MD=()=>Kg([RD([zc([Hg("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"),pg=(t,n)=>new Array(t).fill("1").map(n),AD=(t,n=1)=>Kg([xD([zc([Hg("1","k-calendar-th")],"k-calendar-tr")].concat(pg(t,()=>zc(pg(n,e=>kD(`${e}`,"k-calendar-td")),"k-calendar-tr"))),"k-calendar-tbody")],"k-calendar-table"),$g=t=>fa(t,"k-flex k-content k-scrollable"),LD=(t,n,e)=>fa([OD(),e?MD():null,$g([t,t])],n,{left:"-10000px",position:"absolute"}),ND=(()=>{let t;return()=>ae?(t||(t=fa([$g([ID([TD("FEB")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),t):null})(),ad=({cells:t,rows:n},e,i)=>{let o;return()=>ae?(o||(o=LD(AD(n,t),e,i)),o):null},Yr=t=>t.querySelector(".k-scrollable"),ld=t=>(Yr(t).classList.add("k-scrollable-horizontal"),t),Wg=ad({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),qg=ad({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),Qg=ad({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),PD=()=>ld(Wg()),FD=()=>ld(qg()),GD=()=>ld(Qg()),Tn=t=>parseFloat(window.getComputedStyle(t).height)||t.offsetHeight,gs=t=>{let n=window.getComputedStyle(t);return parseFloat(n.width)+parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)||t.offsetWidth},bo=t=>t.querySelector("tbody"),bs=(()=>{class t{ensureHeights(){this.calendarHeight===void 0&&this.calculateHeights()}calculateHeights(e){ae()&&(this.hostContainer=e,this.batch(Wg(),i=>{let o=bo(i);this.calendarHeight=Tn(i),this.monthViewHeight=Tn(o),this.headerHeight=Tn(o.children[0]),this.scrollableContentHeight=Tn(Yr(i))}),this.batch(PD(),i=>{let o=bo(i);this.calendarWidth=gs(i),this.monthViewWidth=gs(o),this.scrollableContentWidth=gs(Yr(i))}),this.batch(qg(),i=>{this.yearViewHeight=Tn(bo(i)),this.scrollableYearContentHeight=Tn(Yr(i))}),this.batch(FD(),i=>{this.yearViewWidth=gs(bo(i))}),this.batch(Qg(),i=>{this.decadeViewHeight=Tn(bo(i)),this.centuryViewHeight=this.decadeViewHeight}),this.batch(GD(),i=>{this.decadeViewWidth=gs(bo(i)),this.centuryViewWidth=this.decadeViewWidth}),this.batch(ND(),i=>{this.navigationItemHeight=Tn(i.querySelector("li"))}))}viewHeight(e){return this.viewDimension(e,"height")}viewWidth(e){return this.viewDimension(e,"width")}viewDimension(e,i){let o=i==="height"?"ViewHeight":"ViewWidth";switch(e){case se.month:return this[`month${o}`];case se.year:return this[`year${o}`];case se.decade:return this[`decade${o}`];case se.century:return this[`century${o}`];default:return 1}}batch(e,i){if(!Pe(this.hostContainer))return;let o=this.hostContainer.cloneNode();document.body.appendChild(o);try{let s=o.appendChild(e);i(s)}finally{document.body.removeChild(o)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),VD=(t,n,e)=>[...t.slice(0,n+1),...t.slice(n+1).map(i=>i+e)],Uc=class{constructor(n=0,e,i){this.total=n,this.rowHeight=e,this.detailRowHeight=i,this.offsets=[],this.heights=[];let o=0;for(let s=0;sthis.rowHeight&&this.updateRowHeight(n,this.detailRowHeight*-1)}index(n){if(n<0)return;let e=this.offsets.reduce((i,o,s)=>{if(i!==void 0)return i;if(o===n)return s;if(o>n)return s-1},void 0);return e===void 0?this.total-1:e}offset(n){return this.offsets[n]}totalHeight(){return this.heights.reduce((n,e)=>n+e,0)}updateRowHeight(n,e){this.heights[n]+=e,this.offsets=VD(this.offsets,n,e)}},Kr=t=>Math.max(t,0),_s=class{constructor(n){this.offset=n}},yo=class{constructor(n){this.skip=n}},Bc=class{constructor(n){this.scrollObservable=n,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}create(n,e,i,o,s=0,r=0,a="vertical"){this.rowHeightService=n,this.firstLoaded=e,this.lastLoaded=e+i,this.take=i,this.total=o,this.lastScroll=0,this.topOffset=s,this.bottomOffset=r,this.direction=a;let d=new Gh(2),p=this.rowsForHeight(s),m=Kr(e-p);return d.next(new _s(this.rowOffset(m))),p&&d.next(new yo(m)),this.subscription=new ao(v=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(S=>this.onScroll(S,v))}).subscribe(v=>d.next(v)),d}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollLeft:n,scrollTop:e,offsetHeight:i,offsetWidth:o},s){let r=this.direction==="vertical"?e:n,a=this.direction==="vertical"?i:o;if(this.lastScroll===r)return;let d=this.lastScroll>=r;this.lastScroll=r;let p=this.rowHeightService.index(Kr(r-this.topOffset)),m=this.rowHeightService.index(Kr(r+a-this.bottomOffset));if(!d&&m>=this.lastLoaded&&this.lastLoadedn=>n+t,[zi.Backward]:t=>n=>n-t},jD={[zi.Forward]:t=>n=>Math.min(n,t),[zi.Backward]:t=>n=>Math.max(n,t)},HD={[zi.Forward]:t=>n=>nn=>n>t},KD=(t,n,e)=>Math.min(Math.abs(n-t),e),aa=(()=>{class t{constructor(e,i,o,s,r){this.container=i,this.renderer=o,this.zone=s,this.scrollBarWidthService=r,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new C,this.pageChange=new C,this.scrollChange=new C,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new Qe,this.scroller=e(this.dispatcher)}get horizontalClass(){return this.direction==="horizontal"}get totalVertexLength(){let e=`${this.totalSize}px`;return this.direction==="vertical"?{height:e}:{width:e}}get containerOffsetSize(){return this.getContainerProperty(this.direction==="vertical"?"offsetHeight":"offsetWidth")}get containerScrollSize(){return this.getContainerProperty(this.direction==="vertical"?"scrollHeight":"scrollWidth")}get containerScrollPosition(){return this.getContainerProperty(this.direction==="vertical"?"scrollTop":"scrollLeft")}ngOnChanges(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}ngOnInit(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.containerScrollSubscription=this.scroll$().pipe(Ve(e=>e.target)).subscribe(e=>{this.dispatcher.next(e),this.emitActiveIndex()})})}ngOnDestroy(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}getContainerProperty(e){return this.container.nativeElement[e]}activeIndex(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}itemIndex(e){return this.rowHeightService.index(e)}itemOffset(e){return this.rowHeightService.offset(e)}isIndexVisible(e){if(!this.rowHeightService)return!1;let i=this.containerScrollPosition,o=i+this.containerOffsetSize,s=this.rowHeightService.offset(e),r=s+this.rowHeightService.height(e);return s>=i&&r<=o}isListScrolled(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)}scrollTo(e){let i=this.direction==="vertical"?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,i,e)}scrollToIndex(e){this.zone.runOutsideAngular(()=>{this.resolvedPromise.then(()=>{this.scrollTo(this.rowHeightService.offset(e))})})}scrollToBottom(){this.scrollTo(this.totalSize)}animateToIndex(e){this.animationSubscription&&this.animationSubscription.unsubscribe();let i=this.rowHeightService.offset(e),o=this.getContainerScrollDirection(i),{start:s,end:r}=this.scrollRange(i,o);if(s===r)return;let a=this.scrollStep(s,r),d=BD[o](a),p=jD[o](r),m=HD[o](d(r));this.zone.runOutsideAngular(()=>{this.animationSubscription=Uh(Qi(s),Xs(0,Vh)).pipe(Ve(v=>v[0]),$h(d),Wh(m),Ve(p)).subscribe(v=>this.scrollTo(v))})}scrollRange(e,i){let o=this.containerScrollPosition;if(parseInt(e,10)===parseInt(o,10))return{start:e,end:e};let s=this.containerMaxScroll(),r=i===zi.Backward?1:-1,a=KD(o,e,this.maxScrollDifference),d=Math.min(e,s);return{start:Math.min(Math.max(d+r*a,0),s),end:d}}scrollStep(e,i){return Math.abs(i-e)/(this.scrollDuration/UD)}scroll$(){return ae()?Wt(this.container.nativeElement,"scroll"):zh}initServices(){this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(e=>{e instanceof yo?this.pageChange.emit(e):this.scrollChange.emit(e)})}createRowHeightService(){let e=this.direction==="vertical"?this.itemHeight:this.itemWidth;return new Uc(this.total,e,0)}emitActiveIndex(){let e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))}containerMaxScroll(){return this.containerScrollSize-this.containerOffsetSize}getContainerScrollDirection(e){return e{class t{constructor(e,i,o,s,r){this.bus=e,this.dom=i,this.intl=o,this.cdr=s,this.renderer=r,this.min=new Date(sn),this.max=new Date(rn),this.focusedDate=new Date,this.valueChange=new C,this.pageChange=new C,this.dates=[],this.take=$D,this.indexToScroll=-1}get getComponentClass(){return!0}ngOnInit(){this.dom.ensureHeights();let e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(e){if(this.service=this.bus.service(this.activeView),!this.service)return;this.activeViewValue=se[this.activeView];let i=on(this.focusedDate,this.min,this.max),o=this.service.total(this.min,this.max),s=this.total&&this.total!==o;this.skip=this.service.skip(i,this.min),this.total=o,(s||!this.service.isInArray(i,this.dates))&&(this.dates=this.service.datesList(i,this.getTake(this.skip))),(e.focusedDate||s)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){this.indexToScroll!==-1&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){this.indexToScroll!==-1&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}onPageChange({skip:e}){this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()}scrollChange({offset:e}){let i=this.list.nativeElement,o=`translateY(${e}px)`;this.renderer.setStyle(i,"transform",o),this.renderer.setStyle(i,"-ms-transform",o)}handleDateChange(e){let i=Vg(e.target,o=>o.hasAttribute("data-date-index"),this.list.nativeElement);if(i){let o=parseInt(i.getAttribute("data-date-index"),10),s=this.dates[o];this.valueChange.emit(P(s))}}getTake(e){return Math.min(this.total-e,this.take)}intlChange(){this.activeView===se.month&&this.cdr.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c(ki),c(bs),c(Et),c(ve),c(X))},t.\u0275cmp=k({type:t,selectors:[["kendo-calendar-navigation"]],viewQuery:function(e,i){if(e&1&&(j(aa,5),j(Ag,7)),e&2){let o;D(o=E())&&(i.virtualization=o.first),D(o=E())&&(i.list=o.first)}},hostVars:2,hostBindings:function(e,i){e&2&&N("k-calendar-navigation",i.getComponentClass)},inputs:{activeView:"activeView",min:"min",max:"max",focusedDate:"focusedDate",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},features:[be],decls:5,vars:12,consts:[["list",""],[1,"k-calendar-navigation-highlight"],[3,"pageChange","scrollChange","skip","take","total","itemHeight","topOffset","bottomOffset","maxScrollDifference"],[1,"k-reset",3,"kendoEventsOutsideAngular","scope"],[4,"kFor","kForOf"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){if(e&1){let o=K();b(0,"span",1),g(1,"kendo-virtualization",2),O("pageChange",function(r){return y(o),I(i.onPageChange(r))})("scrollChange",function(r){return y(o),I(i.scrollChange(r))}),g(2,"ul",3,0),_(4,pb,4,11,"li",4),f()()}e&2&&(u(),l("skip",i.skip)("take",i.take)("total",i.total)("itemHeight",i.itemHeight)("topOffset",i.topOffset)("bottomOffset",i.bottomOffset)("maxScrollDifference",i.maxViewHeight),u(),l("kendoEventsOutsideAngular",We(10,Xr,i.handleDateChange))("scope",i),u(2),l("kForOf",i.dates))},dependencies:[oe,Fe,pa,aa,Yi],encapsulation:2,changeDetection:0}),t})(),WD=5,qD=(t,n)=>t&&n&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth(),fg=(()=>{class t{constructor(e,i,o,s,r){this.bus=e,this.cdr=i,this.intl=o,this.dom=s,this.renderer=r,this.isActive=!0,this.min=new Date(sn),this.max=new Date(rn),this.selectedDates=[],this.tabIndex=0,this.disabled=!1,this.showFooter=!1,this.weekDaysFormat="short",this.cellEnter=new C,this.cellClick=new C,this.weekNumberCellClick=new C,this.activeDateChange=new C,this.todayButtonClick=new C,this.pageChange=new C,this.focusCalendar=new C,this.blurCalendar=new C,this.focusedCellChange=new C,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.wideWeekNames=[],this.take=WD,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(e){this.showWeekNumbers=e}get headerTitle(){return this.headerComponent?.title}get getComponentMonthClass(){return this.activeView===se.month}get getComponentYearClass(){return this.activeView===se.year}get getComponentDecadeClass(){return this.activeView===se.decade}get getComponentCenturyClass(){return this.activeView===se.century}get activeViewValue(){return se[this.activeView]}ngOnInit(){this.weekNames=this.getWeekNames(this.weekDaysFormat),this.wideWeekNames=this.getWeekNames("wide"),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(e){if(this.service=this.bus.service(this.activeView),!this.service)return;this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.weekNames=Do(e,"weekNumber")&&this.weekNumber?this.getWeekNames(this.weekDaysFormat):this.weekNames,this.wideWeekNames=Do(e,"weekNumber")&&this.weekNumber?this.getWeekNames("wide"):this.weekNames;let i=Do(e,"activeView"),o=this.focusedDate,s=on(this.service.viewDate(o,this.max,this.minViewsToRender),this.min,this.max),r=this.service.total(this.min,this.max),d=this.total&&this.total!==r||!this.service.isInArray(o,this.dates);this.skip=this.service.skip(s,this.min),this.total=r,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),d&&(this.dates=this.service.datesList(s,this.getTake(this.skip))),qD(this.activeDate,o)||(this.activeDate=P(o));let p=Do(e,"focusedDate")||i;(d||p||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(o,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){this.indexToScroll!==-1&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){this.indexToScroll!==-1&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}onPageChange({skip:e}){this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()}scrollChange({offset:e}){let i=this.list.nativeElement,o=`translateY(${e}px)`;this.renderer.setStyle(i,"transform",o),this.renderer.setStyle(i,"-ms-transform",o)}setActiveDate(e){let i=this.service.addToDate(this.min,e);this.activeDate=i,this.activeDateChange.emit(i),this.cdr.detectChanges()}isMonthView(){return this.activeView===se.month}isScrolled(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}getTabIndex(){return this.disabled?null:this.tabIndex}getBottomOffset(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}getScrollableHeight(){return this.activeView===se.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}getTake(e){return Math.min(this.total-e,this.take)}getWeekNames(e){let i=Fg(this.intl.dateFormatNames({nameType:e,type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(i):i}intlChange(){this.weekNames=this.getWeekNames(this.weekDaysFormat),this.wideWeekNames=this.getWeekNames("wide"),this.isMonthView()&&this.cdr.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c(ki),c(ve),c(Et),c(bs),c(X))},t.\u0275cmp=k({type:t,selectors:[["kendo-calendar-viewlist"]],viewQuery:function(e,i){if(e&1&&(j(aa,5),j(na,5),j(Ag,7)),e&2){let o;D(o=E())&&(i.virtualization=o.first),D(o=E())&&(i.headerComponent=o.first),D(o=E())&&(i.list=o.first)}},hostVars:12,hostBindings:function(e,i){e&2&&N("k-vstack",i.getComponentClass)("k-calendar-view",i.getComponentClass)("k-calendar-monthview",i.getComponentMonthClass)("k-calendar-yearview",i.getComponentYearClass)("k-calendar-decadeview",i.getComponentDecadeClass)("k-calendar-centuryview",i.getComponentCenturyClass)},inputs:{allowReverse:"allowReverse",cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",headerTemplateRef:"headerTemplateRef",footerTemplateRef:"footerTemplateRef",showOtherMonthDays:"showOtherMonthDays",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",tabIndex:"tabIndex",disabled:"disabled",id:"id",showFooter:"showFooter",weekDaysFormat:"weekDaysFormat",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",size:"size",weekNumber:"weekNumber"},outputs:{cellEnter:"cellEnter",cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange",focusCalendar:"focusCalendar",blurCalendar:"blurCalendar",focusedCellChange:"focusedCellChange"},features:[be],decls:9,vars:23,consts:[["list",""],[3,"todayButtonClick","currentDate","size","min","max","id","activeView","titleTemplateRef","headerTemplateRef"],["class","k-calendar-weekdays k-calendar-table",3,"table-layout",4,"ngIf"],[3,"pageChange","scrollChange","activeIndexChange","tabindex","skip","take","total","itemHeight","topOffset","bottomOffset","scrollOffsetSize","maxScrollDifference"],["role","grid",1,"k-calendar-table",3,"focus","blur"],[4,"ngFor","ngForOf"],["class","k-calendar-tbody","kendoCalendarView","","role","rowgroup",3,"allowReverse","activeRangeEnd","selectionRange","showOtherMonthDays","headerTitle","activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick","focusedCellId","cellEnter",4,"kFor","kForOf"],[3,"footerTemplateRef","activeViewValue","currentDate",4,"ngIf"],[1,"k-calendar-weekdays","k-calendar-table"],[1,"k-calendar-thead"],[1,"k-calendar-tr"],["class","k-calendar-th","scope","col","role","columnheader",4,"ngFor","ngForOf"],["scope","col","role","columnheader",1,"k-calendar-th"],["kendoCalendarView","","role","rowgroup",1,"k-calendar-tbody",3,"cellClick","weekNumberCellClick","focusedCellId","cellEnter","allowReverse","activeRangeEnd","selectionRange","showOtherMonthDays","headerTitle","activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate"],[3,"footerTemplateRef","activeViewValue","currentDate"]],template:function(e,i){if(e&1){let o=K();g(0,"kendo-calendar-header",1),O("todayButtonClick",function(r){return y(o),I(i.todayButtonClick.emit(r))}),f(),_(1,gb,4,3,"table",2),g(2,"kendo-virtualization",3),O("pageChange",function(r){return y(o),I(i.onPageChange(r))})("scrollChange",function(r){return y(o),I(i.scrollChange(r))})("activeIndexChange",function(r){return y(o),I(i.setActiveDate(r))}),g(3,"table",4,0),O("focus",function(){return y(o),I(i.focusCalendar.emit())})("blur",function(r){return y(o),I(i.blurCalendar.emit(r))}),g(5,"colgroup"),_(6,fb,1,0,"col",5),f(),_(7,_b,1,16,"tbody",6),f()(),_(8,vb,1,3,"kendo-calendar-footer",7)}e&2&&(l("currentDate",i.activeDate)("size",i.size)("min",i.min)("max",i.max)("id",i.id)("activeView",i.activeView)("titleTemplateRef",i.headerTitleTemplateRef)("headerTemplateRef",i.headerTemplateRef),u(),l("ngIf",i.isMonthView()),u(),l("tabindex",-1)("skip",i.skip)("take",i.take)("total",i.total)("itemHeight",i.viewHeight)("topOffset",i.viewOffset)("bottomOffset",i.bottomOffset)("scrollOffsetSize",i.viewOffset)("maxScrollDifference",i.viewHeight),u(),M("tabindex",i.getTabIndex())("aria-labelledby",i.id),u(3),l("ngForOf",i.cols),u(),l("kForOf",i.dates),u(),l("ngIf",i.showFooter))},dependencies:[qe,oe,pa,na,jg,Ug,aa],encapsulation:2,changeDetection:0}),t})(),QD=t=>n=>Math.floor(n/t),JD=t=>n=>n*t,_g=(()=>{class t{constructor(e,i){this.dom=e,this.zone=i}configure(e){let i=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=QD(i),this.powerByMagnitude=JD(i)}sync(e,i){this.unsubscribe(),!(!e||!i)&&(this.navigator=e,this.view=i,this.zone.runOutsideAngular(()=>{let o,s;this.navSubscription=e.scroll$().subscribe(r=>{if(s){s=!1;return}o=!0,this.scrollSiblingOf(r.target)}),this.viewSubscription=i.scroll$().subscribe(r=>{if(o){o=!1;return}s=!0,this.scrollSiblingOf(r.target)})}))}scrollSiblingOf(e){let i=this.siblingComponent(e),o=this.calculateScroll(i,e.scrollTop);i.scrollTo(o)}siblingComponent(e){return this.navigator.container.nativeElement===e?this.view:this.navigator}calculateScroll(e,i){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(i)}destroy(){this.unsubscribe()}unsubscribe(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(J(bs),J(re))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Jg=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarNavigationItemTemplate",""]]}),t})(),Io=class{constructor(){this.onFocus=new C,this.onBlur=new C,this.sameDateSelected=new C,this.dateCompletenessChange=new C}},YD=(()=>{class t extends sa{constructor(e){super(),this.service=e}get override(){return!0}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-multiviewcalendar-messages"]],features:[Y([{provide:sa,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),la=(()=>{class t extends gi{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=oi(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["kendo-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle"},features:[z]}),t})(),ZD=(()=>{class t extends la{constructor(e){super(),this.service=e}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275dir=A({type:t,selectors:[["","kendoCalendarLocalizedMessages",""]],features:[Y([{provide:la,useExisting:ue(()=>t)}]),z]}),t})(),XD="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview",eE="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview",tE="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min",iE="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max",$r="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",vg=t=>t?t.virtualization:null,nE={multi:!0,provide:Un,useExisting:ue(()=>_a)},oE={multi:!0,provide:Xo,useExisting:ue(()=>_a)},sE={provide:uo,useExisting:ue(()=>_a)},_a=(()=>{class t{constructor(e,i,o,s,r,a,d,p,m,v,S,w,L){this.bus=e,this.dom=i,this.element=o,this.navigator=s,this.renderer=r,this.cdr=a,this.ngZone=d,this.injector=p,this.scrollSyncService=m,this.disabledDatesService=v,this.localization=S,this.selectionService=w,this.pickerService=L,this.rangeValidation=!1,this.weekDaysFormat="short",this.footer=!1,this._selection="single",this.allowReverse=!1,this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=se[se.month],this.bottomView=se[se.month],this.topView=se[se.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new C,this.navigate=new C,this.activeViewDateChange=new C,this.onBlur=new C,this.onFocus=new C,this.valueChange=new C,this._size=Zn,this._activeRangeEnd="start",this.isActive=!1,this.cellUID=ri(),this.selectionRange={start:null,end:null},this.selectedDates=[],this._min=new Date(sn),this._max=new Date(rn),this._focusedDate=Bt(),this.onControlChange=Re,this.onControlTouched=Re,this.onValidatorChange=Re,this.minValidateFn=Re,this.maxValidateFn=Re,this.changes={},this.valueSetter=!1,this.selectionSetter=!1,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,this.canHover=!1,pt(Kc),this.id=`kendo-calendarid-${this.bus.calendarId}`,this.pickerService&&(this.pickerService.calendar=this)}set showOtherMonthDays(e){this._showOtherMonthDays=e}get showOtherMonthDays(){return this._showOtherMonthDays===void 0?this.type==="classic":this._showOtherMonthDays}get popupId(){return`kendo-popup-${this.bus.calendarId}`}set focusedDate(e){if(this.activeViewDate&&!gt(this._focusedDate,e)){let i=this.bus.service(this.activeViewEnum),o=i.lastDayOfPeriod(this.activeViewDate);i.isInRange(e,this.activeViewDate,o)||this.emitNavigate(e)}this._focusedDate=e||Bt(),this.setAriaActivedescendant()}get focusedDate(){return this._focusedDate>this.max?this.max:this._focusedDatethis.cdr.markForCheck()),this.viewChangeSubscription=this.bus.viewChanged.subscribe(({view:e})=>this.handleActiveViewChange(se[e])),this.control=this.injector.get(co,null),this.element&&this.ngZone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(e){this.changes=e,this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum)}ngDoCheck(){if((this.valueSetter||this.selectionSetter)&&(this.selection==="range"&&(this.value?.start||this.value?.end)&&this.focusedDate.getTime()!==this.value.start?.getTime()&&this.focusedDate.getTime()!==this.value.end?.getTime()&&(this.focusedDate=this.value.start||this.value.end||Bt()),this.setValue(this.value),this.valueSetter=!1,this.selectionSetter=!1),Gg(this.changes,"focusedDate")){let e=this.changes.focusedDate.currentValue;this.focusedDate=on(e,this.min,this.max)}this.changes.navigation&&(this.syncNavigation=!0),(this.changes.min||this.changes.max||this.changes.rangeValidation)&&(this.minValidateFn=this.rangeValidation?ma(this.min):Re,this.maxValidateFn=this.rangeValidation?ga(this.max):Re,this.onValidatorChange()),this.changes={}}ngAfterViewInit(){if(this.setAriaActivedescendant(),this.size!=="none"){let e=this.type==="infinite"?this.element:this.multiViewCalendar.element;this.renderer.removeClass(e.nativeElement,Xt("calendar",this.size)),this.renderer.addClass(e.nativeElement,Xt("calendar",this.size))}}ngAfterViewChecked(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(vg(this.navigationView),vg(this.monthView)))}ngOnDestroy(){this.scrollSyncService.destroy(),this.domEvents.forEach(e=>e()),this.pickerService&&(this.pickerService.calendar=null),this.viewChangeSubscription&&this.viewChangeSubscription.unsubscribe(),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0}onCellEnter(e){this.selection==="range"&&this.canHover&&this.ngZone.run(()=>{this.allowReverse?(this.activeRangeEnd==="end"&&this.selectionRange.start&&(this.selectionRange={start:this.selectionRange.start,end:e}),this.activeRangeEnd==="start"&&this.selectionRange.end&&(this.selectionRange={start:e,end:this.selectionRange.end})):(this.activeRangeEnd==="end"&&this.selectionRange.start&&e>=this.selectionRange.start&&(this.selectionRange={start:this.selectionRange.start,end:e}),this.selectionRange.start&&ei===this.element.nativeElement)}handleNavigation(e){if(this.disabled)return;let i=e?new Date(P(e).setDate(1)):this.focusedDate;this.focusedDate=on(i,this.min,this.max),this.detectChanges()}onPageChange(){re.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=Gn(this.resolvedPromise).subscribe(()=>{this.detectChanges()}))}handleMultiViewCalendarValueChange(e,i){if(this.selection==="range")this.valueChange.emit(e);else{let o=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:o,focusedDate:i})}}handleDateChange(e){let i=Array.isArray(e.selectedDates)?e.selectedDates:[e.selectedDates],o=this.bus.canMoveDown(this.activeViewEnum),s=i.filter(r=>!this.disabledDatesService.isDateDisabled(r));if(this.focusedDate=e.focusedDate||this.focusedDate,!this.disabled){if(!o&&ea(s,this.selectedDates)){this.emitSameDate();return}if(o){this.bus.moveDown(this.activeViewEnum);return}this.disabledDatesService.isDateDisabled(this.focusedDate)||this.selection!=="range"&&this.ngZone.run(()=>{this.selectedDates=s.map(r=>P(r)),this.value=this.parseSelectionToValue(s),this.onControlChange(this.parseSelectionToValue(s)),this.valueChange.emit(this.parseSelectionToValue(s)),this.cdr.markForCheck()})}}writeValue(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onControlChange=e}registerOnTouched(e){this.onControlTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}validate(e){return this.minValidateFn(e)||this.maxValidateFn(e)}registerOnValidatorChange(e){this.onValidatorChange=e}activeCellTemplate(){switch(this.activeViewEnum){case se.month:return this.monthCellTemplateRef||this.cellTemplateRef;case se.year:return this.yearCellTemplateRef;case se.decade:return this.decadeCellTemplateRef;case se.century:return this.centuryCellTemplateRef;default:return null}}handleNavigate(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)}emitNavigate(e){let i=se[this.activeViewEnum];this.navigate.emit({activeView:i,focusedDate:e})}emitEvent(e,i){bt(e)&&this.ngZone.run(()=>{e.emit(i)})}handleActiveDateChange(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)}handleActiveViewChange(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),this.type==="infinite"&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()}handleCellClick({date:e,modifiers:i}){this.focus(),this.selection==="range"?this.performRangeSelection(e):(this.selectionService.lastClicked=e,this.performSelection(e,i))}handleWeekNumberClick(e){this.selection!=="single"&&this.ngZone.run(()=>{if(this.selection==="multiple"&&this.handleDateChange({selectedDates:e,focusedDate:Ci(e)}),this.selection==="range"){this.canHover=!1,this.activeRangeEnd="start";let i=this.selectionRange.start?.getTime()!==e[0].getTime()||this.selectionRange.end?.getTime()!==Ci(e).getTime();this.value={start:e[0],end:Ci(e)},i&&this.valueChange.emit(this.value)}})}handleBlur(e){this.element.nativeElement.contains(e.relatedTarget)||(this.isActive=!1,!this.pickerService&&$c(this.control)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(e),this.cdr.markForCheck()}):(this.emitBlur(e),this.detectChanges()))}handleFocus(){this.isActive=!0,re.isInAngularZone()||this.detectChanges(),this.emitFocus()}handleMultiViewCalendarKeydown(e){Pe(this.pickerService)&&e.keyCode===T.Enter&&e.preventDefault()}setClasses(e){this.renderer.removeClass(e,`k-calendar-${this.type}`),this.type==="infinite"&&(this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,`k-calendar-${this.type}`))}verifyChanges(){if(fe()){if(this.min>this.max)throw new Error(`The max value should be bigger than the min. See ${tE} and ${iE}.`);if(this.bottomViewEnum>this.topViewEnum)throw new Error(`The topView should be greater than bottomView. See ${XD} and ${eE}.`)}}verifyValue(e){if(fe()){if(this.selection==="single"&&e&&!Eo(e))throw new Error(`When using 'single' selection the 'value' should be a valid JavaScript Date instance. Check ${$r} for possible resolution.`);if(this.selection==="multiple"&&e){if(Array.isArray(e)&&!e.every(o=>o instanceof Date))throw new Error(`When using 'multiple' selection the 'value' should be an array of valid JavaScript Date instances. Check ${$r} for possible resolution.`);if(Object.keys(e).find(i=>i==="start")&&Object.keys(e).find(i=>i==="end"))throw new Error(`When using 'multiple' selection the 'value' should be an array of valid JavaScript Date instances. Check ${$r} for possible resolution.`)}else if(this.selection==="range"&&e&&!(Eo(e.start)&&Eo(e.end)))throw new Error(`The 'value' should be an object with start and end dates. Check ${$r} for possible resolution.`)}}bindEvents(){let e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",zb),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"mouseleave",this.setRangeSelectionToValue.bind(this)))}setRangeSelectionToValue(){this.selection==="range"&&this.value&&this.ngZone.run(()=>{this.selectionRange=this.value,this.cdr.markForCheck()})}emitBlur(e){this.pickerService&&this.pickerService.onBlur.emit(e),this.onBlur.emit()}emitFocus(){this.pickerService&&this.pickerService.onFocus.emit(),this.onFocus.emit()}handleComponentClick(){this.isActive||(this.type==="infinite"&&this.monthView.isScrolled()&&(this.focusedDate=P(this.focusedDate),this.detectChanges()),this.focus())}handleKeydown(e){if(this.type==="infinite"){let i=e.ctrlKey||e.metaKey,o=[T.ArrowUp,T.ArrowRight,T.ArrowDown,T.ArrowLeft].indexOf(e.keyCode)!==-1;if(Pe(this.pickerService)&&o&&e.altKey)return;i&&o&&e.preventDefault(),Pe(this.pickerService)&&e.keyCode===T.Enter&&e.preventDefault();let a=on(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);gt(this.focusedDate,a)||(this.focusedDate=a,this.detectChanges(),e.preventDefault()),e.keyCode===T.Enter&&(this.selectionService.lastClicked=this.focusedDate,this.selection!=="range"?this.performSelection(this.focusedDate,e):this.performRangeSelection(this.focusedDate)),e.keyCode===T.KeyT&&this.focusToday(),Lg(e)&&this.selection!=="range"&&(e.anyArrow=!0,this.performSelection(this.focusedDate,e))}}focusToday(){this.focusedDate=Bt(),this.bus.moveToBottom(this.activeViewEnum),this.cdr.detectChanges()}detectChanges(){this.destroyed||this.cdr.detectChanges()}emitSameDate(){this.pickerService&&this.pickerService.sameDateSelected.emit()}setAriaActivedescendant(){let e=this.element.nativeElement?.querySelector(Mc.infiniteCalendarTable);if(!Pe(e)||this.type==="classic"&&!e.hasAttribute(li.ariaActiveDescendant))return;if(this.type==="classic"){this.renderer.removeAttribute(e,li.ariaActiveDescendant);return}let o=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(e,li.ariaActiveDescendant,o)}parseSelectionToValue(e){return e=e||[],this.selection==="single"?P(Ci(e)):e.map(i=>P(i))}setValue(e){if(this.verifyValue(e),e===null?(this._value=null,this.selectedDates=[],this.selectionRange={start:null,end:null}):Array.isArray(e)?(this.selectionRange={start:null,end:null},this._value=e.filter(i=>Pe(i)).map(i=>P(i))):Al(e)&&Object.keys(e).find(i=>i==="start")&&Object.keys(e).find(i=>i==="end")?(this.selectedDates=[],this.selectionRange={start:null,end:null},this._value={start:null,end:null},this._value.start=e.start instanceof Date?P(e.start):null,this._value.end=e.end instanceof Date?P(e.end):null,this.selectionRange=Object.assign({},this._value),this._value?.start&&!this._value?.end&&(this.activeRangeEnd="end",this.canHover=!0),this._value?.end&&!this._value?.start&&(this.activeRangeEnd="start",this.canHover=!0),this._value?.end&&this._value?.start&&(this.canHover=!1)):(this.selectionRange={start:null,end:null},this._value=P(e)),this.selection!=="range"){let i=[].concat(e).filter(o=>Pe(o)).map(o=>P(o));if(!ea(i,this.selectedDates)){let o=Ci(i);this.rangePivot=P(o),this.focusedDate=P(o)||this.focusedDate,this.selectedDates=i}}}performRangeSelection(e){this.focusedDate=e;let i=Object.assign({},this.selectionRange),o=this.activeRangeEnd==="start"&&this.value?.start?.getTime()!==e?.getTime()||this.activeRangeEnd==="end"&&this.value?.end?.getTime()!==e?.getTime();this.ngZone.run(()=>{let s=Bg(e,i,this.activeRangeEnd,this.allowReverse);this.activeRangeEnd=s.activeRangeEnd,this.canHover&&s.activeRangeEnd==="end"&&s.selectionRange.end?.getTime()===e.getTime()&&(this.activeRangeEnd="start",s.activeRangeEnd="start"),this.canHover=this.activeRangeEnd==="end"&&s.selectionRange.start&&!s.selectionRange.end,o&&(this.value?.start?.getTime()!==s.selectionRange?.start?.getTime()||this.value?.end?.getTime()!==s.selectionRange?.end?.getTime())&&(this.value=s.selectionRange,this.valueChange.emit(this.value)),this.cdr.markForCheck()})}performSelection(e,i){let o=this.selectionService.performSelection({date:e,modifiers:i,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=o.rangePivot,this.handleDateChange({selectedDates:o.selectedDates,focusedDate:e})}}return t.\u0275fac=function(e){return new(e||t)(c(ki),c(bs),c(W),c(vs),c(X),c(ve),c(re),c(Zo),c(_g),c(kn),c(ie),c(oa),c(Io,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-calendar"]],contentQueries:function(e,i,o){if(e&1&&(B(o,Zc,5),B(o,Xc,5),B(o,ed,5),B(o,td,5),B(o,id,5),B(o,nd,5),B(o,od,5),B(o,sd,5),B(o,rd,5),B(o,Jg,5)),e&2){let s;D(s=E())&&(i.cellTemplate=s.first),D(s=E())&&(i.monthCellTemplate=s.first),D(s=E())&&(i.yearCellTemplate=s.first),D(s=E())&&(i.decadeCellTemplate=s.first),D(s=E())&&(i.centuryCellTemplate=s.first),D(s=E())&&(i.weekNumberTemplate=s.first),D(s=E())&&(i.headerTitleTemplate=s.first),D(s=E())&&(i.headerTemplate=s.first),D(s=E())&&(i.footerTemplate=s.first),D(s=E())&&(i.navigationItemTemplate=s.first)}},viewQuery:function(e,i){if(e&1&&(j(gg,5),j(fg,5),j(ra,5)),e&2){let o;D(o=E())&&(i.navigationView=o.first),D(o=E())&&(i.monthView=o.first),D(o=E())&&(i.multiViewCalendar=o.first)}},hostVars:6,hostBindings:function(e,i){e&2&&(M("id",i.widgetId)("aria-disabled",i.ariaDisabled),N("k-week-number",i.weekNumber)("k-disabled",i.ariaDisabled))},inputs:{showOtherMonthDays:"showOtherMonthDays",id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",weekDaysFormat:"weekDaysFormat",footer:"footer",selection:"selection",allowReverse:"allowReverse",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",type:"type",animateNavigation:"animateNavigation",weekNumber:"weekNumber",cellTemplateRef:[0,"cellTemplate","cellTemplateRef"],monthCellTemplateRef:[0,"monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:[0,"yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:[0,"decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:[0,"centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:[0,"weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:[0,"headerTitleTemplate","headerTitleTemplateRef"],headerTemplateRef:[0,"headerTemplate","headerTemplateRef"],footerTemplateRef:[0,"footerTemplate","footerTemplateRef"],navigationItemTemplateRef:[0,"navigationItemTemplate","navigationItemTemplateRef"],size:"size",activeRangeEnd:"activeRangeEnd"},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",onBlur:"blur",onFocus:"focus",valueChange:"valueChange"},exportAs:["kendo-calendar"],features:[Y([ki,nE,oE,sE,ie,kn,{provide:ht,useValue:"kendo.calendar"},vs,_g,oa]),be],decls:3,vars:2,consts:()=>{let n;n=$localize`:kendo.calendar.today|The label for the today button in the calendar header:Today`;let e;e=$localize`:kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view`;let i;i=$localize`:kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view`;let o;return o=$localize`:kendo.calendar.parentViewButtonTitle|The title of the parent view button in the calendar header:Navigate to parent view`,[["multiviewcalendar",""],["kendoCalendarLocalizedMessages","","today",n,"prevButtonTitle",e,"nextButtonTitle",i,"parentViewButtonTitle",o],[4,"ngIf"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange",4,"ngIf"],[3,"todayButtonClick","cellClick","weekNumberCellClick","activeDateChange","pageChange","focusCalendar","blurCalendar","cellEnter","activeView","allowReverse","showOtherMonthDays","activeRangeEnd","selectionRange","size","isActive","id","weekDaysFormat","cellTemplateRef","headerTitleTemplateRef","headerTemplateRef","showFooter","footerTemplateRef","weekNumberTemplateRef","cellUID","min","max","focusedDate","weekNumber","selectedDates","tabIndex","disabled"],[3,"resize"],[3,"valueChange","pageChange","activeView","focusedDate","min","max","templateRef"],[3,"activeViewChange","navigate","valueChange","focusCalendar","blur","blurEvent","keydown","views","min","max","size","id","activeRangeEnd","selectionRange","allowReverse","disabled","isActive","showOtherMonthDays","tabIndex","activeView","bottomView","topView","weekDaysFormat","weekNumber","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","headerTitleTemplate","headerTemplate","footerTemplate","footer","weekNumberTemplate","focusedDate","selection","value","disabledDates"],[3,"today","prevButtonTitle","nextButtonTitle","parentViewButtonTitle"]]},template:function(e,i){e&1&&(Xe(0,1),_(1,Sb,4,24,"ng-container",2)(2,bb,4,36,"ng-container",2)),e&2&&(u(),l("ngIf",i.type==="infinite"),u(),l("ngIf",i.type==="classic"))},dependencies:[oe,YD,ra,yi,gg,ZD,fg],encapsulation:2,changeDetection:0}),t})(),Yg=()=>(t,n)=>!Pe(t.value)&&n?{incompleteDate:!0}:null,Zr=function(t){return t[t.Up=0]="Up",t[t.Down=1]="Down",t[t.None=2]="None",t}(Zr||{}),ca=(()=>{class t extends gi{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=oi(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["kendo-dateinput-messages-base"]],inputs:{decrement:"decrement",increment:"increment",clearTitle:"clearTitle"},features:[z]}),t})(),rE=(()=>{class t extends ca{constructor(e){super(),this.service=e}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275dir=A({type:t,selectors:[["","kendoDateInputLocalizedMessages",""]],features:[Y([{provide:ca,useExisting:ue(()=>t)}]),z]}),t})(),Cg=0,aE="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min",lE="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max",cE="http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json",dE=68,uE="d",Sg="wide",hE=/year|month|/,pE=/hour|minute|second|millisecond/,jc=class{constructor(n){this.service=n,this.cldr={},this.localeId=n.localeId,this.format=n.format,this.toString=n.toString,this.formatDate=n.formatDate,this.parseDate=n.parseDate,this.parseNumber=n.parseNumber,this.formatNumber=n.formatNumber,this.splitDateFormat=n.splitDateFormat,this.numberSymbols=n.numberSymbols,this.firstDay=n.firstDay,this.weekendRange=n.weekendRange,this.dateFieldName=n.dateFieldName,this.dateFormatNames=(i,o)=>this.service.dateFormatNames(o,i||this.localeId);let e=Yp(this.localeId);this.cldr[e.name]=e}},mE=(()=>{class t{constructor(e,i,o,s,r,a,d,p){this.cdr=e,this.intl=i,this.renderer=o,this.wrapper=s,this.ngZone=r,this.injector=a,this.localization=d,this.pickerService=p,this.caretAltUpIcon=Kn,this.xIcon=es,this.caretAltDownIcon=Zi,this.clearButton=!1,this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="textbox",this.ariaReadOnly=!1,this.isRequired=!1,this.format=uE,this.placeholder=null,this.steps={second:1,minute:1,hour:1,day:1,month:1,year:1},this.rangeValidation=!0,this.autoCorrectParts=!0,this.autoSwitchParts=!0,this.autoSwitchKeys=[],this.allowCaretMode=!1,this.autoFill=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=dE,this.enableMouseWheel=!0,this.spinners=!1,this.valueChange=new C,this.valueUpdate=new C,this.onFocus=new C,this.onBlur=new C,this.arrow=Zr,this.arrowDirection=Zr.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.showClearButton=!1,this.isDateIncomplete=!1,this.currentFormat="",this.minValidator=Re,this.maxValidator=Re,this.incompleteValidator=Re,this._value=null,this._active=!1,this._focusableId=`dateinput-${Cg++}`,this._formatPlaceholder=Sg,this.kendoDate=null,this.kendoDateObject=null,this.domEvents=[],this.onControlChange=Re,this.onControlTouched=Re,this.onValidatorChange=Re,this._size=Zn,this._rounded=ta,this._fillMode=ia,this.subs=new Se,this.parsedAttributes={},pt(Kc),this.pickerService?this.pickerService.input=this:this.ariaReadOnly=null}set focusableId(e){e&&(this._focusableId=e)}get focusableId(){return this._focusableId}set pickerType(e){e&&(this.focusableId=`${e}-${Cg}`)}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}set formatPlaceholder(e){this._formatPlaceholder=e||Sg}get formatPlaceholder(){return this._formatPlaceholder}set value(e){this.verifyValue(e),this._value=P(e),this.valueUpdate.emit(P(e))}get value(){return this._value}set size(e){this.renderer.removeClass(this.wrapper.nativeElement,Xt("input",this.size));let i=e||Zn;i!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,Xt("input",i)),this._size=i}get size(){return this._size}set rounded(e){this.renderer.removeClass(this.wrapper.nativeElement,wo(this.rounded));let i=e||ta;i!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,wo(i)),this._rounded=i}get rounded(){return this._rounded}set fillMode(e){this.renderer.removeClass(this.wrapper.nativeElement,nn("input",this.fillMode));let i=e||ia;i!=="none"&&(this.renderer.addClass(this.wrapper.nativeElement,nn("input",i)),this.spinners&&this.spinup&&this.spindown&&(this.setSpinnerFill(this.spinup.nativeElement,i,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,i,this.fillMode))),this._fillMode=i}get fillMode(){return this._fillMode}set inputAttributes(e){_p(this.parsedAttributes)&&Sp(this.parsedAttributes,this.renderer,this.dateInput.nativeElement),this._inputAttributes=e,this.parsedAttributes=this.inputAttributes?bp(this.inputAttributes,this.defaultAttributes):this.inputAttributes,this.setInputAttributes()}get inputAttributes(){return this._inputAttributes}get wrapperClass(){return!0}get disabledClass(){return this.disabled}get inputElement(){return this.dateInput?this.dateInput.nativeElement:null}get inputValue(){return(this.inputElement||{}).value||""}get isActive(){return this._active}set isActive(e){if(this._active=e,!!this.wrapper&&!Pe(this.pickerService)){let i=this.wrapper.nativeElement;e?this.renderer.addClass(i,"k-focus"):this.renderer.removeClass(i,"k-focus")}}get formControl(){return this.injector.get(co,null)?.control||null}get options(){return{format:this.format,steps:this.steps,readonly:this.readonly,formatPlaceholder:this.formatPlaceholder,placeholder:this.placeholder,autoCorrectParts:this.autoCorrectParts,autoSwitchParts:this.autoSwitchParts,selectPreviousSegmentOnBackspace:!0,autoSwitchKeys:this.autoSwitchKeys,twoDigitYearMax:this.twoDigitYearMax,enableMouseWheel:this.enableMouseWheel,selectNearestSegmentOnFocus:!0,allowCaretMode:this.allowCaretMode,autoFill:this.autoFill,value:this.value,intlService:new jc(this.intl)}}get defaultAttributes(){return{"aria-readonly":this.ariaReadOnly,id:this.focusableId,title:this.title,tabindex:this.tabindex,disabled:this.disabled?"":null,readonly:this.readonly?"":null,placeholder:this.placeholder,"aria-expanded":this.isPopupOpen,"aria-haspopup":this.hasPopup,required:this.isControlRequired?"":null}}get mutableAttributes(){return{autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:this.role}}isEmpty(){let e=this.dateInput.nativeElement.value;return!e||!String(e).trim()}handleDragAndDrop(e){e.preventDefault()}containsElement(e){return!!zg(e,i=>i===this.wrapper.nativeElement)}ngOnInit(){this.kendoDate&&this.kendoDate.destroy(),this.kendoDate=this.initKendoDate(),this.kendoDateObject=this.kendoDate.dateObject,this.updateFormatSections(),this.subs.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.ngControl=this.injector.get(co,null),this.wrapper&&this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex")}ngOnChanges(e){if(this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?ma(this.min):Re,this.maxValidator=this.rangeValidation?ga(this.max):Re,this.incompleteValidator=this.incompleteDateValidation?Yg():Re,this.onValidatorChange()),!(this.kendoDate&>(this.value,this.kendoDate.value))){if(!this.kendoDate)return;this.kendoDate.writeValue(this.value)}if(e.format||e.placeholder){if(!this.kendoDate)return;this.kendoDate?.setOptions(this.options,!0),this.updateFormatSections()}}updateFormatSections(){this.formatSections=this.intl.splitDateFormat(this.kendoDate.inputFormat).reduce(({date:e,time:i},o)=>({date:e||hE.test(o.type),time:i||pE.test(o.type)}),{date:!1,time:!1})}updateIncompleteValidationStatus(){let e=this.isDateIncomplete;this.isDateIncomplete=this.kendoDateObject.hasValue()&&this.value===null,!(e===this.isDateIncomplete||!this.incompleteDateValidation)&&(Pe(this.ngControl)&&!Pe(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(()=>this.onValidatorChange())):Pe(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())}ngAfterViewInit(){this.setComponentClasses();let e=this.injector.get(co,null)?.control;this.control=e,this.subs.add(this.formControl?.statusChanges.subscribe(()=>this.setAriaInvalid())),this.setAriaInvalid()}ngOnDestroy(){this.subs.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(e=>e())}setAriaInvalid(){this.control&&(this.control.invalid?this.renderer.setAttribute(this.inputElement,li.ariaInvalid,"true"):this.renderer.setAttribute(this.inputElement,li.ariaInvalid,"false"))}get isControlRequired(){return Ll(this.formControl)||this.isRequired}validate(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)}registerOnValidatorChange(e){this.onValidatorChange=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}writeValue(e){this.verifyValue(e),this.value=P(e),this.kendoDate?.setOptions(this.options,!0),this.kendoDateObject?.setValue(this.value),this.kendoDate?.refreshElementValue()}resetInput(){this.kendoDateObject?.setValue(null),this.kendoDate?.refreshElementValue(),this.control?.setValue(null),this.showClearButton=!1}triggerChange(){let e=this.kendoDate.value;+e!=+this.value&&(this.value=P(e),this.notify())}notify(){this.ngZone.run(()=>{this.showClearButton=!0,this.onControlChange(P(this.value)),this.valueChange.emit(P(this.value))})}registerOnChange(e){this.onControlChange=e}registerOnTouched(e){this.onControlTouched=e}focus(){this.kendoDate&&this.kendoDate.focus()}blur(){let e=this.inputElement;e&&e.blur()}handleButtonClick(e){this.showClearButton=!0,this.arrowDirection=Zr.None,this.kendoDate.focus(),this.kendoDate.modifyDateSegmentValue(e)}initKendoDate(){return new ms(this.dateInput.nativeElement,Fh(at({},this.options),{events:{valueChange:this.onWidgetValueChange.bind(this),inputEnd:this.onWidgetInputEnd.bind(this),focusEnd:this.onWidgetFocus.bind(this),blurEnd:this.onWidgetBlur.bind(this),keydown:this.onWidgetKeyDown.bind(this)}}))}onWidgetValueChange(){this.triggerChange()}onWidgetKeyDown(){this.kendoDateObject=this.kendoDate.dateObject}onWidgetInputEnd(){this.updateIncompleteValidationStatus(),this.clearButton&&(this.showClearButton=!0,this.cdr.markForCheck())}onWidgetFocus({event:e}){this.isActive=!0,bt(this.onFocus)?this.ngZone.run(()=>{this.emitFocus(event)}):this.emitFocus(event)}onWidgetBlur({event:e}){this.isActive=!1,bt(this.onBlur)||$c(this.ngControl)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(event),this.cdr.markForCheck()}):this.emitBlur(event)}verifyRange(){if(fe()&&!Pg(this.min,this.max))throw new Error(`The max value should be bigger than the min. See ${aE} and ${lE}.`)}verifyValue(e){if(fe()&&e&&!(e instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance or null. Check ${cE} for possible resolution.`)}intlChange(){this.kendoDate.setOptions(this.options,!0),this.updateFormatSections()}emitFocus(e){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(e)}emitBlur(e){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(e)}setSpinnerFill(e,i,o){o!=="none"&&(this.renderer.removeClass(e,`k-button-${o}`),this.renderer.removeClass(e,`k-button-${o}-base`)),this.renderer.addClass(e,`k-button-${i}`),this.renderer.addClass(e,`k-button-${i}-base`)}setComponentClasses(){this.size!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,Xt("input",this.size)),this.rounded!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,wo(this.rounded)),this.fillMode!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,nn("input",this.fillMode)),this.spinners&&this.fillMode!=="none"&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))}setInputAttributes(){let e=Object.assign({},this.mutableAttributes,this.parsedAttributes);Cp(e,this.renderer,this.dateInput.nativeElement)}}return t.\u0275fac=function(e){return new(e||t)(c(ve),c(Et),c(X),c(W),c(re),c(Zo),c(ie),c(Io,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-dateinput"]],viewQuery:function(e,i){if(e&1&&(j(Db,7),j(Eb,5),j(wb,5)),e&2){let o;D(o=E())&&(i.dateInput=o.first),D(o=E())&&(i.spinup=o.first),D(o=E())&&(i.spindown=o.first)}},hostVars:8,hostBindings:function(e,i){e&2&&N("k-readonly",i.readonly)("k-input",i.wrapperClass)("k-dateinput",i.wrapperClass)("k-disabled",i.disabledClass)},inputs:{focusableId:"focusableId",pickerType:"pickerType",clearButton:"clearButton",disabled:"disabled",readonly:"readonly",title:"title",tabindex:"tabindex",role:"role",ariaReadOnly:"ariaReadOnly",tabIndex:"tabIndex",isRequired:"isRequired",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",steps:"steps",max:"max",min:"min",rangeValidation:"rangeValidation",autoCorrectParts:"autoCorrectParts",autoSwitchParts:"autoSwitchParts",autoSwitchKeys:"autoSwitchKeys",allowCaretMode:"allowCaretMode",autoFill:"autoFill",incompleteDateValidation:"incompleteDateValidation",twoDigitYearMax:"twoDigitYearMax",enableMouseWheel:"enableMouseWheel",value:"value",spinners:"spinners",isPopupOpen:"isPopupOpen",hasPopup:"hasPopup",size:"size",rounded:"rounded",fillMode:"fillMode",inputAttributes:"inputAttributes"},outputs:{valueChange:"valueChange",valueUpdate:"valueUpdate",onFocus:"focus",onBlur:"blur"},exportAs:["kendo-dateinput"],features:[Y([{provide:Un,useExisting:ue(()=>t),multi:!0},{provide:Xo,useExisting:ue(()=>t),multi:!0},{provide:ht,useValue:"kendo.dateinput"},{provide:uo,useExisting:ue(()=>t)},ie]),be],decls:5,vars:18,consts:()=>{let n;n=$localize`:kendo.dateinput.increment|The label for the **Increment** button in the DateInput:Increase value`;let e;e=$localize`:kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput:Decrease value`;let i;return i=$localize`:kendo.dateinput.clearTitle|The title of the clear button:clear`,[["dateInput",""],["spinup",""],["spindown",""],["kendoDateInputLocalizedMessages","","increment",n,"decrement",e,"clearTitle",i],["autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"k-input-inner",3,"id","title","tabindex","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope"],["class","k-clear-value","role","button","tabindex","-1",3,"click","mousedown",4,"ngIf"],["class","k-input-spinner k-spin-button",3,"mousedown",4,"ngIf"],["role","button","tabindex","-1",1,"k-clear-value",3,"click","mousedown"],["name","x",3,"svgIcon"],[1,"k-input-spinner","k-spin-button",3,"mousedown"],["tabindex","-1",1,"k-spinner-increase","k-button","k-icon-button",3,"mousedown","mouseleave","click","title"],["name","caret-alt-up","innerCssClass","k-button-icon",3,"svgIcon"],["tabindex","-1",1,"k-spinner-decrease","k-button","k-icon-button",3,"click","mousedown","mouseleave","title"],["name","caret-alt-down","innerCssClass","k-button-icon",3,"svgIcon"]]},template:function(e,i){e&1&&(Xe(0,3),b(1,"input",4,0),_(3,Ib,2,2,"span",5)(4,Tb,7,10,"span",6)),e&2&&(u(),l("id",i.focusableId)("title",i.title)("tabindex",i.tabindex)("disabled",i.disabled)("readonly",i.readonly)("placeholder",i.placeholder)("kendoEventsOutsideAngular",et(15,yb,i.handleDragAndDrop,i.handleDragAndDrop))("scope",i),M("required",i.isControlRequired?"":null)("role",i.role)("aria-readonly",i.ariaReadOnly)("aria-expanded",i.isPopupOpen)("aria-haspopup",i.hasPopup),u(2),l("ngIf",i.clearButton&&i.showClearButton),u(),l("ngIf",i.spinners))},dependencies:[oe,Yi,Je,rE],encapsulation:2,changeDetection:0}),t})(),Hc=class{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},Zg=new _n("dateinputs-touch-enabled"),gE=t=>n=>{if(!t||!n.value)return null;let e={disabledDate:!0};return t(n.value)?e:null},fE=(()=>{class t extends ca{constructor(e){super(),this.service=e}get override(){return!0}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-dateinput-messages"]],features:[Y([{provide:ca,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),_E=(()=>{class t extends la{constructor(e){super(),this.service=e}get override(){return!0}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-calendar-messages"]],features:[Y([{provide:la,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),da=(()=>{class t extends gi{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=oi(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["kendo-datepicker-messages-base"]],inputs:{today:"today",toggle:"toggle",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle",clearTitle:"clearTitle"},features:[z]}),t})(),vE=(()=>{class t extends da{constructor(e){super(),this.service=e}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275dir=A({type:t,selectors:[["","kendoDatePickerLocalizedMessages",""]],features:[Y([{provide:da,useExisting:ue(()=>t)}]),z]}),t})(),CE="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min",SE="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max",bE="http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json",DE="d",EE=68,va=(()=>{class t extends Pl{constructor(e,i,o,s,r,a,d,p,m,v){super(),this.zone=e,this.localization=i,this.cdr=o,this.popupService=s,this.wrapper=r,this.renderer=a,this.injector=d,this.pickerService=p,this.disabledDatesService=m,this.touchEnabled=v,this.calendarIcon=Gp,this.clearButton=!1,this.footer=!1,this.weekDaysFormat="short",this.activeView=se[se.month],this.bottomView=se[se.month],this.topView=se[se.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this._navigation=!0,this.min=P(sn),this.max=P(rn),this.incompleteDateValidation=!1,this.autoCorrectParts=!0,this.autoSwitchParts=!0,this.autoSwitchKeys=[],this.enableMouseWheel=!0,this.allowCaretMode=!1,this.autoFill=!1,this.focusedDate=null,this.format=DE,this.twoDigitYearMax=EE,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.adaptiveMode="none",this.valueChange=new C,this.onFocus=new C,this.onBlur=new C,this.open=new C,this.close=new C,this.escape=new C,this.wrapperClasses=!0,this.xIcon=es,this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=Re,this.onControlTouched=Re,this.onValidatorChange=Re,this.minValidateFn=Re,this.maxValidateFn=Re,this.disabledDatesValidateFn=Re,this.incompleteValidator=Re,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size=Zn,this._rounded=ta,this._fillMode=ia,pt(Kc),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set cellTemplateRef(e){this.cellTemplate=e}set monthCellTemplateRef(e){this.monthCellTemplate=e}set yearCellTemplateRef(e){this.yearCellTemplate=e}set decadeCellTemplateRef(e){this.decadeCellTemplate=e}set centuryCellTemplateRef(e){this.centuryCellTemplate=e}set weekNumberTemplateRef(e){this.weekNumberTemplate=e}set headerTitleTemplateRef(e){this.headerTitleTemplate=e}set headerTemplateRef(e){this.headerTemplate=e}set footerTemplateRef(e){this.footerTemplate=e}set navigationItemTemplateRef(e){this.navigationItemTemplate=e}set popupSettings(e){this._popupSettings=Object.assign({},{animate:!0},e)}get popupSettings(){return this._popupSettings}set navigation(e){this._navigation=e}get navigation(){if(!this.isAdaptive)return this._navigation}set value(e){this.verifyValue(e),this._value=P(e)}get value(){return this._value}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}set disabledDates(e){this._disabledDates=e,this.disabledDatesService.initialize(e)}get disabledDates(){return this._disabledDates}set subtitle(e){this._subtitle=e}get subtitle(){return this._subtitle||this.placeholder}set size(e){this.renderer.removeClass(this.wrapper.nativeElement,Xt("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Xt("button",this.size));let i=e||Zn;i!=="none"&&(this.renderer.addClass(this.wrapper.nativeElement,Xt("input",i)),this.renderer.addClass(this.toggleButton.nativeElement,Xt("button",i))),this._size=i}get size(){return this._size}set rounded(e){this.renderer.removeClass(this.wrapper.nativeElement,wo(this.rounded));let i=e||ta;i!=="none"&&this.renderer.addClass(this.wrapper.nativeElement,wo(i)),this._rounded=i}get rounded(){return this._rounded}set fillMode(e){this.renderer.removeClass(this.wrapper.nativeElement,nn("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,nn("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`);let i=e||ia;i!=="none"&&(this.renderer.addClass(this.toggleButton.nativeElement,nn("button",i)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${i}-base`),this.renderer.addClass(this.wrapper.nativeElement,nn("input",i))),this._fillMode=i}get fillMode(){return this._fillMode}get disabledClass(){return this.disabled}get popupUID(){return this.calendar?.popupId}get isActive(){return this._active}set isActive(e){if(this._active=e,!this.wrapper)return;let i=this.wrapper.nativeElement;e?this.renderer.addClass(i,"k-focus"):this.renderer.removeClass(i,"k-focus")}get show(){return this._show}set show(e){if(e&&(this.disabled||this.readonly))return;!e&&(!this._show||!bt(this.close)&&!bt(this.open))?this.toggleCalendar(e):this.zone.run(()=>{let o=new Hc;!this._show&&e?this.open.emit(o):this._show&&!e&&this.close.emit(o),!o.isDefaultPrevented()&&this.toggleCalendar(e)})}get isControlRequired(){return Ll(this.control)}isEmpty(){return!this.value&&this.dateInput.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(co,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()})),this.focusableId=this.dateInput?.focusableId}ngAfterViewInit(){this.setComponentClasses(),this.actionSheet&&ae()&&(this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-height","60vh"),this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}ngOnChanges(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?ma(this.min):Re,this.maxValidateFn=this.rangeValidation?ga(this.max):Re,this.disabledDatesValidateFn=this.disabledDatesValidation?gE(this.disabledDatesService.isDateDisabled):Re,this.incompleteValidator=this.incompleteDateValidation?Yg():Re,this.onValidatorChange()),(!this.focusableId||e.focusableId)&&(this.focusableId=this.dateInput?.focusableId)}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(e=>e()),this.pickerSubscriptions.unsubscribe()}get isOpen(){return this.show}writeValue(e){this.verifyValue(e),this.value=P(e),this.cdr.markForCheck(),!e&&this.dateInput&&(this.dateInput.placeholder=this.placeholder,this.dateInput.writeValue(e))}registerOnChange(e){this.onControlChange=e}registerOnTouched(e){this.onControlTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}validate(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.dateInput&&this.dateInput.isDateIncomplete)}registerOnValidatorChange(e){this.onValidatorChange=e}handleActionSheetCollapse(){this.cdr.markForCheck()}handleActionSheetClick(e){e.preventDefault()}focus(){this.dateInput.focus()}blur(){(this.calendar||this.dateInput).blur()}toggle(e){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this.toggleCalendar(e===void 0?!this.show:e)})}handleIconClick(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())}handleDateInputClick(){this.windowSize=jr(),this.isAdaptive&&(this.show=!0)}handleMousedown(e){e.preventDefault()}handleChange(e){this.cdr.markForCheck(),this.dateInput.showClearButton=!0,this.value=e,this.show&&(this.focusInput(),this.show=!1),this.onControlChange(P(e)),this.valueChange.emit(P(e))}handleInputChange(e){this.handleChange(this.dateInput.formatSections.time?e:this.mergeTime(e))}get popupClasses(){return["k-datepicker-popup","k-calendar-container"].concat(this.popupSettings.popupClass||[])}get appendTo(){let{appendTo:e}=this.popupSettings;if(!(!e||e==="root"))return e==="component"?this.container:e}get dateInput(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}get isAdaptiveModeEnabled(){return this.adaptiveMode==="auto"}get isAdaptive(){return this.isAdaptiveModeEnabled&&this.windowSize!=="large"}onResize(){!this.isOpen||this.windowSize===jr()||(this.actionSheet.expanded?this.toggleActionSheet(!1):this.togglePopup(!1),this.windowSize=jr())}mergeTime(e){return this.value&&e?Ng(e,this.value):e}handleKeydown(e){let{altKey:i,shiftKey:o,keyCode:s,target:r}=e;s===T.Escape&&(this.show=!1,bt(this.escape)&&this.escape.emit()),i&&(s===T.ArrowDown&&!this.show&&(this.show=!0),s===T.ArrowUp&&(this.show=!1)),s===T.Tab&&this.show&&this.calendar.isActive&&qb(this.calendarType,r,o)&&(this.dateInput.focus(),this.show=!1)}toggleCalendar(e){this.windowSize=jr(),this.isAdaptive?this.toggleActionSheet(e):this.togglePopup(e),this.toggleFocus()}togglePopup(e){if(e!==this._show)if(this._show=e,e){let i=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:i},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:i},popupClass:this.popupClasses,positionMode:"absolute"}),this.setAriaActiveDescendant(),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(this.dateInput?.inputElement,li.ariaControls,this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe(),this.ariaActiveDescendantSubscription.unsubscribe(),this.dateInput&&(this.renderer.removeAttribute(this.dateInput.inputElement,li.ariaControls),this.renderer.removeAttribute(this.dateInput.inputElement,li.ariaActiveDescendant)),this.cdr.detectChanges()}toggleActionSheet(e){e!==this._show&&(e&&!this.isOpen?(this.actionSheet.toggle(),this.updateActionSheetAdaptiveAppearance(),this.setAriaActiveDescendant(),this.actionSheet.element.nativeElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(this.dateInput?.inputElement,li.ariaControls,this.popupUID)):!e&&this.isOpen&&(this.actionSheet.toggle(),this.ariaActiveDescendantSubscription.unsubscribe(),this.renderer.removeAttribute(this.dateInput?.inputElement,li.ariaActiveDescendant),this.renderer.removeAttribute(this.dateInput?.inputElement,li.ariaControls)),this._show=e)}updateActionSheetAdaptiveAppearance(){let e,i;this.actionSheet&&(e=this.actionSheet.element.nativeElement.querySelector(".k-actionsheet"),i=this.actionSheet.element.nativeElement.querySelector(".k-child-animation-container"),this.windowSize==="medium"?(this.renderer.removeClass(e,"k-actionsheet-fullscreen"),this.renderer.removeStyle(i,"height")):this.windowSize==="small"&&(this.renderer.addClass(e,"k-actionsheet-fullscreen"),this.renderer.setStyle(i,"height","100%")),this.renderer.addClass(e,"k-adaptive-actionsheet"),this.renderer.addClass(e,"k-actionsheet-bottom"),this.renderer.setStyle(i,"bottom","0px"))}setAriaActiveDescendant(){let e=this.calendar.type==="infinite"?this.calendar.monthView.focusedCellChange:this.calendar.multiViewCalendar.viewList.focusedCellChange;this.ariaActiveDescendantSubscription=e.subscribe(i=>this.renderer.setAttribute(this.dateInput?.inputElement,li.ariaActiveDescendant,i))}focusInput(){this.touchEnabled||this.dateInput.focus()}toggleFocus(){this.isActive&&(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.dateInput.isActive||this.handleBlur():this.dateInput.focus())}verifySettings(){if(fe()&&!Pg(this.min,this.max))throw new Error(`The max value should be bigger than the min. See ${CE} and ${SE}.`)}verifyValue(e){if(fe()&&e&&!(e instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance or null. Check ${bE} for possible resolution.`)}bindEvents(){let e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),Kb()&&(this.windowBlurSubscription=Wt(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleFocus(){this.isActive||(this.isActive=!0,bt(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleWindowBlur(){!this.isOpen||this.actionSheet.expanded||(this.show=!1)}handleBlur(e){let i=e&&Ub(e),o=e&&e.target,s=this.actionSheet&&(this.actionSheet.element.nativeElement.contains(o)||this.actionSheet.element.nativeElement.contains(i));i&&(this.dateInput.containsElement(i)||this.calendar&&this.calendar.containsElement(i)||s)||(bt(this.onBlur)||this.show&&bt(this.close)||$c(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent())}blurComponent(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()}handleSameSelection(){this.show&&(this.focusInput(),this.show=!1)}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}setComponentClasses(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,Xt("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Xt("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,wo(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,nn("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,nn("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`))}}return t.\u0275fac=function(e){return new(e||t)(c(re),c(ie),c(ve),c(ho),c(W),c(X),c(Zo),c(Io),c(kn),c(Zg,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-datepicker"]],contentQueries:function(e,i,o){if(e&1&&(B(o,Zc,5),B(o,Xc,5),B(o,ed,5),B(o,td,5),B(o,id,5),B(o,nd,5),B(o,od,5),B(o,sd,5),B(o,rd,5),B(o,Jg,5)),e&2){let s;D(s=E())&&(i.cellTemplate=s.first),D(s=E())&&(i.monthCellTemplate=s.first),D(s=E())&&(i.yearCellTemplate=s.first),D(s=E())&&(i.decadeCellTemplate=s.first),D(s=E())&&(i.centuryCellTemplate=s.first),D(s=E())&&(i.weekNumberTemplate=s.first),D(s=E())&&(i.headerTitleTemplate=s.first),D(s=E())&&(i.headerTemplate=s.first),D(s=E())&&(i.footerTemplate=s.first),D(s=E())&&(i.navigationItemTemplate=s.first)}},viewQuery:function(e,i){if(e&1&&(j(kb,7,Ei),j(xb,7),j(Rb,7),j(Ob,5)),e&2){let o;D(o=E())&&(i.container=o.first),D(o=E())&&(i.popupTemplate=o.first),D(o=E())&&(i.toggleButton=o.first),D(o=E())&&(i.actionSheet=o.first)}},hostVars:8,hostBindings:function(e,i){e&2&&N("k-readonly",i.readonly)("k-datepicker",i.wrapperClasses)("k-input",i.wrapperClasses)("k-disabled",i.disabledClass)},inputs:{focusableId:"focusableId",cellTemplateRef:[0,"cellTemplate","cellTemplateRef"],clearButton:"clearButton",inputAttributes:"inputAttributes",monthCellTemplateRef:[0,"monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:[0,"yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:[0,"decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:[0,"centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:[0,"weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:[0,"headerTitleTemplate","headerTitleTemplateRef"],headerTemplateRef:[0,"headerTemplate","headerTemplateRef"],footerTemplateRef:[0,"footerTemplate","footerTemplateRef"],footer:"footer",navigationItemTemplateRef:[0,"navigationItemTemplate","navigationItemTemplateRef"],weekDaysFormat:"weekDaysFormat",showOtherMonthDays:"showOtherMonthDays",activeView:"activeView",bottomView:"bottomView",topView:"topView",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",popupSettings:"popupSettings",navigation:"navigation",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",autoCorrectParts:"autoCorrectParts",autoSwitchParts:"autoSwitchParts",autoSwitchKeys:"autoSwitchKeys",enableMouseWheel:"enableMouseWheel",allowCaretMode:"allowCaretMode",autoFill:"autoFill",focusedDate:"focusedDate",value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",title:"title",subtitle:"subtitle",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",weekNumber:"weekNumber",size:"size",rounded:"rounded",fillMode:"fillMode",adaptiveMode:"adaptiveMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close",escape:"escape"},exportAs:["kendo-datepicker"],features:[Y([{provide:Un,useExisting:ue(()=>t),multi:!0},{provide:Xo,useExisting:ue(()=>t),multi:!0},{provide:uo,useExisting:ue(()=>t)},{provide:Pl,useExisting:ue(()=>t)},ie,Io,kn,{provide:ht,useValue:"kendo.datepicker"}]),z,be],decls:17,vars:41,consts:()=>{let n;n=$localize`:kendo.datepicker.today|The label for the today button in the calendar header:Today`;let e;e=$localize`:kendo.datepicker.toggle|The title of the toggle button in the datepicker component:Toggle calendar`;let i;i=$localize`:kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view`;let o;o=$localize`:kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view`;let s;s=$localize`:kendo.datepicker.parentViewButtonTitle|The title of the parent view button in the calendar header:Navigate to parent view`;let r;return r=$localize`:kendo.datepicker.clearTitle|The title of the clear button:clear`,[["input",""],["toggleButton",""],["container",""],["popupTemplate",""],["actionSheet",""],["calendarTemplate",""],["calendar",""],["kendoDatePickerLocalizedMessages","","today",n,"toggle",e,"prevButtonTitle",i,"nextButtonTitle",o,"parentViewButtonTitle",s,"clearTitle",r],["pickerType","datepicker","hasPopup","grid","fillMode","none","rounded","none","size","none",3,"valueChange","click","role","isPopupOpen","clearButton","disabled","readonly","ariaReadOnly","tabindex","isRequired","title","focusableId","format","twoDigitYearMax","formatPlaceholder","placeholder","min","max","incompleteDateValidation","autoCorrectParts","autoSwitchParts","autoSwitchKeys","enableMouseWheel","allowCaretMode","autoFill","inputAttributes","value"],[3,"clearTitle"],["type","button",1,"k-input-button","k-button","k-icon-button",3,"tabindex","kendoEventsOutsideAngular","scope"],["name","calendar","innerCssClass","k-button-icon",3,"svgIcon"],[3,"resize",4,"ngIf"],[3,"overlayClick","collapse","kendoEventsOutsideAngular","scope","titleId"],["kendoActionSheetTemplate",""],[4,"ngTemplateOutlet"],[3,"resize"],[1,"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","","type","button","icon","x","fillMode","flat","aria-hidden","true","size","large","innerCssClass","k-button-icon",3,"click","svgIcon","tabIndex"],[1,"k-actionsheet-content","!k-overflow-hidden"],[3,"valueChange","type","size","min","max","weekDaysFormat","navigation","animateNavigation","activeView","bottomView","showOtherMonthDays","topView","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","headerTemplate","footerTemplate","footer","navigationItemTemplate","focusedDate","value","kendoEventsOutsideAngular","scope","disabledDates"],[3,"today","prevButtonTitle","nextButtonTitle","parentViewButtonTitle"]]},template:function(e,i){if(e&1){let o=K();Xe(0,7),g(1,"kendo-dateinput",8,0),O("valueChange",function(r){return y(o),I(i.handleInputChange(r))})("click",function(){return y(o),I(i.handleDateInputClick())}),b(3,"kendo-dateinput-messages",9),f(),g(4,"button",10,1),b(6,"kendo-icon-wrapper",11),f(),Xe(7,null,2),_(9,Nb,1,1,"ng-template",null,3,ut)(11,Pb,1,0,"kendo-resize-sensor",12),g(12,"kendo-actionsheet",13,4),O("overlayClick",function(){return y(o),I(i.show=!1)})("collapse",function(){return y(o),I(i.handleActionSheetCollapse())}),_(14,Gb,11,6,"ng-template",14),f(),_(15,Vb,3,34,"ng-template",null,5,ut)}e&2&&(u(),l("role","combobox")("isPopupOpen",i.show)("clearButton",i.clearButton)("disabled",i.disabled)("readonly",i.readonly||i.readOnlyInput)("ariaReadOnly",i.readonly)("tabindex",i.tabindex)("isRequired",i.isControlRequired)("title",i.title)("focusableId",i.focusableId)("format",i.format)("twoDigitYearMax",i.twoDigitYearMax)("formatPlaceholder",i.formatPlaceholder)("placeholder",i.placeholder)("min",i.min)("max",i.max)("incompleteDateValidation",i.incompleteDateValidation)("autoCorrectParts",i.autoCorrectParts)("autoSwitchParts",i.autoSwitchParts)("autoSwitchKeys",i.autoSwitchKeys)("enableMouseWheel",i.enableMouseWheel)("allowCaretMode",i.allowCaretMode)("autoFill",i.autoFill)("inputAttributes",i.inputAttributes)("value",i.value),u(2),l("clearTitle",i.localization.get("clearTitle")),u(),l("tabindex",-1)("kendoEventsOutsideAngular",et(36,Mb,i.handleIconClick,i.handleMousedown))("scope",i),M("title",i.localization.get("toggle"))("aria-label",i.localization.get("toggle")),u(2),l("svgIcon",i.calendarIcon),u(5),l("ngIf",i.isAdaptiveModeEnabled),u(),l("kendoEventsOutsideAngular",We(39,Xr,i.handleActionSheetClick))("scope",i)("titleId",i.calendar==null?null:i.calendar.headerId))},dependencies:[oe,Fe,mE,fE,_a,_E,Yi,Je,sm,om,yi,vt,vE],encapsulation:2,changeDetection:0}),t})(),wt={dayperiod:"dayperiod",hour:"hour",millisecond:"millisecond",minute:"minute",second:"second"};var OU=ci("div"),MU=ci("ul"),AU=ci("li"),LU=ci("span");var cd=24,wE=t=>n=>n%t,Xg=wE(cd),yE=(t,n)=>e=>Xg(t+e*n),bg=(t,n)=>Xg(cd+t-n),ef=t=>(n,e)=>!e||mt(n).getTime()===mt(e).getTime()?n:Wr(n,t),IE=ef(0),TE=ef(cd-1),kE=(()=>{class t{constructor(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}apply(e,i){return Wr(e,i.getHours())}configure(e){let{boundRange:i=this.boundRange,insertUndividedMax:o=this.insertUndividedMax,min:s=this.min,max:r=this.max,part:a,step:d=this.step}=e;this.boundRange=i,this.insertUndividedMax=o,this.toListItem=p=>{let m=Wr(ha,p);return{text:this.intl.formatDate(m,a.pattern),value:m}},this.min=s,this.max=r,this.step=d}data(e){let[i]=this.range(e),o=yE(i,this.step),s=a=>this.toListItem(o(a)),r=jt(0,this.countFromMin(e)).map(s);return this.addLast(r),this.addMissing(r,e),r}isRangeChanged(e,i){return!gt(this.min,e)||!gt(this.max,i)}limitRange(e,i,o){return this.boundRange?[IE(e,o),TE(i,o)]:[e,i]}total(e){let i=this.insertUndividedMax&&this.isLastMissing(e)?1:0,o=this.isMissing(e)?1:0;return this.countFromMin(e)+o+i}selectedIndex(e){return Math.ceil(this.divideByStep(e))}valueInList(e){return e?this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e):!0}addLast(e,i){return this.insertUndividedMax&&this.isLastMissing(i)&&e.push(this.toListItem(this.lastHour(i))),e}addMissing(e,i){if(this.valueInList(i))return e;let o=this.toListItem(i.getHours());return e.splice(this.selectedIndex(i),0,o),e}countFromMin(e){let[i,o]=this.range(e);return Math.floor(bg(o,i)/this.step)+1}isMissing(e){return e?this.selectedIndex(e)!==this.divideByStep(e):!1}isLastMissing(e){return this.isMissing(Wr(this.max,this.lastHour(e)))}divideByStep(e){return bg(e.getHours(),this.min.getHours())/this.step}lastHour(e){return this.range(e)[1]}range(e){let[i,o]=this.limitRange(this.min,this.max,e);return[i.getHours(),o.getHours()]}}return t.\u0275fac=function(e){return new(e||t)(J(Et))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),dd=60,xE=t=>n=>n%t,tf=xE(dd),RE=(t,n)=>e=>tf(t+e*n),Dg=(t,n)=>tf(dd+t-n),nf=t=>(n,e)=>!e||n.getHours()===e.getHours()?n:qr(n,t),OE=nf(0),ME=nf(dd-1),AE=(()=>{class t{constructor(e){this.intl=e,this.insertUndividedMax=!1}apply(e,i){return qr(e,i.getMinutes())}configure(e){let{insertUndividedMax:i=this.insertUndividedMax,min:o=this.min,max:s=this.max,part:r,step:a=this.step}=e;this.insertUndividedMax=i,this.toListItem=d=>{let p=qr(ha,d);return{text:this.intl.formatDate(p,r.pattern),value:p}},this.min=o,this.max=s,this.step=a}data(e){let[i]=this.range(e),o=RE(i,this.step),s=a=>this.toListItem(o(a)),r=jt(0,this.countFromMin(e)).map(s);return this.addLast(r),this.addMissing(r,e),r}isRangeChanged(e,i){return!gt(this.min,e)||!gt(this.max,i)}limitRange(e,i,o){return[OE(e,o),ME(i,o)]}total(e){let i=this.insertUndividedMax&&this.isLastMissing(e)?1:0,o=this.isMissing(e)?1:0;return this.countFromMin(e)+o+i}selectedIndex(e){return Math.ceil(this.divideByStep(e))}valueInList(e){return e?this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e):!0}addLast(e,i){return this.insertUndividedMax&&this.isLastMissing(i)&&e.push(this.toListItem(this.lastMinute(i))),e}addMissing(e,i){if(this.valueInList(i))return e;let o=this.toListItem(i.getMinutes());return e.splice(this.selectedIndex(i),0,o),e}countFromMin(e){let[i,o]=this.range(e);return Math.floor(Dg(o,i)/this.step)+1}isMissing(e){return e?this.selectedIndex(e)!==this.divideByStep(e):!1}isLastMissing(e){return this.isMissing(qr(this.max,this.lastMinute(e)))}divideByStep(e){return Dg(e.getMinutes(),this.min.getMinutes())/this.step}lastMinute(e){return this.range(e)[1]}range(e){let[i,o]=this.limitRange(this.min,this.max,e);return[i.getMinutes(),o.getMinutes()]}}return t.\u0275fac=function(e){return new(e||t)(J(Et))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),ud=60,LE=t=>n=>n%t,of=LE(ud),NE=(t,n)=>e=>of(t+e*n),Eg=(t,n)=>of(ud+t-n),sf=t=>(n,e)=>!e||n.getHours()===e.getHours()&&n.getMinutes()===e.getMinutes()?n:Qr(n,t),PE=sf(0),FE=sf(ud-1),GE=(()=>{class t{constructor(e){this.intl=e,this.insertUndividedMax=!1}apply(e,i){return Qr(e,i.getSeconds())}configure(e){let{insertUndividedMax:i=this.insertUndividedMax,min:o=this.min,max:s=this.max,part:r,step:a=this.step}=e;this.insertUndividedMax=i,this.toListItem=d=>{let p=Qr(ha,d);return{text:this.intl.formatDate(p,r.pattern),value:p}},this.min=o,this.max=s,this.step=a}data(e){let[i]=this.range(e),o=NE(i,this.step),s=a=>this.toListItem(o(a)),r=jt(0,this.countFromMin(e)).map(s);return this.addLast(r),this.addMissing(r,e),r}isRangeChanged(e,i){return!gt(this.min,e)||!gt(this.max,i)}limitRange(e,i,o){return[PE(e,o),FE(i,o)]}total(e){let i=this.insertUndividedMax&&this.isLastMissing(e)?1:0,o=this.isMissing(e)?1:0;return this.countFromMin(e)+o+i}selectedIndex(e){return Math.ceil(this.divideByStep(e))}valueInList(e){return e?this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e):!0}divideByStep(e){return Eg(e.getSeconds(),this.min.getSeconds())/this.step}addLast(e,i){return this.insertUndividedMax&&this.isLastMissing(i)&&e.push(this.toListItem(this.lastSecond(i))),e}addMissing(e,i){if(this.valueInList(i))return e;let o=this.toListItem(i.getSeconds());return e.splice(this.selectedIndex(i),0,o),e}countFromMin(e){let[i,o]=this.range(e);return Math.floor(Eg(o,i)/this.step)+1}isMissing(e){return e?this.selectedIndex(e)!==this.divideByStep(e):!1}isLastMissing(e){return this.isMissing(Qr(this.max,this.lastSecond(e)))}lastSecond(e){return this.range(e)[1]}range(e){let[i,o]=this.limitRange(this.min,this.max,e);return[i.getSeconds(),o.getSeconds()]}}return t.\u0275fac=function(e){return new(e||t)(J(Et))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),hd=1e3,VE=t=>n=>n%t,rf=VE(hd),zE=(t,n)=>e=>rf(t+e*n),wg=(t,n)=>rf(hd+t-n),af=t=>(n,e)=>!e||n.getHours()===e.getHours()&&n.getMinutes()===e.getMinutes()&&n.getSeconds()===e.getSeconds()?n:Jr(n,t),UE=af(0),BE=af(hd-1),jE=(()=>{class t{constructor(e){this.intl=e,this.insertUndividedMax=!1}apply(e,i){return Jr(e,i.getMilliseconds())}configure(e){let{insertUndividedMax:i=this.insertUndividedMax,min:o=this.min,max:s=this.max,step:r=this.step}=e;this.insertUndividedMax=i,this.toListItem=a=>{let d=Jr(ha,a);return{text:this.intl.formatDate(d,"SSS"),value:d}},this.min=o,this.max=s,this.step=r}data(e){let[i]=this.range(e),o=zE(i,this.step),s=a=>this.toListItem(o(a)),r=jt(0,this.countFromMin(e)).map(s);return this.addLast(r),this.addMissing(r,e),r}isRangeChanged(e,i){return!gt(this.min,e)||!gt(this.max,i)}limitRange(e,i,o){return[UE(e,o),BE(i,o)]}total(e){let i=this.insertUndividedMax&&this.isLastMissing(e)?1:0,o=this.isMissing(e)?1:0;return this.countFromMin(e)+o+i}selectedIndex(e){return Math.ceil(this.divideByStep(e))}valueInList(e){return e?this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e):!0}divideByStep(e){return wg(e.getMilliseconds(),this.min.getMilliseconds())/this.step}addLast(e,i){return this.insertUndividedMax&&this.isLastMissing(i)&&e.push(this.toListItem(this.lastMillisecond(i))),e}addMissing(e,i){if(this.valueInList(i))return e;let o=this.toListItem(i.getMilliseconds());return e.splice(this.selectedIndex(i),0,o),e}countFromMin(e){let[i,o]=this.range(e);return Math.floor(wg(o,i)/this.step)+1}isMissing(e){return e?this.selectedIndex(e)!==this.divideByStep(e):!1}isLastMissing(e){return this.isMissing(Jr(this.max,this.lastMillisecond(e)))}lastMillisecond(e){return this.range(e)[1]}range(e){let[i,o]=this.limitRange(this.min,this.max,e);return[i.getMilliseconds(),o.getMilliseconds()]}}return t.\u0275fac=function(e){return new(e||t)(J(Et))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Fc=(t,n)=>{let e=P(t);return e.setHours(n),e},Gc=t=>t!==null&&t<12,HE=t=>t!==null&&(!t||t>11),KE=(t,n,e)=>!n&&!e||t>=n&&t<=e,$E=(t,n,e)=>!n&&!e||t>=n||t<=e,WE=(()=>{class t{constructor(e){this.intl=e}apply(e,i){let o=e.getHours(),s=Gc(o),r=Gc(i.getHours());if(s&&r||!s&&!r)return e;let[a,d=24]=this.normalizedRange(),p=o+(r?-12:12);return Fc(e,Math.min(Math.max(a,p),d||24))}configure(e){let{min:i=this.min,max:o=this.max,part:s=this.part}=e;this.min=i,this.max=o,this.part=s}data(e){let i=this.part.names;if(!i)return[];let o=[],[s,r]=this.normalizedRange(),a=this.intl.dateFormatNames(i);return Gc(s)&&o.push({text:a.am,value:Fc(this.min,s)}),HE(r)&&o.push({text:a.pm,value:Fc(this.min,Math.max(12,r))}),this.min.getHours()!==s?o.reverse():o}isRangeChanged(e,i){return!1}limitRange(e,i,o){return[e,i]}total(){let[e,i]=this.normalizedRange();return!e&&!i?2:e>11||i<12?1:2}selectedIndex(e){if(!this.valueInList(e))return-1;let i=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?i:i===0?1:0}valueInList(e){return(this.min.getHours()!==this.normalizedRange()[0]?$E:KE)(e.getHours(),this.min.getHours(),this.max.getHours())}normalizedRange(){let e=this.min.getHours(),i=this.max.getHours();return[Math.min(e,i),Math.max(e,i)]}}return t.\u0275fac=function(e){return new(e||t)(J(Et))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})();var NU={[wt.dayperiod]:WE,[wt.hour]:kE,[wt.minute]:AE,[wt.second]:GE,[wt.millisecond]:jE};var lf=(t,n)=>t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes(),cf=(t,n)=>lf(t,n)&&t.getSeconds()===n.getSeconds(),qE=(t,n)=>cf(t,n)&&t.getMilliseconds()===n.getMilliseconds(),df=[{type:wt.hour,getter:t=>t.getHours(),minGetter:(t,n)=>n.getHours()},{type:wt.minute,getter:t=>t.getMinutes(),minGetter:(t,n)=>lf(t,n)?n.getMinutes():0},{type:wt.second,getter:t=>t.getSeconds(),minGetter:(t,n)=>cf(t,n)?n.getSeconds():0},{type:wt.millisecond,getter:t=>t.getMilliseconds(),minGetter:(t,n)=>qE(t,n)?n.getMilliseconds():0}],QE=t=>(n,e)=>t(n),JE=t=>(n,e)=>t(e),YE=t=>t.reduce((n,e)=>(n[e.type]=e.type,n),{}),ZE=t=>n=>t[n.type]?JE(n.getter):QE(n.getter),XE=t=>n=>t.map(ZE(YE(n))),ew=(t,n,e)=>(i,o)=>{let s=t(i),r=n(i,o),a=s-r;if(a<0)return r;let d=a%e;return s-d+(d>e/2?e:0)},tw=t=>n=>t.map(e=>{let i=n[e.type];return i?ew(e.getter,e.minGetter,i):e.getter}),PU=XE(df),FU=tw(df);var GU=new RegExp(`${wt.hour}|${wt.minute}|${wt.second}|${wt.millisecond}|${wt.dayperiod}|literal`);var VU=new RegExp(`${wt.hour}|${wt.minute}|${wt.second}|${wt.dayperiod}|literal`);var ua=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,Ni,fi]}),t})(),To=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({}),t})(),iw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({providers:[vs,Wc,qc,Qc,Jc,Yc],imports:[Me,ua,Wn,To,$n,Ni,ua,To]}),t})();var nw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me]}),t})(),ow=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({providers:[bs,Wc,qc,Qc,Jc,Yc],imports:[Me,ua,iw,Wn,To,nw,Ni,Pi,ua,To]}),t})();var sw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,Wn,Ni,Qt]}),t})(),pd=(()=>{class t extends da{constructor(e){super(),this.service=e}get override(){return!0}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-datepicker-messages"]],features:[Y([{provide:da,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),rw=[$l,Pi,fi,Kl],aw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[rw,$l,Pi,fi,Kl]}),t})(),Ca=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({providers:[{provide:Zg,useValue:gp}],imports:[Me,sw,ow,Wn,$n,To,Ni,Qt,aw,To,Ip]}),t})();vn();vn();pr();er();tr();is();is();var zf=["header"],cw=["contentWrapper"],Uf=[[["kendo-panelbar-item"]]],Bf=["kendo-panelbar-item"],dw=(t,n,e,i,o,s,r,a,d,p,m)=>({title:t,id:n,icon:e,iconClass:i,svgIcon:o,imageUrl:s,selected:r,expanded:a,disabled:d,focused:p,content:m}),uw=t=>({item:t}),jf=(t,n,e,i,o,s)=>({title:t,id:n,icon:e,imageUrl:i,disabled:o,content:s}),Hf=t=>({$implicit:t});function hw(t,n){if(t&1&&b(0,"kendo-icon-wrapper",7),t&2){let e=h();l("name",e.iconClasses)("customFontClass",e.customIconClasses)("svgIcon",e.svgIcon)}}function pw(t,n){if(t&1&&b(0,"img",8),t&2){let e=h();l("src",e.imageUrl,pi)}}function mw(t,n){if(t&1&&(q(0),g(1,"span",9),ee(2),f(),Q()),t&2){let e=h();u(2),De(e.title)}}function gw(t,n){}function fw(t,n){if(t&1&&_(0,gw,0,0,"ng-template",10),t&2){let e=h();l("ngTemplateOutlet",e.titleTemplate)("ngTemplateOutletContext",We(14,uw,sp(2,dw,[e.title,e.id,e.icon,e.iconClass,e.svgIcon,e.imageUrl,e.selected,e.expanded,e.disabled,e.focused,e.content])))}}function _w(t,n){if(t&1&&b(0,"kendo-icon-wrapper",11),t&2){let e=h();l("name",e.expanded?"arrow-chevron-up":"chevron-down")("svgIcon",e.expanderSVGIcon)("innerCssClass",e.dirInnerCssClasses)}}function vw(t,n){if(t&1&&(g(0,"div",14),Ne(1),f()),t&2){let e=h(2);ce("overflow",e.contentOverflow)("height",e.contentHeight)}}function Cw(t,n){}function Sw(t,n){if(t&1&&(g(0,"div",15),_(1,Cw,0,0,"ng-template",10),f()),t&2){let e=h(2);ce("overflow",e.contentOverflow)("height",e.contentHeight),u(),l("ngTemplateOutlet",e.contentTemplate.first.templateRef)("ngTemplateOutletContext",We(13,Hf,lo(6,jf,e.title,e.id,e.icon,e.imageUrl,e.disabled,e.content)))}}function bw(t,n){if(t&1&&b(0,"kendo-panelbar-item",18),t&2){let e=h().$implicit,i=h(3);l("title",e.title)("id",e.id)("icon",e.icon)("iconClass",e.iconClass)("svgIcon",e.svgIcon)("imageUrl",e.imageUrl)("selected",!!e.selected)("expanded",!!e.expanded)("disabled",!!e.disabled)("template",i.template)("items",e.children)("content",e.content)}}function Dw(t,n){if(t&1&&(q(0),_(1,bw,1,12,"kendo-panelbar-item",17),Q()),t&2){let e=n.$implicit;u(),l("ngIf",!e.hidden)}}function Ew(t,n){if(t&1&&(g(0,"div",14),_(1,Dw,2,1,"ng-container",16),f()),t&2){let e=h(2);ce("overflow",e.contentOverflow)("height",e.contentHeight),u(),l("ngForOf",e.items)}}function ww(t,n){}function yw(t,n){if(t&1&&ee(0),t&2){let e=h(3);De(e.content)}}function Iw(t,n){if(t&1&&(g(0,"div",15),_(1,ww,0,0,"ng-template",10)(2,yw,1,1,"ng-template",19),f()),t&2){let e=h(2);ce("overflow",e.contentOverflow)("height",e.contentHeight),u(),l("ngTemplateOutlet",e.template)("ngTemplateOutletContext",We(14,Hf,lo(7,jf,e.title,e.id,e.icon,e.imageUrl,e.disabled,e.content))),u(),l("ngIf",!e.template)}}function Tw(t,n){if(t&1&&(g(0,"div",null,1),_(2,vw,2,4,"div",12)(3,Sw,2,15,"div",13)(4,Ew,2,5,"div",12)(5,Iw,3,16,"div",13),f()),t&2){let e=h();l("@toggle",e.state),M("role","group")("aria-hidden",!e.disabled&&!e.expanded),u(2),l("ngIf",e.hasChildItems&&!(e.items!=null&&e.items.length)),u(),l("ngIf",e.hasContent&&!e.content),u(),l("ngIf",e.hasItems),u(),l("ngIf",e.content)}}function kw(t,n){t&1&&Ne(0,0,["*ngIf","contentChildItems && !items"])}function xw(t,n){if(t&1&&b(0,"kendo-panelbar-item",5),t&2){let e=h().$implicit,i=h(2);l("title",e.title)("id",e.id)("icon",e.icon)("iconClass",e.iconClass)("svgIcon",e.svgIcon)("imageUrl",e.imageUrl)("selected",!!e.selected)("expanded",!!e.expanded)("disabled",!!e.disabled)("template",i.templateRef)("items",e.children)("content",e.content)}}function Rw(t,n){if(t&1&&(q(0),_(1,xw,1,12,"kendo-panelbar-item",4),Q()),t&2){let e=n.$implicit;u(),l("ngIf",!e.hidden)}}function Ow(t,n){if(t&1&&_(0,Rw,2,1,"ng-container",3),t&2){let e=h();l("ngForOf",e.items)}}function Mw(t,n){t&1&&b(0,"div",6)}var Mt=["*"];function Aw(t,n){t&1&&(q(0),Ne(1),Q())}function Lw(t,n){t&1&&b(0,"div",2)}function Nw(t,n){if(t&1){let e=K();g(0,"div",3),O("click",function(){y(e);let o=h();return I(o.togglePrevious())}),b(1,"kendo-icon-wrapper",4),f()}if(t&2){let e=h();u(),l("name",e.previousArrowClass())("svgIcon",e.previousSVGArrowClass())}}function Pw(t,n){if(t&1){let e=K();g(0,"div",5),O("click",function(){y(e);let o=h();return I(o.toggleNext())}),b(1,"kendo-icon-wrapper",4),f()}if(t&2){let e=h();u(),l("name",e.nextArrowClass())("svgIcon",e.nextSVGArrowClass())}}var Fw=[[["kendo-splitter-pane"]]],Gw=["kendo-splitter-pane"],Vw=(t,n)=>({width:t,height:n});function zw(t,n){if(t&1&&b(0,"kendo-splitter-bar",2),t&2){let e=h().index,i=h();l("index",e)("orientation",i.orientation)("ngStyle",et(3,Vw,i.orientation==="horizontal"?i.splitbarWidth+"px":void 0,i.orientation==="vertical"?i.splitbarWidth+"px":void 0))}}function Uw(t,n){if(t&1&&(q(0),_(1,zw,1,6,"kendo-splitter-bar",1),Q()),t&2){let e=n.last;u(),l("ngIf",!e)}}var Bw=["kendoTabStripScrollableButton",""],jw=["kendoTabStripTab",""];function Hw(t,n){if(t&1&&(g(0,"span",5),ee(1),f()),t&2){let e=h(2);u(),De(e.tab.title)}}function Kw(t,n){}function $w(t,n){if(t&1&&(g(0,"span",5),_(1,Kw,0,0,"ng-template",2),f()),t&2){let e=h(2);u(),l("ngTemplateOutlet",e.tab.tabTitle==null?null:e.tab.tabTitle.templateRef)}}function Ww(t,n){if(t&1&&(q(0),_(1,Hw,2,1,"span",4)(2,$w,2,1,"span",4),Q()),t&2){let e=h();u(),l("ngIf",!e.tab.tabTitle),u(),l("ngIf",e.tab.tabTitle)}}function qw(t,n){}function Qw(t,n){if(t&1){let e=K();g(0,"button",6),O("click",function(){y(e);let o=h();return I(o.closeTab(o.index))}),f()}if(t&2){let e=h();l("icon",e.closeButtonClasses)("iconClass",e.customCloseButtonClasses)("svgIcon",e.closeSVGIconClass)("title",e.closeButtonTitle),M("aria-label",e.closeButtonTitle)}}var Jw=["tablist"],Yw=["prevScrollButton"],Zw=["nextScrollButton"],Xw=["tabHeaderContainer"];function ey(t,n){t&1&&Xe(0)}function ty(t,n){t&1&&Xe(0)}function iy(t,n){if(t&1&&(q(0),_(1,ty,1,0,"ng-container",10),Q()),t&2){h(2);let e=me(6);u(),l("ngTemplateOutlet",e)}}function ny(t,n){if(t&1&&(q(0),_(1,ey,1,0,"ng-container",10)(2,iy,2,1,"ng-container",7),Q()),t&2){let e=h(),i=me(4);u(),l("ngTemplateOutlet",i),u(),l("ngIf",e.showContentArea)}}function oy(t,n){t&1&&Xe(0)}function sy(t,n){if(t&1&&(q(0),_(1,oy,1,0,"ng-container",10),Q()),t&2){h(2);let e=me(6);u(),l("ngTemplateOutlet",e)}}function ry(t,n){t&1&&Xe(0)}function ay(t,n){if(t&1&&(q(0),_(1,sy,2,1,"ng-container",7)(2,ry,1,0,"ng-container",10),Q()),t&2){let e=h(),i=me(4);u(),l("ngIf",e.showContentArea),u(),l("ngTemplateOutlet",i)}}function ly(t,n){if(t&1){let e=K();g(0,"span",15,3),O("tabScroll",function(o){y(e);let s=h(2);return I(s.tabScroll.emit(o))})("onClick",function(o){y(e);let s=h(2);return I(s.onScrollButtonClick(o))}),f()}if(t&2){let e=h(2);l("scrollable",e.scrollable)("tabPosition",e.tabPosition)("prev",!0)("title",e.localization.get("previousTabButton"))}}function cy(t,n){if(t&1){let e=K();q(0),g(1,"li",16,4),O("tabClose",function(o){y(e);let s=h(2);return I(s.tabClose.emit(o))})("click",function(o){let s=y(e).index,r=h(2);return I(r.onTabClick(o,s))}),f(),Q()}if(t&2){let e=n.$implicit,i=n.index,o=h(2);u(),l("ngClass",e.cssClass)("ngStyle",e.cssStyle)("tab",e)("index",i)("tabStripClosable",o.closable)("tabStripCloseIcon",o.closeIcon)("customTabstripCloseIcon",o.closeIconClass)("closeSVGIcon",o.closeSVGIcon)("id",o.getTabId(i)),M("aria-controls",o.showContentArea&&e.selected?o.getTabPanelId(i):void 0)}}function dy(t,n){if(t&1){let e=K();g(0,"span",15,5),O("tabScroll",function(o){y(e);let s=h(2);return I(s.tabScroll.emit(o))})("onClick",function(o){y(e);let s=h(2);return I(s.onScrollButtonClick(o))}),f()}if(t&2){let e=h(2);l("scrollable",e.scrollable)("tabPosition",e.tabPosition)("prev",!1)("title",e.localization.get("nextTabButton"))}}function uy(t,n){if(t&1&&(g(0,"div",11),_(1,ly,2,4,"span",12),g(2,"ul",13,2),_(4,cy,3,10,"ng-container",14),f(),_(5,dy,2,4,"span",12),f()),t&2){let e=h();l("ngClass",e.itemsWrapperClass),u(),l("ngIf",e.hasScrollButtons),u(),ce("justify-content",e.tabsAlignmentStyles)("width",e.tabListWidth)("height",e.tabListHeight),M("aria-orientation",e.tabPosition==="left"||e.tabPosition==="right"?"vertical":"horizontal"),u(2),l("ngForOf",e.tabs),u(),l("ngIf",e.hasScrollButtons)}}function hy(t,n){}function py(t,n){if(t&1&&(g(0,"div",19),_(1,hy,0,0,"ng-template",20),f()),t&2){let e=h(),i=e.$implicit,o=e.index,s=h(2);l("@state",i.selected&&s.animate?"active":"inactive")("ngClass",!s.keepTabContent||i.selected?"k-tabstrip-content k-active":"k-tabstrip-content")("tabIndex",0)("id",s.getTabPanelId(o)),M("aria-hidden",!i.selected)("aria-labelledby",s.getTabId(o))("aria-disabled",i.disabled),u(),l("ngTemplateOutlet",i.tabContent==null?null:i.tabContent.templateRef)}}function my(t,n){if(t&1&&_(0,py,2,8,"div",18),t&2){let e=n.$implicit,i=h(2);l("ngIf",e.selected||i.keepTabContent)}}function gy(t,n){if(t&1&&_(0,my,1,1,"ng-template",17),t&2){let e=h();l("ngForOf",e.tabs)}}function fy(t,n){if(t&1){let e=K();g(0,"kendo-resize-sensor",21),O("resize",function(){y(e);let o=h();return I(o.onResize())}),f()}}function _y(t,n){t&1&&b(0,"div",22)}var vy=["kendoDrawerItem",""],Cy=(t,n,e,i)=>({$implicit:t,isItemExpanded:n,hasChildren:e,level:i});function Sy(t,n){}function by(t,n){if(t&1&&_(0,Sy,0,0,"ng-template",2),t&2){let e=h();l("ngTemplateOutlet",e.itemTemplate)("ngTemplateOutletContext",Mi(2,Cy,e.item,e.viewItem.isExpanded,e.viewItem.hasChildren,e.viewItem.level))}}function Dy(t,n){if(t&1&&b(0,"kendo-icon-wrapper",8),t&2){let e=h(3);l("name",e.iconClasses)("customFontClass",e.customIconClasses)("svgIcon",e.item.svgIcon)("innerCssClass",e.innerCssClasses)}}function Ey(t,n){t&1&&b(0,"span",9)}function wy(t,n){if(t&1&&b(0,"kendo-icon-wrapper",10),t&2){let e=h(3);l("name",e.viewItem.isExpanded?"arrow-chevron-up":"arrow-chevron-down")("svgIcon",e.viewItem.isExpanded?e.arrowUpIcon:e.arrowDownIcon)}}function yy(t,n){if(t&1&&(q(0),_(1,Dy,1,4,"kendo-icon-wrapper",4),g(2,"span",5),ee(3),f(),_(4,Ey,1,0,"span",6)(5,wy,1,2,"kendo-icon-wrapper",7),Q()),t&2){let e=h(2);u(),l("ngIf",e.item.icon||e.item.iconClass||e.item.svgIcon),u(2),De(e.item.text),u(),l("ngIf",e.viewItem.hasChildren),u(),l("ngIf",e.viewItem.hasChildren)}}function Iy(t,n){if(t&1&&b(0,"kendo-icon-wrapper",8),t&2){let e=h(3);l("name",e.iconClasses)("customFontClass",e.customIconClasses)("svgIcon",e.item.svgIcon)("innerCssClass",e.innerCssClasses)}}function Ty(t,n){if(t&1&&(q(0),_(1,Iy,1,4,"kendo-icon-wrapper",4),Q()),t&2){let e=h(2);u(),l("ngIf",e.item.icon||e.item.iconClass||e.item.svgIcon)}}function ky(t,n){if(t&1&&_(0,yy,6,4,"ng-container",3)(1,Ty,2,1,"ng-container",3),t&2){let e=h();l("ngIf",e.expanded),u(),l("ngIf",e.mini&&!e.expanded)}}var xy=["kendoDrawerList",""];function Ry(t,n){if(t&1&&b(0,"li",3),t&2){let e=h(),i=e.$implicit,o=e.index,s=h();or("k-drawer-item ",s.expanded?" k-level-"+i.level:"",""),l("viewItem",i)("index",o)("mini",s.mini)("expanded",s.expanded)("itemTemplate",s.itemTemplate)("ngClass",i.item.cssClass)("ngStyle",i.item.cssStyle)("tabindex",i.index===0?"0":"-1"),M("data-kendo-drawer-index",i.index)}}function Oy(t,n){if(t&1&&(g(0,"li",4),ee(1," \xA0 "),f()),t&2){let e=h().$implicit;l("ngClass",e.item.cssClass)("ngStyle",e.item.cssStyle)}}function My(t,n){if(t&1&&(q(0),_(1,Ry,1,12,"li",1)(2,Oy,2,2,"li",2),Q()),t&2){let e=n.$implicit;u(),l("ngIf",!e.item.separator),u(),l("ngIf",e.item.separator)}}function Ay(t,n){}function Ly(t,n){if(t&1&&_(0,Ay,0,0,"ng-template",5),t&2){let e=h(3);l("ngTemplateOutlet",e.headerTemplate==null?null:e.headerTemplate.templateRef)}}function Ny(t,n){}function Py(t,n){if(t&1&&_(0,Ny,0,0,"ng-template",5),t&2){let e=h(3);l("ngTemplateOutlet",e.footerTemplate==null?null:e.footerTemplate.templateRef)}}function Fy(t,n){if(t&1){let e=K();q(0),_(1,Ly,1,1,null,3),g(2,"ul",4),O("select",function(o){y(e);let s=h(2);return I(s.onSelect(o))}),f(),_(3,Py,1,1,null,3),Q()}if(t&2){let e=h(2);u(),l("ngIf",e.headerTemplate),u(),l("mini",e.mini)("expanded",e.expanded)("view",e.viewItems)("itemTemplate",e.itemTemplate==null?null:e.itemTemplate.templateRef),u(),l("ngIf",e.footerTemplate)}}function Gy(t,n){}function Vy(t,n){if(t&1&&_(0,Gy,0,0,"ng-template",5),t&2){let e=h(2);l("ngTemplateOutlet",e.drawerTemplate==null?null:e.drawerTemplate.templateRef)}}function zy(t,n){if(t&1&&(g(0,"div",2),_(1,Fy,4,6,"ng-container",3)(2,Vy,1,1,null,3),f()),t&2){let e=h();ce("width",e.drawerWidth,"px"),u(),l("ngIf",!e.drawerTemplate),u(),l("ngIf",e.drawerTemplate)}}function Uy(t,n){t&1&&b(0,"div",6)}function By(t,n){if(t&1){let e=K();g(0,"div",1),O("click",function(){y(e);let o=h();return I(o.closeDrawer())}),f()}}var jy=["stepLink"],Hy=["kendoStepperStep",""],Ro=(t,n)=>({$implicit:t,index:n});function Ky(t,n){}function $y(t,n){if(t&1&&_(0,Ky,0,0,"ng-template",3),t&2){let e=h();l("ngTemplateOutlet",e.stepTemplate)("ngTemplateOutletContext",et(2,Ro,e.step,e.index))}}function Wy(t,n){}function qy(t,n){if(t&1&&_(0,Wy,0,0,"ng-template",3),t&2){let e=h(3);l("ngTemplateOutlet",e.indicatorTemplate)("ngTemplateOutletContext",et(2,Ro,e.step,e.index))}}function Qy(t,n){if(t&1&&b(0,"kendo-icon-wrapper",9),t&2){let e=h(4);l("name",e.indicatorIconClass)("customFontClass",e.customIndicatorIconClass)("svgIcon",e.SVGIndicatorIcon)}}function Jy(t,n){if(t&1&&(g(0,"span",10),ee(1),f()),t&2){let e=h(4);u(),De(e.indicatorText)}}function Yy(t,n){if(t&1&&(q(0),_(1,Qy,1,3,"kendo-icon-wrapper",7)(2,Jy,2,1,"span",8),Q()),t&2){let e=h(3);u(),l("ngIf",e.showIndicatorIcon),u(),l("ngIf",!e.showIndicatorIcon)}}function Zy(t,n){if(t&1&&(g(0,"span",6),_(1,qy,1,5,null,2)(2,Yy,3,2,"ng-container",2),f()),t&2){let e=h(2);ce("transition-duration",e.transitionDuration,"ms"),u(),l("ngIf",e.indicatorTemplate),u(),l("ngIf",!e.indicatorTemplate)}}function Xy(t,n){}function eI(t,n){if(t&1&&_(0,Xy,0,0,"ng-template",3),t&2){let e=h(3);l("ngTemplateOutlet",e.labelTemplate)("ngTemplateOutletContext",et(2,Ro,e.step,e.index))}}function tI(t,n){if(t&1&&(g(0,"span",15),ee(1),f()),t&2){let e=h(4);u(),De(e.step.label)}}function iI(t,n){if(t&1&&b(0,"kendo-icon-wrapper",16),t&2){let e=h(4);l("name",e.validationIconClasses)("customFontClass",e.customValidationIconClasses)("svgIcon",e.validationSVGIcon)}}function nI(t,n){if(t&1&&(g(0,"span",17),ee(1),f()),t&2){let e=h(4);u(),St("(",e.optionalText,")")}}function oI(t,n){if(t&1&&(q(0),_(1,tI,2,1,"span",12)(2,iI,1,3,"kendo-icon-wrapper",13)(3,nI,2,1,"span",14),Q()),t&2){let e=h(3);u(),l("ngIf",e.showLabelText),u(),l("ngIf",e.showLabelIcon),u(),l("ngIf",e.step.optional)}}function sI(t,n){if(t&1&&(g(0,"span",11),_(1,eI,1,5,null,2)(2,oI,4,3,"ng-container",2),f()),t&2){let e=h(2);u(),l("ngIf",e.labelTemplate),u(),l("ngIf",!e.labelTemplate)}}function rI(t,n){if(t&1&&(q(0),_(1,Zy,3,4,"span",4)(2,sI,3,2,"span",5),Q()),t&2){let e=h();u(),l("ngIf",e.showIndicator),u(),l("ngIf",e.showLabel)}}var aI=["kendoStepperList",""];function lI(t,n){if(t&1&&(q(0),b(1,"li",1),Q()),t&2){let e=n.$implicit,i=n.index,o=h();u(),ce("max-width",o.maxStepWidth,"%")("max-height",o.maxStepHeight,"%"),N("k-step-first",i===0)("k-step-last",i===o.steps.length-1)("k-step-done",i({height:t}),MI=(t,n,e)=>({"k-callout-n":t,"k-callout-w":n,"k-callout-e":e}),Bd=t=>({animationDuration:t}),Aa=(t,n)=>({value:t,params:n});function AI(t,n){t&1&&ee(0," > ")}function LI(t,n){if(t&1&&_(0,AI,1,0,"ng-template",8),t&2){let e=h(2);l("ngTemplateOutlet",e.headerTemplate==null?null:e.headerTemplate.templateRef)("ngTemplateOutletContext",et(2,Ro,e.event,e.index))}}function NI(t,n){if(t&1&&b(0,"button",12),t&2){let e=h(3);l("icon",e.calloutFontIcon)("svgIcon",e.calloutSvgIcon),M("aria-hidden",!0)}}function PI(t,n){if(t&1&&(g(0,"div",9)(1,"span",10),ee(2),f(),_(3,NI,1,3,"button",11),f()),t&2){let e=h(2);u(2),De(e.event.title),u(),l("ngIf",e.collapsible&&e.orientation==="vertical")}}function FI(t,n){if(t&1&&(g(0,"div",13),ee(1),f()),t&2){let e=h(2);u(),De(e.event.subtitle)}}function GI(t,n){t&1&&ee(0," > ")}function VI(t,n){if(t&1&&_(0,GI,1,0,"ng-template",8),t&2){let e=h(3);l("ngTemplateOutlet",e.bodyTemplate==null?null:e.bodyTemplate.templateRef)("ngTemplateOutletContext",et(2,Ro,e.event,e.index))}}function zI(t,n){if(t&1&&(g(0,"p"),ee(1),f()),t&2){let e=h(4);u(),De(e.event.description)}}function UI(t,n){if(t&1&&b(0,"img",19),t&2){let e=h().$implicit;l("src",e.src,pi)("alt",e.alt)}}function BI(t,n){if(t&1&&b(0,"img",20),t&2){let e=h().$implicit;l("src",e.src,pi)}}function jI(t,n){if(t&1&&(q(0),_(1,UI,1,2,"img",17)(2,BI,1,1,"img",18),Q()),t&2){let e=n.$implicit;u(),l("ngIf",e.alt),u(),l("ngIf",!e.alt)}}function HI(t,n){if(t&1&&(g(0,"div",15),_(1,zI,2,1,"p",5)(2,jI,3,2,"ng-container",16),f()),t&2){let e=h(3);u(),l("ngIf",e.event.description),u(),l("ngForOf",e.event.images)}}function KI(t,n){if(t&1){let e=K();g(0,"kendo-card-body"),O("@toggle.start",function(){y(e);let o=h(2);return I(o.animationStart())})("@toggle.done",function(o){y(e);let s=h(2);return I(s.animationDone(o))}),_(1,VI,1,5,null,5)(2,HI,3,2,"div",14),f()}if(t&2){let e=h(2);l("@toggle",et(5,Aa,e.expanded?"expanded":"collapsed",We(3,Bd,e.animationDuration||0))),u(),l("ngIf",e.bodyTemplate),u(),l("ngIf",!e.bodyTemplate)}}function $I(t,n){t&1&&ee(0," > ")}function WI(t,n){if(t&1&&_(0,$I,1,0,"ng-template",8),t&2){let e=h(3);l("ngTemplateOutlet",e.actionsTemplate==null?null:e.actionsTemplate.templateRef)("ngTemplateOutletContext",et(2,Ro,e.event,e.index))}}function qI(t,n){if(t&1){let e=K();g(0,"a",22),O("click",function(o){y(e);let s=h(4);return I(s.onActionClick(o))}),ee(1),f()}if(t&2){let e=n.$implicit;l("href",e.url,pi)("target",e.target==="blank"?"_blank":"_self"),u(),St(" ",e.text," ")}}function QI(t,n){if(t&1&&(q(0),_(1,qI,2,3,"a",21),Q()),t&2){let e=h(3);u(),l("ngForOf",e.event.actions)}}function JI(t,n){if(t&1&&(g(0,"kendo-card-actions"),_(1,WI,1,5,null,5)(2,QI,2,1,"ng-container",5),f()),t&2){let e=h(2);l("@toggle",et(5,Aa,e.expanded?"expanded":"collapsed",We(3,Bd,e.animationDuration||0))),u(),l("ngIf",e.actionsTemplate),u(),l("ngIf",!e.actionsTemplate)}}function YI(t,n){if(t&1&&(g(0,"div",4)(1,"kendo-card-header"),_(2,LI,1,5,null,5)(3,PI,4,2,"div",6)(4,FI,2,1,"div",7),f(),_(5,KI,3,8,"kendo-card-body",5)(6,JI,3,8,"kendo-card-actions",5),f()),t&2){let e=h();u(2),l("ngIf",e.headerTemplate),u(),l("ngIf",!e.headerTemplate),u(),l("ngIf",!e.headerTemplate),u(),l("ngIf",e.event.description||e.event.images),u(),l("ngIf",e.event.actions)}}var ZI=["track"],XI=["scrollableTrack"],Kf=["card"],eT=["trackCircle"],tT=["trackFlag"],iT=t=>({transformValue:t}),nT=()=>({"transform-origin":"left top"}),oT=()=>({}),sT=t=>({visibility:t});function rT(t,n){if(t&1&&(g(0,"li",15,2)(2,"span",16),ee(3),f()()),t&2){let e=h().$implicit,i=h();l("ngStyle",i.tabStyle()),M("role","none")("aria-hidden",!0),u(3),De(e.isFlag)}}function aT(t,n){if(t&1&&(g(0,"span",21),ee(1),zn(2,"kendoDate"),f()),t&2){let e=h(2).$implicit,i=h();u(),St(" ",Tl(2,1,e.date,i.dateFormat)," ")}}function lT(t,n){if(t&1){let e=K();g(0,"li",17,3),O("click",function(){y(e);let o=h().index,s=h();return I(s.navigateToEvent(o))}),g(2,"div",18),_(3,aT,3,4,"span",19),f(),b(4,"span",20),f()}if(t&2){let e=h(2);l("ngStyle",e.tabStyle()),M("role","tab"),u(3),l("ngIf",e.showDateLabels)}}function cT(t,n){if(t&1&&(q(0),_(1,rT,4,4,"li",13)(2,lT,5,3,"li",14),Q()),t&2){let e=n.$implicit;u(),l("ngIf",e.isFlag),u(),l("ngIf",!e.isFlag)}}function dT(t,n){if(t&1){let e=K();g(0,"li",24,4),O("transitionend",function(){y(e);let o=h(2);return I(o.onTransitionEnd())}),b(2,"kendo-timeline-card",25),f()}if(t&2){let e=n.index,i=h(2);u(2),l("event",i.selectedCardIndex===e?i.selectedEvent:null)("expanded",!0)("collapsible",i.collapsibleEvents)("calloutStyle",i.selectedCardIndex===e?i.calloutStyle:si(12,oT))("ngStyle",We(13,sT,i.selectedCardIndex===e?"visible":"hidden"))("tabIndex",i.selectedCardIndex===e?"0":"-1")("navigable",i.navigable)("index",i.selectedEventIndex)("headerTemplate",i.headerTemplate)("bodyTemplate",i.bodyTemplate)("actionsTemplate",i.actionsTemplate)("eventHeight",i.eventHeight)}}function uT(t,n){if(t&1){let e=K();g(0,"ul",22),O("@eventsSlide.done",function(){y(e);let o=h();return I(o.onSlideDone())}),_(1,dT,3,15,"li",23),f()}if(t&2){let e=h();l("@eventsSlide",et(5,Aa,e.animationState,We(3,Bd,e.animationDuration||0)))("ngStyle",si(8,nT)),u(),l("ngForOf",e.eventsInInterval)}}var hT=["dateWrap"],pT=["innerDate"],mT=t=>({"k-reverse":t});function gT(t,n){if(t&1&&(g(0,"li",11)(1,"span",12),ee(2),f()()),t&2){let e=h().$implicit;u(2),De(e.flag)}}function fT(t,n){if(t&1&&(g(0,"span",13,2),ee(2),zn(3,"kendoDate"),f()),t&2){let e=h().$implicit,i=h(2);u(2),St(" ",Tl(3,1,e.date,i.dateFormat)," ")}}function _T(t,n){if(t&1&&(q(0),_(1,gT,3,1,"li",5),g(2,"li",6)(3,"div",7,0),_(5,fT,4,4,"span",8),f(),b(6,"span",9)(7,"kendo-timeline-card",10,1),f(),Q()),t&2){let e=n.$implicit,i=n.index,o=h(2);u(),l("ngIf",e.flag),u(),l("ngClass",We(15,mT,o.alterMode&&i%2===0)),u(3),l("ngIf",o.showDateLabels),u(2),l("event",e)("expanded",e.expanded||!o.collapsibleEvents)("collapsible",o.collapsibleEvents)("reversed",o.alterMode&&i%2===0)("tabIndex","0")("navigable",o.navigable)("animationDuration",o.animationDuration)("headerTemplate",o.headerTemplate)("bodyTemplate",o.bodyTemplate)("actionsTemplate",o.actionsTemplate)("index",i)("eventWidth",o.eventWidth)}}function vT(t,n){if(t&1&&(g(0,"ul"),_(1,_T,9,17,"ng-container",4),f()),t&2){let e=h();u(),l("ngForOf",e.events)}}function CT(t,n){if(t&1&&b(0,"kendo-timeline-vertical",4),t&2){let e=h();l("events",e.events)("alterMode",e.alterMode)("collapsibleEvents",e.collapsibleEvents)("navigable",e.navigable)("showDateLabels",e.showDateLabels)("animationDuration",e.animationDuration)("eventWidth",e.eventWidth)("dateFormat",e.dateFormat)("headerTemplate",e.headerTemplate)("bodyTemplate",e.bodyTemplate)("actionsTemplate",e.actionsTemplate)}}function ST(t,n){if(t&1&&b(0,"kendo-timeline-horizontal",5),t&2){let e=h();l("events",e.events)("collapsibleEvents",!1)("navigable",e.navigable)("showDateLabels",e.showDateLabels)("animationDuration",e.animationDuration)("eventHeight",e.eventHeight)("dateFormat",e.dateFormat)("headerTemplate",e.headerTemplate)("bodyTemplate",e.bodyTemplate)("actionsTemplate",e.actionsTemplate)}}var xi={name:"@progress/kendo-angular-layout",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1716480319,version:"16.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},an=function(t){return t[t.Single=0]="Single",t[t.Full=1]="Full",t[t.Multiple=2]="Multiple",t[t.Default=2]="Default",t}(an||{}),bT=0,vd=(()=>{class t{constructor(){this.parentSource=new Qe,this.keepContentSource=new fn(!1),this.childSource=new Qe,this.itemClick=new Qe,this.parent$=this.parentSource.asObservable(),this.children$=this.childSource.asObservable(),this.keepContent$=this.keepContentSource.asObservable(),this.pbId=bT++}onKeepContent(e){this.keepContentSource.next(e)}onSelect(e){this.childSource.next(e)}onFocus(){this.parentSource.next(!0)}onBlur(){this.parentSource.next(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),$f=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoPanelBarContent",""]]}),t})(),Wf=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoPanelBarItemTitle",""]]}),t})(),DT=0,uf={small:"sm",medium:"md",large:"lg"},hf={small:"sm",medium:"md",large:"lg",full:"full"},ET={rounded:"large",circle:"full"},qf=t=>t.map(n=>(He(n.id)||(n.id=`default-${DT++}`),n.children&&(n.children=qf(n.children)),n)),He=t=>t!=null,Qf=t=>t===T.ArrowLeft||t===T.ArrowRight,Jf=t=>t===T.ArrowUp||t===T.ArrowDown,wT=t=>Qf(t)||Jf(t),pf=t=>t===T.PageUp||t===T.PageDown||t===T.Home||t===T.End,yT=(t,n,e,i)=>{switch(n){case"size":return{toRemove:`k-${t}-${uf[e]}`,toAdd:i!=="none"?`k-${t}-${uf[i]}`:""};case"rounded":return{toRemove:`k-rounded-${hf[e]}`,toAdd:i!=="none"?`k-rounded-${hf[i]}`:""};default:break}},IT=t=>ET[t]||"none",TT=t=>typeof t=="number"&&isFinite(t),kT=/^(?:a|input|select|option|textarea|button|object)$/i,xT=t=>String(t).trim().split(" "),ys=t=>{if(t.tagName){let n=t.tagName.toLowerCase(),e=t.getAttribute("tabIndex"),i=e==="-1",o=e!==null&&!i;return kT.test(n)&&(o=!t.disabled&&!i),o}return!1},Da=(t,n)=>!!xT(t.className).find(e=>e===n),Cd=(t,n,e,i)=>{for(;t&&t!==e&&!n(t,i);)t=t.parentNode;if(t!==e)return t},Yf=(t,n)=>+t.getAttribute(n),RT=(t,n)=>He(t.getAttribute(n)),Zf=(t,n,e)=>Cd(t,RT,e,n),OT=0,Es=(()=>{class t{constructor(e,i,o,s){this.parent=e,this.eventService=i,this.element=o,this.renderer=s,this.id=`default-${OT++}`,this.icon="",this.iconClass="",this.imageUrl="",this.disabled=!1,this.selected=!1,this.keepContent=!1,this.hasChildItems=!1,this.hasItems=!1,this.hasContent=!1,this.state="inactive",this.role="treeitem",this.titleAttribute=null,this.kItemClass=!0,this.focused=!1,this.wrapperFocused=!1,this.subscriptions=new Se(()=>{}),this._expanded=!1,this.subscriptions.add(i.parent$.subscribe(r=>this.onWrapperFocusChange(r))),this.subscriptions.add(i.keepContent$.subscribe(r=>this.keepContent=r)),this.wrapperFocused=e?e.focused:!1,this.level=this.parent?this.parent.level+1:0}set svgIcon(e){if(fe()&&e&&this.icon&&this.iconClass)throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this._svgIcon=e}get svgIcon(){return this._svgIcon}set expanded(e){let i=this.animate?"active":"activeWithoutAnimation";this.state=e?i:"inactive",this.keepContent||this.toggleExpandedChildAnimations(e),this._expanded=e}get expanded(){return this._expanded}get animate(){return this.eventService.animate}get kStateExpandedClass(){return!this.disabled&&this.expanded&&(this.hasChildItems||this.hasContent)}get itemId(){return"k-panelbar-"+this.eventService.pbId+"-item-"+this.id}get ariaExpanded(){return this.hasChildItems||this.hasContent?!this.disabled&&this.expanded:null}get ariaSelected(){return!this.disabled&&this.selected}get ariaDisabled(){return this.disabled?!0:null}get headerClass(){return this.parent?null:!0}get titleTemplate(){return this.titleTemplates.length>0?this.titleTemplates.toArray()[0].templateRef:void 0}headerHeight(){return this.element.nativeElement.offsetHeight-(this.contentWrapper?this.contentWrapper.nativeElement.offsetHeight:0)}ngOnInit(){this.addLevelClass()}ngAfterContentChecked(){this.hasItems=this.items&&this.items.filter(e=>!e.hidden).length>0,this.hasChildItems=this.contentItems.filter(e=>e!==this).length>0||this.hasItems,this.hasContent=this.contentTemplate!==void 0&&this.contentTemplate.length>0||this.content!==void 0,this.validateConfiguration()}ngAfterViewChecked(){this.items?this.childrenItems=this.viewChildItems.toArray():this.childrenItems=this.contentItems.filter(e=>e!==this)}ngOnDestroy(){this.subscriptions.unsubscribe()}onItemAction(){this.disabled||this.eventService.onSelect(this)}onItemClick(e){ys(e.target)||(this.eventService.itemClick.next({item:this.serialize(),originalEvent:e}),this.onItemAction())}get iconClasses(){if(this.icon)return`${this.icon}`}get customIconClasses(){if(this.iconClass)return`${this.iconClass}`}get dirInnerCssClasses(){return`k-panelbar-toggle ${this.expanded?"k-panelbar-collapse":"k-panelbar-expand"}`}get expanderSVGIcon(){return this.expanded?Fl:Gl}serialize(){return{content:this.content,disabled:this.disabled,expanded:this.expanded,focused:this.focused,icon:this.icon,iconClass:this.iconClass,svgIcon:this.svgIcon,id:this.id,imageUrl:this.imageUrl,selected:this.selected,title:this.title,children:this.items}}subTreeViewItems(){let e=[];return this.viewChildItems.forEach(i=>{e=e.concat(i.subTreeViewItems()),e.push(i)}),e}validateConfiguration(){if(fe()&&this.content&&this.contentTemplate!==void 0&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")}toggleAnimationState(e){this.animate&&(this.state=e&&this.eventService.expandMode!==an.Single?"active":"activeWithoutAnimation")}toggleExpandedChildAnimations(e){this.childrenItems&&this.childrenItems.forEach(i=>{i.expanded&&(i.toggleAnimationState(e),i.toggleExpandedChildAnimations(e))})}addLevelClass(){this.level>=0&&this.renderer.addClass(this.element.nativeElement,`k-level-${this.level}`)}onWrapperFocusChange(e){this.wrapperFocused=e}}return t.\u0275fac=function(e){return new(e||t)(c(t,13),c(vd),c(W),c(X))},t.\u0275cmp=k({type:t,selectors:[["kendo-panelbar-item"]],contentQueries:function(e,i,o){if(e&1&&(B(o,t,4),B(o,$f,4),B(o,Wf,4)),e&2){let s;D(s=E())&&(i.contentItems=s),D(s=E())&&(i.contentTemplate=s),D(s=E())&&(i.titleTemplates=s)}},viewQuery:function(e,i){if(e&1&&(j(zf,5),j(cw,5),j(t,5)),e&2){let o;D(o=E())&&(i.header=o.first),D(o=E())&&(i.contentWrapper=o.first),D(o=E())&&(i.viewChildItems=o)}},hostVars:12,hostBindings:function(e,i){e&2&&(Yh("id",i.itemId),M("role",i.role)("title",i.titleAttribute)("aria-expanded",i.ariaExpanded)("aria-selected",i.ariaSelected)("aria-disabled",i.ariaDisabled),N("k-panelbar-item",i.kItemClass)("k-expanded",i.kStateExpandedClass)("k-panelbar-header",i.headerClass))},inputs:{title:"title",id:"id",icon:"icon",iconClass:"iconClass",svgIcon:"svgIcon",imageUrl:"imageUrl",disabled:"disabled",expanded:"expanded",selected:"selected",content:"content",items:"items",template:"template"},exportAs:["kendoPanelbarItem"],ngContentSelectors:Bf,decls:8,vars:14,consts:[["header",""],["contentWrapper",""],[3,"click"],["innerCssClass","k-panelbar-item-icon",3,"name","customFontClass","svgIcon",4,"ngIf"],["class","k-image k-panelbar-item-icon","alt","",3,"src",4,"ngIf"],[4,"ngIf"],[3,"name","svgIcon","innerCssClass",4,"ngIf"],["innerCssClass","k-panelbar-item-icon",3,"name","customFontClass","svgIcon"],["alt","",1,"k-image","k-panelbar-item-icon",3,"src"],[1,"k-panelbar-item-text"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"name","svgIcon","innerCssClass"],["class","k-panelbar-group",3,"overflow","height",4,"ngIf"],["class","k-panelbar-content",3,"overflow","height",4,"ngIf"],[1,"k-panelbar-group"],[1,"k-panelbar-content"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","svgIcon","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","svgIcon","imageUrl","selected","expanded","disabled","template","items","content"],[3,"ngIf"]],template:function(e,i){if(e&1){let o=K();Le(Uf),g(0,"span",2,0),O("click",function(r){return y(o),I(i.onItemClick(r))}),_(2,hw,1,3,"kendo-icon-wrapper",3)(3,pw,1,1,"img",4)(4,mw,3,1,"ng-container",5)(5,fw,1,16,null,5)(6,_w,1,3,"kendo-icon-wrapper",6),f(),_(7,Tw,6,7,"div",5)}e&2&&(N("k-link",!0)("k-selected",!i.disabled&&i.selected)("k-focus",i.focused&&i.wrapperFocused)("k-disabled",i.disabled),u(2),l("ngIf",i.icon||i.iconClass||i.svgIcon),u(),l("ngIf",i.imageUrl),u(),l("ngIf",!i.titleTemplate),u(),l("ngIf",i.titleTemplate),u(),l("ngIf",i.hasChildItems||i.hasContent),u(),l("ngIf",i.keepContent||!i.disabled&&i.expanded&&(i.hasChildItems||i.hasContent)))},dependencies:[qe,oe,Fe,Je,t],encapsulation:2,data:{animation:[Cn("toggle",[wi("inactive",Ce({display:"none"})),Ai("* => active",[Ce({overflow:"hidden",display:"block",height:0}),lt(200,Ce({height:kl}))]),Ai("active => *",[Ce({overflow:"hidden",height:kl}),lt(200,Ce({height:0,display:"none"}))])])]}}),t})(),Xf=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoPanelBarItemTemplate",""]]}),t})(),ws=class{constructor(n){this.prevented=!1,Object.assign(this,n)}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},Sd=class extends ws{},bd=class extends ws{},Dd=class extends ws{},Ea=class{};var MT=(()=>{class t{constructor(e,i,o){this.localization=o,this.expandMode=an.Default,this.selectable=!0,this.animate=!0,this.height="400px",this.stateChange=new C,this.select=new C,this.expand=new C,this.collapse=new C,this.itemClick=new C,this.hostClasses=!0,this.tabIndex=0,this.role="tree",this.activeDescendant="",this.showLicenseWatermark=!1,this.isViewInit=!0,this.focused=!1,this._keepItemContent=!1,this.subs=new Se,this.updateChildrenHeight=()=>{let r=0,a=this.elementRef.nativeElement.offsetHeight,d=this.expandMode===an.Full?"auto":"visible";this.childrenItems.forEach(p=>{r+=p.headerHeight()}),this.childrenItems.forEach(p=>{p.contentHeight=an.Full===this.expandMode?a-r+"px":"auto",p.contentOverflow=d})};let s=pt(xi);this.showLicenseWatermark=Hn(s),this.keyBindings=this.computedKeys,this.elementRef=e,this.eventService=i,this.subs.add(this.eventService.children$.subscribe(r=>this.onItemAction(r))),this.subs.add(this.eventService.itemClick.subscribe(r=>this.itemClick.emit(r)))}get keepItemContent(){return this._keepItemContent}set keepItemContent(e){this._keepItemContent=e,this.eventService.onKeepContent(e)}set items(e){e&&(this._items=qf(e))}get items(){return this._items}get hostHeight(){return this.expandMode===an.Full?this.height:"auto"}get overflow(){return this.expandMode===an.Full?"hidden":"visible"}get dir(){return this.localization.rtl?"rtl":"ltr"}invertKeys(e,i){return this.localization.rtl?i:e}get computedKeys(){return{[T.Space]:()=>this.selectFocusedItem(),[T.Enter]:()=>this.selectFocusedItem(),[T.ArrowUp]:()=>this.focusPreviousItem(),[this.invertKeys(T.ArrowLeft,T.ArrowRight)]:()=>this.collapseItem(),[T.ArrowDown]:()=>this.focusNextItem(),[this.invertKeys(T.ArrowRight,T.ArrowLeft)]:()=>this.expandItem(),[T.End]:()=>this.focusLastItem(),[T.Home]:()=>this.focusFirstItem()}}ngOnDestroy(){this.subs.unsubscribe()}ngOnInit(){this.subs.add(this.localization.changes.subscribe(()=>this.keyBindings=this.computedKeys)),this.eventService.animate=this.animate,this.eventService.expandMode=this.expandMode}ngAfterViewChecked(){this.items?(this.childrenItems=this.viewChildItems.toArray(),this.allItems=this.viewItems):(this.childrenItems=this.contentChildItems.toArray(),this.allItems=this.contentItems.toArray()),this.isViewInit&&this.childrenItems.length&&(this.isViewInit=!1,setTimeout(()=>this.updateChildrenHeight())),this.validateConfiguration()}ngOnChanges(e){(e.height||e.expandMode||e.items)&&this.childrenItems&&setTimeout(this.updateChildrenHeight),e.animate&&(this.eventService.animate=this.animate),e.expandMode&&(this.eventService.expandMode=this.expandMode)}get templateRef(){return this.template?this.template.templateRef:void 0}onComponentClick(e){let i=this.visibleItems().some(o=>o.header.nativeElement.contains(e.target));!ys(e.target)&&!this.focused&&i&&this.elementRef.nativeElement.focus()}onComponentFocus(){if(this.eventService.onFocus(),this.focused=!0,this.allItems.length>0){let e=this.visibleItems();!e.filter(o=>o.focused).length&&e.length>0&&(e[0].focused=!0,this.activeDescendant=e[0].itemId)}}onComponentBlur(){this.eventService.onBlur(),this.focused=!1,this.activeDescendant=""}onComponentKeyDown(e){if(e.target===this.elementRef.nativeElement){(e.keyCode===T.Space||e.keyCode===T.ArrowUp||e.keyCode===T.ArrowDown||e.keyCode===T.ArrowLeft||e.keyCode===T.ArrowRight||e.keyCode===T.Home||e.keyCode===T.End||e.keyCode===T.PageUp||e.keyCode===T.PageDown)&&e.preventDefault();let i=this.keyBindings[e.keyCode];i&&i()}}emitEvent(e,i){let o;switch(e){case"select":o=new Dd;break;case"collapse":o=new Sd;break;default:o=new bd;break}return o.item=i.serialize(),this[e].emit(o),o}get viewItems(){let e=[];return this.viewChildItems.toArray().forEach(i=>{e.push(i),e=e.concat(i.subTreeViewItems())}),e}validateConfiguration(){if(fe()&&this.items&&this.contentItems&&this.contentItems.length>0)throw new Error("Invalid configuration: mixed template components and items property.")}onItemAction(e){if(!e)return;let i=new Array,o=[];if(this.allItems.forEach(s=>{let r=s===e,a=r;r=this.selectable?r:s.selected,(s.selected!==r||s.focused!==a)&&((r?this.emitEvent("select",s).isDefaultPrevented():!1)?o.push(s):(s.selected=r,s.focused=a,this.activeDescendant=a?s.itemId:"",i.push(s)))}),this.expandMode===an.Multiple)(e.hasChildItems||e.hasContent)&&!o.includes(e)&&((e.expanded?this.emitEvent("collapse",e).isDefaultPrevented():this.emitEvent("expand",e).isDefaultPrevented())||(e.expanded=!e.expanded,i.indexOf(e)<0&&i.push(e)));else{let s=e.parent?e.parent.childrenItems:this.childrenItems,r,a=[];(e.hasChildItems||e.hasContent)&&!o.includes(e)&&(s.forEach(d=>{let p=d===e;if(d.expanded!==p){let m=d.expanded?this.emitEvent("collapse",d).isDefaultPrevented():this.emitEvent("expand",d).isDefaultPrevented();m?m&&d.expanded&&(r=d):(d.expanded=p,d.expanded&&a.push(d),i.indexOf(d)<0&&i.push(d))}else d.expanded===p&&p&&(this.emitEvent("collapse",d).isDefaultPrevented()||(d.expanded=!d.expanded,i.indexOf(d)<0&&i.push(d)))}),a.forEach(d=>{if(r&&d.id!==r.id&&(d.expanded=!1,fe())){let p=an[this.expandMode].toLowerCase();console.warn(` The ${p} expandMode allows the expansion of only one item at a time. See https://www.telerik.com/kendo-angular-ui-develop/components/layout/panelbar/expand-modes/`)}}))}if(i.length>0){let s=new Ea;s.items=i.map(r=>r.serialize()),this.stateChange.emit(s)}}isVisible(e){return this.visibleItems().some(o=>o===e)}getVisibleParent(e){let i=this.visibleItems();return e.parent?i.some(o=>o===e.parent)?e.parent:this.getVisibleParent(e.parent):e}focusItem(e){let i=this.visibleItems(),o=i.findIndex(a=>a.focused),s=i[o],r;if(o===-1){let a=this.allItems.find(d=>d.focused);a.focused=!1,s=this.getVisibleParent(a),o=i.findIndex(d=>d===s)}switch(e){case"lastItem":r=i[i.length-1];break;case"firstItem":r=i[0];break;case"nextItem":r=i[o0?o-1:i.length-1];break;default:}s&&r&&s!==r&&this.moveFocus(s,r)}moveFocus(e,i){e.focused=!1,i.focused=!0,this.activeDescendant=i.itemId;let o=new Array(e.serialize(),i.serialize()),s=new Ea;s.items=o,this.stateChange.emit(s)}focusLastItem(){this.focusItem("lastItem")}focusFirstItem(){this.focusItem("firstItem")}focusNextItem(){this.focusItem("nextItem")}focusPreviousItem(){this.focusItem("previousItem")}expandItem(){let e=this.allItems.filter(i=>i.focused)[0];if(this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e.hasChildItems||e.hasContent){if(!e.expanded)this.onItemAction(e);else if(e.hasChildItems){let i=e.childrenItems.findIndex(o=>!o.disabled);i>-1&&this.moveFocus(e,e.childrenItems[i])}}}collapseItem(){let e=this.allItems.filter(i=>i.focused)[0];e.expanded?this.onItemAction(e):e.parent&&this.moveFocus(e,e.parent)}selectFocusedItem(){let e=this.allItems.filter(i=>i.focused)[0];this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e&&e.onItemAction()}visibleItems(){return this.flatVisibleItems(this.childrenItems)}flatVisibleItems(e=new Array,i=new Array){return e.forEach(o=>{i.push(o),o.expanded&&o.hasChildItems&&this.flatVisibleItems(o.childrenItems,i)}),i}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(vd),c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-panelbar"]],contentQueries:function(e,i,o){if(e&1&&(B(o,Xf,5),B(o,Es,5),B(o,Es,4)),e&2){let s;D(s=E())&&(i.template=s.first),D(s=E())&&(i.contentItems=s),D(s=E())&&(i.contentChildItems=s)}},viewQuery:function(e,i){if(e&1&&j(Es,5),e&2){let o;D(o=E())&&(i.viewChildItems=o)}},hostVars:10,hostBindings:function(e,i){e&1&&O("click",function(s){return i.onComponentClick(s)})("focus",function(){return i.onComponentFocus()})("blur",function(){return i.onComponentBlur()})("keydown",function(s){return i.onComponentKeyDown(s)}),e&2&&(M("tabIndex",i.tabIndex)("role",i.role)("aria-activedescendant",i.activeDescendant)("dir",i.dir),ce("height",i.hostHeight)("overflow",i.overflow),N("k-panelbar",i.hostClasses))},inputs:{expandMode:"expandMode",selectable:"selectable",animate:"animate",height:"height",keepItemContent:"keepItemContent",items:"items"},outputs:{stateChange:"stateChange",select:"select",expand:"expand",collapse:"collapse",itemClick:"itemClick"},exportAs:["kendoPanelbar"],features:[Y([vd,ie,{provide:ht,useValue:"kendo.panelbar"}]),be],ngContentSelectors:Bf,decls:3,vars:3,consts:[[4,"ngIf"],[3,"ngIf"],["kendoWatermarkOverlay","",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","svgIcon","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","svgIcon","imageUrl","selected","expanded","disabled","template","items","content"],["kendoWatermarkOverlay",""]],template:function(e,i){e&1&&(Le(Uf),_(0,kw,1,0,"ng-content",0)(1,Ow,1,1,"ng-template",1)(2,Mw,1,0,"div",2)),e&2&&(l("ngIf",i.contentChildItems&&!i.items),u(),l("ngIf",i.items==null?null:i.items.length),u(),l("ngIf",i.showLicenseWatermark))},dependencies:[qe,oe,Bn,Es],encapsulation:2}),t})(),Ed=(()=>{class t{constructor(e,i,o){this.element=e,this.renderer=i,this.cdr=o,this.separatorLabel="Splitter pane",this.resizable=!0,this.collapsible=!1,this.scrollable=!0,this.collapsed=!1,this.orientation="horizontal",this.overlayContent=!1,this.sizeChange=new C,this.collapsedChange=new C,this.ariaRole="group",this.hostClass=!0,this.forceExpand=!1,this.isResized=!1}set order(e){this._order=e,this.setOrderStyles()}get order(){return this._order}set size(e){this._size=e;let i=this.element.nativeElement;this.renderer.setStyle(i,"-ms-flex-preferred-size",e),this.renderer.setStyle(i,"flex-basis",e),this.staticPaneClass?this.renderer.addClass(i,"k-pane-static"):this.renderer.removeClass(i,"k-pane-static")}get size(){return this._size}set containsSplitter(e){let i=this.element.nativeElement;e?this.renderer.addClass(i,"k-pane-flex"):this.renderer.removeClass(i,"k-pane-flex")}get isHidden(){return this.collapsed}get staticPaneClass(){return this.forceExpand?!1:!this.resizable&&!this.collapsible||this.fixedSize}get scrollablePaneClass(){return this.scrollable}get fixedSize(){return this.size&&this.size.length>0}ngAfterViewChecked(){let e=this.element.nativeElement;this.isHidden?(this.renderer.addClass(e,"k-hidden"),this.renderer.addClass(e,"hidden")):(this.renderer.removeClass(e,"k-hidden"),this.renderer.removeClass(e,"hidden"))}get computedSize(){return this.orientation==="vertical"?this.element.nativeElement.offsetHeight:this.element.nativeElement.offsetWidth}toggleOverlay(e){this.overlayContent=e,this.cdr.detectChanges()}detectChanges(){this.cdr.detectChanges()}setOrderStyles(){let e=this.element.nativeElement;this.renderer.setStyle(e,"-ms-flex-order",this.order),this.renderer.setStyle(e,"order",this.order)}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(X),c(ve))},t.\u0275cmp=k({type:t,selectors:[["kendo-splitter-pane"]],hostVars:7,hostBindings:function(e,i){e&2&&(M("role",i.ariaRole),N("k-pane",i.hostClass)("k-pane-static",i.staticPaneClass)("k-scrollable",i.scrollablePaneClass))},inputs:{order:"order",size:"size",separatorLabel:"separatorLabel",min:"min",max:"max",resizable:"resizable",collapsible:"collapsible",scrollable:"scrollable",collapsed:"collapsed",orientation:"orientation",containsSplitter:"containsSplitter",overlayContent:"overlayContent"},outputs:{sizeChange:"sizeChange",collapsedChange:"collapsedChange"},exportAs:["kendoSplitterPane"],ngContentSelectors:Mt,decls:2,vars:2,consts:[[4,"ngIf"],["class","k-splitter-overlay k-overlay",4,"ngIf"],[1,"k-splitter-overlay","k-overlay"]],template:function(e,i){e&1&&(Le(),_(0,Aw,2,0,"ng-container",0)(1,Lw,1,0,"div",1)),e&2&&(l("ngIf",!i.collapsed),u(),l("ngIf",i.overlayContent))},dependencies:[oe],encapsulation:2}),t})(),AT=(t,n,e)=>{let i=t===T.ArrowLeft,o=t===T.ArrowUp,s=!n.collapsed&&!e.collapsed&&(i||o),r=n.collapsed&&!(i||o);return s||r},LT=(t,n,e)=>{let i=t===T.ArrowLeft,o=t===T.ArrowUp,s=!e.collapsed&&!n.collapsed&&!(i||o),r=e.collapsed&&(i||o);return s||r},NT=(t,n)=>{let e=n==="horizontal",i=e&&(t===T.ArrowLeft||t===T.ArrowRight),o=!e&&(t===T.ArrowUp||t===T.ArrowDown);return i||o},PT="https://www.telerik.com/kendo-angular-ui/components/layout/splitter/panes/#toc-size",wd=(()=>{class t{constructor(e){this.zone=e,this.layoutChange=new C,this.resizeStep=10,this.containerSize=()=>{}}tryToggle(e){let i=this.pane(e);i.collapsible&&(i.collapsed=!i.collapsed,i.collapsedChange.emit(i.collapsed),this.emit(this.layoutChange,{}),i.collapsed&&i.detectChanges());let o=this.panes.filter(r=>!r.collapsed),s=o.every(r=>r.fixedSize);return o[o.length-1].forceExpand=!!s,i.collapsible}togglePane(e,i){let o=this.pane(i),s=this.pane(i+1);AT(e,o,s)?this.tryToggle(i):LT(e,o,s)&&this.tryToggle(i+1)}resizePane(e,i){let o=this.dragState(i),r=e===T.ArrowLeft||e===T.ArrowUp?-this.resizeStep:this.resizeStep;this.setSize(o,r)}toggleContentOverlay(e,i){this.pane(e).toggleOverlay(i),this.pane(e+1).toggleOverlay(i)}dragState(e){let i=this.pane(e),o=this.pane(e+1),s=i.computedSize+o.computedSize,r=a=>this.toPixels(a);return{prev:{index:e,initialSize:i.computedSize,min:r(i.min)||s-r(o.max)||0,max:r(i.max)||s-r(o.min)||s},next:{index:e+1,initialSize:o.computedSize,min:r(o.min)||s-r(i.max)||0,max:r(o.max)||s-r(i.min)||s}}}setSize(e,i){let o=(d,p,m)=>Math.min(p,Math.max(d,m)),s=(d,p)=>{let m=this.pane(d.index),v=this.containerSize(),S=o(d.min,d.max,d.initialSize+p),w="";this.isPercent(m.size)?w=100*S/v+"%":w=S+"px",m.size=w,m.isResized=!0,this.emit(m.sizeChange,w)},r=this.pane(e.prev.index),a=this.pane(e.next.index);r.fixedSize&&a.fixedSize?(s(e.prev,i),s(e.next,-i)):a.collapsible||a.fixedSize?s(e.next,-i):s(e.prev,i),this.emit(this.layoutChange,{})}isDraggable(e){let i=this.pane(e),o=this.pane(e+1),s=i.resizable&&o.resizable,r=i.collapsed||o.collapsed;return s&&!r}isStatic(e){let i=this.pane(e),o=this.pane(e+1),s=i.resizable&&o.resizable,r=i.collapsible||o.collapsible;return!s&&!r}pane(e){if(!this.panes)throw new Error("Panes not initialized");if(e<0||e>=this.panes.length)throw new Error("Index out of range");return this.panes[e]}configure({panes:e,orientation:i,containerSize:o}){if(this.panes=e,this.panes.forEach((s,r)=>{s.order=r*2,s.orientation=i}),fe()){let s=e.length&&!e.some(a=>!a.fixedSize),r=e.length&&e.some(a=>a.isResized);if(s&&!r)throw new Error(` The Splitter should have at least one pane without a set size. See ${PT} for more information. `)}this.containerSize=o}isPercent(e){return/%$/.test(e)}toPixels(e){let i=parseFloat(e);return this.isPercent(e)&&(i=this.containerSize()*i/100),i}emit(e,i){e.observers.length&&this.zone.run(()=>e.emit(i))}}return t.\u0275fac=function(e){return new(e||t)(J(re))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),FT=({originalEvent:t})=>{t.stopPropagation(),t.preventDefault()},GT=t=>n=>Qi(n).pipe(Vn(150),qt(t)),md=t=>Object.keys(t).filter(n=>t[n]).join(" "),VT=t=>n=>t.kendoDrag.pipe(qt(t.kendoRelease),Ve(({pageX:e,pageY:i})=>({originalX:n.pageX,originalY:n.pageY,pageX:e,pageY:i}))),yd=(()=>{class t{constructor(e,i,o,s,r){this.draggable=e,this.localization=i,this.splitterService=o,this.element=s,this.renderer=r,this.ariaRole="separator",this.focused=!1,this.orientation="horizontal",this.index=0,this.subscriptions=new Se}get hostOrientation(){return this.orientation==="horizontal"?"vertical":"horizontal"}get tabIndex(){return this.splitterService.isStatic(this.index)?-1:0}get hostClasses(){let e=this.orientation==="horizontal",i=this.splitterService.isDraggable(this.index),o=this.splitterService.isStatic(this.index);return md({"k-focus":this.focused,"k-splitbar":!0,"k-splitbar-horizontal":e,"k-splitbar-vertical":!e,"k-splitbar-draggable-horizontal":e&&i,"k-splitbar-draggable-vertical":!e&&i,"k-splitbar-static-horizontal":e&&o,"k-splitbar-static-vertical":!e&&o,"k-touch-action-none":i})}get order(){return 2*this.index+1}ngOnInit(){let e,i=this.draggable.kendoPress.pipe($e(FT),pe(()=>this.splitterService.isDraggable(this.index)),$e(()=>e=this.splitterService.dragState(this.index)),$e(()=>this.splitterService.toggleContentOverlay(this.index,!0)),xt(GT(this.draggable.kendoRelease)),xt(VT(this.draggable))).subscribe(({pageX:s,pageY:r,originalX:a,originalY:d})=>{let p;this.orientation==="vertical"?p=r-d:this.direction==="rtl"?p=a-s:p=s-a,this.splitterService.setSize(e,p)});this.subscriptions.add(i),this.subscriptions.add(this.draggable.kendoRelease.subscribe(()=>this.splitterService.toggleContentOverlay(this.index,!1)));let o=this.element.nativeElement;this.subscriptions.add(this.renderer.listen(o,"keydown",s=>this.onKeyDown(s))),this.subscriptions.add(this.renderer.listen(o,"focusin",()=>this.focused=!0)),this.subscriptions.add(this.renderer.listen(o,"focusout",()=>this.focused=!1)),this.subscriptions.add(this.renderer.listen(o,"dblclick",()=>this.togglePane()))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}togglePrevious(){this.splitterService.tryToggle(this.index)}toggleNext(){this.splitterService.tryToggle(this.index+1)}get direction(){return this.localization.rtl?"rtl":"ltr"}shouldShowIcon(e){let i=e==="prev"?this.index:this.index+1,o=e==="prev"?this.index+1:this.index,s=this.splitterService.pane(i),r=this.splitterService.pane(o);return s.collapsible&&!r.isHidden}previousArrowClass(){let e=this.splitterService.pane(this.index),i=e.collapsible,o=e.collapsed,s=this.orientation==="horizontal",r=this.direction==="rtl";return md({"caret-alt-left":i&&s&&(!o&&!r||o&&r),"caret-alt-right":i&&s&&(o&&!r||!o&&r),"caret-alt-up":i&&!s&&!o,"caret-alt-down":i&&!s&&o})}previousSVGArrowClass(){let e=this.splitterService.pane(this.index),i=e.collapsible,o=e.collapsed,s=this.orientation==="horizontal",r=this.direction==="rtl";if(i&&s&&(!o&&!r||o&&r))return bn;if(i&&s&&(o&&!r||!o&&r))return Sn;if(i&&!s&&!o)return Kn;if(i&&!s&&o)return Zi}nextArrowClass(){let e=this.splitterService.pane(this.index+1),i=e.collapsible,o=e.collapsed,s=this.orientation==="horizontal",r=this.direction==="rtl";return md({"caret-alt-right":i&&s&&(!o&&!r||o&&r),"caret-alt-left":i&&s&&(o&&!r||!o&&r),"caret-alt-down":i&&!s&&!o,"caret-alt-up":i&&!s&&o})}nextSVGArrowClass(){let e=this.splitterService.pane(this.index+1),i=e.collapsible,o=e.collapsed,s=this.orientation==="horizontal",r=this.direction==="rtl";if(i&&s&&(!o&&!r||o&&r))return Sn;if(i&&s&&(o&&!r||!o&&r))return bn;if(i&&!s&&!o)return Zi;if(i&&!s&&o)return Kn}togglePane(){this.expandLast?this.toggleNext():this.tryToggleNearest()}get expandLast(){let e=this.splitterService.panes;return e.length===2&&e[1].collapsed}onKeyDown(e){let i=e.keyCode,o=e.ctrlKey||e.metaKey;i===T.Enter?(e.preventDefault(),this.togglePane()):NT(i,this.orientation)&&(e.preventDefault(),o?this.splitterService.togglePane(i,this.index):this.splitterService.resizePane(i,this.index))}tryToggleNearest(){let e=this.index,i=this.index+1;this.splitterService.tryToggle(e)||this.splitterService.tryToggle(i)}}return t.\u0275fac=function(e){return new(e||t)(c(Li,1),c(ie),c(wd),c(W),c(X))},t.\u0275cmp=k({type:t,selectors:[["kendo-splitter-bar"]],hostVars:11,hostBindings:function(e,i){e&2&&(M("role",i.ariaRole)("aria-orientation",i.hostOrientation)("tabindex",i.tabIndex),nr(i.hostClasses),ce("-ms-flex-order",i.order)("order",i.order),N("k-focus",i.focused))},inputs:{orientation:"orientation",index:"index"},decls:3,vars:2,consts:[["class","k-collapse-prev",3,"click",4,"ngIf"],[1,"k-resize-handle"],["class","k-collapse-next",3,"click",4,"ngIf"],[1,"k-collapse-prev",3,"click"],["size","xsmall",3,"name","svgIcon"],[1,"k-collapse-next",3,"click"]],template:function(e,i){e&1&&(_(0,Nw,2,2,"div",0),b(1,"div",1),_(2,Pw,2,2,"div",2)),e&2&&(l("ngIf",i.shouldShowIcon("prev")),u(2),l("ngIf",i.shouldShowIcon("next")))},dependencies:[oe,Je],encapsulation:2}),t})(),zT=(()=>{class t{constructor(e,i,o,s,r){this.element=e,this.splitterService=i,this.localization=o,this.renderer=s,this.enclosingPane=r,this.orientation="horizontal",pt(xi),r&&(r.containsSplitter=!0),this.layoutChange=this.splitterService.layoutChange,this.configure=this.configure.bind(this)}set resizeStep(e){this.splitterService.resizeStep=e}get resizeStep(){return this.splitterService.resizeStep}get hostClasses(){return!0}get horizontalHostClasses(){return this.orientation==="horizontal"}get verticalHostClasses(){return this.orientation==="vertical"}get dir(){return this.direction}set splitbars(e){if(!He(e)||!He(this.panes))return;let i=this.panes.toArray(),o=e.toArray(),r=[...i,...o].sort((a,d)=>a.order-d.order).map(a=>a.element.nativeElement);i.forEach((a,d)=>{if(o[d]&&a.separatorLabel){let p=o[d].element.nativeElement;this.renderer.setAttribute(p,"aria-label",a.separatorLabel)}}),r.forEach(a=>this.renderer.appendChild(this.element.nativeElement,a))}ngAfterContentInit(){this.reconfigure()}ngOnChanges(e){e.orientation&&!e.orientation.isFirstChange()&&this.reconfigure()}ngOnDestroy(){this.enclosingPane&&(this.enclosingPane.containsSplitter=!1),this.unsubscribeChanges()}reconfigure(){this.unsubscribeChanges(),this.configure(),this.paneChangesSubscription=this.panes.changes.subscribe(this.configure)}unsubscribeChanges(){this.paneChangesSubscription&&(this.paneChangesSubscription.unsubscribe(),this.paneChangesSubscription=null)}configure(){this.splitterService.configure({panes:this.panes.toArray(),orientation:this.orientation,containerSize:()=>this.orientation==="vertical"?this.element.nativeElement.clientHeight:this.element.nativeElement.clientWidth})}get direction(){return this.localization.rtl?"rtl":"ltr"}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(wd),c(ie),c(X),c(Ed,9))},t.\u0275cmp=k({type:t,selectors:[["kendo-splitter"]],contentQueries:function(e,i,o){if(e&1&&B(o,Ed,4),e&2){let s;D(s=E())&&(i.panes=s)}},viewQuery:function(e,i){if(e&1&&j(yd,5),e&2){let o;D(o=E())&&(i.splitbars=o)}},hostVars:9,hostBindings:function(e,i){e&2&&(M("dir",i.dir),N("k-splitter",i.hostClasses)("k-splitter-flex",i.hostClasses)("k-splitter-horizontal",i.horizontalHostClasses)("k-splitter-vertical",i.verticalHostClasses))},inputs:{orientation:"orientation",splitbarWidth:"splitbarWidth",resizeStep:"resizeStep"},outputs:{layoutChange:"layoutChange"},exportAs:["kendoSplitter"],features:[Y([wd,ie,{provide:ht,useValue:"kendo.spliter"}]),be],ngContentSelectors:Gw,decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoDraggable","",3,"index","orientation","ngStyle",4,"ngIf"],["kendoDraggable","",3,"index","orientation","ngStyle"]],template:function(e,i){e&1&&(Le(Fw),Ne(0),_(1,Uw,2,1,"ng-container",0)),e&2&&(u(),l("ngForOf",i.panes))},dependencies:[qe,oe,Pt,Li,yd],encapsulation:2}),t})(),La=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoTabContent",""]]}),t})(),Na=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoTabTitle",""]]}),t})(),e_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoTabTemplate",""]]}),t})(),Pa=(()=>{class t{constructor(){this.disabled=!1,this._tabDirective=new Ze,this._tabContent=new Ze,this.focused=!1}get tabContent(){return this._tabContent.first}get tabTitle(){return this._tabTitleDirective.first}get tabTemplate(){return this._tabDirective.first}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["kendo-tabstrip-tab"]],contentQueries:function(e,i,o){if(e&1&&(B(o,e_,4),B(o,La,4),B(o,Na,4)),e&2){let s;D(s=E())&&(i._tabDirective=s),D(s=E())&&(i._tabContent=s),D(s=E())&&(i._tabTitleDirective=s)}},inputs:{title:"title",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle",selected:"selected",closable:"closable",closeIcon:"closeIcon",closeIconClass:"closeIconClass",closeSVGIcon:"closeSVGIcon"},exportAs:["kendoTabStripTab"],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Id=class{constructor(n,e){this.index=n,this.tab=e}},Td=class extends Ii{constructor(n,e){super(),this.index=n,this.title=e}},UT=t=>{let n=t.getAttribute("id");return!!(He(n)||n.indexOf("k-tabstrip-tab-")>=0)},BT=(t,n)=>t.closable!==void 0?t.closable:n,jT=t=>t.enabled&&t.scrollButtons!=="hidden",t_=t=>t.enabled&&t.mouseScroll,kd=t=>{let n,e,i=-1,o=-1;return t.forEach((s,r)=>{s.selected?(e=s,o=r):s.focused&&(n=s,i=r)}),i>=0?{tab:n,index:i}:{tab:e,index:o}},xd=(t,n)=>{let e=t.filter((i,o)=>o===n);return e.length>0?e[0]:null},HT=(t,n)=>{let e=t.filter((i,o)=>o===n);return e.length>0?e[0]:null},KT=t=>{t.forEach(n=>{n.focused=!1})},$T=t=>{t.forEach(n=>{n.selected=!1})},Ht=t=>t==="top"||t==="bottom",mf=(t,n,e)=>`${t}-${n}-${e}`,gf=(()=>{class t{constructor(e,i){this.localization=e,this.ngZone=i}onKeyDown(e){if(!UT(e.target))return;let i=e.keyCode;if(this.shouldHandleKey(i))e.preventDefault();else return;pf(i)||wT(i)?this.onNavigate(i):i===T.Delete&&this.onDelete()}onTabSelect(e,i){let o=new Td(i,e.title);if(this.owner.tabSelect.emit(o),!o.isDefaultPrevented()){if(e.selected){this.focusTabHeader(i);return}this.selectTab(e,i)}}selectTab(e,i){$T(this.owner.tabs),this.focusTabHeader(i),e.selected=!0,this.owner.isScrollable&&this.owner.scrollToSelectedTab()}onNavigate(e){let{tab:i,index:o}=kd(this.owner.tabs);re.isInAngularZone()||this.ngZone.run(()=>{if(o<0){this.owner.selectTab(this.firstNavigatableIndex());return}i.focused=!1;let s=this.computeNextIndex(o,e);this.activateTab(s)})}onDelete(){let{tab:e,index:i}=kd(this.owner.tabs);BT(e,this.owner.closable)&&!e.disabled&&this.ngZone.run(()=>{this.owner.tabClose.emit({tab:e,index:i})})}activateTab(e){let i=xd(this.owner.tabs,e);i.disabled?(this.focusTabHeader(e),i.focused=!0):this.onTabSelect(i,e)}focusTabHeader(e){HT(this.owner.tabHeaderContainers,e).nativeElement.focus()}shouldHandleKey(e){return!!(pf(e)||Ht(this.owner.tabPosition)&&Qf(e)||!Ht(this.owner.tabPosition)&&Jf(e)||e===T.Delete)}computeNextIndex(e,i){switch(i){case this.invertKeys(T.ArrowLeft,T.ArrowRight):case this.invertKeys(T.ArrowUp,T.ArrowDown):return this.prevNavigatableIndex(e);case this.invertKeys(T.ArrowRight,T.ArrowLeft):case this.invertKeys(T.ArrowDown,T.ArrowUp):return this.nextNavigatableIndex(e);case T.Home:return this.firstNavigatableIndex();case T.End:return this.lastNavigatableIndex();default:return}}invertKeys(e,i){return this.localization.rtl?i:e}firstNavigatableIndex(){return 0}lastNavigatableIndex(){return this.owner.tabs.length-1}prevNavigatableIndex(e){return e-1<0?this.lastNavigatableIndex():e-1}nextNavigatableIndex(e){return e+1>=this.owner.tabs.length?this.firstNavigatableIndex():e+1}}return t.\u0275fac=function(e){return new(e||t)(J(ie),J(re))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),WT=10,qT=100;var QT="k-hidden",ko={left:"caret-alt-left",right:"caret-alt-right",up:"caret-alt-up",down:"caret-alt-down"},ff="smooth",_f=(()=>{class t{constructor(e){this.ngZone=e,this.position=0,this.scrollButtonActiveStateChange=new Qe,this.isDisabled=i=>this.owner[`${i}ScrollButton`].host.nativeElement.classList.contains("k-disabled")}get tablistElement(){return this.owner.tablist.nativeElement}get tabstripSize(){let e=this.owner.wrapper.nativeElement,i=parseFloat(getComputedStyle(e).width),o=parseFloat(getComputedStyle(e).height);return Ht(this.owner.tabPosition)?i:o}get tablistOverflowSize(){if(!ae())return 0;let e=Ht(this.owner.tabPosition),i=Math.floor(this.tablistElement[e?"scrollWidth":"scrollHeight"]-this.tablistElement.getBoundingClientRect()[e?"width":"height"]);return i<0?0:i}get tabsOverflow(){return this.tablistOverflowSize>0}get scrollButtonsSize(){if(!this.owner.hasScrollButtons)return 0;let e=this.owner.prevScrollButton.hostBoundingClientRect,i=Ht(this.owner.tabPosition)?e.width:e.height,o=this.owner.nextScrollButton.hostBoundingClientRect,s=Ht(this.owner.tabPosition)?o.width:o.height;return i+s}toggleScrollButtonsState(){if(!this.owner.hasScrollButtons)return;let i=!this.isDisabled("prev"),o=!this.isDisabled("next"),s=this.position>0&&this.tablistOverflowSize>0,r=this.position0;s!==i&&this.ngZone.run(()=>this.toggleButtonActiveState("prev",s)),r!==o&&this.ngZone.run(()=>this.toggleButtonActiveState("next",r))}scrollToSelectedTab(){if(!this.tabsOverflow)return;let{index:e}=kd(this.owner.tabs);if(e===-1||(this.position+=this.getScrollOffset(e),Ht(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState(),!this.owner.hasScrollButtons))return;let o=e===0,s=e===this.owner.tabs.length-1;o&&!this.isDisabled("prev")&&this.ngZone.run(()=>this.toggleButtonActiveState("prev",!1)),s&&!this.isDisabled("next")&&this.ngZone.run(()=>this.toggleButtonActiveState("next",!1))}getScrollOffset(e){if(!ae())return 0;let i=Ht(this.owner.tabPosition);this.tablistElement[`scroll${i?"Left":"Top"}`]=this.position;let o=this.tablistElement.children[e].getBoundingClientRect(),s=this.tablistElement.getBoundingClientRect(),r=i?"right":"bottom",a=i?"left":"top",d=o[a],p=o[r],m=s[a],v=s[r],S=p<=v,w=d>=m;if(S&&w)return 0;if(!S)return p-v;if(!w)return d-m}onMouseScroll(e){if(e.preventDefault(),!t_(this.owner.scrollable))return;let i=e.deltaY<0?"prev":"next";this.calculateListPosition(i,this.owner.scrollable.mouseScrollSpeed),Ht(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState()}scrollTabs(e){this.calculateListPosition(e,this.owner.scrollable.buttonScrollSpeed),Ht(this.owner.tabPosition)&&this.tablistElement?this.tablistElement.scrollTo({left:this.position,behavior:ff}):this.tablistElement.scrollTo({top:this.position,behavior:ff}),this.toggleScrollButtonsState()}calculateListPosition(e,i){let o=this.tablistOverflowSize+this.scrollButtonsSize;if(e==="prev"&&this.position>0)this.position=this.position-i<=0?0:this.position-i;else if(e==="next"&&this.positiono){this.position=o;return}this.position+=i}}restoreScrollPosition(){Ht(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState()}toggleButtonActiveState(e,i){this.scrollButtonActiveStateChange.next({buttonType:e,active:i})}}return t.\u0275fac=function(e){return new(e||t)(J(re))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),JT=({enabled:t=!0,scrollButtons:n="auto",mouseScroll:e=!0,buttonScrollSpeed:i=qT,mouseScrollSpeed:o=WT,prevButtonIcon:s,nextButtonIcon:r,prevSVGButtonIcon:a,nextSVGButtonIcon:d})=>({enabled:t,scrollButtons:n,mouseScroll:e,buttonScrollSpeed:i,mouseScrollSpeed:o,prevButtonIcon:s,nextButtonIcon:r,prevSVGButtonIcon:a,nextSVGButtonIcon:d}),vf=t=>JT(t===!1?{enabled:!1}:t),wa=class extends Ii{constructor(n){super(),Object.assign(this,n)}},i_=(()=>{class t{constructor(e,i,o,s){this.host=e,this.renderer=i,this.ngZone=o,this.localization=s,this.prev=!1,this.tabScroll=new C,this.onClick=new C,this.caretAltLeftIcon=bn,this.caretAltRightIcon=Sn,this.caretAltUpIcon=Kn,this.caretAltDownIcon=Zi,this.subs=new Se,this.clickHandler=r=>{if(this.emitScrollEvent(r).isDefaultPrevented())return;let p=this.prev?"prev":"next";this.onClick.emit(p)}}get prevClass(){return this.prev}get nextClass(){return!this.prev}get hostBoundingClientRect(){return this.host.nativeElement.getBoundingClientRect()}get iconClass(){return this.scrollButtonIconClass}get customIconClass(){return this.customScrollButtonIconClass}get svgIcon(){return this.scrollButtonSVGIcon}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(this.host.nativeElement,"click",this.clickHandler))})}ngOnDestroy(){this.subs.unsubscribe()}toggle(e){this.renderer[e?"removeClass":"addClass"](this.host.nativeElement,QT)}get scrollButtonIconClass(){let e=Ht(this.tabPosition)?this.localization.rtl?ko.right:ko.left:ko.up,i=Ht(this.tabPosition)?this.localization.rtl?ko.left:ko.right:ko.down;if(typeof this.scrollable=="object"){let o=typeof this.scrollable.prevButtonIcon>"u"?e:"",s=typeof this.scrollable.nextButtonIcon>"u"?i:"";if(o&&this.prev)return o;if(s&&!this.prev)return s}}get customScrollButtonIconClass(){if(typeof this.scrollable=="object"){let e=this.scrollable.prevButtonIcon,i=this.scrollable.nextButtonIcon;if(e&&this.prev)return`k-icon ${e}`;if(i&&!this.prev)return`k-icon ${i}`}}get scrollButtonSVGIcon(){let e=Ht(this.tabPosition)?this.localization.rtl?this.caretAltRightIcon:this.caretAltLeftIcon:this.caretAltUpIcon,i=Ht(this.tabPosition)?this.localization.rtl?this.caretAltLeftIcon:this.caretAltRightIcon:this.caretAltDownIcon;if(typeof this.scrollable=="object"){let o=this.scrollable.prevSVGButtonIcon!==void 0?this.scrollable.prevSVGButtonIcon:e,s=this.scrollable.nextSVGButtonIcon!==void 0?this.scrollable.nextSVGButtonIcon:i;if(o||s)return this.prev?o:s}}emitScrollEvent(e){let i=new wa({originalEvent:e});return this.tabScroll.emit(i),i}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(X),c(re),c(ie))},t.\u0275cmp=k({type:t,selectors:[["","kendoTabStripScrollableButton",""]],hostVars:4,hostBindings:function(e,i){e&2&&N("k-tabstrip-prev",i.prevClass)("k-tabstrip-next",i.nextClass)},inputs:{prev:"prev",tabPosition:"tabPosition",scrollable:"scrollable"},outputs:{tabScroll:"tabScroll",onClick:"onClick"},attrs:Bw,decls:1,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","customFontClass","svgIcon"]],template:function(e,i){e&1&&b(0,"kendo-icon-wrapper",0),e&2&&l("name",i.iconClass)("customFontClass",i.customIconClass)("svgIcon",i.svgIcon)},dependencies:[Je],encapsulation:2}),t})(),n_=(()=>{class t{constructor(e){this.localization=e,this.tabClose=new C,this.hostClasses=!0}get activeClass(){return this.tab.selected}get disabledClass(){return this.tab.disabled}get focusedClass(){return this.tab.focused}get tabIndex(){return this.tab.selected||this.tab.focused?0:-1}get tabClosable(){return this.tab.closable!==void 0?this.tab.closable:this.tabStripClosable}get closeSVGIconClass(){if(!this.customCloseButtonClasses)return this.tab.closeSVGIcon?this.tab.closeSVGIcon:this.closeSVGIcon?this.closeSVGIcon:es}get closeButtonClasses(){if(!this.customTabstripCloseIcon&&this.tabStripCloseIcon&&!this.tab.closeIconClass)return this.tab.closeIcon?this.tab.closeIcon:this.tabStripCloseIcon}get customCloseButtonClasses(){if(this.customTabstripCloseIcon||this.tab.closeIconClass)return this.tab.closeIconClass?this.tab.closeIconClass:this.customTabstripCloseIcon}get closeButtonTitle(){return this.localization.get("closeTitle")}closeTab(e){let i=new Id(e,this.tab);this.tabClose.emit(i)}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["","kendoTabStripTab",""]],hostVars:13,hostBindings:function(e,i){e&2&&(M("aria-selected",i.activeClass)("aria-disabled",i.disabledClass)("tabindex",i.tabIndex),N("k-item",i.hostClasses)("k-tabstrip-item",i.hostClasses)("k-active",i.activeClass)("k-disabled",i.disabledClass)("k-focus",i.focusedClass))},inputs:{tab:"tab",index:"index",tabStripClosable:"tabStripClosable",tabStripCloseIcon:"tabStripCloseIcon",customTabstripCloseIcon:"customTabstripCloseIcon",closeSVGIcon:"closeSVGIcon"},outputs:{tabClose:"tabClose"},attrs:jw,decls:4,vars:4,consts:[["tabTemplate",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],["kendoButton","","type","button","role","button","fillMode","flat","class","k-remove-tab k-icon-button",3,"icon","iconClass","svgIcon","title","click",4,"ngIf"],["class","k-link",4,"ngIf"],[1,"k-link"],["kendoButton","","type","button","role","button","fillMode","flat",1,"k-remove-tab","k-icon-button",3,"click","icon","iconClass","svgIcon","title"]],template:function(e,i){if(e&1&&_(0,Ww,3,2,"ng-container",1)(1,qw,0,0,"ng-template",2,0,ut)(3,Qw,1,5,"button",3),e&2){let o=me(2);l("ngIf",!i.tab.tabTemplate)("ngIfElse",o),u(),l("ngTemplateOutlet",i.tab.tabTemplate==null?null:i.tab.tabTemplate.templateRef),u(2),l("ngIf",i.tabClosable)}},dependencies:[oe,Fe,vt],encapsulation:2}),t})(),ya=(()=>{class t extends gi{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=oi(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["kendo-tabstrip-messages-base"]],inputs:{closeTitle:"closeTitle",previousTabButton:"previousTabButton",nextTabButton:"nextTabButton"},features:[z]}),t})(),o_=(()=>{class t extends ya{constructor(e){super(),this.service=e}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275dir=A({type:t,selectors:[["","kendoTabStripLocalizedMessages",""]],features:[Y([{provide:ya,useExisting:ue(()=>t)}]),z]}),t})(),Is=(()=>{class t{constructor(e,i,o,s,r,a){this.localization=e,this.renderer=i,this.wrapper=o,this.tabstripService=s,this.scrollService=r,this.ngZone=a,this.animate=!0,this.tabPosition="top",this.keepTabContent=!1,this.closable=!1,this.closeIcon="x",this.showContentArea=!0,this.tabSelect=new C,this.tabClose=new C,this.tabScroll=new C,this.hostClasses=!0,this.tabs=new Ze,this.showLicenseWatermark=!1,this._scrollableSettings=vf(!1),this.subscriptions=new Se,this.subscriptionsArePresent=!1,this.tabStripId=ri();let d=pt(xi);this.showLicenseWatermark=Hn(d),this.tabstripService.owner=this,this.scrollService.owner=this,this.subscriptions.add(this.scrollService.scrollButtonActiveStateChange.subscribe(p=>{if(this.hasScrollButtons){let m=p.active?"remove":"add";this.renderer[`${m}Class`](this[`${p.buttonType}ScrollButton`].host.nativeElement,"k-disabled")}}))}set height(e){this._height=e,this.renderer.setStyle(this.wrapper.nativeElement,"height",e)}get height(){return this._height}set scrollable(e){this._scrollableSettings=vf(e),this.tablist&&(this.toggleScrollButtons(this.scrollService.tabsOverflow),this.attachWheelHandler(this.tablist.nativeElement))}get scrollable(){return this._scrollableSettings}set closeSVGIcon(e){if(fe()&&e&&this.closeIcon&&this.closeIcon!=="x")throw new Error("Setting both closeIcon and svgIcon options at the same time is not supported.");this._closeSVGIcon=e}get closeSVGIcon(){return this._closeSVGIcon}get tabsAtTop(){return this.tabPosition==="top"}get tabsAtRight(){return this.tabPosition==="right"}get tabsAtBottom(){return this.tabPosition==="bottom"}get tabsAtLeft(){return this.tabPosition==="left"}get dir(){return this.localization.rtl?"rtl":"ltr"}get tabStripScrollable(){return this._scrollableSettings.enabled}ngAfterViewInit(){ae()&&(this.ngZone.runOutsideAngular(()=>{this.scrollService.tabsOverflow?this.toggleScrollButtons(!0):this.toggleScrollButtons(!1),setTimeout(()=>{this.scrollToSelectedTab()})}),this.initDomEvents(),this.tabsChangesSub=this.tabs.changes.subscribe(()=>{this.ngZone.onStable.pipe(Ke(1)).subscribe(()=>{this.toggleScrollButtons(this.scrollService.tabsOverflow),this.scrollService.toggleScrollButtonsState()})}))}ngOnChanges(e){if(!ae())return;let i=e.tabPosition;if(i){let o=i.previousValue==="bottom"||i.currentValue==="bottom";this.ngZone.onStable.pipe(Ke(1)).subscribe(()=>{o&&(this.subscriptionsArePresent&&(this.subscriptions.unsubscribe(),this.subscriptions=new Se,this.subscriptionsArePresent=!1,this.activeStateChangeSub=this.scrollService.scrollButtonActiveStateChange.subscribe(s=>{if(this.hasScrollButtons){let r=s.active?"remove":"add";this.renderer[`${r}Class`](this[`${s.buttonType}ScrollButton`].host.nativeElement,"k-disabled")}})),this.initDomEvents()),this.scrollService.restoreScrollPosition()})}}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.tabsChangesSub&&this.tabsChangesSub.unsubscribe(),this.activeStateChangeSub&&this.activeStateChangeSub.unsubscribe()}get tabsAlignmentStyles(){return{start:"flex-start",end:"flex-end",center:"center",justify:"space-between"}[this.tabAlignment]}get tabListWidth(){return this.tabPosition==="top"||this.tabPosition==="bottom"?"100%":null}get tabListHeight(){return this.tabPosition==="left"||this.tabPosition==="right"?"100%":null}get isScrollable(){return this._scrollableSettings.enabled}get hasScrollButtons(){return jT(this._scrollableSettings)}get mouseScrollEnabled(){return t_(this._scrollableSettings)}get itemsWrapperClass(){return Ht(this.tabPosition)?"k-hstack":"k-vstack"}selectTab(e){let i=xd(this.tabs,e);!i||i.disabled||(this.tabstripService.selectTab(i,e),this.scrollToSelectedTab())}getTabId(e){return mf("k-tabstrip-tab",this.tabStripId,e)}getTabPanelId(e){return mf("k-tabstrip-tabpanel",this.tabStripId,e)}onTabClick(e,i){if(ys(e.target))return;let o=e.target;if(Da(o,"k-remove-tab")||Da(o.parentElement,"k-remove-tab"))return;let r=xd(this.tabs,i);this.tabstripService.onTabSelect(r,i),this.scrollToSelectedTab()}onResize(){this.scrollService.tabsOverflow?this.toggleScrollButtons(!0):this.toggleScrollButtons(!1),this.ngZone.runOutsideAngular(()=>{this.scrollService.toggleScrollButtonsState()})}scrollToSelectedTab(){this._scrollableSettings.enabled&&this.scrollService.scrollToSelectedTab()}onScrollButtonClick(e){this.scrollService.scrollTabs(e)}initDomEvents(){if(!this.wrapper||this.subscriptionsArePresent)return;let e=this.tablist.nativeElement;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(e,"keydown",i=>{this.tabstripService.onKeyDown(i)}))}),this.subscriptions.add(this.renderer.listen(e,"focusout",()=>{KT(this.tabs)})),this.isScrollable&&this.mouseScrollEnabled&&this.attachWheelHandler(e),this.subscriptionsArePresent=!0}toggleScrollButtons(e){this.ngZone.onStable.pipe(Ke(1)).subscribe(()=>{let i=this._scrollableSettings.scrollButtons,o=this.prevScrollButton&&this.nextScrollButton,s=o&&e,r=o&&!e&&i!=="visible",a=i==="visible";r?(this.prevScrollButton.toggle(!1),this.nextScrollButton.toggle(!1)):(s||a)&&(this.prevScrollButton.toggle(!0),this.nextScrollButton.toggle(!0)),o&&a&&this.ngZone.runOutsideAngular(()=>{this.scrollService.toggleScrollButtonsState()})})}attachWheelHandler(e){this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(e,"wheel",i=>{let o=new wa({originalEvent:i});this.tabScroll.emit(o),!(o.isDefaultPrevented()||!this.scrollService.tabsOverflow)&&this.scrollService.onMouseScroll(i)}))})}}return t.\u0275fac=function(e){return new(e||t)(c(ie),c(X),c(W),c(gf),c(_f),c(re))},t.\u0275cmp=k({type:t,selectors:[["kendo-tabstrip"]],contentQueries:function(e,i,o){if(e&1&&B(o,Pa,4),e&2){let s;D(s=E())&&(i.tabs=s)}},viewQuery:function(e,i){if(e&1&&(j(Jw,5),j(Yw,5),j(Zw,5),j(Xw,5,W)),e&2){let o;D(o=E())&&(i.tablist=o.first),D(o=E())&&(i.prevScrollButton=o.first),D(o=E())&&(i.nextScrollButton=o.first),D(o=E())&&(i.tabHeaderContainers=o)}},hostVars:15,hostBindings:function(e,i){e&2&&(M("dir",i.dir),N("k-tabstrip",i.hostClasses)("k-pos-relative",i.hostClasses)("k-tabstrip-top",i.tabsAtTop)("k-tabstrip-right",i.tabsAtRight)("k-tabstrip-bottom",i.tabsAtBottom)("k-tabstrip-left",i.tabsAtLeft)("k-tabstrip-scrollable",i.tabStripScrollable))},inputs:{height:"height",animate:"animate",tabAlignment:"tabAlignment",tabPosition:"tabPosition",keepTabContent:"keepTabContent",closable:"closable",scrollable:"scrollable",closeIcon:"closeIcon",closeIconClass:"closeIconClass",closeSVGIcon:"closeSVGIcon",showContentArea:"showContentArea"},outputs:{tabSelect:"tabSelect",tabClose:"tabClose",tabScroll:"tabScroll"},exportAs:["kendoTabStrip"],features:[Y([gf,_f,ie,{provide:ht,useValue:"kendo.tabstrip"}]),be],decls:9,vars:4,consts:()=>{let n;n=$localize`:kendo.tabstrip.closeTitle|The title for the **Close** button in the TabStrip tab.:Close`;let e;e=$localize`:kendo.tabstrip.previousTabButton|The title for the **Previous Tab** button when the Tabstrip is scrollable.:Previous Tab`;let i;return i=$localize`:kendo.tabstrip.nextTabButton|The title for the **Next Tab** button when the Tabstrip is scrollable.:Next Tab`,[["heading",""],["content",""],["tablist",""],["prevScrollButton",""],["tabHeaderContainer",""],["nextScrollButton",""],["kendoTabStripLocalizedMessages","","closeTitle",n,"previousTabButton",e,"nextTabButton",i],[4,"ngIf"],[3,"resize",4,"ngIf"],["kendoWatermarkOverlay","",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"k-tabstrip-items-wrapper",3,"ngClass"],["role","button","kendoTabStripScrollableButton","","class","k-icon-button k-button k-button-md k-rounded-md k-button-flat k-button-flat-base",3,"scrollable","tabPosition","prev","title","tabScroll","onClick",4,"ngIf"],["role","tablist",1,"k-reset","k-tabstrip-items"],[4,"ngFor","ngForOf"],["role","button","kendoTabStripScrollableButton","",1,"k-icon-button","k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base",3,"tabScroll","onClick","scrollable","tabPosition","prev","title"],["kendoTabStripTab","","role","tab",3,"tabClose","click","ngClass","ngStyle","tab","index","tabStripClosable","tabStripCloseIcon","customTabstripCloseIcon","closeSVGIcon","id"],["ngFor","",3,"ngForOf"],["role","tabpanel",3,"ngClass","tabIndex","id",4,"ngIf"],["role","tabpanel",3,"ngClass","tabIndex","id"],[3,"ngTemplateOutlet"],[3,"resize"],["kendoWatermarkOverlay",""]]},template:function(e,i){e&1&&(Xe(0,6),_(1,ny,3,2,"ng-container",7)(2,ay,3,2,"ng-container",7)(3,uy,6,11,"ng-template",null,0,ut)(5,gy,1,1,"ng-template",null,1,ut)(7,fy,1,0,"kendo-resize-sensor",8)(8,_y,1,0,"div",9)),e&2&&(u(),l("ngIf",!i.tabsAtBottom),u(),l("ngIf",i.tabsAtBottom),u(5),l("ngIf",i.isScrollable),u(),l("ngIf",i.showLicenseWatermark))},dependencies:[st,qe,oe,Fe,Pt,yi,Bn,n_,o_,i_],encapsulation:2,data:{animation:[Cn("state",[wi("active",Ce({opacity:1})),Ai("* => active",[Ce({opacity:0}),lt("400ms ease-in")])])]}}),t})(),YT=(()=>{class t extends ya{constructor(e){super(),this.service=e}get override(){return!0}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-tabstrip-messages"]],features:[Y([{provide:ya,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),s_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoDrawerTemplate",""]]}),t})(),r_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoDrawerItemTemplate",""]]}),t})(),a_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoDrawerHeaderTemplate",""]]}),t})(),l_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoDrawerFooterTemplate",""]]}),t})(),ZT=t=>!1,Ia=(()=>{class t{constructor(){this.selectedIndices=[],this.focusIndex=0,this.originalItems=[],this.idxCounter=0,this.isItemExpanded=ZT}init(){this.resetViewData(),this.originalItems=this.owner.items||[];let e=this.originalItems.filter(i=>!He(i.parentId));this.populateViewData(e)}get view(){return Array.from(this.viewData)}changeFocusedItem(e,i,o){let s=e.get(this.focusIndex),r;i==="arrowUp"?this.focusIndex===0?(r=e.get(e.length-1),this.focusIndex=e.length-1):(r=e.get(this.focusIndex-1),this.focusIndex=this.focusIndex-1):i==="arrowDown"&&(this.focusIndex===e.length-1?(r=e.get(0),this.focusIndex=0):(r=e.get(this.focusIndex+1),this.focusIndex=this.focusIndex+1)),o.setAttribute(s.nativeElement,"tabindex","-1"),o.setAttribute(r.nativeElement,"tabindex","0"),r.nativeElement.focus()}populateViewData(e,i=0){e.forEach(o=>{this.setSelection(o);let s=this.loadChildren(o),r=this.isItemExpanded(o);this.viewData.add({item:o,index:this.idxCounter++,level:i,hasChildren:s.length>0,isExpanded:r}),s.length>0&&r&&this.populateViewData(s,i+1)})}resetViewData(){this.idxCounter=0,this.viewData=new Set}loadChildren(e){return this.originalItems.filter(i=>He(i.parentId)&&i.parentId===e.id)}onSelect(e){this.selectedIndices=[e];let i=this.owner;i.autoCollapse&&!i.minimized&&i.toggle(!1)}setSelection(e){this.selectedIndices.length===0&&e.selected&&this.selectedIndices.push(this.idxCounter)}resetSelection(){this.selectedIndices=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})();function XT(t,n,e){return[Ce({overflow:"hidden",flexBasis:`${e}px`}),lt(`${t}ms ease-in`,Ce({flexBasis:`${n}px`}))]}function ek(t,n,e){return[Ce({overflow:"hidden",flexBasis:`${n}px`}),lt(`${t}ms ease-in`,Ce({flexBasis:`${e}px`}))]}function tk(t,n,e){return[Ce({width:`${e}px`}),lt(`${t}ms ease-in`,Ce({overflow:"hidden",width:`${n}px`}))]}function ik(t,n){return[Ce({overflow:"hidden",flexBasis:"0px"}),lt(`${t}ms ease-in`,Ce({flexBasis:`${n}px`}))]}function nk(t,n){return[Ce({flexBasis:`${n}px`}),lt(`${t}ms ease-in`,Ce({overflow:"hidden",flexBasis:"0px"}))]}function ok(t){return[Ce({transform:"translateX(100%)"}),lt(`${t}ms ease-in`,Ce({overflow:"hidden",transform:"translateX(0)"}))]}function sk(t,n){return[Ce({transform:`translateX(${n!=="end"?"-100%":"100%"})`}),lt(`${t}ms ease-in`,Ce({overflow:"hidden",transform:"translateX(0)"}))]}function rk(t,n,e){return[Ce({width:`${n}px`}),lt(`${t}ms ease-in`,Ce({overflow:"hidden",width:`${e}px`}))]}function ak(t,n){let e=n!=="end"?"-100%":"100%";return[Ce({transform:"translateX(0)"}),lt(`${t}ms ease-in`,Ce({overflow:"hidden",transform:`translateX(${e})`}))]}function lk(t){return[Ce({transform:"translateX(0)"}),lt(`${t}ms ease-in`,Ce({overflow:"hidden",transform:"translateX(100%)"}))]}function ck(t){let n=t.animation.duration,e=t.width,i=t.miniWidth,o=t.mode,s=t.mini,r=t.rtl,a=t.position;if(s&&o==="push")return XT(n,e,i);if(!s&&o==="push")return ik(n,e);if(!s&&o==="overlay")return r?ok(n):sk(n,a);if(s&&o==="overlay")return tk(n,e,i)}function dk(t){let n=t.animation.duration,e=t.width,i=t.miniWidth,o=t.mode,s=t.mini,r=t.rtl,a=t.position;if(s&&o==="push")return ek(n,e,i);if(!s&&o==="push")return nk(n,e);if(!s&&o==="overlay")return r?lk(n):ak(n,a);if(s&&o==="overlay")return rk(n,e,i)}var Cf="data-kendo-drawer-index",uk=".k-drawer-link",hk=":focus:not(.k-disabled) .k-drawer-link",c_=(t,n)=>t.querySelector(n),Rd=class extends Ii{constructor(n){super(),Object.assign(this,n)}},Od=(()=>{class t{constructor(e,i,o){this.drawerService=e,this.element=i,this.renderer=o,this.arrowUpIcon=Fl,this.arrowDownIcon=Gl}get disabledClass(){return this.item.disabled}get selectedClass(){return this.drawerService.selectedIndices.indexOf(this.index)>=0}get label(){return this.item.text?this.item.text:null}ngAfterViewInit(){let e=this.element.nativeElement,i=c_(e,uk);i&&this.renderer.removeAttribute(i,"tabindex")}get iconClasses(){if(this.item.icon)return`${this.item.icon.replace("k-i-","")}`}get innerCssClasses(){if(this.item.iconClass&&this.item.icon)return`${this.item.iconClass}`}get customIconClasses(){if(!this.item.icon&&this.item.iconClass)return this.item.iconClass}get item(){return this.viewItem.item}}return t.\u0275fac=function(e){return new(e||t)(c(Ia),c(W),c(X))},t.\u0275cmp=k({type:t,selectors:[["","kendoDrawerItem",""]],hostVars:7,hostBindings:function(e,i){e&2&&(M("aria-disabled",i.disabledClass)("aria-current",i.selectedClass)("aria-label",i.label),N("k-disabled",i.disabledClass)("k-selected",i.selectedClass))},inputs:{viewItem:"viewItem",index:"index",itemTemplate:"itemTemplate",mini:"mini",expanded:"expanded",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle"},attrs:vy,decls:3,vars:2,consts:[["defaultTemplate",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"name","customFontClass","svgIcon","innerCssClass",4,"ngIf"],[1,"k-item-text"],["class","k-spacer",4,"ngIf"],["innerCssClass","k-drawer-toggle",3,"name","svgIcon",4,"ngIf"],[3,"name","customFontClass","svgIcon","innerCssClass"],[1,"k-spacer"],["innerCssClass","k-drawer-toggle",3,"name","svgIcon"]],template:function(e,i){if(e&1&&_(0,by,1,7,null,1)(1,ky,2,2,"ng-template",null,0,ut),e&2){let o=me(2);l("ngIf",i.itemTemplate)("ngIfElse",o)}},dependencies:[oe,Fe,Je],encapsulation:2}),t})(),d_=(()=>{class t{constructor(e,i,o,s){this.drawerService=e,this.renderer=i,this.ngZone=o,this.element=s,this.view=[],this.select=new C,this.subscriptions=new Se}ngOnInit(){this.initDomEvents()}ngOnDestroy(){this.subscriptions.unsubscribe()}identifyItem(e,i){return i.item.id??i.index}initDomEvents(){this.element&&this.ngZone.runOutsideAngular(()=>{let e=this.element.nativeElement;this.subscriptions.add(this.renderer.listen(e,"click",this.clickHandler.bind(this))),this.subscriptions.add(this.renderer.listen(e,"keydown",i=>{let o=i.keyCode===T.Enter||i.keyCode===T.Space,s=i.keyCode===T.ArrowUp||i.keyCode===T.ArrowDown;if(o)this.onEnterOrSpaceKeyDown(i);else if(s&&i.target.classList.contains("k-drawer-item")){i.preventDefault();let r=i.keyCode===T.ArrowUp?"arrowUp":"arrowDown";this.drawerService.changeFocusedItem(this.items,r,this.renderer)}}))})}clickHandler(e){let i=this.getDrawerItemIndex(e.target),o=this.view[i],r=this.view.filter(d=>!d.item.separator).findIndex(d=>d.index===i);if(!o)return;if(o.item.disabled){e.preventDefault();return}let a={index:o.index,item:o.item,originalEvent:e};this.ngZone.run(()=>{let d=new Rd(a);this.select.emit(d),d.isDefaultPrevented()||(this.drawerService.focusIndex=r,this.drawerService.onSelect(i),this.drawerService.init(),this.view=this.drawerService.view)})}onEnterOrSpaceKeyDown(e){this.clickHandler(e);let i=c_(this.element.nativeElement,hk);return i&&i.click(),!1}getDrawerItemIndex(e){let i=Zf(e,Cf,this.element.nativeElement);if(i)return Yf(i,Cf)}}return t.\u0275fac=function(e){return new(e||t)(c(Ia),c(X),c(re),c(W))},t.\u0275cmp=k({type:t,selectors:[["","kendoDrawerList",""]],viewQuery:function(e,i){if(e&1&&j(Od,5,W),e&2){let o;D(o=E())&&(i.items=o)}},inputs:{itemTemplate:"itemTemplate",mini:"mini",expanded:"expanded",view:"view"},outputs:{select:"select"},attrs:xy,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["kendoDrawerItem","","role","menuitem",3,"class","viewItem","index","mini","expanded","itemTemplate","ngClass","ngStyle","tabindex",4,"ngIf"],["role","separator","class","k-drawer-item k-drawer-separator",3,"ngClass","ngStyle",4,"ngIf"],["kendoDrawerItem","","role","menuitem",3,"viewItem","index","mini","expanded","itemTemplate","ngClass","ngStyle","tabindex"],["role","separator",1,"k-drawer-item","k-drawer-separator",3,"ngClass","ngStyle"]],template:function(e,i){e&1&&_(0,My,3,2,"ng-container",0),e&2&&l("ngForOf",i.view)("ngForTrackBy",i.identifyItem)},dependencies:[st,qe,oe,Pt,Od],encapsulation:2}),t})(),Sf={type:"slide",duration:200},u_=(()=>{class t{constructor(e,i,o,s){this.element=e,this.builder=i,this.localizationService=o,this.drawerService=s,this.hostClasses=!0,this.mode="overlay",this.position="start",this.mini=!1,this.expanded=!1,this.width=240,this.miniWidth=50,this.autoCollapse=!0,this.items=[],this.animation=Sf,this.expand=new C,this.collapse=new C,this.select=new C,this.expandedChange=new C,this.showLicenseWatermark=!1,this.animationEnd=new C,this.rtl=!1;let r=pt(xi);this.showLicenseWatermark=Hn(r),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:a})=>{this.rtl=a,this.direction=this.rtl?"rtl":"ltr"}),this.drawerService.owner=this}get startPositionClass(){return this.position==="start"}get endPositionClass(){return this.position==="end"}get overlayTransofrmStyles(){if(this.mode!=="push")return this.expanded||this.minimized?"translateX(0px)":"translateX(-100%)"}get flexStyles(){if(this.mode!=="overlay")return!this.expanded&&!this.minimized?0:this.drawerWidth}set isItemExpanded(e){if(fe&&He(e)&&typeof e!="function")throw new Error(`isItemExpanded must be a function, but received ${JSON.stringify(e)}.`);this.drawerService.isItemExpanded=e}get isItemExpanded(){return this.drawerService.isItemExpanded}ngOnChanges(e){e&&e.items&&(this.drawerService.resetSelection(),this.drawerService.init(),this.viewItems=this.drawerService.view)}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}get minimized(){return this.mini&&!this.expanded}get drawerWidth(){return this.minimized?this.miniWidth:this.width}toggle(e){let i=this.expanded,o=He(e)?e:!i;o!==i&&(o===!0?this.setExpanded(!0):o===!1&&!this.animation&&this.setExpanded(!1),this.animation?(this.animationEnd.pipe(Ke(1)).subscribe(()=>{this.onAnimationEnd(o)}),this.animate(o)):this[o?"expand":"collapse"].emit())}onSelect(e){this.select.emit(Object.assign(e,{sender:this}))}onAnimationEnd(e){e?this.expand.emit():(this.setExpanded(!1),this.collapse.emit())}setExpanded(e){this.expanded=e,this.expandedChange.emit(e)}animate(e){let i={mode:this.mode,mini:this.mini,miniWidth:this.miniWidth,width:this.width,rtl:this.rtl,position:this.position,animation:typeof this.animation!="boolean"?this.animation:Sf},o=e?ck(i):dk(i);this.createPlayer(o,this.element.nativeElement).play()}createPlayer(e,i){let s=this.builder.build(e).create(i);return s.onDone(()=>{s&&(this.animationEnd.emit(),s.destroy(),s=null)}),s}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(xl),c(ie),c(Ia))},t.\u0275cmp=k({type:t,selectors:[["kendo-drawer"]],contentQueries:function(e,i,o){if(e&1&&(B(o,s_,5),B(o,l_,5),B(o,a_,5),B(o,r_,5)),e&2){let s;D(s=E())&&(i.drawerTemplate=s.first),D(s=E())&&(i.footerTemplate=s.first),D(s=E())&&(i.headerTemplate=s.first),D(s=E())&&(i.itemTemplate=s.first)}},hostVars:11,hostBindings:function(e,i){e&2&&(M("dir",i.direction),ce("transform",i.overlayTransofrmStyles)("flex-basis",i.flexStyles,"px"),N("k-drawer",i.hostClasses)("k-drawer-start",i.startPositionClass)("k-drawer-end",i.endPositionClass))},inputs:{mode:"mode",position:"position",mini:"mini",expanded:"expanded",width:"width",miniWidth:"miniWidth",autoCollapse:"autoCollapse",items:"items",isItemExpanded:"isItemExpanded",animation:"animation"},outputs:{expand:"expand",collapse:"collapse",select:"select",expandedChange:"expandedChange"},exportAs:["kendoDrawer"],features:[Y([ie,Ia,{provide:ht,useValue:"kendo.drawer"}]),be],decls:2,vars:2,consts:[["class","k-drawer-wrapper",3,"width",4,"ngIf"],["kendoWatermarkOverlay","",4,"ngIf"],[1,"k-drawer-wrapper"],[4,"ngIf"],["kendoDrawerList","","role","menubar","orientation","vertical",1,"k-drawer-items",3,"select","mini","expanded","view","itemTemplate"],[3,"ngTemplateOutlet"],["kendoWatermarkOverlay",""]],template:function(e,i){e&1&&_(0,zy,3,4,"div",0)(1,Uy,1,0,"div",1),e&2&&(l("ngIf",i.expanded||i.mini),u(),l("ngIf",i.showLicenseWatermark))},dependencies:[oe,Fe,Bn,d_],encapsulation:2}),t})(),pk=(()=>{class t{constructor(e){this.localizationService=e,this.rtl=!1,this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:i})=>{this.rtl=i,this.direction=this.rtl?"rtl":"ltr"})}get hostClass(){return!0}get overlayClass(){return this.drawer.mode==="overlay"}get miniClass(){return this.drawer.mini&&!this.drawer.expanded}get pushClass(){return this.drawer.mode==="push"}get isExpandedClass(){return this.drawer.expanded}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}get overlay(){return He(this.drawer)&&this.drawer.expanded&&this.drawer.mode==="overlay"}closeDrawer(){this.overlay&&this.drawer.autoCollapse&&this.drawer.toggle(!1)}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-drawer-container"]],contentQueries:function(e,i,o){if(e&1&&B(o,u_,5),e&2){let s;D(s=E())&&(i.drawer=s.first)}},hostVars:11,hostBindings:function(e,i){e&2&&(M("dir",i.direction),N("k-drawer-container",i.hostClass)("k-drawer-overlay",i.overlayClass)("k-drawer-mini",i.miniClass)("k-drawer-push",i.pushClass)("k-drawer-expanded",i.isExpandedClass))},features:[Y([ie,{provide:ht,useValue:"kendo.drawer.container"}])],ngContentSelectors:Mt,decls:2,vars:1,consts:[["class","k-overlay",3,"click",4,"ngIf"],[1,"k-overlay",3,"click"]],template:function(e,i){e&1&&(Le(),_(0,By,1,0,"div",0),Ne(1)),e&2&&l("ngIf",i.overlay)},dependencies:[oe],encapsulation:2}),t})(),mk=(()=>{class t{constructor(){this.hostClasses=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["kendo-drawer-content"]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-drawer-content",i.hostClasses)},ngContentSelectors:Mt,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})();var h_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoStepperStepTemplate",""]]}),t})(),p_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoStepperLabelTemplate",""]]}),t})(),m_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoStepperIndicatorTemplate",""]]}),t})(),gk=0,Ui={};Ui[T.ArrowLeft]="left";Ui[T.ArrowRight]="right";Ui[T.ArrowUp]="up";Ui[T.ArrowDown]="down";Ui[T.Home]="home";Ui[T.End]="end";Ui[T.Enter]="enter";Ui[T.Space]="enter";var jd=Object.assign({},Ui);jd[T.ArrowLeft]="right";jd[T.ArrowRight]="left";var fk=class extends Ii{constructor(n){super(),Object.assign(this,n)}},Ta=(()=>{class t{constructor(e,i,o){this.localization=e,this.ngZone=i,this.changeDetector=o,this.currentStep=gk,this.triggerValidation=new C,this.focusedStepChange=new C}get handlers(){return this.localization.rtl?jd:Ui}emit(e,i){let o=this.owner;return bt(o[e])&&o[e].emit(i),i.isDefaultPrevented()}onActivate(e,i){let o=new fk({index:e,step:this.owner.steps[e],originalEvent:i,sender:this.owner});this.ngZone.run(()=>{this.emit("activate",o)||(this.currentStep=e,this.owner.currentStepChange.emit(e),this.changeDetector.detectChanges())})}validateSteps(){this.triggerValidation.emit()}keydown(e){let i=this.focusedStep||this.currentStep,o=this.handlers[e.keyCode];He(i)&&o&&(e.preventDefault(),this[o](e))}left(){this.isHorizontal&&this.focusPrevStep()}right(){this.isHorizontal&&this.focusNextStep()}up(){this.isHorizontal||this.focusPrevStep()}down(){this.isHorizontal||this.focusNextStep()}home(){this.focusedStep=0,this.focusedStepChange.emit()}end(){this.focusedStep=this.owner.steps.length-1,this.focusedStepChange.emit()}enter(e){this.focusedStep!==this.currentStep&&(this.isStepDisabled(this.focusedStep)||this.owner.linear&&this.isPrevOrNextStep(this.focusedStep)===!1||this.onActivate(this.focusedStep,e))}focus(e){this.focusedStep=e}focusNextStep(){this.focusedStep0&&(this.focusedStep-=1,this.focusedStepChange.emit())}isStepDisabled(e){return this.owner.steps[e].disabled}isPrevOrNextStep(e){return e===this.currentStep+1||e===this.currentStep-1}get isHorizontal(){return this.owner.orientation==="horizontal"}}return t.\u0275fac=function(e){return new(e||t)(J(ie),J(re),J(ve))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),bf="data-kendo-stepper-index",g_=(()=>{class t{constructor(e,i,o){this.service=e,this.localization=i,this.ngZone=o,this.isStepValid=void 0,this.shouldCheckValidity=void 0,this.checkCircleIcon=Vp,this.exclamationCircleIcon=Kp,pt(xi),this.subs=this.service.focusedStepChange.subscribe(()=>{this.onFocusedStepChange()}),this.subs.add(this.service.triggerValidation.subscribe(()=>{this.handleValidityChecks()}))}get errorStepClass(){return He(this.isStepValid)?!this.isStepValid:!1}get successStepClass(){return He(this.isStepValid)?this.isStepValid:!1}ngOnInit(){this.handleValidityChecks()}ngOnChanges(e){e.current&&!e.current.firstChange&&this.handleValidityChecks()}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}onFocusedStepChange(){this.ngZone.runOutsideAngular(()=>{this.index===this.service.focusedStep&&this.stepLink.nativeElement.focus()})}onFocus(){this.service.focus(this.index)}get tabIndexAttr(){let e=this.service.focusedStep||this.service.currentStep;return this.index===e?0:-1}get indicatorIconClass(){if(this.step.icon&&!this.step.iconClass)return`${this.step.icon}`;if(!this.step.icon&&!this.step.iconClass&&this.shouldCheckValidity)return this.validationIconClasses}get customIndicatorIconClass(){if(this.step.iconClass)return`${this.step.iconClass}`;if(!this.step.icon&&!this.step.iconClass&&this.shouldCheckValidity)return this.customValidationIconClasses}get SVGIndicatorIcon(){if(this.step.svgIcon)return this.step.svgIcon;if(!this.step.svgIcon&&this.shouldCheckValidity)return this.validationSVGIcon}get validationIconClasses(){return this.isStepValid?this.successIcon?"":"check-circle":this.errorIcon?"":"exclamation-circle"}get customValidationIconClasses(){return this.isStepValid?this.successIcon?this.successIcon:"":this.errorIcon?this.errorIcon:""}get validationSVGIcon(){return this.isStepValid?this.successSVGIcon?this.successSVGIcon:this.checkCircleIcon:this.errorSVGIcon?this.errorSVGIcon:this.exclamationCircleIcon}get showIndicatorIcon(){return!!(this.shouldCheckValidity||this.step.icon||this.step.iconClass||this.step.svgIcon)}get showLabelIcon(){return!!(this.shouldCheckValidity&&(this.type==="label"||this.step.icon||this.step.iconClass))}get showLabelText(){return this.type==="label"||this.type==="full"}get indicatorText(){let e=this.step.text;return e||this.index+1}updateStepValidity(){if(typeof this.step.isValid=="boolean")return this.step.isValid;if(typeof this.step.isValid=="function")return this.step.isValid(this.index)}get showIndicator(){return this.type==="indicator"||this.type==="full"}get showLabel(){return this.type==="label"||this.type==="full"?!0:this.step.optional}get optionalText(){return this.localization.get("optional")}get transitionDuration(){return this.service.owner.animationDuration}_shouldCheckValidity(){if(He(this.step.validate)){if(typeof this.step.validate=="boolean")return this.step.validate;if(typeof this.step.validate=="function")return this.step.validate(this.index)}return He(this.step.isValid)&&this.index{class t{constructor(e,i,o,s){this.renderer=e,this.ngZone=i,this.service=o,this.element=s,this.listKeydown=new C,this.listClick=new C}ngOnInit(){this.initDomEvents()}ngOnDestroy(){this.domSubs&&this.domSubs()}get maxStepWidth(){return this.maxStepDimension("width")}get maxStepHeight(){return this.maxStepDimension("height")}get focusedStep(){return this.service.focusedStep}maxStepDimension(e){return e==="width"&&this.orientation==="vertical"||e==="height"&&this.orientation==="horizontal"?null:100/this.steps.length}initDomEvents(){this.element&&this.ngZone.runOutsideAngular(()=>{let e=this.element.nativeElement,i=this.renderer.listen(e,"click",this.clickHandler.bind(this)),o=this.renderer.listen(e,"keydown",s=>{Da(s.target,"k-step-link")&&this.listKeydown.emit(s)});this.domSubs=()=>{i(),o()}})}clickHandler(e){e.preventDefault();let i=this.getStepIndex(e.target),o=this.steps[i];if(!o||o.disabled)return;let s={stepIdx:i,currentStep:this.currentStep,linear:this.linear,originalEvent:e};this.listClick.emit(s)}getStepIndex(e){let i=Zf(e,bf,this.element.nativeElement);if(i)return Yf(i,bf)}}return t.\u0275fac=function(e){return new(e||t)(c(X),c(re),c(Ta),c(W))},t.\u0275cmp=k({type:t,selectors:[["","kendoStepperList",""]],inputs:{linear:"linear",stepType:"stepType",orientation:"orientation",currentStep:"currentStep",steps:"steps",successIcon:"successIcon",successSVGIcon:"successSVGIcon",errorIcon:"errorIcon",errorSVGIcon:"errorSVGIcon",svgIcon:"svgIcon",indicatorTemplate:"indicatorTemplate",labelTemplate:"labelTemplate",stepTemplate:"stepTemplate"},outputs:{listKeydown:"listKeydown",listClick:"listClick"},attrs:aI,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoStepperStep","",1,"k-step",3,"type","step","index","current","successIcon","successSVGIcon","errorIcon","errorSVGIcon","svgIcon","indicatorTemplate","labelTemplate","stepTemplate","ngClass","ngStyle"]],template:function(e,i){e&1&&_(0,lI,2,33,"ng-container",0),e&2&&l("ngForOf",i.steps)},dependencies:[st,qe,Pt,g_],encapsulation:2}),t})(),ka=(()=>{class t extends gi{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=oi(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["kendo-stepper-messages-base"]],inputs:{optional:"optional"},features:[z]}),t})(),__=(()=>{class t extends ka{constructor(e){super(),this.service=e}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275dir=A({type:t,selectors:[["","kendoStepperLocalizedMessages",""]],features:[Y([{provide:ka,useExisting:ue(()=>t)}]),z]}),t})(),_k=400,vk=(()=>{class t{constructor(e,i,o,s){this.renderer=e,this.elem=i,this.localization=o,this.stepperService=s,this.hostClasses=!0,this.ariaRole="navigation",this.displayStyle="grid",this.stepType="indicator",this.linear=!0,this.orientation="horizontal",this.animation=!0,this.activate=new C,this.currentStepChange=new C,this._steps=[],this.dynamicRTLSubscription=this.localization.changes.subscribe(({rtl:r})=>{this.direction=r?"rtl":"ltr"}),this.stepperService.owner=this}get linearClass(){return this.linear}set currentStep(e){this.stepperService.currentStep=e}get currentStep(){return this.stepperService.currentStep}set steps(e){He(e)&&e.length>0&&(this._steps=e)}get steps(){return this._steps}set svgIcon(e){this._svgIcon=e}get svgIcon(){return this._svgIcon}ngOnInit(){this.applyHostStyling()}ngOnChanges(e){e.steps&&!e.steps.firstChange&&this.applyHostStyling(),e.orientation&&(this.resetHostStyling(),this.applyHostStyling())}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}validateSteps(){this.stepperService.validateSteps()}applyHostStyling(){let e=this.orientation==="horizontal"?"grid-template-columns":"grid-template-rows",i=`repeat(${this.steps.length*2}, 1fr)`;this.renderer.setStyle(this.elem.nativeElement,e,i)}resetHostStyling(){this.renderer.removeStyle(this.elem.nativeElement,"grid-template-columns"),this.renderer.removeStyle(this.elem.nativeElement,"grid-template-rows")}get progressAnimation(){return{duration:this.animationDuration}}get animationDuration(){return typeof this.animation=="number"?this.animation:typeof this.animation=="boolean"&&this.animation?_k:0}get stepsListStyling(){return this.orientation==="horizontal"?{"grid-column-start":1,"grid-column-end":-1}:{"grid-row-start":1,"grid-row-end":-1}}get progressBarStyling(){return this.orientation==="horizontal"?{"grid-column-start":2,"grid-column-end":this.steps.length*2}:{"grid-row-start":2,"grid-row-end":this.steps.length*2}}onListKeydown(e){this.stepperService.keydown(e)}onListClick(e){if(e.stepIdx===e.currentStep){this.stepperService.focus(e.stepIdx);return}e.linear&&this.stepperService.isPrevOrNextStep(e.stepIdx)===!1||this.stepperService.onActivate(e.stepIdx,e.originalEvent)}get isHorizontal(){return this.orientation==="horizontal"}}return t.\u0275fac=function(e){return new(e||t)(c(X),c(W),c(ie),c(Ta))},t.\u0275cmp=k({type:t,selectors:[["kendo-stepper"]],contentQueries:function(e,i,o){if(e&1&&(B(o,h_,5),B(o,p_,5),B(o,m_,5)),e&2){let s;D(s=E())&&(i.stepTemplate=s.first),D(s=E())&&(i.labelTemplate=s.first),D(s=E())&&(i.indicatorTemplate=s.first)}},hostVars:8,hostBindings:function(e,i){e&2&&(M("role",i.ariaRole)("dir",i.direction),ce("display",i.displayStyle),N("k-stepper",i.hostClasses)("k-stepper-linear",i.linearClass))},inputs:{stepType:"stepType",linear:"linear",orientation:"orientation",currentStep:"currentStep",steps:"steps",svgIcon:"svgIcon",successSVGIcon:"successSVGIcon",errorSVGIcon:"errorSVGIcon",successIcon:"successIcon",errorIcon:"errorIcon",animation:"animation"},outputs:{activate:"activate",currentStepChange:"currentStepChange"},exportAs:["kendoStepper"],features:[Y([ie,Ta,{provide:ht,useValue:"kendo.stepper"}]),be],decls:3,vars:19,consts:()=>{let n;return n=$localize`:kendo.stepper.optional|The text for the optional segment of the step label:Optional`,[["kendoStepperLocalizedMessages","","optional",n],["kendoStepperList","",1,"k-step-list",3,"listKeydown","listClick","stepType","linear","orientation","steps","currentStep","successIcon","successSVGIcon","errorIcon","errorSVGIcon","svgIcon","indicatorTemplate","labelTemplate","stepTemplate","ngStyle"],[3,"animation","max","label","orientation","reverse","value","ngStyle",4,"ngIf"],[3,"animation","max","label","orientation","reverse","value","ngStyle"]]},template:function(e,i){e&1&&(Xe(0,0),g(1,"ol",1),O("listKeydown",function(s){return i.onListKeydown(s)})("listClick",function(s){return i.onListClick(s)}),f(),_(2,cI,1,8,"kendo-progressbar",2)),e&2&&(u(),N("k-step-list-horizontal",i.isHorizontal)("k-step-list-vertical",!i.isHorizontal),l("stepType",i.stepType)("linear",i.linear)("orientation",i.orientation)("steps",i.steps)("currentStep",i.currentStep)("successIcon",i.successIcon)("successSVGIcon",i.successSVGIcon)("errorIcon",i.errorIcon)("errorSVGIcon",i.errorSVGIcon)("svgIcon",i.svgIcon)("indicatorTemplate",i.indicatorTemplate==null?null:i.indicatorTemplate.templateRef)("labelTemplate",i.labelTemplate==null?null:i.labelTemplate.templateRef)("stepTemplate",i.stepTemplate==null?null:i.stepTemplate.templateRef)("ngStyle",i.stepsListStyling),u(),l("ngIf",i.steps.length>0))},dependencies:[oe,Pt,im,f_,__],encapsulation:2}),t})();var Ck=(()=>{class t extends ka{constructor(e){super(),this.service=e}get override(){return!0}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-stepper-messages"]],features:[Y([{provide:ka,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),xa=(()=>{class t extends gi{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=oi(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["kendoAvatarMessages"]],inputs:{avatarAlt:"avatarAlt"},features:[z]}),t})(),v_=(()=>{class t extends xa{constructor(e){super(),this.service=e}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275dir=A({type:t,selectors:[["","kendoAvatarLocalizedMessages",""]],features:[Y([{provide:xa,useExisting:ue(()=>t)}]),z]}),t})(),Df="full",Ef="medium",wf="primary",yf="solid",Sk=(()=>{class t{constructor(e,i,o){this.localization=e,this.renderer=i,this.element=o,this.hostClass=!0,this.border=!1,this._themeColor=wf,this._size=Ef,this._fillMode=yf,this._rounded=Df,pt(xi)}get borderClass(){return this.border}get flexBasis(){return this.width}set shape(e){this.rounded=IT(e)}set size(e){if(e!==this._size){let i=e||Ef;this.handleClasses("size",i),this._size=i}}get size(){return this._size}set rounded(e){if(e!==this._rounded){let i=e||Df;this.handleClasses("rounded",i),this._rounded=i}}get rounded(){return this._rounded}set themeColor(e){if(e!==this._themeColor){let i=e||wf;this._themeColor=i,this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor)}}get themeColor(){return this._themeColor}set fillMode(e){if(e!==this.fillMode){let i=e||yf;this._fillMode=i,this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor)}}get fillMode(){return this._fillMode}set fill(e){this.fillMode=e}get avatarWidth(){return this.width}get avatarHeight(){return this.height}set svgIcon(e){if(fe()&&e&&this.icon&&this.iconClass)throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this._svgIcon=e}get svgIcon(){return this._svgIcon}ngOnInit(){this.verifyProperties()}ngAfterViewInit(){["size","rounded"].forEach(i=>{this.handleClasses(i,this[i])}),this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor)}get customAvatar(){return!(this.imageSrc||this.initials||this.icon||this.iconClass)}verifyProperties(){if(!fe())return;if([this.icon||this.iconClass,this.imageSrc,this.initials].filter(o=>o).length>1)throw new Error(` Invalid property configuration given. The kendo-avatar component can accept only one of: icon, imageSrc or initials properties. `)}handleClasses(e,i){let o=this.element.nativeElement,s=yT("avatar",e,this[e],i);s.toRemove&&this.renderer.removeClass(o,s.toRemove),s.toAdd&&this.renderer.addClass(o,s.toAdd)}handleFillModeAndThemeColorClasses(e,i){let o=this.element.nativeElement;Array.from(o.classList).filter(a=>a.startsWith("k-avatar-solid")||a.startsWith("k-avatar-outline")).forEach(a=>this.renderer.removeClass(o,a)),e!=="none"&&this.renderer.addClass(o,`k-avatar-${e}`),e!=="none"&&i!=="none"&&this.renderer.addClass(o,`k-avatar-${e}-${i}`)}textFor(e){return this.localization.get(e)}}return t.\u0275fac=function(e){return new(e||t)(c(ie),c(X),c(W))},t.\u0275cmp=k({type:t,selectors:[["kendo-avatar"]],hostVars:10,hostBindings:function(e,i){e&2&&(ce("flex-basis",i.flexBasis)("width",i.avatarWidth)("height",i.avatarHeight),N("k-avatar",i.hostClass)("k-avatar-bordered",i.borderClass))},inputs:{shape:"shape",size:"size",rounded:"rounded",themeColor:"themeColor",fillMode:"fillMode",fill:"fill",border:"border",iconClass:"iconClass",width:"width",height:"height",cssStyle:"cssStyle",initials:"initials",icon:"icon",imageSrc:"imageSrc",svgIcon:"svgIcon"},features:[Y([ie,{provide:ht,useValue:"kendo.avatar"}])],ngContentSelectors:Mt,decls:5,vars:4,consts:()=>{let n;return n=$localize`:kendo.avatar.avatarAlt|The alt attribute text of the image in the avatar.:Avatar`,[["kendoAvatarLocalizedMessages","","avatarAlt",n],[4,"ngIf"],[1,"k-avatar-image"],[3,"src","alt","ngStyle"],[1,"k-avatar-text",3,"ngStyle"],[1,"k-avatar-icon"],[3,"ngStyle","name","customFontClass","svgIcon"]]},template:function(e,i){e&1&&(Le(),Xe(0,0),_(1,dI,1,0,"ng-content",1)(2,uI,3,3,"ng-container",1)(3,hI,3,2,"ng-container",1)(4,pI,3,4,"ng-container",1)),e&2&&(u(),l("ngIf",i.customAvatar),u(),l("ngIf",i.imageSrc),u(),l("ngIf",i.initials),u(),l("ngIf",i.icon||i.iconClass||i.svgIcon))},dependencies:[oe,Pt,Je,v_],encapsulation:2}),t})(),bk=(()=>{class t extends xa{constructor(e){super(),this.service=e}get override(){return!0}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-avatar-messages"]],features:[Y([{provide:xa,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),C_=(()=>{class t{constructor(e){this.localizationService=e,this.hostClass=!0,this.orientation="vertical",this.width="285px",this.rtl=!1,pt(xi),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:i})=>{this.rtl=i,this.direction=this.rtl?"rtl":"ltr"})}get widthStyle(){return this.width}get vertical(){return this.orientation==="vertical"}get horizontal(){return this.orientation==="horizontal"}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-card"]],hostVars:9,hostBindings:function(e,i){e&2&&(M("dir",i.direction),ce("width",i.widthStyle),N("k-card",i.hostClass)("k-card-vertical",i.vertical)("k-card-horizontal",i.horizontal))},inputs:{orientation:"orientation",width:"width"},features:[Y([ie,{provide:ht,useValue:"kendo.card.component"}])],ngContentSelectors:Mt,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})(),S_=(()=>{class t{constructor(){this.hostClass=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["kendo-card-header"]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-card-header",i.hostClass)},ngContentSelectors:Mt,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})(),b_=(()=>{class t{constructor(){this.hostClass=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["kendo-card-body"]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-card-body",i.hostClass)},ngContentSelectors:Mt,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})(),Dk=(()=>{class t{constructor(){this.hostClass=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["kendo-card-footer"]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-card-footer",i.hostClass)},ngContentSelectors:Mt,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})(),D_=(()=>{class t{constructor(){this.hostClass=!0,this.orientation="horizontal",this.layout="start",this.action=new C}get stretchedClass(){return this.layout==="stretched"}get startClass(){return this.layout==="start"}get endClass(){return this.layout==="end"}get centerClass(){return this.layout==="center"}get verticalClass(){return this.orientation==="vertical"}get horizontalClass(){return this.orientation==="horizontal"}set actions(e){Array.isArray(e)?this.actionsArray=e:e instanceof le&&(this.actionsTemplate=e)}onClick(e){this.action.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["kendo-card-actions"]],hostVars:16,hostBindings:function(e,i){e&2&&N("k-actions",i.hostClass)("k-card-actions",i.hostClass)("k-actions-stretched",i.stretchedClass)("k-actions-start",i.startClass)("k-actions-end",i.endClass)("k-actions-center",i.centerClass)("k-actions-vertical",i.verticalClass)("k-actions-horizontal",i.horizontalClass)},inputs:{orientation:"orientation",layout:"layout",actions:"actions"},outputs:{action:"action"},ngContentSelectors:Mt,decls:3,vars:3,consts:[[4,"ngIf"],["type","button","class","k-button k-button-md k-rounded-md",3,"k-button-solid","k-button-flat","k-button-solid-base","k-button-solid-primary","k-button-flat-base","k-button-flat-primary","click",4,"ngFor","ngForOf"],["type","button",1,"k-button","k-button-md","k-rounded-md",3,"click"],[1,"k-button-text"],[3,"ngTemplateOutlet"]],template:function(e,i){e&1&&(Le(),_(0,mI,1,0,"ng-content",0)(1,fI,2,1,"ng-container",0)(2,vI,1,1,null,0)),e&2&&(l("ngIf",!i.actionsArray&&!i.actionsTemplate),u(),l("ngIf",i.actionsArray),u(),l("ngIf",i.actionsTemplate))},dependencies:[qe,oe,Fe],encapsulation:2}),t})(),Ek=(()=>{class t{constructor(){this.hostClass=!0,this.orientation="horizontal"}get verticalClass(){return this.orientation==="vertical"}get horizontalClass(){return this.orientation==="horizontal"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=A({type:t,selectors:[["","kendoCardSeparator",""]],hostVars:8,hostBindings:function(e,i){e&2&&(ce("color",i.color),N("k-card-separator",i.hostClass)("k-separator-vertical",i.verticalClass)("k-separator-horizontal",i.horizontalClass))},inputs:{color:"color",orientation:"orientation"}}),t})(),E_=(()=>{class t{constructor(){this.hostClass=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=A({type:t,selectors:[["","kendoCardTitle",""]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-card-title",i.hostClass)}}),t})(),w_=(()=>{class t{constructor(){this.hostClass=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=A({type:t,selectors:[["","kendoCardSubtitle",""]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-card-subtitle",i.hostClass)}}),t})(),y_=(()=>{class t{constructor(){this.hostClass=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=A({type:t,selectors:[["","kendoCardMedia",""]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-card-media",i.hostClass)}}),t})();var I_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoExpansionPanelTitleDirective",""]]}),t})();function wk(t,n){return[Ce({overflow:"hidden",display:"block",height:0}),lt(`${t}ms ease-in`,Ce({height:`${n}`}))]}function yk(t,n){return[Ce({overflow:"hidden",height:`${n}`}),lt(`${t}ms ease-in`,Ce({overflow:"hidden",height:0}))]}var Md=class extends Ii{constructor(n){super(),Object.assign(this,n)}},Ik=200,gd="k-hidden",Tk=(()=>{class t{constructor(e,i,o,s,r){this.renderer=e,this.hostElement=i,this.ngZone=o,this.localizationService=s,this.builder=r,this.title="",this.subtitle="",this.disabled=!1,this.animation=!0,this.expandedChange=new C,this.action=new C,this.expand=new C,this.collapse=new C,this.hostClass=!0,this.focused=!1,this.animationEnd=new C,this.subscriptions=new Se,this._expanded=!1,this._svgExpandIcon=Zi,this._svgCollapseIcon=Kn,pt(xi),this.direction=s.rtl?"rtl":"ltr"}set expanded(e){e!==this.expanded&&(this._expanded=e,this.expanded?this.removeContentHiddenClass():this.addContentHiddenClass())}get expanded(){return this._expanded}set svgExpandIcon(e){if(fe()&&e&&this.expandIcon)throw new Error("Setting both expandIcon/svgExpandIcon options at the same time is not supported.");this._svgExpandIcon=e}get svgExpandIcon(){return this._svgExpandIcon}set svgCollapseIcon(e){if(fe()&&e&&this.collapseIcon)throw new Error("Setting both collapseIcon/svgCollapseIcon options at the same time is not supported.");this._svgCollapseIcon=e}get svgCollapseIcon(){return this._svgCollapseIcon}get expandedClass(){return this.expanded&&!this.disabled}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"title"),this.subscriptions=this.localizationService.changes.subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr"});let e=this.hostElement.nativeElement,i=this.header.nativeElement;this.subscriptions.add(this.renderer.listen(i,"focus",()=>this.focusExpansionPanel(e))),this.subscriptions.add(this.renderer.listen(i,"blur",()=>this.blurExpansionPanel(e)))}ngAfterViewInit(){this.initDomEvents(),this.expanded||this.renderer.addClass(this.content.nativeElement,gd)}ngOnDestroy(){this.subscriptions.unsubscribe()}initDomEvents(){this.hostElement&&(this.disabled||this.ngZone.runOutsideAngular(()=>{let e=this.hostElement.nativeElement;this.subscriptions.add(this.renderer.listen(e,"keydown",this.keyDownHandler.bind(this)))}))}keyDownHandler(e){(e.keyCode===T.Enter||e.keyCode===T.Space)&&Da(e.target,"k-expander-header")&&(e.preventDefault(),this.ngZone.run(()=>{this.onHeaderAction()}))}onHeaderClick(e){let i=this.header.nativeElement;(!ys(e.target)||e.target===i&&!this.disabled)&&this.onHeaderAction()}onHeaderAction(){let e=new Md;if(e.action=this.expanded?"collapse":"expand",this.action.emit(e),!e.isDefaultPrevented()){if(this.setExpanded(!this.expanded),this.expanded&&this.removeContentHiddenClass(),this.animation){this.animateContent();return}this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}}get expanderIndicatorClasses(){return this.expanded?this.collapseIcon?"":"caret-alt-up":this.expandIcon?"":"caret-alt-down"}get customExpanderIndicatorClasses(){return this.expanded?this.collapseIcon?this.collapseIcon:"":this.expandIcon?this.expandIcon:""}get expanderSvgIcon(){return this.expanded?this.svgCollapseIcon:this.svgExpandIcon}toggle(e){let i=this.expanded,o=He(e)?e:!i;if(o!==i){if(this.setExpanded(o),this.expanded&&this.removeContentHiddenClass(),this.animation){this.animateContent();return}this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}}focusExpansionPanel(e){this.focused||(this.focused=!0,this.renderer.addClass(e,"k-focus"))}blurExpansionPanel(e){this.focused&&(this.focused=!1,this.renderer.removeClass(e,"k-focus"))}setExpanded(e){this._expanded=e,this.expandedChange.emit(e)}animateContent(){let e=typeof this.animation=="boolean"?Ik:this.animation,i=getComputedStyle(this.content.nativeElement).height,o=this.expanded?wk(e,i):yk(e,i),s=this.createPlayer(o,this.content.nativeElement);this.animationEnd.pipe(Ke(1)).subscribe(()=>{this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}),s.play()}createPlayer(e,i){let s=this.builder.build(e).create(i);return s.onDone(()=>{s&&(this.animationEnd.emit(),s.destroy(),s=null)}),s}emitExpandCollapseEvent(){this[this.expanded?"expand":"collapse"].emit()}addContentHiddenClass(){this.renderer.addClass(this.content.nativeElement,gd)}removeContentHiddenClass(){this.renderer.removeClass(this.content.nativeElement,gd)}}return t.\u0275fac=function(e){return new(e||t)(c(X),c(W),c(re),c(ie),c(xl))},t.\u0275cmp=k({type:t,selectors:[["kendo-expansionpanel"]],contentQueries:function(e,i,o){if(e&1&&B(o,I_,5),e&2){let s;D(s=E())&&(i.titleTemplate=s.first)}},viewQuery:function(e,i){if(e&1&&(j(CI,7),j(zf,7)),e&2){let o;D(o=E())&&(i.content=o.first),D(o=E())&&(i.header=o.first)}},hostVars:5,hostBindings:function(e,i){e&2&&(M("dir",i.direction),N("k-expander",i.hostClass)("k-expanded",i.expandedClass))},inputs:{title:"title",subtitle:"subtitle",disabled:"disabled",expanded:"expanded",svgExpandIcon:"svgExpandIcon",svgCollapseIcon:"svgCollapseIcon",expandIcon:"expandIcon",collapseIcon:"collapseIcon",animation:"animation"},outputs:{expandedChange:"expandedChange",action:"action",expand:"expand",collapse:"collapse"},exportAs:["kendoExpansionPanel"],features:[Y([ie,{provide:ht,useValue:"kendo.expansionpanel"}])],ngContentSelectors:Mt,decls:10,vars:14,consts:[["header",""],["content",""],["role","button","tabindex","0",3,"click"],[4,"ngIf"],[1,"k-expander-indicator"],[3,"name","customFontClass","svgIcon"],[1,"k-expander-content-wrapper",3,"id"],[1,"k-expander-content"],["class","k-expander-title",4,"ngIf"],[1,"k-spacer"],["class","k-expander-sub-title",4,"ngIf"],[1,"k-expander-title"],[1,"k-expander-sub-title"],[3,"ngTemplateOutlet"]],template:function(e,i){if(e&1){let o=K();Le(),g(0,"div",2,0),O("click",function(r){return y(o),I(i.onHeaderClick(r))}),_(2,DI,4,2,"ng-container",3)(3,wI,1,1,null,3),g(4,"span",4),b(5,"kendo-icon-wrapper",5),f()(),g(6,"div",6,1)(8,"div",7),Ne(9),f()()}e&2&&(N("k-expander-header",!0)("k-disabled",i.disabled),M("aria-disabled",i.disabled)("aria-expanded",i.expanded&&!i.disabled)("aria-controls",i.title),u(2),l("ngIf",!i.titleTemplate),u(),l("ngIf",i.titleTemplate),u(2),l("name",i.expanderIndicatorClasses)("customFontClass",i.customExpanderIndicatorClasses)("svgIcon",i.expanderSvgIcon),u(),l("id",i.title),u(2),M("aria-hidden",!i.expanded))},dependencies:[oe,Fe,Je],encapsulation:2}),t})(),kk=0,xk=t=>`${t}-${++kk}`,fd=t=>t?+t:void 0,Rk=t=>t.some(n=>He(n.row)),If=(t,n)=>{for(let e=0;eae()&&He(document.elementsFromPoint)?document.elementsFromPoint(t.clientX,t.clientY).filter(n=>n.classList&&(n.classList.contains("k-tilelayout-item")||n.classList.contains("k-layout-item-hint"))):[t.target],ei=(t,n,e)=>{Object.keys(e).forEach(o=>{t.setStyle(n,o,e[o])})},Xn=(t,n,e,i,o,s=!1)=>{let r=n.getBoundingClientRect(),a=(r.height-e.rows)/(i.height+e.rows),d=t.y-r.y,p=t.x-r.x,m=r.right-t.x,v=Math.floor((s?m:p)/(e.columns+i.width)),S=Math.min(v+1,o),w=Math.floor(d/(e.rows+i.height)),L=Math.min(w+1,a),F=Math.max(S,0);return{row:Math.max(L,0),col:F}};var Mk=(t,n,e,i)=>{let o=t===T.ArrowRight&&n+e.colSpan<=i.columns,s=t===T.ArrowLeft&&e.colSpan>1,r=t===T.ArrowDown,a=t===T.ArrowUp&&e.rowSpan>1;return{resizeRight:o,resizeLeft:s,resizeDown:r,resizeUp:a}},Ak=(t,n,e,i)=>{let o,s;return e.col?(o=t===T.ArrowRight&&e.colSpan+n<=i.columns,s=t===T.ArrowLeft&&n>1):(o=t===T.ArrowRight&&e.colSpan+e.order0),{reorderLeft:s,reorderRight:o}},Lk=(t,n,e)=>{let i=t.elem.nativeElement.getBoundingClientRect(),o={rowSpan:t.rowSpan,colSpan:t.colSpan},s=(i.width-(o.colSpan-1)*n.gap.columns)/o.colSpan,r=(i.height-(o.rowSpan-1)*n.gap.rows)/o.rowSpan,{col:a}=Xn({x:i.x,y:i.y},n.tileLayoutElement,n.gap,{width:s,height:r},n.columns,e);return a},Tf=9,Sa=25,kf=5,ba=18,Nk=10,xf=["ew","ns","nwse"],Rf=["ew","ns","nesw"],xo={ew:{width:Tf,overlapX:kf},ns:{height:Tf,overlapY:kf},nwse:{width:Sa,height:Sa,overlapX:ba,overlapY:ba},nesw:{width:Sa,height:Sa,overlapX:ba,overlapY:ba}},Ds=.3,Of=-.7,Mf=2,Ad=class extends Ii{constructor(n,e,i,o,s,r,a,d){super(),this.item=n,this.items=e,this.newIndex=i,this.oldIndex=o,this.newCol=s,this.oldCol=r,this.newRow=a,this.oldRow=d}},Ld=class extends Ii{constructor(n,e,i,o,s,r){super(),this.item=n,this.items=e,this.newRowSpan=i,this.oldRowSpan=o,this.newColSpan=s,this.oldColSpan=r}},Nd=(()=>{class t{constructor(e,i,o,s){this.zone=e,this.renderer=i,this.cdr=o,this.localization=s,this.reorderable=new fn(null),this.resizable=new fn(null),this.reorder=new Qe,this.resize=new Qe,this.lastDragCursorOffset={x:0,y:0},this.localizationSubscription=this.localization.changes.subscribe(({rtl:r})=>this.rtl=r)}get colStart(){return this.currentColStart}get rowStart(){return this.currentRowStart}get itemWrapper(){return this.draggedItemWrapper}get order(){return this.targetOrder}ngOnDestroy(){this.localizationSubscription.unsubscribe()}handlePress(e){let i=!!e.target.classList.contains("k-resize-handle"),o=Cd(e.target,p=>p.classList.contains("k-tilelayout-item"),this.tileLayoutSettings.tileLayoutElement),s=Cd(e.target,p=>p.classList.contains("k-tilelayout-item-header"),this.tileLayoutSettings.tileLayoutElement);if(!o)return;this.zone.run(()=>{this.draggedItemWrapper=o,this.draggedItem=this.tileLayoutSettings.items.find(p=>p.order===+o.style.order)});let r=!i&&this.reorderable.getValue()&&this.draggedItem.reorderable&&s,a=ys(e.target);if(!(r||i)||a)return;e.preventDefault(),this.zone.run(()=>{this.reordering=r,this.resizing=i});let d=this.draggedItemWrapper.getBoundingClientRect();if(this.zone.run(()=>{this.offset={top:e.clientY-d.top,left:e.clientX-d.left,x:d.x,y:d.y,width:d.width,height:d.height},this.targetSize={rowSpan:this.draggedItem.rowSpan,colSpan:this.draggedItem.colSpan},this.cellSize={width:(d.width-(this.targetSize.colSpan-1)*this.tileLayoutSettings.gap.columns)/this.targetSize.colSpan,height:(d.height-(this.targetSize.rowSpan-1)*this.tileLayoutSettings.gap.rows)/this.targetSize.rowSpan},this.lastDragCursorOffset={x:e.clientX,y:e.clientY}}),ei(this.renderer,this.draggedItemWrapper,{left:d.left+window.pageXOffset-window.scrollX+"px",top:d.top+window.pageYOffset-window.scrollY+"px",width:d.width+"px",height:d.height+"px",zIndex:Nk}),ei(this.renderer,this.tileLayoutSettings.hintElement,{display:"flex",height:d.height-Mf+"px"}),this.zone.run(()=>this.targetOrder=this.draggedItem.order),this.cdr.markForCheck(),ei(this.renderer,this.draggedItemWrapper,{position:"fixed"}),this.reorderable.getValue()&&!i){this.zone.run(()=>{this.currentColStart=this.draggedItem.colStart,this.currentRowStart=this.draggedItem.rowStart});let p=this.draggedItem.elem.nativeElement.querySelector(".k-tilelayout-item-header");this.renderer.addClass(p,"k-cursor-grabbing"),this.cdr.markForCheck()}else this.resizable&&i&&this.zone.run(()=>{this.startingPoint={top:e.clientY,left:e.clientX},this.currentResizingColSpan=this.draggedItem.colSpan,this.currentResizingRowSpan=this.draggedItem.rowSpan,this.draggedItem.col&&(this.currentColStart=this.draggedItem.col.toString()),this.draggedItem.row&&(this.currentRowStart=this.draggedItem.row.toString()),this.direction=e.target.classList[1]})}handleDrag(e){this.draggedItemWrapper&&(this.reordering?this.reorderItems(e):this.resizing&&this.resizeItem(e),this.lastDragCursorOffset={x:e.clientX,y:e.clientY})}handleRelease(e){if(e.preventDefault(),this.reordering){let i=this.draggedItem.order,o=this.draggedItem.col,s=this.draggedItem.row,r=fd(this.currentColStart),a=fd(this.currentRowStart);if(If([this.targetOrder,r,a],[i,o,s])){let d=new Ad(this.draggedItem,this.tileLayoutSettings.items,this.targetOrder,i,fd(this.currentColStart),o,a,s);this.reorder.next(d),d.isDefaultPrevented()||(this.targetOrder>i?this.zone.run(()=>{for(let p=i+1;p<=this.targetOrder;p++)this.tileLayoutSettings.items.find(m=>m.order===p).order=p-1}):this.zone.run(()=>{for(let p=this.targetOrder;pm.order===p).order=p+1}),this.draggedItem.order=this.targetOrder,this.draggedItem.col&&(this.draggedItem.col=+this.currentColStart),this.draggedItem.row&&(this.draggedItem.row=+this.currentRowStart))}this.tileLayoutSettings.tileLayoutElement.appendChild(this.tileLayoutSettings.hintElement),this.cdr.markForCheck(),this.zone.run(()=>this.cleanUp())}else if(!this.reordering&&this.resizing){let i=this.draggedItem.rowSpan,o=this.draggedItem.colSpan,{targetColSpan:s,targetRowSpan:r}=Rk(this.tileLayoutSettings.items)?this.targetSpan():{targetColSpan:this.currentResizingColSpan,targetRowSpan:this.currentResizingRowSpan};if(If([i,o],[r,s])){let a=new Ld(this.draggedItem,this.tileLayoutSettings.items,r,i,s,o);this.resize.next(a),a.isDefaultPrevented()||(this.draggedItem.colSpan=this.currentResizingColSpan,this.draggedItem.rowSpan=this.currentResizingRowSpan)}this.zone.run(()=>this.cleanUp())}}reorderItems(e){let o=Ok(e).find(d=>d!==this.draggedItemWrapper),s=o?+o.style.order:+this.draggedItemWrapper.style.order;if(this.tileLayoutSettings.autoFlow!=="none"){let d=e.clientX-this.lastDragCursorOffset.x,p=e.clientY-this.lastDragCursorOffset.y,m=d>0?"right":d<0?"left":void 0,v=p>0?"down":d<0?"up":void 0,S=this.draggedItemWrapper.getBoundingClientRect(),w=this.tileLayoutSettings.gap.columns,L=this.tileLayoutSettings.gap.rows;if(m&&this.draggedItem.col){let{col:F}=Xn({x:m==="right"?S.right-w:S.left+w,y:e.clientY},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),R=this.getTargetCol(F,m);this.currentColStart=R.toString()}if(v&&this.draggedItem.row){let{row:F}=Xn({x:e.clientX,y:v==="down"?S.bottom-L:S.top+L},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),R=this.getTargetRow(F,v);this.currentRowStart=R.toString()}}let r=sthis.targetOrder;this.zone.run(()=>this.targetOrder=s),r?this.tileLayoutSettings.tileLayoutElement.insertBefore(this.tileLayoutSettings.hintElement,this.tileLayoutSettings.tileLayoutElement.firstChild):a&&this.tileLayoutSettings.tileLayoutElement.appendChild(this.tileLayoutSettings.hintElement),ei(this.renderer,this.draggedItemWrapper,{top:e.pageY-this.offset.top-window.scrollY+"px",left:e.pageX-this.offset.left-window.scrollX+"px"}),this.cdr.markForCheck()}resizeItem(e){ei(this.renderer,this.tileLayoutSettings.tileLayoutElement,{cursor:this.direction.split("k-cursor-")[1]});let i=this.rtl?this.offset.width+(this.offset.x-e.clientX):this.offset.width+(e.clientX-this.startingPoint.left),o=this.offset.height+(e.clientY-this.startingPoint.top),s=this.tileLayoutSettings.hintElement.getBoundingClientRect(),r=s.width,a=s.height,d=e.clientX-this.lastDragCursorOffset.x,p=e.clientY-this.lastDragCursorOffset.y,m=this.draggedItem.col?this.draggedItem.col:Xn({x:this.rtl?s.right:s.x,y:s.y},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl).col,v=(this.tileLayoutSettings.columns-m)*(this.cellSize.width+this.tileLayoutSettings.gap.columns)+this.cellSize.width,S=()=>{if(ei(this.renderer,this.draggedItemWrapper,{width:Math.min(Math.max(i,this.cellSize.width),v)+"px"}),this.rtl&&i>this.cellSize.width){let _e=this.tileLayoutSettings.columns*(this.cellSize.width+this.tileLayoutSettings.gap.columns),Ee=this.tileLayoutSettings.tileLayoutElement.getBoundingClientRect().right-_e;ei(this.renderer,this.draggedItemWrapper,{left:Math.max(e.clientX,Ee)+"px"})}let L=i-r,{x:F,y:R,right:U}=this.draggedItem.elem.nativeElement.getBoundingClientRect(),{col:te}=Xn({x:this.rtl?U:F,y:R},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),x=te+this.currentResizingColSpan,de=this.rtl?d<0:d>0,V=this.rtl?d>0:d<0;L>Ds*this.cellSize.width&&de&&x<=this.tileLayoutSettings.columns?this.currentResizingColSpan++:this.currentResizingColSpan>1&&V&&L{ei(this.renderer,this.draggedItemWrapper,{height:Math.max(o,this.cellSize.height)+"px"});let L=o-a;L>Ds*this.cellSize.height&&p>0?this.currentResizingRowSpan++:this.currentResizingRowSpan>1&&p<0&&L-1?S():(this.direction.indexOf("ns")>-1||S(),w())}cleanUp(){if(this.targetOrder=this.currentResizingColSpan=this.currentColStart=this.currentResizingRowSpan=this.currentRowStart=void 0,this.resizing=this.reordering=!1,this.direction=null,this.draggedItemWrapper){let e=this.draggedItemWrapper.querySelector(".k-cursor-grab");e&&this.renderer.removeClass(e,"k-cursor-grabbing"),ei(this.renderer,this.draggedItemWrapper,{top:"",left:"",display:"",width:"",height:"",zIndex:"",position:""}),ei(this.renderer,this.tileLayoutSettings.hintElement,{display:"none",height:"auto"}),ei(this.renderer,this.tileLayoutSettings.tileLayoutElement,{cursor:"default"}),this.draggedItemWrapper=this.offset=this.draggedItem=this.resizing=this.reordering=this.currentResizingColSpan=this.currentResizingRowSpan=this.startingPoint=void 0,this.lastDragCursorOffset={x:0,y:0}}}targetSpan(){let e=this.draggedItem.elem.nativeElement.getBoundingClientRect(),i=Xn({x:this.rtl?e.right:e.x,y:e.y},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),o=Xn({x:this.rtl?e.x+Ds*this.cellSize.width:e.right-Ds*this.cellSize.width,y:e.bottom-Ds*this.cellSize.height},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl);return{targetColSpan:o.col-i.col+1,targetRowSpan:o.row-i.row+1}}getTargetCol(e,i){return this.rtl?i==="left"?e-this.draggedItem.colSpan+1:e:i==="right"?e-this.draggedItem.colSpan+1:e}getTargetRow(e,i){return i==="down"?e-this.draggedItem.rowSpan+1:e}calculateHintHeight(){let e=this.currentResizingRowSpan*this.cellSize.height,i=(this.currentResizingRowSpan-1)*this.tileLayoutSettings.gap.rows;return e+i-Mf}}return t.\u0275fac=function(e){return new(e||t)(J(re),J(X),J(ve),J(ie))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Pd=(()=>{class t{constructor(e,i,o){this.zone=e,this.renderer=i,this.localization=o,this.navigable=new fn(!1),this.localizationSubscription=this.localization.changes.subscribe(({rtl:s})=>this.rtl=s)}ngOnDestroy(){this.localizationSubscription.unsubscribe()}onKeyDown(e,i,o,s){let r=e.keyCode,a=document.activeElement===i,d=s.items.find(m=>m.elem.nativeElement===i),p=Lk(d,s,this.rtl);r===T.Enter&&a&&o.length>0?(this.changeTabIndex("0",i,o),o[0].focus()):r===T.Escape?(this.changeTabIndex("-1",i,o),i.focus()):(e.ctrlKey||e.metaKey)&&a&&d.isResizable?(e.preventDefault(),this.zone.run(()=>{this.resizeItem(r,d,s,p)})):e.shiftKey&&a&&d.isReorderable?this.zone.run(()=>{this.reorderItem(r,d,s,p)}):r===T.Tab&&!a&&this.keepFocusWithinComponent(e,i)}onFocusOut(e,i,o){let s=o.includes(e.target),r=o.includes(e.relatedTarget);s&&!r&&(this.changeTabIndex("-1",i,o),e.relatedTarget?.focus())}onClick(e,i,o){o.includes(e.target)&&(this.changeTabIndex("0",i,o),e.target.focus())}changeTabIndex(e,i,o){this.renderer.setAttribute(i,"tabindex",e==="0"?"-1":"0"),o.forEach(s=>{this.renderer.setAttribute(s,"tabindex",e)})}getAllFocusableChildren(e){return Array.from(e.querySelectorAll(wp)).filter(i=>i.offsetParent!==null)}resizeItem(e,i,o,s){let{resizeRight:r,resizeLeft:a,resizeDown:d,resizeUp:p}=Mk(e,s,i,o),m=a||r,v=d||p,S=a||p?-1:1;m?i.colSpan+=S:v&&(i.rowSpan+=S)}reorderItem(e,i,o,s){let{reorderLeft:r,reorderRight:a}=Ak(e,s,i,o),d=()=>{let m=this.targetTile(i,o.items,1);m&&(i.order+=1,m.order-=1)},p=()=>{let m=this.targetTile(i,o.items,-1);m&&(i.order-=1,m.order+=1)};if(a||r){let m=a?1:-1;i.col?i.col+=m:a?d():p()}}keepFocusWithinComponent(e,i){let[o,s]=this.getFirstAndLastFocusable(i),r=!e.shiftKey&&e.target===s,a=e.shiftKey&&e.target===o;r&&(e.preventDefault(),o.focus(),i.blur()),a&&(e.preventDefault(),s.focus())}getFirstAndLastFocusable(e){let i=this.getAllFocusableChildren(e),o=i.length>0?i[0]:e,s=i.length>0?i[i.length-1]:e;return[o,s]}targetTile(e,i,o){return i.find(s=>s.order===e.order+o)}}return t.\u0275fac=function(e){return new(e||t)(J(re),J(X),J(ie))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Fd=(()=>{class t{constructor(e,i){this.hostEl=e,this.renderer=i,this.hostClass=!0}set reorderable(e){let i=this.hostEl.nativeElement;e?(this.renderer.addClass(i,"k-touch-action-none"),this.renderer.removeClass(i,"k-touch-action-auto")):(this.renderer.addClass(i,"k-touch-action-auto"),this.renderer.removeClass(i,"k-touch-action-none"))}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(X))},t.\u0275cmp=k({type:t,selectors:[["kendo-tilelayout-item-header"]],hostVars:4,hostBindings:function(e,i){e&2&&N("k-tilelayout-item-header",i.hostClass)("k-card-header",i.hostClass)},inputs:{reorderable:"reorderable"},ngContentSelectors:Mt,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})(),T_=(()=>{class t{constructor(e,i){this.el=e,this.renderer=i}ngOnInit(){this.sizeHandle()}setHorizontalPosition(e){this.renderer.setStyle(e,this.rtl?"left":"right",-xo[this.resizeDirection].overlapX+"px")}setBottom(e){this.renderer.setStyle(e,"bottom",-xo[this.resizeDirection].overlapY+"px")}sizeHandle(){let e=this.el.nativeElement,i=xo[this.resizeDirection].width?`${xo[this.resizeDirection].width}px`:"100%",o=xo[this.resizeDirection].height?`${xo[this.resizeDirection].height}px`:"100%";this.renderer.setStyle(e,"width",i),this.renderer.setStyle(e,"height",o),this.resizeDirection==="ew"?this.setHorizontalPosition(e):this.resizeDirection==="ns"?this.setBottom(e):(this.setHorizontalPosition(e),this.setBottom(e))}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(X))},t.\u0275dir=A({type:t,selectors:[["","kendoTileLayoutResizeHandle",""]],inputs:{resizeDirection:"resizeDirection",rtl:"rtl"}}),t})(),k_=(()=>{class t{constructor(e,i,o,s,r,a){this.elem=e,this.zone=i,this.renderer=o,this.localization=s,this.draggingService=r,this.keyboardNavigationService=a,this.rowSpan=1,this.colSpan=1,this.reorderable=!0,this.resizable=!0,this.itemClass=!0,this.hostRole="listitem",this.titleId="",this.subs=new Se,this.subs.add(this.localization.changes.subscribe(({rtl:d})=>{this.rtl=d})),this.subs.add(this.draggingService.resizable.subscribe(d=>{this.resizeDirections=d&&this.resizable?this.rtl?Rf:xf:void 0})),this.titleId=xk("k-tilelayout-title")}set order(e){this._order=e,this.renderer.setStyle(this.elem.nativeElement,"order",`${this._order}`)}get order(){return this._order}get hostDropEffect(){return this.isResizable||this.isReorderable?"execute":void 0}get hostTabindex(){return this.isNavigable?"0":void 0}get ariaKeyShortcuts(){return this.isNavigable?"Enter":void 0}get hostGrabbed(){return this.isResizable||this.isReorderable}get hostLabelledBy(){return this.title?this.titleId:void 0}get colEnd(){return`span ${this.colSpan}`}get rowEnd(){return`span ${this.rowSpan}`}get colStart(){return He(this.col)?this.col.toString():void 0}get rowStart(){return He(this.row)?this.row.toString():void 0}get isReorderable(){return this.reorderable&&this.draggingService.reorderable.getValue()}get isNavigable(){return this.keyboardNavigationService.navigable.getValue()}get isResizable(){return this.resizable&&this.draggingService.resizable.getValue()}ngAfterViewInit(){let e=this.elem.nativeElement,i=this.keyboardNavigationService;this.subs.add(this.draggingService.reorderable.subscribe(o=>{this.toggleCursorClass(o&&this.reorderable),this.headers?.first&&(this.headers.first.reorderable=o&&this.reorderable)})),this.subs.add(i.navigable.subscribe(o=>{o?(this.keyboardNavigationSubs=new Se,this.focusableItems=i.getAllFocusableChildren(e),this.zone.runOutsideAngular(()=>{i.changeTabIndex("-1",e,this.focusableItems),this.keyboardNavigationSubs.add(this.renderer.listen(e,"keydown",s=>i.onKeyDown(s,e,this.focusableItems,this.draggingService.tileLayoutSettings))),this.keyboardNavigationSubs.add(this.renderer.listen(e,"click",s=>i.onClick(s,e,this.focusableItems))),this.keyboardNavigationSubs.add(this.renderer.listen(e,"focusout",s=>i.onFocusOut(s,e,this.focusableItems)))})):this.focusableItems&&(this.focusableItems.forEach(s=>{this.renderer.setAttribute(s,"tabindex","0")}),this.keyboardNavigationSubs.unsubscribe())}))}ngOnChanges(e){e.reorderable&&!e.reorderable.firstChange&&this.toggleCursorClass(e.reorderable.currentValue&&this.draggingService.reorderable.getValue()),e.resizable&&(this.resizeDirections=this.resizable&&this.draggingService.resizable.getValue()?this.rtl?Rf:xf:void 0)}ngOnDestroy(){this.subs.unsubscribe(),this.keyboardNavigationSubs&&this.keyboardNavigationSubs.unsubscribe()}toggleCursorClass(e){let i=this.elem.nativeElement.querySelector(".k-tilelayout-item-header");i&&(e?this.renderer.addClass(i,"k-cursor-grab"):this.renderer.removeClass(i,"k-cursor-grab"))}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(re),c(X),c(ie),c(Nd),c(Pd))},t.\u0275cmp=k({type:t,selectors:[["kendo-tilelayout-item"]],contentQueries:function(e,i,o){if(e&1&&B(o,Fd,4),e&2){let s;D(s=E())&&(i.headers=s)}},hostVars:18,hostBindings:function(e,i){e&2&&(M("role",i.hostRole)("aria-dropeffect",i.hostDropEffect)("tabindex",i.hostTabindex)("aria-keyshortcuts",i.ariaKeyShortcuts)("aria-grabbed",i.hostGrabbed)("aria-labelledby",i.hostLabelledBy),ce("grid-column-end",i.colEnd)("grid-row-end",i.rowEnd)("grid-column-start",i.colStart)("grid-row-start",i.rowStart),N("k-tilelayout-item",i.itemClass)("k-card",i.itemClass))},inputs:{title:"title",rowSpan:"rowSpan",colSpan:"colSpan",order:"order",col:"col",row:"row",reorderable:"reorderable",resizable:"resizable"},features:[be],ngContentSelectors:Mt,decls:3,vars:2,consts:[[3,"reorderable",4,"ngIf"],[4,"ngIf"],[3,"reorderable"],[1,"k-card-title",3,"id"],["kendoTileLayoutResizeHandle","",3,"class","rtl","resizeDirection",4,"ngFor","ngForOf"],["kendoTileLayoutResizeHandle","",3,"rtl","resizeDirection"]],template:function(e,i){e&1&&(Le(),_(0,yI,3,3,"kendo-tilelayout-item-header",0),Ne(1),_(2,TI,2,1,"ng-container",1)),e&2&&(l("ngIf",i.title),u(2),l("ngIf",i.resizable))},dependencies:[qe,oe,Fd,T_],encapsulation:2}),t})(),_d={column:"k-grid-flow-col",row:"k-grid-flow-row","column-dense":"k-grid-flow-col-dense","row-dense":"k-grid-flow-row-dense"},Pk=(()=>{class t{constructor(e,i,o,s,r,a){this.zone=e,this.elem=i,this.renderer=o,this.localization=s,this.draggingService=r,this.navigationService=a,this.columns=1,this.columnWidth="1fr",this.reorderable=!1,this.resizable=!1,this.rowHeight="1fr",this.autoFlow="column",this.navigable=!1,this.reorder=new C,this.resize=new C,this.hostClass=!0,this.hostRole="list",this.showLicenseWatermark=!1,this.subs=new Se,this._gap={rows:16,columns:16};let d=pt(xi);this.showLicenseWatermark=Hn(d)}set gap(e){this._gap=typeof e=="number"?{rows:e,columns:e}:Object.assign(this._gap,e)}get gap(){return this._gap}get gapStyle(){return`${this.gap.rows}px ${this.gap.columns}px`}get currentColStart(){return this.draggingService.colStart}get currentRowStart(){return this.draggingService.rowStart}get draggedItemWrapper(){return this.draggingService.itemWrapper}get targetOrder(){return this.draggingService.order}ngOnInit(){this.applyColStyling(),this.applyRowStyling(),this.draggingService.reorderable.next(this.reorderable),this.draggingService.resizable.next(this.resizable),this.navigationService.navigable.next(this.navigable),bt(this.reorder)&&this.subs.add(this.draggingService.reorder.subscribe(e=>this.reorder.emit(e))),bt(this.resize)&&this.subs.add(this.draggingService.resize.subscribe(e=>this.resize.emit(e))),this.subs.add(this.draggingService.reorderable.subscribe(e=>{e&&!this.draggable&&this.initializeDraggable()})),this.subs.add(this.draggingService.resizable.subscribe(e=>{e&&!this.draggable&&this.initializeDraggable()})),this.subs.add(this.localization.changes.subscribe(({rtl:e})=>{this.direction=e?"rtl":"ltr"}))}ngAfterViewInit(){this.draggingService.tileLayoutSettings=this.draggingServiceConfig(),this.applyAutoFlow(null,_d[this.autoFlow]),this.items.changes.subscribe(()=>{this.setItemsOrder(),this.draggingService.tileLayoutSettings.items=this.items.toArray()})}ngAfterContentInit(){this.setItemsOrder()}ngOnChanges(e){(e.columns||e.columnWidth)&&this.applyColStyling(),e.rowHeight&&this.applyRowStyling(),ot("reorderable",e)&&this.draggingService.reorderable.next(e.reorderable.currentValue),ot("resizable",e)&&this.draggingService.resizable.next(e.resizable.currentValue),(e.gap||e.autoFlow||e.columns)&&(this.draggingService.tileLayoutSettings=this.draggingServiceConfig(),e.autoFlow&&this.applyAutoFlow(_d[e.autoFlow.previousValue]||"",_d[e.autoFlow.currentValue])),ot("navigable",e)&&this.navigationService.navigable.next(e.navigable.currentValue)}ngOnDestroy(){this.draggable&&this.draggable.destroy(),this.subs.unsubscribe()}handlePress({originalEvent:e}){this.draggingService.handlePress(e)}handleDrag({originalEvent:e}){this.draggingService.handleDrag(e)}handleRelease({originalEvent:e}){this.draggingService.handleRelease(e)}applyColStyling(){let e=typeof this.columnWidth=="number"?`${this.columnWidth}px`:this.columnWidth,i=`repeat(${this.columns}, ${e})`;this.renderer.setStyle(this.elem.nativeElement,"grid-template-columns",i)}applyRowStyling(){let i=`${typeof this.rowHeight=="number"?`${this.rowHeight}px`:this.rowHeight}`;this.renderer.setStyle(this.elem.nativeElement,"grid-auto-rows",i)}draggingServiceConfig(){return{tileLayoutElement:this.elem?this.elem.nativeElement:void 0,hintElement:this.hint?this.hint.nativeElement:void 0,gap:this.gap,columns:this.columns,autoFlow:this.autoFlow,items:this.items?this.items.toArray():[]}}initializeDraggable(){this.draggable=new fp({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular(()=>this.draggable.bindTo(this.elem.nativeElement))}applyAutoFlow(e,i){let o=this.elem.nativeElement;e&&this.renderer.removeClass(o,e),this.autoFlow!=="none"&&He(i)&&this.renderer.addClass(o,i)}setItemsOrder(){this.items.forEach((e,i)=>{He(e.order)||(e.order=i)})}}return t.\u0275fac=function(e){return new(e||t)(c(re),c(W),c(X),c(ie),c(Nd),c(Pd))},t.\u0275cmp=k({type:t,selectors:[["kendo-tilelayout"]],contentQueries:function(e,i,o){if(e&1&&B(o,k_,4),e&2){let s;D(s=E())&&(i.items=s)}},viewQuery:function(e,i){if(e&1&&j(kI,5),e&2){let o;D(o=E())&&(i.hint=o.first)}},hostVars:10,hostBindings:function(e,i){e&2&&(M("role",i.hostRole)("dir",i.direction),ce("gap",i.gapStyle)("padding",i.gapStyle),N("k-tilelayout",i.hostClass)("k-pos-relative",i.hostClass))},inputs:{columns:"columns",columnWidth:"columnWidth",gap:"gap",reorderable:"reorderable",resizable:"resizable",rowHeight:"rowHeight",autoFlow:"autoFlow",navigable:"navigable"},outputs:{reorder:"reorder",resize:"resize"},features:[Y([ie,Nd,Pd,{provide:ht,useValue:"kendo.tilelayout.component"}]),be],ngContentSelectors:Mt,decls:4,vars:15,consts:[["hint",""],[1,"k-layout-item-hint","k-layout-item-hint-reorder"],["kendoWatermarkOverlay","",4,"ngIf"],["kendoWatermarkOverlay",""]],template:function(e,i){e&1&&(Le(),Ne(0),b(1,"div",1,0),_(3,xI,1,0,"div",2)),e&2&&(u(),ce("display","none")("order",i.targetOrder)("grid-column-end",i.draggedItemWrapper==null?null:i.draggedItemWrapper.style.gridColumnEnd)("grid-row-end",i.draggedItemWrapper==null?null:i.draggedItemWrapper.style.gridRowEnd)("grid-column-start",i.currentColStart)("grid-row-start",i.currentRowStart)("z-index","1"),u(2),l("ngIf",i.showLicenseWatermark))},dependencies:[oe,Bn],encapsulation:2}),t})(),Fk=(()=>{class t{constructor(){this.hostClass=!0,this.minHeight=0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["kendo-tilelayout-item-body"]],hostVars:6,hostBindings:function(e,i){e&2&&(ce("min-height",i.minHeight),N("k-tilelayout-item-body",i.hostClass)("k-card-body",i.hostClass))},ngContentSelectors:Mt,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})(),Gk=[Sk,bk],b3=[v_,...Gk],Vk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,Qt]}),t})(),zk=[E_,w_,Ek,y_],Uk=[C_,S_,b_,Dk,D_,...zk],D3=[...Uk],x_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me]}),t})(),Bk=[s_,a_,l_,r_],jk=[u_,pk,mk,...Bk],E3=[Od,d_,...jk],Hk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,Qt,jn]}),t})(),Kk=[Tk,I_],w3=[...Kk],$k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,Ni,Qt]}),t})(),Wk=[MT,Es,$f,Xf,Wf],y3=[...Wk],qk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,Qt,jn]}),t})(),Qk=[zT,Ed],I3=[yd,...Qk],Jk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,hr,Qt]}),t})(),Yk=[h_,p_,m_],Zk=[vk,Ck,...Yk],T3=[g_,f_,__,...Zk],Xk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,nm,Qt]}),t})(),ex=[Is,Pa,La,Na,n_,YT,o_,e_],k3=[...ex,i_],Hd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,Pi,Qt,fi,jn]}),t})(),tx=[Pk,k_,Fd,Fk,T_],x3=[...tx],ix=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,jn]}),t})(),Gd={top:"start",middle:"center",bottom:"end",stretch:"stretch"},Af="k-justify-content",nx="k-justify-items",Vd="k-align-items",ox=t=>{if(typeof t=="number"||typeof t=="string")return{cols:t,rows:t};{let n={};return n.rows=t.rows?t.rows:0,n.cols=t.cols?t.cols:0,n}},sx=t=>{if(t.rows===t.cols)return typeof t.rows=="number"?`${t.rows}px`:t.rows;{let n=`${typeof t.rows=="number"?t.rows+"px":t.rows}`,e=`${typeof t.cols=="number"?t.cols+"px":t.cols}`;return`${n} ${e}`}},rx=(t,n)=>{let e=[];return t.forEach(i=>{if(typeof i=="number")e.push(`${i}px`);else if(typeof i=="string")e.push(i);else if(n==="rows"){let o=i.height;o?e.push(typeof o=="number"?`${o}px`:o):e.push("0px")}else{let o=i.width;o?e.push(typeof o=="number"?`${o}px`:o):e.push("0px")}}),e},ax=t=>{for(let n of t)if(!(typeof n=="number")&&!(typeof n=="string")&&!(typeof n=="object"&&n!==null))return!1;return!0},lx=(()=>{class t{constructor(e,i,o){this.renderer=e,this.element=i,this.localization=o,this.hostClass=!0,this.gap=0,this.orientation="horizontal",this._align={horizontal:"stretch",vertical:"stretch"},pt(xi)}get horizontalClass(){return this.orientation==="horizontal"}get verticalClass(){return this.orientation==="vertical"}get dir(){return this.direction}set align(e){this._align=Object.assign({},this._align,e),this.handleAlignClasses()}get align(){return this._align}ngAfterViewInit(){this.handleAlignClasses(),this.setGap()}ngOnChanges(e){ot("gap",e)&&this.setGap(),ot("orientation",e)&&this.handleAlignClasses()}handleAlignClasses(){let e=this.element.nativeElement;He(this.justifyClass)&&this.renderer.removeClass(e,this.justifyClass),He(this.alignClass)&&this.renderer.removeClass(e,this.alignClass),this.orientation==="horizontal"?(this.justifyClass=`${Af}-${this.align.horizontal}`,this.alignClass=`${Vd}-${Gd[this.align.vertical]}`):(this.justifyClass=`${Af}-${Gd[this.align.vertical]}`,this.alignClass=`${Vd}-${this.align.horizontal}`),this.renderer.addClass(e,this.justifyClass),this.renderer.addClass(e,this.alignClass)}setGap(){let e=TT(this.gap)?`${this.gap}px`:this.gap;this.renderer.setStyle(this.element.nativeElement,"gap",e)}get direction(){return this.localization.rtl?"rtl":"ltr"}}return t.\u0275fac=function(e){return new(e||t)(c(X),c(W),c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-stacklayout"]],hostVars:7,hostBindings:function(e,i){e&2&&(M("dir",i.dir),N("k-stack-layout",i.hostClass)("k-hstack",i.horizontalClass)("k-vstack",i.verticalClass))},inputs:{align:"align",gap:"gap",orientation:"orientation"},exportAs:["kendoStackLayout"],features:[Y([ie,{provide:ht,useValue:"kendo.stacklayout"}]),be],ngContentSelectors:Mt,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})(),cx=[lx],R3=[...cx],dx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me]}),t})(),ux=(()=>{class t{constructor(e,i,o){this.renderer=e,this.element=i,this.localization=o,this.hostClass=!0,this.gap=0,this._align={horizontal:"stretch",vertical:"stretch"},pt(xi)}get dir(){return this.direction}set align(e){this._align=Object.assign({},this._align,e),this.handleAlignClasses()}get align(){return this._align}ngAfterViewInit(){this.handleAlignClasses(),this.handleGridTemplateStyling("rows"),this.handleGridTemplateStyling("cols"),this.setGap()}ngOnChanges(e){ot("gap",e)&&this.setGap(),ot("rows",e)&&this.handleGridTemplateStyling("rows"),ot("cols",e)&&this.handleGridTemplateStyling("cols")}handleAlignClasses(){let e=this.element.nativeElement;He(this.justifyClass)&&this.renderer.removeClass(e,this.justifyClass),He(this.alignClass)&&this.renderer.removeClass(e,this.alignClass),this.justifyClass=`${nx}-${this.align.horizontal}`,this.alignClass=`${Vd}-${Gd[this.align.vertical]}`,this.renderer.addClass(e,this.justifyClass),this.renderer.addClass(e,this.alignClass)}setGap(){let e=ox(this.gap),i=sx(e);this.renderer.setStyle(this.element.nativeElement,"gap",i)}handleGridTemplateStyling(e){if(!He(this[e]))return;if(!ax(this[e])&&fe()){let r=e==="rows"?"GridLayoutRowSize":"GridLayoutColSize";throw new Error(`The provided ${e} value contains invalid elements. The array supports values of type number, string or ${r}.`)}let o=e==="rows"?"grid-template-rows":"grid-template-columns",s=rx(this[e],e);this.renderer.setStyle(this.element.nativeElement,o,s.join(" "))}get direction(){return this.localization.rtl?"rtl":"ltr"}}return t.\u0275fac=function(e){return new(e||t)(c(X),c(W),c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-gridlayout"]],hostVars:3,hostBindings:function(e,i){e&2&&(M("dir",i.dir),N("k-grid-layout",i.hostClass))},inputs:{rows:"rows",cols:"cols",gap:"gap",align:"align"},exportAs:["kendoGridLayout"],features:[Y([ie,{provide:ht,useValue:"kendo.gridlayout"}]),be],ngContentSelectors:Mt,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})(),hx=(()=>{class t{constructor(e,i){this.renderer=e,this.element=i}ngOnInit(){this.setItemStyle()}ngOnChanges(){this.setItemStyle()}setItemStyle(){let e=this.row||"auto",i=this.col||"auto",o=this.rowSpan?`span ${this.rowSpan}`:"auto",s=this.colSpan?`span ${this.colSpan}`:"auto",r=`${e} / ${i} / ${o} / ${s}`;this.renderer.setStyle(this.element.nativeElement,"grid-area",r)}}return t.\u0275fac=function(e){return new(e||t)(c(X),c(W))},t.\u0275cmp=k({type:t,selectors:[["kendo-gridlayout-item"]],inputs:{row:"row",col:"col",rowSpan:"rowSpan",colSpan:"colSpan"},features:[be],ngContentSelectors:Mt,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})(),px=[ux,hx],O3=[...px],mx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me]}),t})(),Lf={title:"title",subtitle:"subtitle",description:"description",date:"date",expanded:"expanded",images:"images",actions:"actions"},gx=(t,n)=>t.map(e=>fx(e,n)),fx=(t,n)=>({title:t[n.title]||t.title,date:t[n.date]||t.date,subtitle:t[n.subtitle]||t.subtitle,description:t[n.description]||t.description,expanded:t[n.expanded]||t.expanded,images:t[n.images]||t.images,actions:t[n.actions]||t.actions});var Ra=(()=>{class t{onToggle(e){this.timeline&&this.timeline.onToggle?.emit(e)}onActionClick(e){this.timeline&&this.timeline.onActionClick?.emit(e)}onNavigate(e){this.timeline&&this.timeline.onNavigate?.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),R_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoTimelineCardHeaderTemplate",""]]}),t})(),O_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoTimelineCardBodyTemplate",""]]}),t})(),M_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoTimelineCardActionsTemplate",""]]}),t})(),Oa=(()=>{class t{constructor(e,i,o){this.element=e,this.timelineService=i,this.renderer=o,this.expanded=!1,this.collapsible=!0,this.reversed=!1,this.hostClass=!0,this.calloutSvgIcon=mr,this.calloutFontIcon="arrow-chevron-right",this.animationState=this.expanded?"expanded":"collapsed",this.animationInProgress=!1}set calloutStyle(e){!this.calloutElementRef||!this.calloutElementRef.nativeElement.classList.contains("k-callout-n")||(this.calloutElementRef.nativeElement.style.left=e?.left)}get collapsedClass(){return!this.expanded&&!this.animationInProgress&&this.animationState==="collapsed"}onComponentKeyDown(e){this.navigable&&(e.keyCode===T.Space||e.keyCode===T.Enter)&&(e.preventDefault(),this.collapsible&&this.orientation==="vertical"&&(this.expanded=!this.expanded))}get role(){return this.orientation==="vertical"?"button":"tabpanel"}get ariaLive(){return this.orientation==="vertical"?"polite":null}get ariaExpanded(){return this.orientation==="vertical"?this.expanded:null}ngAfterViewInit(){this.makeOverflowVisible()}ngOnChanges(e){ot("collapsible",e,!1)&&(this.collapsible||(this.expanded=!0))}toggle(){this.orientation==="vertical"&&(this.expanded=this.collapsible?!this.expanded:!0,this.timelineService.onToggle(this.index))}expand(){this.expanded||(this.expanded=!0,this.timelineService.onToggle(this.index))}collapse(){!this.collapsible||!this.expanded||(this.expanded=!1,this.timelineService.onToggle(this.index))}onActionClick(e){e.stopPropagation(),this.timelineService.onActionClick(this.index)}animationStart(){this.animationInProgress=!0}animationDone(e){this.animationInProgress=!1,e.toState==="expanded"&&e.fromState!=="expanded"?(this.animationState="expanded",this.makeOverflowVisible()):e.toState==="collapsed"&&e.fromState!=="collapsed"&&(this.animationState="collapsed")}makeOverflowVisible(){if(this.orientation==="vertical")return;let e=this.element?.nativeElement.querySelector(".k-card-body");e&&this.renderer.setStyle(e,"overflow","auto")}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(Ra),c(X))},t.\u0275cmp=k({type:t,selectors:[["kendo-timeline-card"]],viewQuery:function(e,i){if(e&1&&j(RI,5),e&2){let o;D(o=E())&&(i.calloutElementRef=o.first)}},hostVars:4,hostBindings:function(e,i){e&1&&O("keydown",function(s){return i.onComponentKeyDown(s)}),e&2&&N("k-timeline-card",i.hostClass)("k-collapsed",i.collapsedClass)},inputs:{event:"event",expanded:"expanded",collapsible:"collapsible",reversed:"reversed",orientation:"orientation",navigable:"navigable",tabIndex:"tabIndex",animationDuration:"animationDuration",index:"index",eventWidth:"eventWidth",eventHeight:"eventHeight",headerTemplate:"headerTemplate",bodyTemplate:"bodyTemplate",actionsTemplate:"actionsTemplate",calloutStyle:"calloutStyle"},exportAs:["kendoTimelineCard"],features:[Y([]),be],decls:4,vars:14,consts:[["callout",""],[1,"k-card-with-callout","k-card-vertical",3,"click","ngStyle","width"],[1,"k-timeline-card-callout","k-card-callout",3,"ngClass"],["class","k-card-inner",4,"ngIf"],[1,"k-card-inner"],[4,"ngIf"],["kendoCardTitle","",4,"ngIf"],["kendoCardSubtitle","",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoCardTitle",""],[1,"k-event-title"],["kendoButton","","class","k-event-collapse","fillMode","flat","tabindex","-1","type","button",3,"icon","svgIcon",4,"ngIf"],["kendoButton","","fillMode","flat","tabindex","-1","type","button",1,"k-event-collapse",3,"icon","svgIcon"],["kendoCardSubtitle",""],["class","k-card-description",4,"ngIf"],[1,"k-card-description"],[4,"ngFor","ngForOf"],["kendoCardMedia","",3,"src","alt",4,"ngIf"],["kendoCardMedia","",3,"src",4,"ngIf"],["kendoCardMedia","",3,"src","alt"],["kendoCardMedia","",3,"src"],["class","k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary","role","button",3,"href","target","click",4,"ngFor","ngForOf"],["role","button",1,"k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-primary",3,"click","href","target"]],template:function(e,i){if(e&1){let o=K();g(0,"kendo-card",1),O("click",function(){return y(o),I(i.toggle())}),b(1,"span",2,0),_(3,YI,7,5,"div",3),f()}e&2&&(l("ngStyle",We(8,OI,i.orientation==="horizontal"?i.eventHeight+"px":null))("width",i.orientation==="horizontal"?"auto":i.eventWidth+"px"),M("role",i.role)("aria-live",i.ariaLive)("aria-expanded",i.ariaExpanded)("tabindex",i.tabIndex),u(),l("ngClass",mi(10,MI,i.orientation==="horizontal",i.orientation==="vertical"&&!i.reversed,i.orientation==="vertical"&&i.reversed)),u(2),l("ngIf",i.event))},dependencies:[st,qe,oe,Fe,Pt,C_,S_,b_,D_,E_,w_,y_,vt],encapsulation:2,data:{animation:[Cn("toggle",[wi("collapsed",Ce({height:"0","overflow-y":"hidden",display:"none"})),wi("expanded",Ce({height:"*","overflow-y":"hidden",display:"block"})),Ai("collapsed <=> expanded",[lt("{{animationDuration}}ms")],{params:{animationDuration:"400"}})])]}}),t})(),Nf=200,_x=25,Pf=3,zd=(()=>{class t{constructor(e,i,o,s,r){this.cdr=e,this._zone=i,this.renderer=o,this.timelineService=s,this.localization=r,this.events=[],this.svgLeftIcon=bn,this.svgRightIcon=Sn,this.animationState="center",this.translateValue=0,this.eventsInInterval=[0,1,2],this.selectedCardIndex=0,this.tabWidth=Nf,this.firstCircleInView=0,this.visibleEvents=[],this.trackItems=[],this.previousTitle="previous",this.nextTitle="next",this.subscriptions=new Se}get selectedEvent(){return this._selectedEvent}set selectedEvent(e){if(this._selectedEvent===e)return;let i=this.events.findIndex(o=>o===e);i===-1&&e!==null||(this._selectedEvent=e,this.selectedEventIndex=i,this.calloutStyle=this.calloutOffset)}ngOnInit(){this._zone.runOutsideAngular(()=>ae()&&this.subscriptions.add(Wt(window,"resize").subscribe(this.handleWindowResize.bind(this)))),this.l10nChange(),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.events.length>0&&(this.selectedEvent=this.events[0]),this.events.forEach(e=>{e.flag&&this.trackItems.push({isFlag:e.flag}),this.trackItems.push(e)})}ngAfterViewInit(){ae()&&(this.subscriptions.add(this.renderer.listen(this.trackElementRef.nativeElement,"keydown",this.onKeyDown.bind(this))),this.trackWrapWidth=this.trackElementRef.nativeElement.getBoundingClientRect().width,this.scrollableTrackWidth=this.scrollableTrackElementRef.nativeElement.getBoundingClientRect().width,this._zone.runOutsideAngular(()=>{this.onCirclesChange(),this.subscriptions.add(this.circleElementRefs.changes.subscribe(this.onCirclesChange.bind(this))),this.subscriptions.add(this.cardElementRefs.changes.subscribe(this.onCardsChange.bind(this)))}),this.events.length!==0&&(this.onCardsChange(),this.cardComponents.get(this.selectedCardIndex)&&(this.cardComponents.get(this.selectedCardIndex).calloutStyle=this.calloutOffset,this.focusTrackItem(0))))}ngOnChanges(e){ot("events",e)&&(!this.events||this.events.length===0?(this.selectedEvent=null,this.trackItems=[],this.visibleEvents=[]):(this.trackItems=[],this.events.forEach(i=>{i.flag&&this.trackItems.push({isFlag:i.flag}),this.trackItems.push(i)}),this.visibleEvents=this.trackItems.slice(this.firstCircleInView,this.firstCircleInView+this.visibleTabsCount).filter(i=>!i.isFlag),this.selectedEvent=this.events[0],this.cdr.detectChanges(),this.calloutStyle=this.calloutOffset,this.focusTrackItem(0)))}ngOnDestroy(){this.subscriptions.unsubscribe()}handleWindowResize(){ae()&&this.trackWrapWidth!==this.trackElementRef.nativeElement.getBoundingClientRect().width&&(this.cardWidth=this.cardComponents.get(this.selectedCardIndex).element.nativeElement.offsetWidth,this.transformCards(),this.trackWrapWidth=this.trackElementRef.nativeElement.getBoundingClientRect().width,this.scrollableTrackWidth=this.scrollableTrackElementRef.nativeElement.getBoundingClientRect().width,this.changeTabsCount(),this._zone.run(()=>{this.cardComponents.get(this.selectedCardIndex).calloutStyle=this.calloutOffset}))}onTransitionEnd(){this.cardElementRefs?.forEach(e=>this.renderer.removeStyle(e.nativeElement,"transition-duration")),this.cardComponents.get(this.selectedCardIndex).event=this.selectedEvent,this.calloutStyle=this.calloutOffset}onTrackTransitionEnd(){this.calloutStyle=this.calloutOffset}onSlideDone(){this.calloutStyle=this.calloutOffset}previous(){this.firstCircleInView!==0&&this.updateInterval(!1)}previousClick(){this.previous(),this.timelineService.onNavigate("previous")}next(){!this.visibleTabsCount||this.firstCircleInView+this.visibleTabsCount>this.trackItems.length||this.updateInterval(!0)}nextClick(){this.next(),this.timelineService.onNavigate("next")}open(e){if(!(e<0||e>=this.events.length)){if(this.visibleEvents.findIndex(i=>i===this.events[e])===-1){let i=this.trackItems.findIndex(s=>s===this.events[e]),o=Math.floor(i/this.visibleTabsCount)*this.visibleTabsCount;this.navigateToInterval(o,e)}this.selectedEvent=this.events[e],this.selectedCardIndex=this.getOtherSelectedCardIndex(e>this.selectedEventIndex),this.calloutStyle=this.calloutOffset,this.focusTrackItem(this.selectedEventIndex),this.animateCards()}}navigateToEvent(e){let i=this.events.findIndex(o=>o===this.trackItems[e]);this.selectedEventIndex!==i&&(this.selectedEvent=this.events[i],this.selectedCardIndex=this.getOtherSelectedCardIndex(e>i),this.calloutStyle=this.calloutOffset,this.animateCards())}getOtherSelectedCardIndex(e){return e?this.selectedCardIndex===0?Pf-1:this.selectedCardIndex-1:this.selectedCardIndex===Pf-1?0:this.selectedCardIndex+1}tabStyle(){return this.tabFlex?{flex:`1 0 ${this.tabFlex}%`}:{}}getTransformation(e,i){return i===this.selectedCardIndex-1||i===this.selectedCardIndex+2?`translate3d(${-e}px, 0, 0)`:i===this.selectedCardIndex+1||i===this.selectedCardIndex-2?`translate3d(${e}px, 0, 0)`:"translate3d(0, 0, 0)"}getState(e){return e===this.selectedCardIndex?"center":e===this.selectedCardIndex-1||e===this.selectedCardIndex+2?"left":"right"}get calloutOffset(){if(!ae())return;if(!this.circleElementRefs?.first||!this.trackElementRef||!tt(this.selectedEventIndex))return{};let e=this.circleElementRefs.get(this.selectedEventIndex).nativeElement.getBoundingClientRect().left+this.circleElementRefs.get(this.selectedEventIndex).nativeElement.offsetWidth/2,i=this.trackElementRef.nativeElement.getBoundingClientRect().left;return{left:`${e-i}px`}}get isFirstRange(){return this.firstCircleInView===0}get isLastRange(){return!this.circleElementRefs?.first&&!this.flagElementRefs?.first?!1:this.trackItems.length===0||this.firstCircleInView+this.visibleTabsCount>=this.trackItems.length}onCardsChange(){this.cardElementRefs?.get(this.selectedCardIndex)&&(this.cardWidth=this.cardElementRefs.get(this.selectedCardIndex).nativeElement.offsetWidth,this.transformCards())}onCirclesChange(){if(!this.circleElementRefs?.first)return;this.circleElementRefs.map(i=>i.nativeElement).forEach((i,o)=>{this.subscriptions.add(this.renderer.listen(i,"click",()=>{this.focusTrackItem(o)}))}),this.circleElementRefs.first.nativeElement.getBoundingClientRect().width>Nf&&(this.tabWidth=this.circleElementRefs.first.nativeElement.getBoundingClientRect().width+_x),this.changeTabsCount(),this.visibleEvents=this.trackItems.slice(this.firstCircleInView,this.firstCircleInView+this.visibleTabsCount).filter(i=>!i.isFlag)}onKeyDown(e){this.navigable&&(e.preventDefault(),e.keyCode===T.Home?this.onHomeKey():e.keyCode===T.End?this.onEndKey():e.keyCode===T.ArrowRight?this.onArrowRightKey():e.keyCode===T.ArrowLeft&&this.onArrowLeftKey())}focusTrackItem(e){if(!ae()||!this.circleElementRefs||e<0||e>=this.circleElementRefs.length)return;let i=this.circleElementRefs.find(s=>s.nativeElement.hasAttribute("aria-selected"));i&&(this.removeTrackItemAttributes(i),this.removeCardsAttributes());let o=this.circleElementRefs.get(e).nativeElement;this.setTrackItemAttributes(o,e)}setTrackItemAttributes(e,i){if(!ae())return;let o=this.cardComponents.get(this.selectedCardIndex).element.nativeElement.querySelector(".k-card"),s=this.circleElementRefs.get(i).nativeElement;this.renderer.addClass(e,"k-focus"),this.renderer.setAttribute(e,"aria-selected","true"),this.assignAriaLabel(o,s),this.assignAriaDescribedBy(o,s)}removeTrackItemAttributes(e){this.renderer.removeClass(e.nativeElement,"k-focus"),this.renderer.removeAttribute(e.nativeElement,"aria-selected"),this.renderer.removeAttribute(e.nativeElement,"id"),this.renderer.removeAttribute(e.nativeElement,"aria-describedby")}removeCardsAttributes(){this.cardElementRefs.forEach(e=>{this.renderer.removeAttribute(e.nativeElement.querySelector(".k-card"),"id"),this.renderer.removeAttribute(e.nativeElement.querySelector(".k-card"),"aria-label")})}assignAriaLabel(e,i){let o=`k-${ri()}`;this.renderer.setAttribute(i,"id",o),this.renderer.setAttribute(e,"aria-label",o)}assignAriaDescribedBy(e,i){let o=`k-${ri()}`;this.renderer.setAttribute(e,"id",o),this.renderer.setAttribute(i,"aria-describedby",o)}updateInterval(e){let i=e?this.firstCircleInView+this.visibleTabsCount:this.firstCircleInView-this.visibleTabsCount;(i<0||i>=this.trackItems.length)&&(i=0),this.navigateToInterval(i,0,e,!e)}onHomeKey(){this.selectedEvent!==this.events[0]&&this.navigateToFirstInterval()}onEndKey(){this.selectedEvent!==this.events[this.events.length-1]&&this.navigateToLastInterval()}onArrowRightKey(){this.navigateToOtherEvent(!0)}onArrowLeftKey(){this.navigateToOtherEvent(!1)}navigateToFirstInterval(){this.navigateToInterval(0)}navigateToLastInterval(){let e=Math.floor((this.trackItems.length-1)/this.visibleTabsCount)*this.visibleTabsCount;this.navigateToInterval(e,this.events.length-1)}navigateToOtherEvent(e){let i=e?1:-1,o=this.selectedEventIndex+i;o<0||o>=this.events.length||(this.visibleEvents.findIndex(s=>s===this.events[o])===-1?this.updateInterval(e):(this.selectedEvent=this.events[o],this.selectedCardIndex=this.getOtherSelectedCardIndex(e),this.focusTrackItem(this.selectedEventIndex),this.animateCards(),this.cdr.markForCheck()))}navigateToInterval(e,i=0,o=!1,s=!1){let r=e+this.visibleTabsCount!p.isFlag),o?this.selectedEvent=this.visibleEvents[0]:s?this.selectedEvent=this.visibleEvents[this.visibleEvents.length-1]:this.selectedEvent=this.events[i],this.selectedCardIndex=this.getOtherSelectedCardIndex(a),this.cdr.detectChanges(),this.focusTrackItem(this.selectedEventIndex),this.animateCards(),this.calloutStyle=this.calloutOffset,this.cdr.markForCheck()}animateCards(){this.animationDuration&&(this.cardComponents.get(this.selectedCardIndex).event=null),this.cardElementRefs.forEach((e,i)=>{this.renderer.setStyle(e.nativeElement,"transform",this.getTransformation(this.cardWidth,i)),this.renderer.setStyle(e.nativeElement,"transition-duration",`${this.animationDuration||0}ms`)})}transformCards(){this.cardElementRefs.forEach((e,i)=>this.renderer.setStyle(e.nativeElement,"transform",this.getTransformation(this.cardWidth,i)))}changeTabsCount(){if(this.visibleTabsCount=Math.round(this.scrollableTrackWidth/this.tabWidth),this.tabFlex!==100/this.visibleTabsCount&&(this.tabFlex=100/this.visibleTabsCount,this.circleElementRefs.forEach(e=>this.renderer.setStyle(e.nativeElement,"flex",`1 0 ${this.tabFlex}%`)),this.flagElementRefs.forEach(e=>this.renderer.setStyle(e.nativeElement,"flex",`1 0 ${this.tabFlex}%`)),this.cdr.detectChanges(),this.visibleEvents=this.trackItems.slice(this.firstCircleInView,this.firstCircleInView+this.visibleTabsCount).filter(e=>!e.isFlag),!this.visibleEvents.find(e=>e===this.selectedEvent))){let e=this.trackItems.findIndex(i=>i===this.selectedEvent);this.navigateToInterval(e,this.selectedEventIndex)}}l10nChange(){this.localization.get("previous")&&(this.previousTitle=this.localization.get("previous")),this.localization.get("next")&&(this.nextTitle=this.localization.get("next")),this.cdr.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c(ve),c(re),c(X),c(Ra),c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-timeline-horizontal"]],viewQuery:function(e,i){if(e&1&&(j(ZI,5),j(XI,5),j(Kf,5,W),j(eT,5),j(tT,5),j(Oa,5)),e&2){let o;D(o=E())&&(i.trackElementRef=o.first),D(o=E())&&(i.scrollableTrackElementRef=o.first),D(o=E())&&(i.cardElementRefs=o),D(o=E())&&(i.circleElementRefs=o),D(o=E())&&(i.flagElementRefs=o),D(o=E())&&(i.cardComponents=o)}},inputs:{events:"events",alterMode:"alterMode",collapsibleEvents:"collapsibleEvents",navigable:"navigable",showDateLabels:"showDateLabels",animationDuration:"animationDuration",eventHeight:"eventHeight",dateFormat:"dateFormat",headerTemplate:"headerTemplate",bodyTemplate:"bodyTemplate",actionsTemplate:"actionsTemplate"},exportAs:["kendoTimelineHorizontal"],features:[Y([]),be],decls:10,vars:18,consts:[["track",""],["scrollableTrack",""],["trackFlag",""],["trackCircle",""],["card",""],[1,"k-timeline-track-wrap"],["kendoButton","","rounded","full","tabindex","-1","type","button",1,"k-timeline-arrow","k-timeline-arrow-left",3,"click","svgIcon","title","disabled"],["kendoButton","","rounded","full","tabindex","-1","type","button",1,"k-timeline-arrow","k-timeline-arrow-right",3,"click","svgIcon","title","disabled"],[1,"k-timeline-track"],[1,"k-timeline-scrollable-wrap",3,"transitionend"],[4,"ngFor","ngForOf"],[1,"k-timeline-events-list"],["class","k-timeline-scrollable-wrap",3,"ngStyle",4,"ngIf"],["class","k-timeline-flag-wrap k-timeline-track-item",3,"ngStyle",4,"ngIf"],["class","k-timeline-track-item",3,"ngStyle","click",4,"ngIf"],[1,"k-timeline-flag-wrap","k-timeline-track-item",3,"ngStyle"],[1,"k-timeline-flag"],[1,"k-timeline-track-item",3,"click","ngStyle"],[1,"k-timeline-date-wrap"],["class","k-timeline-date",4,"ngIf"],[1,"k-timeline-circle"],[1,"k-timeline-date"],[1,"k-timeline-scrollable-wrap",3,"ngStyle"],["class","k-timeline-event",3,"transitionend",4,"ngFor","ngForOf"],[1,"k-timeline-event",3,"transitionend"],["orientation","horizontal",3,"event","expanded","collapsible","calloutStyle","ngStyle","tabIndex","navigable","index","headerTemplate","bodyTemplate","actionsTemplate","eventHeight"]],template:function(e,i){if(e&1){let o=K();g(0,"div",5,0)(2,"button",6),O("click",function(){return y(o),I(i.previousClick())}),f(),g(3,"button",7),O("click",function(){return y(o),I(i.nextClick())}),f(),g(4,"div",8)(5,"ul",9,1),O("@trackSlide.done",function(){return y(o),I(i.onSlideDone())})("transitionend",function(){return y(o),I(i.onTrackTransitionEnd())}),_(7,cT,3,2,"ng-container",10),f()()(),g(8,"div",11),_(9,uT,2,9,"ul",12),f()}e&2&&(u(2),l("svgIcon",i.svgLeftIcon)("title",i.previousTitle)("disabled",i.isFirstRange),M("aria-hidden",!0),u(),l("svgIcon",i.svgRightIcon)("title",i.nextTitle)("disabled",i.isLastRange),M("aria-hidden",!0),u(2),l("@trackSlide",et(15,Aa,i.animationState,We(13,iT,i.translateValue))),M("role","tablist")("tabindex","0"),u(2),l("ngForOf",i.trackItems),u(2),l("ngIf",i.selectedEvent))},dependencies:[qe,oe,Pt,vt,Oa,jl],encapsulation:2,data:{animation:[Cn("trackSlide",[wi("left",Ce({transform:"translateX({{transformValue}}%)"}),{params:{transformValue:"0"}}),wi("right",Ce({transform:"translateX({{transformValue}}%)"}),{params:{transformValue:"0"}}),wi("center",Ce({transform:"translateX(0)"}))]),Cn("eventsSlide",[Ai("* => right",[lt("{{animationDuration}}ms",Ce({transform:"translateX(-100%)"}))],{params:{animationDuration:"400"}}),Ai("* => left",[lt("{{animationDuration}}ms",Ce({transform:"translateX(100%)"}))],{params:{animationDuration:"400"}})])]}}),t})(),Ud=(()=>{class t{constructor(e){this.renderer=e,this.events=[],this.subscriptions=new Se}ngAfterViewInit(){this.ariaDescribedByAllEvents(),this.subscriptions.add(this.innerDateElementRefs.changes.subscribe(()=>{this.innerDateElementRefs?.length>0?this.ariaDescribedByAllEvents():this.removeAriaDescribedBy()}))}expand(e){e<0||e>=this.cards.length||this.cards.get(e).expand()}collapse(e){e<0||e>=this.cards.length||this.cards.get(e).collapse()}ariaDescribedByAllEvents(){this.cards?.forEach((e,i)=>{let o=e.element.nativeElement.querySelector(".k-card"),s=this.dateElementRefs.get(i).nativeElement.querySelector(".k-timeline-date");s&&this.assignAriaDescribedBy(o,s)})}removeAriaDescribedBy(){this.cards?.forEach(e=>{let i=e.element.nativeElement.querySelector(".k-card");this.renderer.removeAttribute(i,"aria-describedby")})}assignAriaDescribedBy(e,i){let o=`k-${ri()}`;this.renderer.setAttribute(i,"id",o),this.renderer.setAttribute(e,"aria-describedby",o)}}return t.\u0275fac=function(e){return new(e||t)(c(X))},t.\u0275cmp=k({type:t,selectors:[["kendo-timeline-vertical"]],viewQuery:function(e,i){if(e&1&&(j(Kf,5),j(hT,5),j(pT,5)),e&2){let o;D(o=E())&&(i.cards=o),D(o=E())&&(i.dateElementRefs=o),D(o=E())&&(i.innerDateElementRefs=o)}},inputs:{events:"events",alterMode:"alterMode",collapsibleEvents:"collapsibleEvents",navigable:"navigable",showDateLabels:"showDateLabels",animationDuration:"animationDuration",eventWidth:"eventWidth",dateFormat:"dateFormat",headerTemplate:"headerTemplate",bodyTemplate:"bodyTemplate",actionsTemplate:"actionsTemplate"},exportAs:["kendoTimelineVertical"],features:[Y([])],decls:1,vars:1,consts:[["dateWrap",""],["card",""],["innerDate",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","k-timeline-flag-wrap",4,"ngIf"],[1,"k-timeline-event",3,"ngClass"],[1,"k-timeline-date-wrap"],["class","k-timeline-date",4,"ngIf"],[1,"k-timeline-circle"],["orientation","vertical",3,"event","expanded","collapsible","reversed","tabIndex","navigable","animationDuration","headerTemplate","bodyTemplate","actionsTemplate","index","eventWidth"],[1,"k-timeline-flag-wrap"],[1,"k-timeline-flag"],[1,"k-timeline-date"]],template:function(e,i){e&1&&_(0,vT,2,1,"ul",3),e&2&&l("ngIf",i.events&&i.events.length>0)},dependencies:[st,qe,oe,Oa,jl],encapsulation:2}),t})(),Ma=(()=>{class t extends gi{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=oi(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["kendo-timeline-messages-base"]],inputs:{previous:"previous",next:"next"},features:[z]}),t})(),A_=(()=>{class t extends Ma{constructor(e){super(),this.service=e}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275dir=A({type:t,selectors:[["","kendoTimelineLocalizedMessages",""]],features:[Y([{provide:Ma,useExisting:ue(()=>t)}]),z]}),t})(),vx=400,Cx=300,Ff=400,Gf=600,Vf="MMMM dd, yyyy",Sx=(()=>{class t{constructor(e){this.timelineService=e,this.orientation="vertical",this.alterMode=!1,this.collapsibleEvents=!0,this.navigable=!0,this.showDateLabels=!0,this.hostClass=!0,this.onToggle=new C,this.onActionClick=new C,this.onNavigate=new C,this._events=[],this._modelFields=Lf,this._eventWidth=Ff,this._eventHeight=Gf,this._dateFormat=Vf,this.originalData=[],this.subscriptions=new Se,this.timelineService.timeline=this}set events(e){if(tt(e)&&(this.originalData=e,this._events=gx(this.originalData,this.modelFields),this._events.sort((i,o)=>i.date.getTime()-o.date.getTime()),this._events.length>0)){let i=this._events[0].date.getFullYear()-1;this._events.forEach(o=>{o.date.getFullYear()!==i&&(i=o.date.getFullYear(),o.flag=i)})}}get events(){return this._events}set modelFields(e){this._modelFields=at(at({},Lf),e),this.originalData&&(this.events=this.originalData)}get modelFields(){return this._modelFields}get eventWidth(){return this._eventWidth}set eventWidth(e){e?this._eventWidth=e:this._eventWidth=Ff}get eventHeight(){return this._eventHeight}set eventHeight(e){e?this._eventHeight=e:this._eventHeight=Gf}get animationDuration(){return typeof this.animation=="number"?this.animation:typeof this.animation=="boolean"&&this.animation||!tt(this.animation)?this.orientation==="horizontal"?vx:Cx:0}set dateFormat(e){tt(e)&&e!==""?this._dateFormat=e:this._dateFormat=Vf}get dateFormat(){return this._dateFormat}get verticalClass(){return this.orientation==="vertical"}get horizontalClass(){return this.orientation==="horizontal"}get alternatingClass(){return this.alterMode===!0&&this.orientation==="vertical"}get collapsibleClass(){return this.collapsibleEvents===!0&&this.orientation==="vertical"}ngAfterContentInit(){this.initTemplates()}ngOnDestroy(){this.subscriptions.unsubscribe()}previous(){this.timelineHorizontal?.previous()}next(){this.timelineHorizontal?.next()}open(e){this.timelineHorizontal?.open(e)}expand(e){this.timelineVertical?.expand(e)}collapse(e){this.timelineVertical?.collapse(e)}initTemplates(){this.headerTemplate=this.cardHeaderTemplate?.first,this.bodyTemplate=this.cardBodyTemplate?.first,this.actionsTemplate=this.cardActionsTemplate?.first,this.subscriptions.add(this.cardHeaderTemplate?.changes.subscribe(()=>{this.headerTemplate=this.cardHeaderTemplate?.first||null})),this.subscriptions.add(this.cardBodyTemplate?.changes.subscribe(()=>{this.bodyTemplate=this.cardBodyTemplate?.first||null})),this.subscriptions.add(this.cardActionsTemplate?.changes.subscribe(()=>{this.actionsTemplate=this.cardActionsTemplate?.first||null}))}}return t.\u0275fac=function(e){return new(e||t)(c(Ra))},t.\u0275cmp=k({type:t,selectors:[["kendo-timeline"]],contentQueries:function(e,i,o){if(e&1&&(B(o,R_,4),B(o,O_,4),B(o,M_,4)),e&2){let s;D(s=E())&&(i.cardHeaderTemplate=s),D(s=E())&&(i.cardBodyTemplate=s),D(s=E())&&(i.cardActionsTemplate=s)}},viewQuery:function(e,i){if(e&1&&(j(zd,5),j(Ud,5)),e&2){let o;D(o=E())&&(i.timelineHorizontal=o.first),D(o=E())&&(i.timelineVertical=o.first)}},hostVars:10,hostBindings:function(e,i){e&2&&N("k-timeline",i.hostClass)("k-timeline-vertical",i.verticalClass)("k-timeline-horizontal",i.horizontalClass)("k-timeline-alternating",i.alternatingClass)("k-timeline-collapsible",i.collapsibleClass)},inputs:{events:"events",modelFields:"modelFields",orientation:"orientation",alterMode:"alterMode",collapsibleEvents:"collapsibleEvents",navigable:"navigable",showDateLabels:"showDateLabels",animation:"animation",eventWidth:"eventWidth",eventHeight:"eventHeight",dateFormat:"dateFormat"},outputs:{onToggle:"onToggle",onActionClick:"onActionClick",onNavigate:"onNavigate"},exportAs:["kendoTimeline"],features:[Y([Ra,ie,{provide:ht,useValue:"kendo.timeline"}])],decls:4,vars:2,consts:()=>{let n;n=$localize`:kendo.timeline.previous|The title of the previous button in horizontal orientation.:previous`;let e;return e=$localize`:kendo.timeline.next|The title of the next button in horizontal orientation.:next`,[["kendoTimelineLocalizedMessages","","previous",n],["kendoTimelineLocalizedMessages","","next",e],[3,"events","alterMode","collapsibleEvents","navigable","showDateLabels","animationDuration","eventWidth","dateFormat","headerTemplate","bodyTemplate","actionsTemplate",4,"ngIf"],[3,"events","collapsibleEvents","navigable","showDateLabels","animationDuration","eventHeight","dateFormat","headerTemplate","bodyTemplate","actionsTemplate",4,"ngIf"],[3,"events","alterMode","collapsibleEvents","navigable","showDateLabels","animationDuration","eventWidth","dateFormat","headerTemplate","bodyTemplate","actionsTemplate"],[3,"events","collapsibleEvents","navigable","showDateLabels","animationDuration","eventHeight","dateFormat","headerTemplate","bodyTemplate","actionsTemplate"]]},template:function(e,i){e&1&&(Xe(0,0)(1,1),_(2,CT,1,11,"kendo-timeline-vertical",2)(3,ST,1,10,"kendo-timeline-horizontal",3)),e&2&&(u(2),l("ngIf",i.orientation==="vertical"),u(),l("ngIf",i.orientation==="horizontal"))},dependencies:[oe,Ud,zd,A_],encapsulation:2}),t})(),bx=(()=>{class t extends Ma{constructor(e){super(),this.service=e}get override(){return!0}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-timeline-messages"]],features:[Y([{provide:Ma,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Dx=[Sx,bx,R_,O_,M_],M3=[...Dx,Ud,zd,Oa,A_],Ex=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,x_,fi,Qt,Wn]}),t})(),A3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Vk,x_,Hk,qk,$k,Jk,Xk,Hd,ix,dx,mx,Ex]}),t})();var P3=String.fromCharCode;var gv=["defaultTemplate"],fv=()=>({lastTarget:!0}),Ix=(t,n,e)=>({field:t,type:"groupIndicator",hint:n,target:e}),Tx=(t,n)=>({keydown:t,click:n});function kx(t,n){if(t&1&&(g(0,"div",4),ee(1),f()),t&2){let e=h();l("context",si(2,fv)),u(),St(" ",e.text," ")}}function xx(t,n){if(t&1){let e=K();g(0,"kendo-chip",7,1),O("contentClick",function(){let o=y(e).$implicit,s=h(2);return I(s.directionChange(o))})("remove",function(){let o=y(e).$implicit,s=h(2);return I(s.remove(o))})("menuToggle",function(){let o=y(e),s=o.$implicit,r=o.first,a=o.last,d=me(1),p=h(2);return I(p.toggleMenu(d,r,a,s.field))})("keydown.alt.arrowdown",function(o){let s=y(e),r=s.$implicit,a=s.first,d=s.last,p=me(1),m=h(2);return o.preventDefault(),I(m.toggleMenu(p,a,d,r.field))}),f()}if(t&2){let e=n.$implicit,i=n.index,o=me(1),s=h(2);l("title",s.getTitle(e))("enableDrag",!0)("context",mi(11,Ix,e.field,s.groupTitles[i],o))("label",s.groupTitles[i])("removable",!0)("hasMenu",!0)("icon",s.getDirectionIcon(e))("svgIcon",s.getDirectionSvgIcon(e)),M("aria-haspopup","menu")("aria-expanded",s.isChipMenuOpen)("aria-controls",s.gridId)}}function Rx(t,n){if(t&1&&(g(0,"kendo-chiplist",5),_(1,xx,2,15,"kendo-chip",6),f()),t&2){let e=h();l("navigable",e.navigable),u(),l("ngForOf",e.groups)}}function Ox(t,n){t&1&&(g(0,"div",4),ee(1,"\xA0"),f()),t&2&&l("context",si(1,fv))}function Mx(t,n){if(t&1&&(g(0,"ul",8)(1,"li",9)(2,"span",10),b(3,"kendo-icon-wrapper",11),g(4,"span",12),ee(5),f()()(),g(6,"li",9)(7,"span",10),b(8,"kendo-icon-wrapper",11),g(9,"span",12),ee(10),f()()()()),t&2){let e=h();l("kendoEventsOutsideAngular",et(13,Tx,e.handleKeyDown,e.handleClick)),u(),M("aria-disabled",e.first),u(),N("k-disabled",e.first),u(),l("name",e.rtl?"arrow-right":"arrow-left")("svgIcon",e.rtl?e.arrowRightIcon:e.arrowLeftIcon),u(2),De(e.messageFor("groupChipMenuPrevious")),u(),M("aria-disabled",e.last),u(),N("k-disabled",e.last),u(),l("name",e.rtl?"arrow-left":"arrow-right")("svgIcon",e.rtl?e.arrowLeftIcon:e.arrowRightIcon),u(2),De(e.messageFor("groupChipMenuNext"))}}var Ax=["kendoGridColGroup",""];function Lx(t,n){t&1&&b(0,"col"),t&2&&N("k-group-col",!0)}function Nx(t,n){t&1&&b(0,"col"),t&2&&N("k-hierarchy-col",!0)}function Px(t,n){if(t&1&&b(0,"col"),t&2){let e=n.$implicit,i=h();ce("width",e.width,"px"),N("k-sorted",i.isSorted(i.getColumnComponent(e)))}}var Fx=["kendoGridLoading",""];function Gx(t,n){if(t&1&&(q(0),g(1,"span",1),ee(2),f(),b(3,"div",2)(4,"div",3),Q()),t&2){let e=h();u(2),De(e.loadingText)}}function Vx(t,n){}function zx(t,n){if(t&1&&_(0,Vx,0,0,"ng-template",4),t&2){let e=h();l("ngTemplateOutlet",e.loadingTemplate==null?null:e.loadingTemplate.templateRef)}}var Ux=["kendoGridGroupHeader",""],Bx=(t,n,e,i,o,s,r,a)=>({templateRef:t,group:n,aggregates:e,value:i,field:o,index:s,expanded:r,$implicit:a}),jx=(t,n,e,i,o,s)=>({group:t,aggregates:n,value:e,field:i,index:o,$implicit:s});function Hx(t,n){t&1&&b(0,"td",3)}function Kx(t,n){if(t&1&&(q(0),_(1,Hx,1,0,"td",2),Q()),t&2){let e=h();u(),l("ngForOf",e.prefixGroupCell(e.item))}}function $x(t,n){if(t&1&&(q(0),ee(1),zn(2,"valueOf"),Q()),t&2){let e=h(3);u(),El(" ",e.groupTitle(e.item),": ",sr(2,2,e.item.data,"value",e.formatForGroup(e.item))," ")}}function Wx(t,n){}function qx(t,n){if(t&1){let e=K();q(0),g(1,"a",6),O("click",function(){y(e);let o=h(2);return I(o.toggleGroup(o.item))}),b(2,"kendo-icon-wrapper",7),f(),_(3,$x,3,6,"ng-container",0)(4,Wx,0,0,"ng-template",8),Q()}if(t&2){let e=h(2);u(),M("title",e.groupButtonTitle)("aria-label",e.groupButtonTitle),u(),l("name",e.arrowIcon)("svgIcon",e.arrowSVGIcon),u(),l("ngIf",!e.groupHeaderTemplate(e.item)),u(),l("templateContext",op(6,Bx,e.groupHeaderTemplate(e.item),e.item.data,e.item.data==null?null:e.item.data.aggregates,e.item.data==null?null:e.item.data.value,e.item.data==null?null:e.item.data.field,e.item.index,e.isExpanded,e.item.data))}}function Qx(t,n){if(t&1&&(g(0,"td",4)(1,"p",5),_(2,qx,5,15,"ng-container",0),f()()),t&2){let e=h();l("logicalRowIndex",e.logicalRowIndex)("logicalColIndex",0)("logicalSlaveCell",e.skipGroupDecoration)("groupItem",e.item)("colSpan",e.logicalColSpan()),M("colspan",e.groupSpan(e.item))("role",e.ariaRole())("aria-expanded",e.isExpanded),u(2),l("ngIf",!e.skipGroupDecoration)}}function Jx(t,n){}function Yx(t,n){if(t&1&&_(0,Jx,0,0,"ng-template",11),t&2){let e=h().$implicit,i=h(2);l("ngTemplateOutlet",e.groupHeaderColumnTemplateRef)("ngTemplateOutletContext",lo(2,jx,i.item.data,i.item.data==null?null:i.item.data.aggregates,i.item.data==null?null:i.item.data.value,i.item.data==null?null:i.item.data.field,i.item.index,i.item.data))}}function Zx(t,n){if(t&1&&(g(0,"td",10),_(1,Yx,1,9,null,0),f()),t&2){let e=n.$implicit,i=n.index,o=h(2);l("logicalRowIndex",o.logicalRowIndex)("logicalColIndex",i+1)("logicalSlaveCell",!1)("groupItem",o.item)("colSpan",1),u(),l("ngIf",e.groupHeaderColumnTemplateRef)}}function Xx(t,n){if(t&1&&(q(0),_(1,Zx,2,6,"td",9),Q()),t&2){let e=h();u(),l("ngForOf",e.groupHeaderColumns)}}var eR=["kendoGridCell",""],tR=t=>({$implicit:t});function iR(t,n){}function nR(t,n){if(t&1&&_(0,iR,0,0,"ng-template",5),t&2){let e=h(3);l("ngTemplateOutlet",e.column.templateRef)("ngTemplateOutletContext",e.templateContext)}}function oR(t,n){if(t&1&&(q(0),ee(1),zn(2,"valueOf"),Q()),t&2){let e=n.$implicit,i=h(4);u(),St(" ",sr(2,1,i.dataItem,e.field,e.format)," ")}}function sR(t,n){if(t&1&&(q(0),_(1,oR,3,5,"ng-container",6),Q()),t&2){let e=h(3);u(),l("ngForOf",e.childColumns)}}function rR(t,n){if(t&1&&(q(0),ee(1),zn(2,"valueOf"),Q()),t&2){let e=h(3);u(),De(sr(2,1,e.dataItem,e.column.field,e.column.format))}}function aR(t,n){if(t&1&&(q(0),g(1,"span",7),b(2,"input",8),f(),Q()),t&2){let e=h(3);u(2),l("kendoGridSelectionCheckbox",e.rowIndex),M("id",e.selectionCheckboxId)("aria-label",e.selectionCheckboxLabel)}}function lR(t,n){if(t&1&&(q(0),b(1,"kendo-icon-wrapper",9),Q()),t&2){let e=h(3);u(),l("svgIcon",e.reorderIcon)}}function cR(t,n){if(t&1&&(q(0),_(1,nR,1,2,null,4)(2,sR,2,1,"ng-container",4)(3,rR,3,5,"ng-container",4)(4,aR,3,3,"ng-container",4)(5,lR,2,1,"ng-container",4),Q()),t&2){let e=h(2);u(),l("ngIf",e.column.templateRef),u(),l("ngIf",e.isSpanColumn),u(),l("ngIf",e.isBoundColumn),u(),l("ngIf",e.isCheckboxColumn&&!e.isNew),u(),l("ngIf",e.isRowReorderColumn&&!e.isNew)}}function dR(t,n){}function uR(t,n){if(t&1&&_(0,dR,0,0,"ng-template",5),t&2){let e=h(3);l("ngTemplateOutlet",e.loadingTemplate)("ngTemplateOutletContext",We(2,tR,e.column))}}function hR(t,n){t&1&&b(0,"div",11)}function pR(t,n){if(t&1&&_(0,uR,1,4,null,4)(1,hR,1,0,"div",10),t&2){let e=h(2);l("ngIf",e.loadingTemplate),u(),l("ngIf",!e.loadingTemplate)}}function mR(t,n){if(t&1&&(q(0),_(1,cR,6,5,"ng-container",3)(2,pR,2,2,"ng-template",null,0,ut),Q()),t&2){let e=me(3),i=h();u(),l("ngIf",!i.showLoading)("ngIfElse",e)}}function gR(t,n){}function fR(t,n){if(t&1&&_(0,gR,0,0,"ng-template",5),t&2){let e=h(2);l("ngTemplateOutlet",e.column.editTemplateRef)("ngTemplateOutletContext",e.editTemplateContext)}}function _R(t,n){if(t&1&&b(0,"kendo-numerictextbox",16),t&2){let e=h(3);l("format",e.format)("formControl",e.formGroup.get(e.column.field))}}function vR(t,n){if(t&1&&b(0,"kendo-datepicker",16),t&2){let e=h(3);l("format",e.format)("formControl",e.formGroup.get(e.column.field))}}function CR(t,n){if(t&1&&b(0,"input",17),t&2){let e=h(3);l("formControl",e.formGroup.get(e.column.field))}}function SR(t,n){if(t&1&&b(0,"input",18),t&2){let e=h(3);l("formControl",e.formGroup.get(e.column.field))}}function bR(t,n){if(t&1&&(q(0,1),_(1,_R,1,2,"kendo-numerictextbox",13)(2,vR,1,2,"kendo-datepicker",13),g(3,"span",7),_(4,CR,1,1,"input",14),f(),_(5,SR,1,1,"input",15),Q()),t&2){let e=h(2);l("ngSwitch",e.column.editor),u(),l("ngSwitchCase","numeric"),u(),l("ngSwitchCase","date"),u(2),l("ngSwitchCase","boolean")}}function DR(t,n){if(t&1&&(q(0),_(1,fR,1,2,null,4)(2,bR,6,4,"ng-container",12),Q()),t&2){let e=h();u(),l("ngIf",e.column.editTemplateRef),u(),l("ngIf",!e.column.editTemplateRef)}}var ER=["kendoGridTableBody",""],wR=t=>({templateRef:t}),L_=(t,n)=>({dataItem:t,index:n}),yR=(t,n,e)=>({dataItem:t,rowIndex:n,$implicit:e}),IR=(t,n,e,i,o,s)=>({templateRef:t,group:n,field:e,column:i,aggregates:o,$implicit:s});function TR(t,n){t&1&&b(0,"td",8)}function kR(t,n){if(t&1&&(q(0),_(1,TR,1,0,"td",7),Q()),t&2){let e=h(2);u(),l("ngForOf",e.groups)}}function xR(t,n){if(t&1&&b(0,"td",9),t&2){let e=h(2);l("logicalRowIndex",e.addRowLogicalIndex())("logicalColIndex",0)}}function RR(t,n){if(t&1&&b(0,"td",10),t&2){let e=n.$implicit,i=n.index,o=h(2);ce("left",e.sticky?"0":void 0),N("k-grid-content-sticky",e.sticky),l("rowIndex",-1)("columnIndex",o.lockedColumnsCount+i)("isNew",!0)("column",e)("dataItem",o.newDataItem)("ngClass",e.cssClass)("ngStyle",e.sticky?o.addStickyColumnStyles(e):e.style)("logicalRowIndex",o.addRowLogicalIndex())("logicalColIndex",o.logicalColIndex(e))("colSpan",e.colspan),M("colspan",e.colspan)("role",e.tableCellsRole)}}function OR(t,n){if(t&1&&(q(0),g(1,"tr",4),_(2,kR,2,1,"ng-container",0)(3,xR,1,2,"td",5)(4,RR,1,16,"td",6),f(),Q()),t&2){let e=h();u(),l("logicalRowIndex",e.addRowLogicalIndex())("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount())("totalColumns",e.totalColumns),u(),l("ngIf",!e.skipGroupDecoration),u(),l("ngIf",e.detailTemplate==null?null:e.detailTemplate.templateRef),u(),l("ngForOf",e.columns)("ngForTrackBy",e.trackByColumns)}}function MR(t,n){}function AR(t,n){if(t&1&&_(0,MR,0,0,"ng-template",13),t&2){let e=h(2);l("templateContext",We(1,wR,e.noRecordsTemplate==null?null:e.noRecordsTemplate.templateRef))}}function LR(t,n){if(t&1&&(q(0),ee(1),Q()),t&2){let e=h(2);u(),St(" ",e.noRecordsText," ")}}function NR(t,n){if(t&1&&(g(0,"tr",11)(1,"td",12),_(2,AR,1,3,null,0)(3,LR,2,1,"ng-container",0),f()()),t&2){let e=h();u(),M("colspan",e.colSpan),u(),l("ngIf",e.noRecordsTemplate==null?null:e.noRecordsTemplate.templateRef),u(),l("ngIf",!(e.noRecordsTemplate!=null&&e.noRecordsTemplate.templateRef))}}function PR(t,n){if(t&1&&b(0,"tr",18),t&2){let e=h(),i=e.$implicit,o=e.index,s=h();l("columns",s.columns)("groups",s.groups)("item",i)("hasDetails",!!(s.detailTemplate!=null&&s.detailTemplate.templateRef))("skipGroupDecoration",s.skipGroupDecoration)("hasGroupHeaderColumn",s.hasGroupHeaderColumn)("groupHeaderColumns",s.groupHeaderColumns)("rowIndex",o+1)("totalColumnsCount",s.totalColumnsCount)("logicalRowIndex",s.logicalRowIndex(o))("logicalSlaveRow",s.lockedColumnsCount>0)("totalColumns",s.totalColumns)("logicalCellsCount",s.columns.length)("logicalSlaveCellsCount",s.groupHeaderSlaveCellsCount)}}function FR(t,n){t&1&&b(0,"td",8)}function GR(t,n){if(t&1&&(q(0),_(1,FR,1,0,"td",7),Q()),t&2){let e=h(3);u(),l("ngForOf",e.groups)}}function VR(t,n){if(t&1){let e=K();g(0,"a",24),O("click",function(){y(e);let o=h(3).$implicit,s=h();return I(s.toggleRow(o.index,o.data))}),b(1,"kendo-icon-wrapper",25),f()}if(t&2){let e=h(3).$implicit,i=h();M("title",i.detailButtonTitle(e))("aria-label",i.detailButtonTitle(e)),u(),l("name",i.detailButtonIconName(e))("svgIcon",i.detailButtonSvgIcon(e))}}function zR(t,n){if(t&1&&(g(0,"td",22),_(1,VR,2,4,"a",23),f()),t&2){let e=h(2),i=e.$implicit,o=e.index,s=h();l("logicalRowIndex",s.logicalRowIndex(o))("logicalColIndex",0)("dataRowIndex",i.index)("dataItem",i.data)("detailExpandCell",!0),u(),l("ngIf",s.detailTemplate.showIf(i.data,i.index))}}function UR(t,n){if(t&1&&b(0,"td",26),t&2){let e=n.$implicit,i=n.index,o=h(2),s=o.$implicit,r=o.index,a=h();N("k-grid-content-sticky",e.sticky)("k-touch-action-none",a.isSelectable()&&a.selectable.drag)("k-touch-action-auto",!(a.isSelectable()&&a.selectable.drag))("k-grid-edit-cell",a.isEditingCell(s.index,e))("k-selected",a.isSelectable&&a.cellSelectionService.isCellSelected(s,e)),l("rowIndex",s.index)("columnIndex",a.lockedColumnsCount+i)("column",e)("dataItem",s.data)("isLoading",a.isLoading)("isVirtual",a.isVirtual)("loadingTemplate",a.cellLoadingTemplate)("logicalRowIndex",a.logicalRowIndex(r))("logicalColIndex",a.logicalColIndex(e))("dataRowIndex",s.index)("dataItem",s.data)("colIndex",i)("colSpan",e.colspan)("ngClass",e.cssClass)("ngStyle",e.sticky?a.addStickyColumnStyles(e):e.style),M("data-kendo-grid-column-index",a.lockedColumnsCount+i)("role",e.tableCellsRole)("aria-selected",a.lockedColumnsCount<1&&a.isSelectable()?a.isAriaSelected(s,e):void 0)("colspan",e.colspan)}}function BR(t,n){if(t&1&&(g(0,"tr",19),_(1,GR,2,1,"ng-container",0)(2,zR,2,6,"td",20)(3,UR,1,29,"td",21),f()),t&2){let e=h(),i=e.$implicit,o=e.index,s=h();nr(s.isOdd(i)?"k-alt k-table-alt-row":""),N("k-grid-row-sticky",s.rowSticky?s.rowSticky(et(25,L_,i.data,i.index)):!1)("k-master-row",!0)("k-grid-edit-row",s.isEditingRow(i.index))("k-selected",s.isSelectable()&&s.isRowSelected(i)),l("dataRowIndex",i.index)("dataItem",i.data)("logicalRowIndex",s.logicalRowIndex(o))("logicalSlaveRow",s.lockedColumnsCount>0)("totalColumns",s.totalColumns)("logicalCellsCount",s.columns.length)("logicalSlaveCellsCount",s.unlockedColumnsCount(i))("ngClass",s.rowClass(et(28,L_,i.data,i.index))),M("aria-selected",s.lockedColumnsCount<1?s.isSelectable()&&s.isRowSelected(i):void 0)("data-kendo-grid-item-index",i.index),u(),l("ngIf",!s.skipGroupDecoration),u(),l("ngIf",s.detailTemplate==null?null:s.detailTemplate.templateRef),u(),l("ngForOf",s.columns)("ngForTrackBy",s.trackByColumns)}}function jR(t,n){t&1&&b(0,"td",32)}function HR(t,n){}function KR(t,n){if(t&1&&(g(0,"tr",27),_(1,jR,1,0,"td",28),b(2,"td",29),g(3,"td",30),_(4,HR,0,0,"ng-template",31),f()()),t&2){let e=h(),i=e.$implicit,o=e.index,s=h();N("k-alt",s.isOdd(i)),l("dataRowIndex",i.index)("dataItem",i.data)("logicalRowIndex",s.logicalRowIndex(o)+1)("logicalSlaveRow",!1)("logicalCellsCount",1),u(),l("ngForOf",s.groups),u(2),l("logicalRowIndex",s.logicalRowIndex(o)+1)("logicalColIndex",0)("dataRowIndex",i.index)("dataItem",i.data)("colIndex",0)("colSpan",s.allColumnsSpan+1),M("colspan",s.columnsSpan),u(),l("ngTemplateOutlet",s.detailTemplate.templateRef)("ngTemplateOutletContext",mi(17,yR,i.data,i.index,i.data))}}function $R(t,n){t&1&&b(0,"td",32)}function WR(t,n){if(t&1&&(q(0),_(1,$R,1,0,"td",28),Q()),t&2){let e=h(3);u(),l("ngForOf",e.groups)}}function qR(t,n){if(t&1&&b(0,"td",9),t&2){let e=h(2).index,i=h();l("logicalRowIndex",i.logicalRowIndex(e))("logicalColIndex",0)}}function QR(t,n){}function JR(t,n){if(t&1&&(g(0,"td",35),_(1,QR,0,0,"ng-template",13),f()),t&2){let e=n.$implicit,i=h(2),o=i.$implicit,s=i.index,r=h();l("logicalRowIndex",r.logicalRowIndex(s))("logicalColIndex",r.logicalColIndex(e)),M("data-skip",r.skipGroupDecoration),u(),l("templateContext",lo(4,IR,e.groupFooterTemplateRef,o.data,e.field,e,o.data==null?null:o.data.aggregates,o.data==null?null:o.data.aggregates))}}function YR(t,n){if(t&1&&(g(0,"tr",33),_(1,WR,2,1,"ng-container",0)(2,qR,1,2,"td",5)(3,JR,2,11,"td",34),f()),t&2){let e=h(),i=e.$implicit,o=e.index,s=h();l("logicalRowIndex",s.logicalRowIndex(o))("logicalSlaveRow",s.lockedColumnsCount>0)("totalColumns",s.totalColumns)("logicalCellsCount",s.columns.length)("logicalSlaveCellsCount",s.unlockedColumnsCount(i)),u(),l("ngIf",!s.skipGroupDecoration),u(),l("ngIf",s.detailTemplate==null?null:s.detailTemplate.templateRef),u(),l("ngForOf",s.footerColumns)("ngForTrackBy",s.trackByColumns)}}function ZR(t,n){if(t&1&&(q(0),_(1,PR,1,14,"tr",14)(2,BR,4,31,"tr",15)(3,KR,5,21,"tr",16)(4,YR,4,9,"tr",17),Q()),t&2){let e=n.$implicit,i=h();u(),l("ngIf",i.isGroup(e)&&i.isParentGroupExpanded(e)&&i.showGroupHeader(e)),u(),l("ngIf",i.isDataItem(e)&&(!e.group||i.isDataItemInExpandedGroup(e))),u(),l("ngIf",i.isDataItem(e)&&(!e.group||i.isDataItemInExpandedGroup(e))&&(i.detailTemplate==null?null:i.detailTemplate.templateRef)&&i.detailTemplate.showIf(e.data,e.index)&&i.isExpanded(e)),u(),l("ngIf",i.isFooter(e)&&e.group&&(i.isFooterItemInExpandedGroup(e)||i.showGroupFooters&&i.isParentGroupExpanded(e.group))&&!e.data.hideFooter)}}function XR(t,n){if(t&1){let e=K();g(0,"kendo-resize-sensor",36),O("resize",function(){y(e);let o=h();return I(o.resizeHandler())}),f()}}var An=["*"];function eO(t,n){if(t&1){let e=K();g(0,"kendo-dropdownlist",3),O("valueChange",function(o){y(e);let s=h();return I(s.logicChange(o))}),f()}if(t&2){let e=h();l("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",e.filter==null?null:e.filter.logic)}}function tO(t,n){if(t&1&&b(0,"kendo-grid-string-filter-menu-input",4),t&2){let e=h();l("operators",e.operators)("currentFilter",e.secondFilter)("filterService",e.filterService)("column",e.column)("filter",e.filter)("menuTabbingService",e.menuTabbingService)}}function iO(t,n){if(t&1){let e=K();g(0,"kendo-dropdownlist",3),O("valueChange",function(o){y(e);let s=h();return I(s.logicChange(o))}),f()}if(t&2){let e=h();l("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",e.filter==null?null:e.filter.logic)}}function nO(t,n){if(t&1&&b(0,"kendo-grid-numeric-filter-menu-input",4),t&2){let e=h();l("operators",e.operators)("currentFilter",e.secondFilter)("filterService",e.filterService)("column",e.column)("filter",e.filter)("format",e.format)("decimals",e.decimals)("spinners",e.spinners)("min",e.min)("max",e.max)("step",e.step)("menuTabbingService",e.menuTabbingService)}}function oO(t,n){if(t&1){let e=K();g(0,"kendo-dropdownlist",3),O("valueChange",function(o){y(e);let s=h();return I(s.logicChange(o))}),f()}if(t&2){let e=h();l("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",e.filter==null?null:e.filter.logic)}}function sO(t,n){if(t&1&&b(0,"kendo-grid-date-filter-menu-input",4),t&2){let e=h();l("operators",e.operators)("currentFilter",e.secondFilter)("filterService",e.filterService)("column",e.column)("filter",e.filter)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("format",e.format)("formatPlaceholder",e.formatPlaceholder)("placeholder",e.placeholder)("min",e.min)("max",e.max)("weekNumber",e.weekNumber)("menuTabbingService",e.menuTabbingService)}}function rO(t,n){if(t&1){let e=K();g(0,"li")(1,"input",3,0),O("change",function(){let o=y(e).$implicit,s=me(2),r=h();return I(r.onChange(o.value,s))})("keydown.shift.tab",function(o){y(e);let s=h();return I(s.onShiftTab(o))}),f(),g(3,"label",4),ee(4),f()()}if(t&2){let e=n.$implicit,i=h();u(),l("columnLabel",i.columnLabel)("name",i.idPrefix)("checked",i.isSelected(e.value)),M("id",i.radioId(e.value)),u(2),M("for",i.radioId(e.value)),u(),De(e.text)}}var _v=["resetButton"],aO=["filterButton"];function lO(t,n){if(t&1&&(q(0),Xe(1,9),Q()),t&2){let e=h();u(),l("filterService",e.childService)("column",e.column)("filter",e.childFilter)("menuTabbingService",e.menuTabbingService)}}function cO(t,n){}function dO(t,n){if(t&1&&_(0,cO,0,0,"ng-template",11),t&2){let e=h(2);l("ngTemplateOutlet",e.column.filterMenuTemplateRef)("ngTemplateOutletContext",e.templateContext)}}function uO(t,n){if(t&1&&(q(0),_(1,dO,1,2,null,10),Q()),t&2){let e=h();u(),l("ngIf",e.column.filterMenuTemplateRef)}}var Pu=["anchor"],vv=["template"];function hO(t,n){if(t&1){let e=K();g(0,"kendo-grid-filter-menu-container",4),O("close",function(){y(e);let o=h();return I(o.close())})("keydown.escape",function(){y(e);let o=h();return I(o.close())})("keydown.enter",function(o){return y(e),I(o.stopImmediatePropagation())}),f()}if(t&2){let e=h();l("column",e.column)("filter",e.filter)}}var pO=["applyButton"];function mO(t,n){if(t&1&&(g(0,"label",5),b(1,"input",6),g(2,"span",7),ee(3),f()()),t&2){let e=n.$implicit,i=n.index,o=h();l("kendoColumnMenuChooserItemChecked",!e.hidden),u(),l("checked",!e.hidden)("disabled",o.isDisabled(e)),M("data-index",i)("aria-hidden",!0),u(2),De(e.displayTitle)}}function gO(t,n){if(t&1){let e=K();g(0,"div",8)(1,"button",9,0),O("click",function(){y(e);let o=h();return I(o.applyChanges())})("keydown.enter",function(o){y(e);let s=h();return o.preventDefault(),o.stopPropagation,I(s.applyChanges())})("keydown.space",function(o){y(e);let s=h();return o.preventDefault(),o.stopPropagation,I(s.applyChanges())}),ee(3),f(),g(4,"button",10,1),O("keydown.tab",function(o){y(e);let s=h();return I(s.onTab(o))})("click",function(){y(e);let o=h();return I(o.cancelChanges())})("keydown.enter",function(o){y(e);let s=h();return o.preventDefault(),o.stopPropagation,I(s.cancelChanges())})("keydown.space",function(o){y(e);let s=h();return o.preventDefault(),o.stopPropagation,I(s.cancelChanges())}),ee(6),f()()}if(t&2){let e=h();l("ngClass",e.actionsClass),u(3),De(e.applyText),u(3),De(e.resetText)}}function fO(t,n){if(t&1&&(g(0,"div",3),Xe(1,4),b(2,"div"),f()),t&2){let e=h();ce("overflow","hidden"),l("@state",e.contentState),M("id",e.contentId),u(),l("ngTemplateOutlet",e.contentTemplate.templateRef)}}function _O(t,n){if(t&1){let e=K();g(0,"kendo-grid-columnlist",2),O("apply",function(o){y(e);let s=h();return I(s.onApply(o))}),f()}if(t&2){let e=h();l("applyText",e.ctx.localization.get("columnsApply"))("resetText",e.ctx.localization.get("columnsReset"))("ariaLabel",e.ctx.localization.get("columns"))("columns",e.columns)("autoSync",!1)("allowHideAll",!1)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)("service",e.service)}}function vO(t,n){if(t&1){let e=K();g(0,"kendo-grid-filter-menu-container",2),O("keydown.shift.tab",function(o){return y(e),I(o.stopImmediatePropagation())})("close",function(){y(e);let o=h();return I(o.close())}),f()}if(t&2){let e=h();l("column",e.service.column)("menuTabbingService",e.service.menuTabbingService)("filter",e.service.filter)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)}}function CO(t,n){if(t&1){let e=K();g(0,"kendo-grid-columnmenu-lock",3),O("keydown.tab",function(o){y(e);let s=h(2);return I(s.onTab(o,!s.showStick))}),f()}if(t&2){let e=h(2);l("service",e.service)}}function SO(t,n){if(t&1){let e=K();g(0,"kendo-grid-columnmenu-stick",3),O("keydown.tab",function(o){y(e);let s=h(2);return I(s.onTab(o,!0))}),f()}if(t&2){let e=h(2);l("service",e.service)}}function bO(t,n){if(t&1&&_(0,CO,1,1,"kendo-grid-columnmenu-lock",2)(1,SO,1,1,"kendo-grid-columnmenu-stick",2),t&2){let e=h();l("ngIf",e.showLock),u(),l("ngIf",e.showStick)}}function DO(t,n){if(t&1){let e=K();g(0,"kendo-grid-columnmenu-item",1),O("itemClick",function(){y(e);let o=h();return I(o.autoSizeColumn())}),f()}if(t&2){let e=h();l("text",e.ctx.localization.get("autosizeThisColumn"))("svgIcon",e.maxWidthIcon)}}function EO(t,n){if(t&1){let e=K();g(0,"kendo-grid-columnmenu-item",1),O("itemClick",function(){y(e);let o=h();return I(o.autoSizeAllColumns())}),f()}if(t&2){let e=h();l("text",e.ctx.localization.get("autosizeAllColumns"))("svgIcon",e.displayInlineFlexIcon)}}var wO=["tabbedInterfaceTemplate"],yO=t=>({"k-active":t}),IO=(t,n)=>({service:t,column:n});function TO(t,n){if(t&1){let e=K();g(0,"kendo-grid-columnmenu-container",15),O("keydown.escape",function(){y(e);let o=h();return I(o.close(!0))})("keydown.enter",function(o){return y(e),I(o.stopImmediatePropagation())}),Xe(1,16),f()}if(t&2){let e=h(),i=me(6),o=me(8);u(),l("ngTemplateOutlet",e.column.columnMenuTemplateRef||e.columnMenuTemplate||(e.settings.view==="tabbed"?o:i))("ngTemplateOutletContext",et(2,IO,e.service,e.column))}}function kO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-sort",23,4),t&2){let e=me(1),i=h(2);l("kendoGridColumnMenuItem",e)("service",i.service)}}function xO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-lock",23,5),t&2){let e=me(1),i=h(2);l("kendoGridColumnMenuItem",e)("service",i.service)}}function RO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-stick",23,6),t&2){let e=me(1),i=h(2);l("kendoGridColumnMenuItem",e)("service",i.service)}}function OO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-position",24,7),t&2){let e=me(1),i=h(2);l("showLock",i.hasLock)("showStick",i.hasStick)("kendoGridColumnMenuItem",e)("service",i.service)("expanded",i.expandedPosition)}}function MO(t,n){t&1&&b(0,"span",25),t&2&&ce("border-color","rgba(0, 0, 0, 0.08)")}function AO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-chooser",26,8),t&2){let e=me(1),i=h(2);l("kendoGridColumnMenuItem",e)("service",i.service)("expanded",i.expandedColumns)}}function LO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-autosize-column",27,9),t&2){let e=me(1),i=h(2);l("service",i.service)("kendoGridColumnMenuItem",e)("column",i.column)}}function NO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-autosize-all-columns",28,10),t&2){let e=me(1),i=h(2);l("service",i.service)("kendoGridColumnMenuItem",e)}}function PO(t,n){t&1&&b(0,"span",25),t&2&&ce("border-color","rgba(0, 0, 0, 0.08)")}function FO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-filter",26,11),t&2){let e=me(1),i=h(2);l("kendoGridColumnMenuItem",e)("service",i.service)("expanded",i.expandedFilter)}}function GO(t,n){if(t&1){let e=K();g(0,"kendo-grid-columnmenu-container",15),O("keydown.escape",function(){y(e);let o=h();return I(o.close(!0))})("keydown.enter",function(o){return y(e),I(o.stopImmediatePropagation())}),_(1,kO,2,2,"kendo-grid-columnmenu-sort",17)(2,xO,2,2,"kendo-grid-columnmenu-lock",17)(3,RO,2,2,"kendo-grid-columnmenu-stick",17)(4,OO,2,5,"kendo-grid-columnmenu-position",18)(5,MO,1,2,"span",19)(6,AO,2,3,"kendo-grid-columnmenu-chooser",20)(7,LO,2,3,"kendo-grid-columnmenu-autosize-column",21)(8,NO,2,2,"kendo-grid-columnmenu-autosize-all-columns",22)(9,PO,1,2,"span",19)(10,FO,2,3,"kendo-grid-columnmenu-filter",20),f()}if(t&2){let e=h();u(),l("ngIf",e.hasSort),u(),l("ngIf",e.hasLock&&!e.hasPosition),u(),l("ngIf",e.hasStick&&!e.hasPosition),u(),l("ngIf",e.hasPosition),u(),l("ngIf",e.hasColumnChooser||e.hasAutoSizeColumn||e.hasAutoSizeAllColumns),u(),l("ngIf",e.hasColumnChooser),u(),l("ngIf",e.hasAutoSizeColumn),u(),l("ngIf",e.hasAutoSizeAllColumns),u(),l("ngIf",e.hasColumnChooser||e.hasAutoSizeColumn||e.hasAutoSizeAllColumns),u(),l("ngIf",e.hasFilter)}}function VO(t,n){if(t&1&&b(0,"kendo-icon-wrapper",33),t&2){let e=h(3);l("svgIcon",e.filterIcon),M("title",e.ctx.localization.get("columnMenuFilterTabTitle"))}}function zO(t,n){if(t&1){let e=K();g(0,"kendo-grid-filter-menu-container",34),O("keydown.shift.tab",function(o){return y(e),I(o.stopImmediatePropagation())})("close",function(){y(e);let o=h(3);return I(o.close())}),f()}if(t&2){let e=h(3);l("column",e.service.column)("menuTabbingService",e.service.menuTabbingService)("filter",e.service.filter)("actionsClass",e.actionsClass)}}function UO(t,n){t&1&&(g(0,"kendo-tabstrip-tab"),_(1,VO,1,2,"ng-template",31)(2,zO,1,4,"ng-template",32),f())}function BO(t,n){if(t&1&&b(0,"kendo-icon-wrapper",35),t&2){let e=h(3);l("svgIcon",e.slidersIcon),M("title",e.ctx.localization.get("columnMenuGeneralTabTitle"))}}function jO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-sort",23,4),t&2){let e=me(1),i=h(4);l("kendoGridColumnMenuItem",e)("service",i.service)}}function HO(t,n){t&1&&b(0,"span",25),t&2&&ce("border-color","rgba(0, 0, 0, 0.08)")}function KO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-lock",23,5),t&2){let e=me(1),i=h(4);l("kendoGridColumnMenuItem",e)("service",i.service)}}function $O(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-stick",23,6),t&2){let e=me(1),i=h(4);l("kendoGridColumnMenuItem",e)("service",i.service)}}function WO(t,n){t&1&&b(0,"span",25),t&2&&ce("border-color","rgba(0, 0, 0, 0.08)")}function qO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-position",24,7),t&2){let e=me(1),i=h(4);l("showLock",i.hasLock)("showStick",i.hasStick)("kendoGridColumnMenuItem",e)("service",i.service)("expanded",i.expandedPosition)}}function QO(t,n){t&1&&b(0,"span",25),t&2&&ce("border-color","rgba(0, 0, 0, 0.08)")}function JO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-autosize-column",27,9),t&2){let e=me(1),i=h(4);l("service",i.service)("kendoGridColumnMenuItem",e)("column",i.column)}}function YO(t,n){if(t&1&&b(0,"kendo-grid-columnmenu-autosize-all-columns",28,10),t&2){let e=me(1),i=h(4);l("service",i.service)("kendoGridColumnMenuItem",e)}}function ZO(t,n){if(t&1&&_(0,jO,2,2,"kendo-grid-columnmenu-sort",17)(1,HO,1,2,"span",19)(2,KO,2,2,"kendo-grid-columnmenu-lock",17)(3,$O,2,2,"kendo-grid-columnmenu-stick",17)(4,WO,1,2,"span",19)(5,qO,2,5,"kendo-grid-columnmenu-position",18)(6,QO,1,2,"span",19)(7,JO,2,3,"kendo-grid-columnmenu-autosize-column",21)(8,YO,2,2,"kendo-grid-columnmenu-autosize-all-columns",22),t&2){let e=h(3);l("ngIf",e.hasSort),u(),l("ngIf",e.hasSort&&(e.hasLock||e.hasStick||e.hasPosition||e.hasAutoSizeColumn||e.hasAutoSizeAllColumns)),u(),l("ngIf",e.hasLock&&!e.hasPosition),u(),l("ngIf",e.hasStick&&!e.hasPosition),u(),l("ngIf",(e.hasLock||e.hasStick)&&!e.hasPosition&&(e.hasAutoSizeColumn||e.hasAutoSizeAllColumns)),u(),l("ngIf",e.hasPosition),u(),l("ngIf",e.hasPosition&&(e.hasAutoSizeColumn||e.hasAutoSizeAllColumns)),u(),l("ngIf",e.hasAutoSizeColumn),u(),l("ngIf",e.hasAutoSizeAllColumns)}}function XO(t,n){t&1&&(g(0,"kendo-tabstrip-tab"),_(1,BO,1,2,"ng-template",31)(2,ZO,9,9,"ng-template",32),f())}function eM(t,n){if(t&1&&b(0,"kendo-icon-wrapper",36),t&2){let e=h(3);l("svgIcon",e.columnsIcon),M("title",e.ctx.localization.get("columnMenuColumnsTabTitle"))}}function tM(t,n){if(t&1){let e=K();g(0,"kendo-grid-columnlist",37),O("apply",function(o){y(e);let s=h(3);return I(s.onApply(o))}),f()}if(t&2){let e=h(3);l("applyText",e.ctx.localization.get("columnsApply"))("resetText",e.ctx.localization.get("columnsReset"))("columns",e.columns)("autoSync",!1)("allowHideAll",!1)("actionsClass",e.actionsClass)("service",e.service)}}function iM(t,n){t&1&&(g(0,"kendo-tabstrip-tab"),_(1,eM,1,2,"ng-template",31)(2,tM,1,7,"ng-template",32),f())}function nM(t,n){if(t&1){let e=K();g(0,"kendo-tabstrip",29,12),O("keydown.escape",function(){y(e);let o=h();return I(o.close(!0))}),_(2,UO,3,0,"kendo-tabstrip-tab",30)(3,XO,3,0,"kendo-tabstrip-tab",30)(4,iM,3,0,"kendo-tabstrip-tab",30),f()}if(t&2){let e=h();u(2),l("ngIf",e.hasFilter),u(),l("ngIf",e.showGeneralTab),u(),l("ngIf",e.hasColumnChooser)}}var oM=["dropdown"],Cv=()=>({width:"auto"});function sM(t,n){if(t&1){let e=K();g(0,"kendo-dropdownlist",3,0),O("valueChange",function(o){y(e);let s=h();return I(s.onChange(o))})("keydown",function(o){y(e);let s=h();return I(s.dropdownKeydown(o))}),f()}if(t&2){let e=h();l("data",e.operators)("value",e.value)("svgIcon",e.filterSVGIcon)("valuePrimitive",!0)("popupSettings",si(7,Cv))("size",e.size),M("aria-label",e.column&&e.columnLabel)}}function rM(t,n){if(t&1){let e=K();g(0,"button",4),O("click",function(){y(e);let o=h();return I(o.clearClick())})("keydown",function(o){y(e);let s=h();return I(s.clearKeydown(o))}),f()}if(t&2){let e=h();l("svgIcon",e.filterClearIcon)("title",e.clearText)("size",e.size)}}var aM=["kendoGridFilterCell",""];function lM(t,n){if(t&1&&(q(0),Xe(1,3),Q()),t&2){let e=h(2);u(),l("column",e.column)("filter",e.filter)}}function cM(t,n){}function dM(t,n){if(t&1&&_(0,cM,0,0,"ng-template",4),t&2){let e=h(3);l("ngTemplateOutlet",e.column.filterCellTemplateRef)("ngTemplateOutletContext",e.templateContext)}}function uM(t,n){if(t&1&&(q(0),_(1,dM,1,2,null,0),Q()),t&2){let e=h(2);u(),l("ngIf",e.column.filterCellTemplateRef)}}function hM(t,n){if(t&1&&(q(0)(1,1),_(2,lM,2,2,"ng-container",2)(3,uM,2,1,"ng-container",2),Q()()),t&2){let e=h();u(),l("ngSwitch",e.hasTemplate),u(),l("ngSwitchCase",!1),u(),l("ngSwitchCase",!0)}}var pM=["kendoGridFilterRow",""];function mM(t,n){t&1&&b(0,"td",3),t&2&&N("k-group-cell",!0)}function gM(t,n){t&1&&b(0,"td",3),t&2&&N("k-hierarchy-cell",!0)}function fM(t,n){if(t&1&&b(0,"td",4),t&2){let e=n.$implicit,i=n.index,o=h();N("k-grid-header-sticky",e.sticky),l("ngStyle",o.addStickyStyles(e))("ngClass",e.filterClass)("column",e)("filter",o.filter)("logicalRowIndex",o.logicalRowIndex)("logicalColIndex",o.getLogicalColIndex(i)),M("aria-label",o.filterLabel(e))}}var _M=["kendoGridHeader",""],vM=(t,n,e,i)=>({field:t,type:"column",column:n,hint:e,lastColumn:i}),dl=(t,n,e,i)=>({templateRef:t,columnIndex:n,column:e,$implicit:i}),CM=(t,n,e)=>({type:"columnGroup",column:t,hint:n,lastColumn:e});function SM(t,n){t&1&&b(0,"th",7)}function bM(t,n){t&1&&b(0,"th",8)}function DM(t,n){}function EM(t,n){if(t&1&&(q(0),g(1,"span",19),ee(2),f(),Q()),t&2){let e=h(3).$implicit;u(2),De(e.displayTitle)}}function wM(t,n){if(t&1&&b(0,"kendo-grid-filter-menu",20),t&2){let e=h(3).$implicit,i=h(2);l("column",i.getColumnComponent(e))("filter",i.filter)("tabIndex",i.tabIndex)}}function yM(t,n){if(t&1&&b(0,"kendo-grid-column-menu",21),t&2){let e=h(3).$implicit,i=h(2);l("standalone",!1)("settings",i.columnMenuSettings)("column",e)("columnMenuTemplate",i.columnMenuTemplate)("sort",i.sort)("filter",i.filter)("sortable",i.sortable)("tabIndex",i.tabIndex)}}function IM(t,n){if(t&1&&(q(0),g(1,"span",14)(2,"span",15),_(3,DM,0,0,"ng-template",16)(4,EM,3,1,"ng-container",12),f(),_(5,wM,1,3,"kendo-grid-filter-menu",17)(6,yM,1,8,"kendo-grid-column-menu",18),f(),Q()),t&2){let e=h(2).$implicit,i=h(2);u(3),l("templateContext",Mi(4,dl,e.headerTemplateRef,e.leafIndex,e,e)),u(),l("ngIf",!e.headerTemplateRef),u(),l("ngIf",i.showFilterMenu&&i.isFilterable(i.getColumnComponent(e))),u(),l("ngIf",i.showColumnMenu(e))}}function TM(t,n){}function kM(t,n){if(t&1&&(q(0),g(1,"span",19),ee(2),f(),Q()),t&2){let e=h(3).$implicit;u(2),De(e.displayTitle)}}function xM(t,n){if(t&1&&b(0,"kendo-icon-wrapper",26),t&2){let e=h(3).$implicit,i=h(2);ip("name","sort-",i.sortDescriptor(i.getColumnComponent(e).field).dir,"-small"),l("svgIcon",i.sortDescriptor(i.getColumnComponent(e).field).dir==="asc"?i.sortAscSmallIcon:i.sortDescSmallIcon),M("aria-label",i.sortableLabel)}}function RM(t,n){if(t&1&&(g(0,"span",27),ee(1),f()),t&2){let e=h(3).$implicit,i=h(2);u(),De(i.sortOrder(i.getColumnComponent(e).field))}}function OM(t,n){if(t&1&&b(0,"kendo-grid-filter-menu",20),t&2){let e=h(3).$implicit,i=h(2);l("column",i.getColumnComponent(e))("filter",i.filter)("tabIndex",i.tabIndex)}}function MM(t,n){if(t&1&&b(0,"kendo-grid-column-menu",21),t&2){let e=h(3).$implicit,i=h(2);l("standalone",!1)("settings",i.columnMenuSettings)("column",e)("columnMenuTemplate",i.columnMenuTemplate)("sort",i.sort)("filter",i.filter)("sortable",i.sortable)("tabIndex",i.tabIndex)}}function AM(t,n){if(t&1){let e=K();q(0),g(1,"span",14)(2,"span",22,0),O("click",function(o){y(e);let s=me(3),r=h(2).$implicit,a=h(2);return I(a.onSortClick(a.getColumnComponent(r),o,s))}),_(4,TM,0,0,"ng-template",16)(5,kM,3,1,"ng-container",12),g(6,"span",23),_(7,xM,1,4,"kendo-icon-wrapper",24),f(),_(8,RM,2,1,"span",25),f(),_(9,OM,1,3,"kendo-grid-filter-menu",17)(10,MM,1,8,"kendo-grid-column-menu",18),f(),Q()}if(t&2){let e=h(2).$implicit,i=h(2);u(4),l("templateContext",Mi(6,dl,e.headerTemplateRef,e.leafIndex,e,e)),u(),l("ngIf",!e.headerTemplateRef),u(2),l("ngIf",i.sortDescriptor(i.getColumnComponent(e).field).dir),u(),l("ngIf",i.showSortNumbering(i.getColumnComponent(e))),u(),l("ngIf",i.showFilterMenu&&i.isFilterable(i.getColumnComponent(e))),u(),l("ngIf",i.showColumnMenu(e))}}function LM(t,n){if(t&1&&(q(0),g(1,"span",28),b(2,"input",29),f(),Q()),t&2){let e=h(4);u(2),M("id",e.selectAllCheckboxId())("aria-label",e.selectAllCheckboxLabel)}}function NM(t,n){if(t&1&&b(0,"span",30),t&2){let e=h(2).$implicit,i=h(2);l("column",e)("columns",i.columns)}}function PM(t,n){if(t&1){let e=K();g(0,"th",11),O("keydown",function(o){y(e);let s=h().$implicit,r=h(2);return I(r.onHeaderKeydown(r.getColumnComponent(s),o))}),_(1,IM,7,9,"ng-container",12)(2,AM,11,11,"ng-container",12)(3,LM,3,2,"ng-container",12)(4,NM,1,2,"span",13),f()}if(t&2){let e=h(),i=e.$implicit,o=e.index,s=e.last,r=h().index,a=h();N("k-sorted",!!a.sortState(a.getColumnComponent(i)))("k-filterable",a.showFilterMenu&&a.isFilterable(a.getColumnComponent(i))||a.showColumnMenu(i))("k-first",a.isFirstOnRow(a.getColumnComponent(i),o))("k-grid-header-sticky",i.sticky),l("logicalRowIndex",r)("logicalColIndex",a.logicalColumnIndex(i))("headerLabelText",i.title||a.getColumnComponent(i).field)("colSpan",i.colspan)("rowSpan",i.rowspan(a.totalColumnLevels))("enableDrag",a.shouldActivate(i))("context",Mi(27,vM,a.getColumnComponent(i).field,i,i.title||a.getColumnComponent(i).field,s&&o===0))("ngClass",i.headerClass)("ngStyle",i.sticky?a.addStickyStyles(i):i.headerStyle),M("aria-sort",a.sortState(a.getColumnComponent(i)))("rowspan",i.rowspan(a.totalColumnLevels))("colspan",i.colspan)("aria-haspopup",a.isNavigable&&(a.showFilterMenu||a.showColumnMenu(i))?"dialog":void 0)("aria-expanded",a.isNavigable&&(a.showFilterMenu||a.showColumnMenu(i))?!1:void 0)("aria-keyshortcuts",a.isNavigable?"Alt + ArrowDown":void 0),u(),l("ngIf",!a.isSortable(a.getColumnComponent(i))),u(),l("ngIf",a.isSortable(a.getColumnComponent(i))),u(),l("ngIf",a.isCheckboxColumn(i)&&!i.headerTemplateRef&&i.showSelectAll),u(),l("ngIf",a.resizable)}}function FM(t,n){}function GM(t,n){if(t&1&&(q(0),g(1,"span",19),ee(2),f(),Q()),t&2){let e=h(2).$implicit;u(2),De(e.displayTitle)}}function VM(t,n){if(t&1&&b(0,"kendo-grid-column-menu",34),t&2){let e=h(2).$implicit,i=h(2);l("standalone",!1)("settings",i.columnMenuSettings)("column",e)("columnMenuTemplate",i.columnMenuTemplate)}}function zM(t,n){if(t&1&&b(0,"span",30),t&2){let e=h(2).$implicit,i=h(2);l("column",e)("columns",i.columns)}}function UM(t,n){if(t&1&&(g(0,"th",31)(1,"span",14)(2,"span",32),_(3,FM,0,0,"ng-template",16)(4,GM,3,1,"ng-container",12),f(),_(5,VM,1,4,"kendo-grid-column-menu",33),f(),_(6,zM,1,2,"span",13),f()),t&2){let e=h(),i=e.$implicit,o=e.index,s=e.last,r=h().index,a=h();N("k-first",a.isFirstOnRow(a.getColumnComponent(i),o))("k-filterable",a.showColumnMenu(i))("k-grid-content-sticky",i.sticky),l("logicalRowIndex",r)("logicalColIndex",a.logicalColumnIndex(i))("rowSpan",i.rowspan(a.totalColumnLevels))("colSpan",i.colspan)("headerLabelText",i.title||a.getColumnComponent(i).field)("enableDrag",a.shouldActivate(i))("context",mi(21,CM,i,i.title,s&&o===0))("ngClass",i.headerClass)("ngStyle",i.headerStyle),M("rowspan",i.rowspan(a.totalColumnLevels))("colspan",i.colspan),u(3),l("templateContext",Mi(25,dl,i.headerTemplateRef,a.lockedColumnsCount+o,i,i)),u(),l("ngIf",!i.headerTemplateRef),u(),l("ngIf",a.showColumnMenu(i)),u(),l("ngIf",a.resizable)}}function BM(t,n){if(t&1&&(q(0),_(1,PM,5,32,"th",9)(2,UM,7,30,"th",10),Q()),t&2){let e=n.$implicit,i=h(2);u(),l("ngIf",!i.isColumnGroupComponent(e)),u(),l("ngIf",i.isColumnGroupComponent(e))}}function jM(t,n){if(t&1&&(g(0,"tr",3),_(1,SM,1,0,"th",4)(2,bM,1,0,"th",5)(3,BM,3,2,"ng-container",6),f()),t&2){let e=n.index,i=h();l("logicalRowIndex",e)("logicalSlaveRow",i.lockedColumnsCount>0)("logicalCellsCount",i.columns.length)("logicalSlaveCellsCount",i.unlockedColumnsCount)("totalColumns",i.totalColumns),u(),l("ngForOf",i.groups),u(),l("ngIf",i.detailTemplate==null?null:i.detailTemplate.templateRef),u(),l("ngForOf",i.columnsForLevel(e))("ngForTrackBy",i.trackByIndex)}}function HM(t,n){if(t&1&&b(0,"tr",35),t&2){let e=h();l("columns",e.leafColumns)("filter",e.filter)("groups",e.groups)("detailTemplate",e.detailTemplate)("lockedColumnsCount",e.lockedColumnsCount)("logicalRowIndex",e.totalColumnLevels+1)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount)("totalColumns",e.totalColumns)}}var KM=["kendoGridFooter",""];function $M(t,n){t&1&&b(0,"td",4)}function WM(t,n){t&1&&b(0,"td",5)}function qM(t,n){}function QM(t,n){if(t&1&&(g(0,"td",6),_(1,qM,0,0,"ng-template",7),f()),t&2){let e=n.$implicit,i=n.index,o=h();N("k-grid-footer-sticky",e.sticky),l("logicalRowIndex",o.logicalRowIndex)("logicalColIndex",o.logicalColumnIndex(e))("ngClass",e.footerClass)("ngStyle",e.sticky?o.addStickyStyles(e):e.footerStyle),u(),l("templateContext",Mi(7,dl,e.footerTemplateRef,o.lockedColumnsCount+i,e,e))}}var JM=["select"],YM=["numbers"],ZM=(t,n)=>({"k-picker-sm":t,"k-picker-md":n}),XM=t=>({"k-selected":t});function e1(t,n){if(t&1&&(g(0,"option",10),ee(1,"... "),f()),t&2){let e=h();l("selected",!1),M("aria-label",e.pageLabel(e.start-1))}}function t1(t,n){if(t&1&&(g(0,"option",11),ee(1),f()),t&2){let e=n.$implicit,i=h();l("value",e.toString())("selected",e===i.currentPage)("ngClass",We(6,XM,i.currentPage===e)),M("aria-label",i.pageLabel(e))("aria-current",i.currentPage===e?"page":void 0),u(),St(" ",e," ")}}function i1(t,n){if(t&1&&(g(0,"option",12),ee(1,"... "),f()),t&2){let e=h();l("selected",!1),M("aria-label",e.pageLabel(e.end+1))}}function n1(t,n){if(t&1){let e=K();g(0,"button",13),O("click",function(){y(e);let o=h();return I(o.changePage(o.start-2))}),ee(1,"..."),f()}if(t&2){let e=h();l("size",e.size),M("aria-label",e.pageLabel(e.start-1))("title",e.pageLabel(e.start-1))}}function o1(t,n){if(t&1){let e=K();g(0,"button",14),O("click",function(){let o=y(e).$implicit,s=h();return I(s.changePage(o-1))}),ee(1),f()}if(t&2){let e=n.$implicit,i=h();l("size",i.size)("selected",i.currentPage===e),M("aria-label",i.pageLabel(e))("title",i.pageLabel(e))("aria-current",i.currentPage===e?"page":void 0),u(),St(" ",e," ")}}function s1(t,n){if(t&1){let e=K();g(0,"button",13),O("click",function(){y(e);let o=h();return I(o.changePage(o.end))}),ee(1,"..."),f()}if(t&2){let e=h();l("size",e.size),M("aria-label",e.pageLabel(e.end+1))("title",e.pageLabel(e.end+1))}}var r1=(t,n)=>({keydown:t,focusout:n});function a1(t,n){if(t&1){let e=K();g(0,"div",4),O("focusin",function(o){y(e);let s=h();return I(s.onInnerFocusIn(o,"start"))}),f()}if(t&2){let e=h();l("tabindex",e.focusTrapTabIndex),M("aria-hidden",!0)}}function l1(t,n){if(t&1&&Xe(0,5),t&2){let e=h();l("ngTemplateOutlet",e.template.templateRef)("ngTemplateOutletContext",e.templateContext)}}function c1(t,n){if(t&1&&b(0,"kendo-pager-prev-buttons",10),t&2){let e=h(2);l("size",e.size)}}function d1(t,n){if(t&1&&b(0,"kendo-pager-numeric-buttons",11),t&2){let e=h(2);l("size",e.size)("buttonCount",e.settings.buttonCount)}}function u1(t,n){if(t&1&&b(0,"kendo-pager-input",10),t&2){let e=h(2);l("size",e.size)}}function h1(t,n){if(t&1&&b(0,"kendo-pager-next-buttons",10),t&2){let e=h(2);l("size",e.size)}}function p1(t,n){t&1&&b(0,"kendo-pager-info")}function m1(t,n){if(t&1&&b(0,"kendo-pager-page-sizes",12),t&2){let e=h(2);l("size",e.size)("pageSizes",e.settings.pageSizes)}}function g1(t,n){if(t&1&&(q(0),g(1,"div",6),_(2,c1,1,1,"kendo-pager-prev-buttons",7)(3,d1,1,2,"kendo-pager-numeric-buttons",8)(4,u1,1,1,"kendo-pager-input",7)(5,h1,1,1,"kendo-pager-next-buttons",7),f(),_(6,p1,1,0,"kendo-pager-info",2)(7,m1,1,2,"kendo-pager-page-sizes",9),Q()),t&2){let e=h();u(2),l("ngIf",e.settings.previousNext),u(),l("ngIf",e.settings.type==="numeric"),u(),l("ngIf",e.settings.type==="input"),u(),l("ngIf",e.settings.previousNext),u(),l("ngIf",e.settings.info),u(),l("ngIf",e.settings.pageSizes)}}function f1(t,n){if(t&1){let e=K();g(0,"div",4),O("focusin",function(o){y(e);let s=h();return I(s.onInnerFocusIn(o,"end"))}),f()}if(t&2){let e=h();l("tabindex",e.focusTrapTabIndex),M("aria-hidden",!0)}}function _1(t,n){if(t&1){let e=K();g(0,"kendo-resize-sensor",13),O("resize",function(){y(e);let o=h();return I(o.resizeHandler())}),f()}}var v1=["container"],C1=["lockedContainer"],S1=["lockedTable"],b1=["table"],Rs=()=>[],D1=(t,n,e,i)=>({keydown:t,scroll:n,mousewheel:e,DOMMouseScroll:i});function E1(t,n){if(t&1&&(g(0,"div",13,2)(2,"div",6)(3,"table",14,3),b(5,"colgroup",8)(6,"tbody",15),f(),b(7,"kendo-resize-sensor"),f(),g(8,"div",11),b(9,"div"),f()()),t&2){let e=h();ce("width",e.lockedWidth,"px"),l("kendoEventsOutsideAngular",Mi(31,D1,e.lockedKeydown,e.lockedScroll,e.lockedMousewheel,e.lockedMousewheel))("scope",e),u(3),ce("width",e.lockedWidth,"px"),l("locked",!0)("size",e.size),u(2),l("groups",e.groups)("columns",e.lockedLeafColumns)("detailTemplate",e.detailTemplate)("sort",e.sort),u(),l("groups",e.groups)("isLocked",!0)("data",e.data)("noRecordsText","")("columns",e.lockedLeafColumns)("totalColumnsCount",e.leafColumns.length)("totalColumns",e.columns)("detailTemplate",e.detailTemplate)("showGroupFooters",e.showFooter)("skip",e.skip)("selectable",e.selectable)("trackBy",e.trackBy)("filterable",e.filterable)("rowClass",e.rowClass)("isLoading",e.loading)("isVirtual",e.isVirtual)("cellLoadingTemplate",e.cellLoadingTemplate),u(3),ce("height",e.totalHeight,"px")}}function w1(t,n){t&1&&b(0,"kendo-resize-sensor")}function y1(t,n){t&1&&b(0,"kendo-resize-sensor")}function I1(t,n){if(t&1&&(g(0,"div",16),b(1,"div"),f()),t&2){let e=h();u(),ce("width",e.totalWidth,"px")}}function T1(t,n){}function k1(t,n){if(t&1&&_(0,T1,0,0,"ng-template",1),t&2){let e=h();l("ngTemplateOutlet",e.toolbarTemplateRef)("ngTemplateOutletContext",e.context)}}var x1=t=>({aggregates:t});function R1(t,n){}function O1(t,n){if(t&1&&_(0,R1,0,0,"ng-template",1),t&2){let e=h();l("ngTemplateOutlet",e.statusBarTemplate==null?null:e.statusBarTemplate.templateRef)("ngTemplateOutletContext",We(2,x1,e.aggregates))}}var M1=["lockedHeader"],A1=["header"],L1=["ariaRoot"],N1=["footer"],P1=t=>({hintTemplate:t});function F1(t,n){if(t&1&&b(0,"kendo-grid-toolbar",17),t&2){let e=h();l("size",e.size)("navigable",e.navigation.toolbarEnabled),M("aria-label",e.messageFor("topToolbarLabel"))("aria-controls",e.ariaRootId)}}function G1(t,n){if(t&1){let e=K();g(0,"kendo-pager",18),O("pageChange",function(o){y(e);let s=h();return I(s.notifyPageChange("pager",o))}),f()}if(t&2){let e=h();l("tabindex",e.navigation.pagerEnabled?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("size",e.size)("options",e.pageable),M("role",e.navigation.pagerEnabled?"application":void 0)}}function V1(t,n){if(t&1){let e=K();g(0,"kendo-grid-group-panel",19),O("change",function(o){y(e);let s=h();return I(s.groupChange.emit(o))}),f()}if(t&2){let e=h();l("navigable",e.navigation.toolbarEnabled)("text",e.groupableEmptyText)("groups",e.group),M("aria-label",e.messageFor("groupPanelLabel"))("aria-controls",e.ariaRootId)}}function z1(t,n){if(t&1&&(g(0,"div",30,3)(2,"table",31),b(3,"colgroup",27)(4,"thead",32),f()()),t&2){let e=h(3);ce("width",e.lockedWidth,"px"),u(2),ce("width",e.lockedWidth,"px"),l("locked",!0)("size",e.size),u(),l("columns",e.lockedLeafColumns)("groups",e.group)("detailTemplate",e.detailTemplate),u(),l("resizable",e.resizable)("scrollable",!0)("columns",e.lockedColumns)("totalColumnLevels",e.totalColumnLevels)("sort",e.sort)("groups",e.group)("filter",e.filter)("filterable",e.filterable)("groupable",e.showGroupPanel)("reorderable",e.reorderable)("sortable",e.sortable)("columnMenu",e.columnMenuOptions)("columnMenuTemplate",e.columnMenuTemplate)("totalColumnsCount",e.leafColumns.length)("totalColumns",e.columnsContainer)("detailTemplate",e.detailTemplate)("tabIndex",e.navigation.tableEnabled?"-1":"0")}}function U1(t,n){if(t&1&&(g(0,"div",33),b(1,"div"),f()),t&2){let e=h(3);u(),ce("width",e.columnsContainer.unlockedWidth,"px")}}function B1(t,n){if(t&1&&(g(0,"div",23),_(1,z1,5,26,"div",24),g(2,"div",25,2)(4,"table",26),b(5,"colgroup",27)(6,"thead",28),f(),_(7,U1,2,2,"div",29),f()()),t&2){let e=h(2);ce("padding",e.headerPadding),u(),l("ngIf",e.isLocked),u(),l("kendoGridResizableContainer",e.lockedLeafColumns.length>0)("lockedWidth",e.lockedWidth+e.scrollbarWidth+2),u(2),ce("width",e.nonLockedWidth,"px"),l("virtualColumns",e.virtualColumns)("size",e.size),u(),l("columns",e.headerLeafColumns)("groups",e.isLocked?si(31,Rs):e.group)("detailTemplate",e.detailTemplate),u(),l("resizable",e.resizable)("scrollable",!0)("columns",e.headerColumns)("totalColumnLevels",e.totalColumnLevels)("sort",e.sort)("filter",e.filter)("filterable",e.filterable)("groupable",e.showGroupPanel)("reorderable",e.reorderable)("groups",e.isLocked?si(32,Rs):e.group)("sortable",e.sortable)("columnMenu",e.columnMenuOptions)("columnMenuTemplate",e.columnMenuTemplate)("lockedColumnsCount",e.lockedLeafColumns.length)("totalColumnsCount",e.leafColumns.length)("totalColumns",e.columnsContainer)("detailTemplate",e.detailTemplate)("tabIndex",e.navigation.tableEnabled?"-1":"0"),u(),l("ngIf",e.virtualColumns)}}function j1(t,n){if(t&1&&(g(0,"div",39)(1,"table",40),b(2,"colgroup",27)(3,"tfoot",41),f()()),t&2){let e=h(3);ce("width",e.lockedWidth,"px"),u(),ce("width",e.lockedWidth,"px"),l("locked",!0)("size",e.size),u(),l("columns",e.lockedLeafColumns)("groups",e.group)("detailTemplate",e.detailTemplate),u(),l("scrollable",!0)("groups",e.group)("columns",e.lockedLeafColumns)("detailTemplate",e.detailTemplate)("logicalRowIndex",e.ariaRowCount)("totalColumns",e.columnsContainer)}}function H1(t,n){if(t&1&&(g(0,"div",34),_(1,j1,4,15,"div",35),g(2,"div",36,4)(4,"table",37),b(5,"colgroup",27)(6,"tfoot",38),f()()()),t&2){let e=h(2);ce("padding",e.headerPadding),u(),l("ngIf",e.lockedLeafColumns.length),u(),l("kendoGridResizableContainer",e.lockedLeafColumns.length>0)("lockedWidth",e.lockedWidth+e.scrollbarWidth+3),u(2),ce("width",e.nonLockedWidth,"px"),l("size",e.size),u(),l("columns",e.nonLockedLeafColumns)("groups",e.isLocked?si(18,Rs):e.group)("detailTemplate",e.detailTemplate),u(),l("logicalRowIndex",e.ariaRowCount)("scrollable",!0)("groups",e.isLocked?si(19,Rs):e.group)("columns",e.nonLockedLeafColumns)("lockedColumnsCount",e.lockedLeafColumns.length)("detailTemplate",e.detailTemplate)("totalColumns",e.columnsContainer)}}function K1(t,n){if(t&1){let e=K();q(0),_(1,B1,8,33,"div",20),g(2,"kendo-grid-list",21),O("onPress",function(o){y(e);let s=h();return I(s.handleReorderEvents(o,"press"))})("onDragStart",function(o){y(e);let s=h();return I(s.handleReorderEvents(o,"dragStart"))})("onDrag",function(o){y(e);let s=h();return I(s.handleReorderEvents(o,"drag"))})("onDragEnter",function(o){y(e);let s=h();return I(s.handleReorderEvents(o,"dragEnter"))})("onDragLeave",function(o){y(e);let s=h();return I(s.handleReorderEvents(o,"dragLeave"))})("onDragEnd",function(o){y(e);let s=h();return I(s.handleReorderEvents(o,"dragEnd"))})("onDrop",function(o){y(e);let s=h();return I(s.handleReorderEvents(o,"drop"))})("pageChange",function(o){y(e);let s=h();return I(s.notifyPageChange("list",o))})("scrollBottom",function(){y(e);let o=h();return I(o.notifyScrollBottom())})("contentScroll",function(o){y(e);let s=h();return I(s.contentScroll.emit(o))}),f(),_(3,H1,7,20,"div",22),Q()}if(t&2){let e=h(),i=me(14);u(),l("ngIf",!e.hideHeader),u(),l("dragDisabled",!e.rowReorderable)("dropDisabled",!e.rowReorderable)("dragTargetFilter",e.getDefaultSelectors("dragTarget"))("dropTargetFilter",e.getDefaultSelectors("dropTarget"))("dragHandle",e.getDefaultSelectors("handle"))("hint",We(33,P1,i))("dragData",e.gridData)("data",e.view)("rowHeight",e.rowHeight)("detailRowHeight",e.detailRowHeight)("total",e.totalCount)("take",e.pageSize)("groups",e.group)("groupable",e.groupable)("skip",e.skip)("trackBy",e.trackBy)("columns",e.columnsContainer)("selectable",e.selectable)("filterable",e.filterable)("detailTemplate",e.detailTemplate)("noRecordsTemplate",e.noRecordsTemplate)("size",e.size)("rowClass",e.rowClass)("rowSticky",e.rowSticky)("loading",e.loading)("isVirtual",e.isVirtual)("cellLoadingTemplate",e.cellLoadingTemplate==null?null:e.cellLoadingTemplate.templateRef)("loadingTemplate",e.loadingTemplate==null?null:e.loadingTemplate.templateRef)("virtualColumns",e.virtualColumns)("enableDrag",e.marqueeSelection)("sort",e.sort),u(),l("ngIf",e.showFooter)}}function $1(t,n){if(t&1&&b(0,"thead",46),t&2){let e=h(2);l("resizable",e.resizable)("scrollable",!1)("columns",e.visibleColumns)("totalColumnLevels",e.totalColumnLevels)("totalColumns",e.columnsContainer)("groups",e.group)("groupable",e.showGroupPanel)("reorderable",e.reorderable)("sort",e.sort)("sortable",e.sortable)("filter",e.filter)("filterable",e.filterable)("columnMenu",e.columnMenuOptions)("columnMenuTemplate",e.columnMenuTemplate)("detailTemplate",e.detailTemplate)("tabIndex",e.navigation.tableEnabled?"-1":"0")}}function W1(t,n){if(t&1&&b(0,"tfoot",47),t&2){let e=h(2);l("scrollable",!1)("logicalRowIndex",e.ariaRowCount)("groups",e.group)("columns",e.leafColumns)("detailTemplate",e.detailTemplate)("totalColumns",e.columnsContainer)}}function q1(t,n){if(t&1&&(q(0),g(1,"table",42),b(2,"colgroup",27),_(3,$1,1,16,"thead",43),b(4,"tbody",44),_(5,W1,1,6,"tfoot",45),f(),Q()),t&2){let e=h();u(),ce("table-layout",e.resizable?"fixed":null),l("size",e.size),u(),l("columns",e.leafColumns)("groups",e.group)("detailTemplate",e.detailTemplate),u(),l("ngIf",!e.hideHeader),u(),l("isLoading",e.loading)("groups",e.group)("data",e.view)("skip",e.skip)("columns",e.leafColumns)("selectable",e.selectable)("filterable",e.filterable)("noRecordsTemplate",e.noRecordsTemplate)("detailTemplate",e.detailTemplate)("showGroupFooters",e.showGroupFooters)("trackBy",e.trackBy)("rowClass",e.rowClass)("enableDrag",e.marqueeSelection),u(),l("ngIf",e.showFooter)}}function Q1(t,n){if(t&1&&b(0,"div",48),t&2){let e=h();l("loadingTemplate",e.loadingTemplate)}}function J1(t,n){if(t&1&&b(0,"kendo-grid-status-bar",49),t&2){let e=h();l("statusBarTemplate",e.statusBarTemplate)}}function Y1(t,n){if(t&1){let e=K();g(0,"kendo-pager",50),O("pageChange",function(o){y(e);let s=h();return I(s.notifyPageChange("pager",o))}),f()}if(t&2){let e=h();l("tabindex",e.navigation.pagerEnabled?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("size",e.size)("options",e.pageable),M("role",e.navigation.pagerEnabled?"application":void 0)}}function Z1(t,n){if(t&1&&b(0,"kendo-grid-toolbar",51),t&2){let e=h();l("size",e.size)("navigable",e.navigation.toolbarEnabled),M("aria-label",e.messageFor("bottomToolbarLabel"))("aria-controls",e.ariaRootId)}}function X1(t,n){if(t&1&&(b(0,"kendo-icon-wrapper",52),ee(1)),t&2){let e=h();l("name",e.getHintSettings("hintIcon"))("svgIcon",e.getHintSettings("hintSVGIcon")),u(),St(" ",e.hintText," ")}}function eA(t,n){t&1&&b(0,"div",53)}var tA=["columnList"];function iA(t,n){if(t&1){let e=K();g(0,"span",4),ee(1),f(),g(2,"kendo-grid-columnlist",5,2),O("apply",function(o){y(e);let s=h();return I(s.onApply(o))})("columnChange",function(o){y(e);let s=h();return I(s.onChange(o))})("keydown.shift.tab",function(o){y(e);let s=h();return I(s.onShiftTab(o))}),f()}if(t&2){let e=h();u(),De(e.ctx.localization.get("columns")),u(),l("columns",e.columns)("ariaLabel",e.ctx.localization.get("columns"))("isLast",!0)("applyText",e.ctx.localization.get("columnsApply"))("resetText",e.ctx.localization.get("columnsReset"))("autoSync",e.autoSync)("allowHideAll",e.allowHideAll)}}var nA=["kendoGridEditCommand",""];function oA(t,n){if(t&1&&b(0,"kendo-icon-wrapper",4),t&2){let e=h();l("name",e.icon)("svgIcon",e.svgIcon)}}function sA(t,n){if(t&1&&(g(0,"span",5),b(1,"img",6),f()),t&2){let e=h();u(),l("src",e.imageUrl,pi)}}function rA(t,n){if(t&1&&b(0,"span",7),t&2){let e=h();l("ngClass",e.iconClass)}}var aA=["kendoGridCancelCommand",""];function lA(t,n){if(t&1&&b(0,"kendo-icon-wrapper",4),t&2){let e=h();l("name",e.icon)("svgIcon",e.svgIcon)}}function cA(t,n){if(t&1&&(g(0,"span",5),b(1,"img",6),f()),t&2){let e=h();u(),l("src",e.imageUrl,pi)}}function dA(t,n){if(t&1&&b(0,"span",7),t&2){let e=h();l("ngClass",e.iconClass)}}var uA=["kendoGridSaveCommand",""];function hA(t,n){if(t&1&&b(0,"kendo-icon-wrapper",4),t&2){let e=h();l("name",e.icon)("svgIcon",e.svgIcon)}}function pA(t,n){if(t&1&&(g(0,"span",5),b(1,"img",6),f()),t&2){let e=h();u(),l("src",e.imageUrl,pi)}}function mA(t,n){if(t&1&&b(0,"span",7),t&2){let e=h();l("ngClass",e.iconClass)}}var gA=["kendoGridRemoveCommand",""];function fA(t,n){if(t&1&&b(0,"kendo-icon-wrapper",4),t&2){let e=h();l("name",e.icon)("svgIcon",e.svgIcon)}}function _A(t,n){if(t&1&&(g(0,"span",5),b(1,"img",6),f()),t&2){let e=h();u(),l("src",e.imageUrl,pi)}}function vA(t,n){if(t&1&&b(0,"span",7),t&2){let e=h();l("ngClass",e.iconClass)}}var CA=["kendoGridAddCommand",""];function SA(t,n){if(t&1&&b(0,"kendo-icon-wrapper",4),t&2){let e=h();l("name",e.icon)("svgIcon",e.svgIcon)}}function bA(t,n){if(t&1&&(g(0,"span",5),b(1,"img",6),f()),t&2){let e=h();u(),l("src",e.imageUrl,pi)}}function DA(t,n){if(t&1&&b(0,"span",7),t&2){let e=h();l("ngClass",e.iconClass)}}var EA=/^\s*$/,G=t=>t!=null,ks=t=>t==null,za=t=>Array.isArray(t),ti=t=>!!t,dt=t=>ks(t)||EA.test(t),ul=t=>_t(Qi(t),t.changes),to=()=>typeof document>"u",Fu=t=>typeof t=="string",N_=t=>typeof t=="number"&&!isNaN(t),Gu=t=>Fu(t)&&!dt(t)&&t.startsWith("{0:")?t.slice(3,t.length-1):t,Ts=t=>(...n)=>!t(...n),hl=(...t)=>n=>t.reduce((e,i)=>e||i(n),!1),Vu=(...t)=>n=>t.reduce((e,i)=>e&&i(n),!0),NB=new _n("Skip"),wA=()=>{let t,n,e=new Promise((i,o)=>{t=s=>(i(s),e),n=s=>(o(s),e)});return e.resolve=t,e.reject=n,e},Bi=yA();function yA(){if(typeof Symbol=="function"&&Symbol.iterator)return Symbol.iterator;let t=Object.getOwnPropertyNames(Map.prototype),n=Map.prototype;for(let e=0;esetTimeout(t,IA)),kA=Ka.cancelAnimationFrame||Ka.msCancelRequestAnimationFrame||clearTimeout,xA=()=>{if(!ae())return;let t=window.navigator.userAgent,n=t.indexOf("MSIE "),e=t.indexOf("Trident/");return n>0||e>0},RA=t=>[].slice.call(t),Tt=(t,n,e)=>t.replace(new RegExp(`{\\s*${n}\\s*}`,"g"),e),zu=t=>OA(t)?t.items.flatMap(zu):[at({},t)],OA=t=>"aggregates"in t&&"items"in t&&"field"in t&&"value"in t,MA=(()=>{class t{constructor(){this.hostClass=!0}get sizedClass(){return G(this.width)}get flexBasisStyle(){return this.width}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-spacer"],["kendo-pager-spacer"]],hostVars:6,hostBindings:function(e,i){e&2&&(ce("flex-basis",i.flexBasisStyle),N("k-spacer",i.hostClass)("k-spacer-sized",i.sizedClass))},inputs:{width:"width"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),no=(()=>{class t{constructor(){this.cellClick=new C,this.cellMousedown=new C,this.cellMouseup=new C,this.click=new C,this.keydown=new C,this.focus=new C,this.focusIn=new C,this.focusOut=new C,this.windowBlur=new C,this.paste=new C}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Hi=(()=>{class t{constructor(){this.changes=new C}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),tu=new _n("focus-root-initial-active-state"),Rn=(()=>{class t{constructor(e=!1){this.active=e,this.groups=new Set}registerGroup(e){this.active&&this.groups.add(e)}unregisterGroup(e){this.active&&this.groups.delete(e)}activate(){this.active&&this.groups.forEach(e=>e.activate())}deactivate(){this.active&&this.groups.forEach(e=>e.deactivate())}}return t.\u0275fac=function(e){return new(e||t)(J(tu,8))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),AA=/^(?:a|input|select|option|textarea|button|object)$/i,Kd={},P_=t=>String(t).trim().split(" "),Oo=(t,n)=>{let e=P_(n);return!!P_(t.className).find(i=>e.indexOf(i)>=0)},Os=t=>n=>Oo(n,t),At=t=>(Kd[t]||(Kd[t]=n=>String(n.nodeName).toLowerCase()===t.toLowerCase()),Kd[t]),yt=(t,n)=>{for(;t&&!n(t);)t=t.parentNode;return t},iu=(t,n,e)=>{for(;t&&t!==e&&!n(t);)t=t.parentNode;if(t!==e)return t},Sv=(t,n,e=!1)=>{if(!yt(n,s=>s===t))return!1;let o=yt(n,s=>s===n);return o&&(e||o!==t)},Uu=t=>{if(!ae())return;let n=t.getBoundingClientRect(),e=n.width>0&&n.height>0,i=n.x!==0&&n.y!==0;return(e||i)&&window.getComputedStyle(t).visibility!=="hidden"},bv=t=>{if(!t.tagName)return!1;let n=t.tagName.toLowerCase(),e=!!t.getAttribute("tabIndex");return!t.disabled&&AA.test(n)||e},Bs=(t,n=!0)=>{if(!bv(t))return!1;let e=!n||Uu(t),i=t.getAttribute("aria-hidden")==="true",o=t.getAttribute("tabIndex");return e&&!i&&o!=="-1"},pl=(t,n,e=!0)=>{if(t){if(e&&n(t))return t;for(t=t.firstChild;t;){if(t.nodeType===1){let i=pl(t,n);if(i)return i}t=t.nextSibling}}},LA=(t,n,e=!0)=>{let i=null;return pl(t,o=>(n(o)&&(i=o),!1),e),i},NA=(t,n=!0)=>pl(t,e=>Bs(e,n)),Dv=(t,n=!0)=>pl(t,e=>Bs(e,n),!1),PA=(t,n=!0)=>LA(t,e=>Bs(e,n),!1);function FA(t,n,e){let i=t;return e<0?i=-t:e>0&&(i=n.scrollWidth-n.offsetWidth-t),i}var GA=At("button"),VA=At("input"),zA=/(button|checkbox|color|file|radio|reset|submit)/i,UA=t=>VA(t)&&zA.test(t.type),BA=t=>!t.disabled&&(GA(t)||UA(t)),nu=class{constructor(n,e){this.renderer=e,this.element=n.nativeElement,this.focusable=NA(this.element,!1)||this.element}get enabled(){return this.focusable&&!this.focusable.disabled}get visible(){return this.focusable&&Uu(this.focusable)}isNavigable(){return this.canFocus()&&BA(this.element)}toggle(n){this.renderer.setAttribute(this.focusable,"tabIndex",n?"0":"-1")}focus(){this.focusable&&this.focusable.focus()}canFocus(){return this.visible&&this.enabled}hasFocus(){return ae()&&document.activeElement!==this.element&&yt(document.activeElement,n=>n===this.element)}},cn=new _n("grid-cell-context"),jA={},F_=(()=>{class t{constructor(e){this.renderer=e,this.navigableElements=[],this.currentActiveIndex=0,this.defaultFocusableSelector=` [kendogridtoolbarfocusable], [kendogridaddcommand], [kendogridcancelcommand], [kendogrideditcommand], [kendogridremovecommand], [kendogridsavecommand], [kendogridexcelcommand], [kendogridpdfcommand] `}notify(){this.navigableElements=this.navigableElements.length&&Array.from(this.navigableElements[0].parentElement.querySelectorAll(this.defaultFocusableSelector))||[],this.currentActiveIndex=0,this.updateFocus()}focus(){this.navigableElements[this.currentActiveIndex]?.focus()}updateFocus(){this.navigableElements.length&&(this.navigableElements.forEach(e=>{this.renderer.setAttribute(e,"tabindex","-1")}),this.renderer.setAttribute(this.navigableElements[this.currentActiveIndex],"tabindex","0"),ae()&&document.activeElement.closest(".k-toolbar")&&this.navigableElements[this.currentActiveIndex].focus())}}return t.\u0275fac=function(e){return new(e||t)(J(X))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{constructor(e,i){this.renderer=e,this.localization=i,this.topToolbarNavigation=new F_(this.renderer),this.bottomToolbarNavigation=new F_(this.renderer)}}return t.\u0275fac=function(e){return new(e||t)(J(X),J(ie))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),ii=(()=>{class t{constructor(e,i,o,s){this.cellContext=e,this.hostElement=i,this.renderer=o,this.ctx=s,this.active=!0,this._enabled=!0,this.cellContext&&(this.group=this.cellContext.focusGroup),this.group&&this.group.registerElement(this)}set enabled(e){e===""?e=!0:e=!!e,e!==this.enabled&&(this._enabled=e,this.element&&this.element.toggle(this.active&&e))}get enabled(){return this._enabled}ngAfterViewInit(){!this.element&&this.ctx.navigable&&(this.element=new nu(this.hostElement,this.renderer)),this.group&&this.element&&this.toggle(this.group.isActive)}ngOnDestroy(){this.group&&this.group.unregisterElement(this)}toggle(e){this.element&&e!==this.active&&(this.element.toggle(this.enabled&&e),this.active=e)}canFocus(){return this.enabled&&this.element&&this.element.canFocus()}isNavigable(){return this.enabled&&this.element&&this.element.isNavigable()}focus(){this.enabled&&this.element&&this.element.focus()}hasFocus(){return this.enabled&&this.element&&this.element.hasFocus()}registerElement(e){this.element=e}}return t.\u0275fac=function(e){return new(e||t)(c(cn,12),c(W),c(X),c(H))},t.\u0275dir=A({type:t,selectors:[["","kendoGridFocusable",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridCancelCommand",""],["","kendoGridSelectionCheckbox",""]],inputs:{enabled:[0,"kendoGridFocusable","enabled"]}}),t})(),ou=class{constructor(n){this.navigationService=n}focus(){this.navigationService.focusCell()}toggle(n){this.navigationService.toggle(n)}canFocus(){return!0}hasFocus(){return this.navigationService.hasFocus()}isNavigable(){return!1}},su=class{constructor(n){this.model=n,this.changes=new Qe,this.activeRow=0,this.activeCol=0,this.virtualCol=0,this.virtualRow=0}set metadata(n){if(this._metadata=n,G(n)){let e=n.hasDetailTemplate?1:0;this.activeRow1&&a.colIndex<=o&&o0?Math.min(a.colIndex+a.colSpan,i):Math.max(0,a.colIndex+n);let d=this.model.findCell(s,e);a!==d?(a=d,this.virtualCol=a.colIndex):this.virtualCol=o}return this.activate(a.rowIndex,a.colIndex)}offsetRow(n){let e=this.virtualCol;if(this.metadata&&this.metadata.isVirtual){let s=this.metadata.maxLogicalRowIndex,r=Math.max(0,Math.min(this.activeRow+n,s));this.metadata.hasDetailTemplate&&!this.model.findRow(r)&&(r=n>0?r+1:r-1,r=Math.max(0,Math.min(r,s))),this.metadata.hasDetailTemplate&&r===s&&this.model.lastRow.index!==s&&r--;let a=this.model.findRow(r);if(a){let d=this.model.findCell(this.virtualCol,a);if(!d)return;d.rowIndex<=this.virtualRow&&n>0&&d.rowSpan>1&&(d=this.model.findCell(this.virtualCol,this.model.findRow(d.rowIndex+d.rowSpan-1+n))),r=d.rowIndex,e=d.colIndex}return this.virtualRow=r,this.activate(r,e)}let i=this.model.findRow(this.virtualRow+n)||this.model.nextRow(this.virtualRow,n);if(!i)return!1;let o=this.model.findCell(this.virtualCol,i);if(o&&o.rowIndex<=this.virtualRow&&n>0&&o.rowSpan>1){let s=o.rowIndex+o.rowSpan-1+n;o=this.model.findCell(this.virtualCol,this.model.findRow(s))}return!o&&(this.metadata.virtualColumns||this.metadata.hasDetailTemplate)?this.activate(this.virtualRow+n,this.virtualCol):(this.virtualRow=o.rowIndex,this.activate(this.virtualRow,o.colIndex))}},$a=class{constructor(){this.count=0,this.items={}}get first(){if(this.count>0){let n;return this.forEach(e=>(n=e,!0)),n}}get last(){if(this.count>0){let n=Object.keys(this.items);return this.items[n[n.length-1]]}}removeItem(n){this.items[n]&&(delete this.items[n],this.count--)}setItem(n,e){this.items[n]||this.count++,this.items[n]=e}getItem(n){return this.items[n]}toArray(){let n=[];return this.forEach(e=>{n.push(e)}),n}forEach(n){for(let e in this.items)if(this.items.hasOwnProperty(e)&&n(this.items[e]))return this.items[e]}find(n){return this.forEach(n)}},ru=class{constructor(){this.rows=new $a}get firstRow(){return this.rows.first}get lastRow(){return this.rows.last}registerCell(n){let e=this.rows.getItem(n.logicalRowIndex);if(!e)return;let i=n.logicalColIndex,o={uid:n.uid,colIndex:i,rowIndex:e.index,colSpan:n.colSpan,rowSpan:n.rowSpan,detailExpandCell:n.detailExpandCell,dataItem:e.dataItem,dataRowIndex:e.dataRowIndex,focusGroup:n.focusGroup};return e.cells.setItem(i,o),n.groupItem&&(e.groupItem=n.groupItem),o}unregisterCell(n,e,i){let o=this.rows.getItem(e);if(o){let s=o.cells.getItem(n);s&&s.uid===i.uid&&o.cells.removeItem(n)}}registerRow(n){let e={uid:n.uid,index:n.logicalRowIndex,dataItem:n.dataItem,dataRowIndex:n.dataRowIndex,cells:new $a};this.rows.setItem(n.logicalRowIndex,e)}updateRow(n){let e=this.rows.getItem(n.logicalRowIndex);e&&Object.assign(e,{dataItem:n.dataItem,dataRowIndex:n.dataRowIndex})}unregisterRow(n,e){let i=this.rows.getItem(n);i&&i.uid===e.uid&&this.rows.removeItem(n)}cellRange(n){if(n){let e=n.colIndex,i=n.colIndex+(n.colSpan||1)-1;return{start:e,end:i}}return{}}rowRange(n){if(n){let e=n.rowIndex,i=n.rowIndex+(n.rowSpan||1)-1;return{start:e,end:i}}return{}}nextRow(n,e){let i=this.rows.toArray(),o=this.rows.getItem(n),s=i.indexOf(o);return i[s+e]}findRow(n){return this.rows.getItem(n)}findCell(n,e){if(!e)return;let i=e.index,o=e.cells.getItem(n),s=i;for(;!o&&e;)e=this.rows.getItem(s),o=this.rowCell(n,e),s--;if(o&&i<=e.index+(o.rowSpan||1)-1)return o}rowCell(n,e){if(!e||!e.cells.count)return;let i=e.cells.first,o,s=n;for(;!o&&s>=i.colIndex;)o=e.cells.getItem(s),s--;if(o&&n<=o.colIndex+(o.colSpan||1)-1)return o}},On=class{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},au=class extends On{constructor(n){super(),this.action="cellClose",Object.assign(this,n)}},HA=t=>n=>n.index===t,KA=t=>n=>n.index!==t,eo=t=>t===-1||t===void 0,Ri=(()=>{class t{constructor(e){this.ngZone=e,this.changes=new C,this.editedIndices=[],this.keepEditCell=!1,this.closingCell=!1,this.changedSource=new Qe,this.changed=this.changedSource.asObservable().pipe(xt(()=>this.ngZone.onStable.asObservable().pipe(Ke(1))))}editRow(e,i=void 0){this.editedIndices.push({index:e,group:i}),this.onChanged()}addRow(e){this.newItemGroup={group:e},this.onChanged()}editCell(e,i,o){eo(e)||i.editable===!1||!(i.editTemplate||i.field)||(this.preventCellClose(),this.closeCell()||(this.editRow(e,o),this.column=i,this.onChanged()))}isEditing(){return this.editedIndices.length>0}isEditingCell(){return this.isEditing()&&this.column!==void 0}get hasNewItem(){return G(this.newItemGroup)}get newDataItem(){return this.hasNewItem?this.newItemGroup.group.value:{}}close(e){if(eo(e)){this.newItemGroup=void 0;return}this.editedIndices=this.editedIndices.filter(KA(e)),delete this.column,this.onChanged()}closeCell(e){if(this.column&&!this.closingCell)return this.ngZone.run(()=>{let{index:i,group:o}=this.editedIndices[0],s=new au({column:this.column,formGroup:o,originalEvent:e,rowIndex:i});return this.closingCell=!0,this.changes.emit(s),this.closingCell=!1,s.isDefaultPrevented()||this.cancelCell(),s.isDefaultPrevented()})}cancelCell(){this.column&&(this.editedIndices=[],delete this.column,this.onChanged())}shouldCloseCell(){return this.column&&!this.keepEditCell}preventCellClose(){this.ngZone.runOutsideAngular(()=>{window.clearTimeout(this.keepCellTimeout),this.keepEditCell=!0,this.keepCellTimeout=window.setTimeout(()=>{this.keepEditCell=!1},0)})}context(e){return eo(e)?this.newItemGroup:this.findByIndex(e)}columnContext(e,i){if(eo(e))return this.newItemGroup;if(!this.column||i===this.column)return this.findByIndex(e)}isEdited(e){return eo(e)&&G(this.newItemGroup)?!0:!this.column&&G(this.findByIndex(e))}hasEdited(e){return G(this.context(e))}isEditedColumn(e,i){return this.column&&this.column===i?G(this.findByIndex(e)):!1}beginEdit(e){this.changes.emit({action:"edit",rowIndex:e})}beginAdd(){this.changes.emit({action:"add"})}endEdit(e){let{group:i}=this.context(e);this.changes.emit({action:"cancel",rowIndex:e,formGroup:i,isNew:eo(e)})}save(e){let{group:i}=this.context(e);this.changes.emit({action:"save",rowIndex:e,formGroup:i,isNew:eo(e)})}remove(e){this.changes.emit({action:"remove",rowIndex:e})}findByIndex(e){return this.editedIndices.find(HA(e))}onChanged(){this.ngZone.runOutsideAngular(()=>{this.changedSource.next()})}}return t.\u0275fac=function(e){return new(e||t)(J(re))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Wa=t=>G(t)?{group:t.data,groupIndex:t.index,parentGroup:Wa(t.parentGroup)}:null,$A=(t,n)=>{let e=n===t,i=t.lastIndexOf("_"),o=t.substring(0,i)===n;return!e&&o},oo=(()=>{class t{constructor(){this.changes=new Qe,this.rowState=new Set}reset(){this.rowState.clear()}ngOnDestroy(){this.reset()}isExpanded(e){return this.userCallback?this.userCallback(e):!this.rowState.has(e.groupIndex)}isInExpandedGroup(e){let i=!0;for(;e&&i;)i=this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:Wa(e.parentGroup)}),e=e.parentGroup;return i}toggleRow(e,i=!0){let o=Wa(e.parentGroup),s=!this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:o});this.changes.next({group:e.data,expand:s,groupIndex:e.index,parentGroup:o,emit:i}),!this.userCallback&&(s?this.rowState.delete(e.index):this.rowState.add(e.index))}expandChildren(e){this.rowState.forEach(i=>$A(i,e)&&this.rowState.delete(i))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Di=class{constructor(){this.changes=new Qe,this.pageChange=new Qe}get currentPage(){return this.skip/this.pageSize}notifyChanges(n){this.total=n.total,this.pageSize=n.pageSize,this.skip=n.skip,this.changes.next(n)}changePage(n){this.pageChange.next({skip:n*this.pageSize,take:this.pageSize})}changePageSize(n){this.pageChange.next({skip:0,take:n})}nextPage(){let n=this.currentPage+1;n*this.pageSize=0&&this.changePage(n)}},lu=class extends On{constructor(n){super(),Object.assign(this,n)}},cu=class extends On{constructor(n){super(),Object.assign(this,n)}},Ms=(()=>{class t{constructor(){this.changes=new Qe,this.rowState=new Set}ngOnDestroy(){this.rowState.clear()}isExpanded(e,i){return this.userCallback?this.userCallback({index:e,dataItem:i}):this.rowState.has(e)}toggleRow(e,i){this.isExpanded(e,i)?this.collapseRow(e,i):this.expandRow(e,i)}expandRow(e,i){!this.emitEvent({dataItem:i,index:e,expand:!0})&&!this.userCallback&&this.rowState.add(e)}collapseRow(e,i){!this.emitEvent({dataItem:i,index:e,expand:!1})&&!this.userCallback&&this.rowState.delete(e)}emitEvent(e){let i=new(e.expand?cu:lu)(e);return this.changes.next(i),i.isDefaultPrevented()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),qa=(()=>{class t{constructor(){this.requests=new Qe}scrollTo(e,i=!0){this.requests.next({request:e,adjustIndex:i})}scrollToItem(e){this.requests.next({request:e})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),WA=(t,n)=>yt(t,At("kendo-grid"))===n,qA=At("th"),QA=At("td"),JA=At(".k-grid-footer td"),G_=t=>QA(t)||qA(t)||JA(t),YA=(t,n)=>{let e=yt(t,G_);for(;e&&!WA(e,n);)e=yt(e.parentElement,G_);return e},$d=(t,n)=>{let e=YA(t,n),i=yt(e,At("tr"));if(e&&i){let o=i.getAttribute("aria-rowindex")||i.getAttribute("data-kendo-grid-row-index");o=o?parseInt(o,10)-1:null;let s=e.getAttribute("aria-colindex");if(s=s?parseInt(s,10)-1:null,o!==null&&s!==null)return{colIndex:s,rowIndex:o,element:e}}},ZA=t=>t===T.ArrowLeft||t===T.ArrowRight||t===T.ArrowUp||t===T.ArrowDown,V_=t=>ZA(t)||t===T.PageUp||t===T.PageDown||t===T.Home||t===T.End,XA=At("input"),eL=t=>t&&XA(t)&&t.type.toLowerCase()==="text",tL=t=>t.length===1&&t.match(/\S/),Qa=class{constructor(n,e){this.firstItemIndex=n,this.lastItemIndex=e}containsRow(n){return n<0||n>=this.firstItemIndex&&n<=this.lastItemIndex}intersects(n,e){return n<=this.firstItemIndex&&this.lastItemIndex<=e||this.firstItemIndex<=n&&n<=this.lastItemIndex||this.firstItemIndex<=e&&e<=this.lastItemIndex}},Lt=(()=>{class t{constructor(e,i,o,s,r,a,d,p,m,v,S){this.zone=e,this.domEvents=i,this.pagerContextService=o,this.scrollRequestService=s,this.groupsService=r,this.detailsService=a,this.focusRoot=d,this.editService=p,this.cd=m,this.ctx=v,this.focusableParent=S,this.cellKeydown=new C,this.activeRowIndex=0,this.alive=!1,this.active=!0,this.mode=0,this.model=new ru,this.cursor=new su(this.model),this.pagerIsNavigable=!1,this.tableIsNavigable=!1,this.toolbarIsNavigable=!1,this.changes=this.cursor.changes}set metadata(e){this.meta=e,this.cursor.metadata=e}get metadata(){return this.meta}get enabled(){return this.alive}get pagerEnabled(){return this.alive&&this.pagerIsNavigable}get tableEnabled(){return this.alive&&this.tableIsNavigable}get toolbarEnabled(){return this.alive&&this.toolbarIsNavigable}get activeCell(){if(this.mode!==0)return this.cursor.cell}get activeRow(){if(this.mode!==0)return Object.assign({},this.cursor.row,{cells:this.cursor.row.cells.toArray()})}get activeDataRow(){return Math.max(0,this.activeRowIndex-this.meta.headerRows)}init(e,i){this.setActiveSections(i),this.alive=!0,this.focusRoot.active=!0,this.metadata=e;let o=(...r)=>a=>this.zone.isStable?Gn([!0]).pipe(Ve(()=>a)):this.zone.onStable.pipe(Ke(1),Ve(()=>a),...r),s=o();if(this.subs=new Se,this.subs.add(this.cursor.changes.subscribe(r=>this.onCursorChanges(r))),this.subs.add(this.domEvents.focus.pipe(xt(s)).subscribe(r=>this.navigateTo(r.target))),this.subs.add(this.domEvents.focusOut.pipe(pe(()=>this.mode!==0),xt(o(qt(this.domEvents.focus)))).subscribe(r=>this.onFocusOut(r))),this.subs.add(this.domEvents.windowBlur.pipe(pe(()=>this.mode!==0)).subscribe(()=>this.onWindowBlur())),this.subs.add(this.editService.changes.pipe(pe(r=>r.action!=="edit"&&this.mode===2),pe(r=>r.action==="cellClose"&&!r.prevented),xt(s)).subscribe(()=>this.leaveCell())),this.subs.add(this.pagerContextService.pageChange.subscribe(()=>this.cursor.reset(0,0))),this.subs.add(this.domEvents.keydown.subscribe(r=>this.onKeydown(r))),this.subs.add(this.domEvents.keydown.pipe(pe(r=>r.keyCode===T.Tab&&this.mode===2),Yo(this.domEvents.focusOut.pipe(qt(Xs(0).pipe(Ke(1)))))).subscribe(()=>this.onTabout())),this.focusableParent){let r=new ou(this);this.focusableParent.registerElement(r)}this.deactivateElements()}ngOnDestroy(){this.subs&&this.subs.unsubscribe(),this.alive=!1}registerCell(e){if(e.logicalRowIndex!==this.pendingRowIndex){let i=this.model.registerCell(e);this.virtualCell&&this.cursor.activateVirtualCell(i)&&(this.virtualCell=!1)}}registerCellOnCurrentRow(e){e.logicalRowIndex===this.pendingRowIndex&&this.model.registerCell(e)}unregisterCell(e,i,o){this.model.unregisterCell(e,i,o)}registerRow(e){this.model.registerRow(e),this.pendingRowIndex=e.logicalRowIndex}updateRow(e){this.model.updateRow(e)}unregisterRow(e,i){this.model.unregisterRow(e,i);let o=this.model.lastRow;if(o&&this.mode===0){let s=this.needsViewport()&&this.viewport?this.viewport.lastItemIndex:o.index;this.activeRowIndex>s&&this.cursor.reset(0,0)}}isCellFocusable(e){return this.alive&&this.active&&this.mode!==2&&this.cursor.isActive(e.logicalRowIndex,e.logicalColIndex)}isCellFocused(e){return this.mode===1&&this.isCellFocusable(e)}navigateTo(e){if(!this.alive||!ae())return;let i=$d(e,this.meta.gridElement.nativeElement);if(!i)return;let o=this.mode,s=Sv(i.element,document.activeElement),r=this.mode===2&&this.activeRowIndex===i.rowIndex&&e!==i.element;if(s)this.mode=2,this.cursor.reset(i.rowIndex,i.colIndex),this.activateRow();else if(!r){this.mode=1,this.deactivateElements();let a=this.cursor.isActive(i.rowIndex,i.colIndex);o===1&&a||this.cursor.reset(i.rowIndex,i.colIndex)}}tryFocus(e){this.activateElements();let i=Dv(e);if(i){let o=$d(i,this.meta.gridElement.nativeElement);o&&(this.cursor.reset(o.rowIndex,o.colIndex),this.deactivateElements(),this.enterCell()),i.focus()}else this.deactivateElements();return!!i}needsViewport(){return this.meta&&this.meta.isVirtual}setViewport(e,i){if(this.viewport=new Qa(e,i),this.meta&&this.meta.isVirtual&&this.activeDataRow>-1){let o=this.activeDataRow,s=e-o,r=o-i;s>0?this.cursor.reset(e+this.meta.headerRows):r>0&&this.cursor.reset(i-this.meta.headerRows)}}setColumnViewport(e,i){if(this.columnViewport=new Qa(e,i),this.meta&&this.meta.isVirtual&&this.activeDataRow>-1){let o=this.cursor.cell?this.cursor.cell.colIndex:0,s=e-o,r=o-i;s>0?this.cursor.reset(void 0,e,!1):r>0&&this.cursor.reset(void 0,i,!1)}}focusCell(e=void 0,i=void 0){return this.mode=1,this.cursor.reset(e,i),this.activeCell}focusCellByElement(e){let i=$d(e,this.meta.gridElement.nativeElement);if(i)return this.focusCell(i.rowIndex,i.colIndex)}focusNextCell(e=!0){return this.focusAdjacentCell(!0,e)}focusPrevCell(e=!0){return this.focusAdjacentCell(!1,e)}toggle(e){this.active=e,this.cursor.announce()}hasFocus(){return this.mode===1||this.mode===2}autoFocusCell(e,i){return!this.meta.virtualColumns||ie.focusGroup&&e.focusGroup.activate())}moveCursorFwd(){return this.ctx.localization.rtl?this.cursor.moveLeft():this.cursor.moveRight()}moveCursorBwd(){return this.ctx.localization.rtl?this.cursor.moveRight():this.cursor.moveLeft()}onCursorKeydown(e){let i=!1,o=e.ctrlKey||e.metaKey,s=o?5:1;if(!this.onCellKeydown(e))return;let r=this.cursor.row;switch(e.keyCode){case T.ArrowDown:i=this.cursor.moveDown(s);break;case T.ArrowUp:i=this.cursor.moveUp(s);break;case T.ArrowRight:i=this.moveCursorFwd();break;case T.ArrowLeft:i=this.moveCursorBwd();break;case T.PageDown:if(this.metadata.isVirtual&&this.viewport){let a=this.meta.headerRows+this.viewport.lastItemIndex+1;this.metadata.hasDetailTemplate&&a++,a=Math.min(this.meta.maxLogicalRowIndex,a),this.cursor.reset(a),i=!0}else this.metadata.hasPager&&(this.zone.run(()=>this.pagerContextService.nextPage()),i=!0);break;case T.PageUp:if(this.metadata.isVirtual&&this.viewport){let a=this.viewport.lastItemIndex-this.viewport.firstItemIndex,d=this.viewport.firstItemIndex,p=Math.max(this.meta.headerRows,d-a-1);this.cursor.reset(p),i=!0}else this.metadata.hasPager&&(this.zone.run(()=>this.pagerContextService.prevPage()),i=!0);break;case T.Home:if(o)this.meta.isVirtual?this.cursor.reset(this.meta.headerRows,0,!1):this.cursor.reset(this.model.firstRow.index,0,!1);else{let a=0;this.meta.hasDetailTemplate&&r.indexthis.groupsService.toggleRow(a)):this.cursor.cell.detailExpandCell?this.zone.run(()=>this.detailsService.toggleRow(r.dataRowIndex,r.dataItem)):(this.enterCell(),this.cursor.cell.focusGroup.isNavigable()||(i=!0));break}default:!e.ctrlKey&&!e.altKey&&tL(e.key)&&this.enterCell()}i&&e.preventDefault()}onContentKeydown(e){if(!this.onCellKeydown(e))return;let i=!e.defaultPrevented&&e.keyCode===T.Enter&&eL(e.srcElement);e.keyCode===T.Escape||e.keyCode===T.F2||i?(this.leaveCell(),this.cursor.reset(),e.stopPropagation()):V_(e.keyCode)&&this.cursor.cell.focusGroup.isNavigable()&&(this.onCursorKeydown(e),e.defaultPrevented&&this.leaveCell())}onCellKeydown(e){if(this.editService.isEditingCell()){let i=e.keyCode===T.Enter,o=e.keyCode===T.Escape,s=V_(e.keyCode);if(i)this.editService.closeCell(e);else if(o)this.editService.closeCell(e),this.cd.detectChanges();else if(s)return!1}return this.cellKeydown.emit(e),!0}onCursorChanges(e){this.activeRowIndex=e.rowIndex;let i=this.activeDataRow;if(this.meta&&this.meta.isVirtual&&e.rowIndex>=this.meta.headerRows&&this.viewport&&!this.viewport.containsRow(i)&&i>-1&&this.scrollRequestService.scrollTo({row:i}),this.meta.virtualColumns&&e.colIndex>=this.meta.columns.lockedLeafColumns.length){let o=this.activeCell,{start:s,end:r}=this.model.cellRange(o);o||(this.virtualCell=!0),(!o&&this.mode!==0||o&&!this.columnViewport.intersects(s,r))&&this.scrollRequestService.scrollTo({column:e.colIndex-(this.metadata.hasDetailTemplate?1:0)})}}onFocusOut(e){Uu(e.target)?this.mode=0:this.mode=1,this.deactivateElements(),this.cursor.announce()}onWindowBlur(){this.mode=0,this.deactivateElements(),this.cursor.announce()}onKeydown(e){this.mode===1?this.onCursorKeydown(e):this.mode===2&&this.onContentKeydown(e)}onTabout(){this.cursor.cell.focusGroup.isNavigable()||(this.leaveCell(),this.cursor.reset())}}return t.\u0275fac=function(e){return new(e||t)(J(re),J(no),J(Di),J(qa),J(oo),J(Ms),J(Rn),J(Ri),J(ve),J(H),J(ii,8))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),iL=0,ni=(()=>{class t{constructor(){this.prefix=`k-grid${iL++}`}gridId(){return this.prefix}cellId(e,i){return`${this.prefix}-r${e}c${i}`}selectionCheckboxId(e){return`${this.prefix}-checkbox${e}`}selectAllCheckboxId(){return`${this.prefix}-select-all`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Ev=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridHeaderTemplate",""]]}),t})(),wv=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridFooterTemplate",""]]}),t})(),Bu=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridColumnMenuTemplate",""]]}),t})(),As={autoSizeColumn:`The auto size column does not work with enabled virtual columns. See https://www.telerik.com/kendo-angular-ui/components/grid/accessories/column-menu/#toc-autosize-column-item.`,autoSizeAllColumns:`The auto size all columns does not work with enabled virtual columns. See https://www.telerik.com/kendo-angular-ui/components/grid/accessories/column-menu/#toc-autosize-all-columns-item.`,serviceInput:`The service input of the predefined column menu components is mandatory. See https://www.telerik.com/kendo-angular-ui/components/grid/accessories/column-menu/#toc-customizing-the-content.`},Wd={activeCellNavigable:`Grid must be navigable to use "activeCell" as clipboard target type. See https://www.telerik.com/kendo-angular-ui/components/grid/accessories/clipboard/#toc-active-cell.`,selectionSelectable:`Grid must be selectable to use "selection" as clipboard target type. See https://www.telerik.com/kendo-angular-ui/components/grid/accessories/clipboard/#toc-current-selection.`},di={fieldName:t=>`Grid column field name '${t}' does not look like a valid JavaScript identifier. Identifiers can contain only alphanumeric characters (including "$" or "_"), and may not start with a digit. Please use only valid identifier names to ensure error-free operation.`,width:(t,n)=>`Expected numeric value for column width, but got a string "${t}". Treating as ${n}px.`,invalidColumn:t=>`Invalid column ${t}.`,requiredWidth:t=>`${t} columns feature requires all columns to have set width. See https://www.telerik.com/kendo-angular-ui/components/grid/columns/${t.toLowerCase()}.`,requiredScroll:t=>`${t} columns are only supported when scrolling is enabled. See https://www.telerik.com/kendo-angular-ui/components/grid/columns/${t.toLowerCase()}/`,groupColumnContent:"ColumnGroupComponent should contain ColumnComponent or CommandColumnComponent.",lockedParent:"Locked child columns require their parent columns to be locked.",columnNested:"Columns can be nested only inside ColumnGroupComponent",nestedInside:(t,n)=>`${t} cannot be nested inside ${n}.`},ft={functionType:(t,n)=>`${t} must be a function, but received ${JSON.stringify(n)}.`,incompatibleFeatures:(t,n)=>`'Having both ${t} and ${n} is not supported.'`,nonLockedColumnPresent:"There should be at least one non-locked column. See https://www.telerik.com/kendo-angular-ui/components/grid/columns/locked/#toc-known-limitations",rowHeightVirtual:`The virtual scrolling functionality requires setting the rowHeight (and detailRowHeight when there are detail rows). Row height and detail row height settings should be set only when virtual scrolling mode is enabled. See https://www.telerik.com/kendo-angular-ui/components/grid/scroll-modes/virtual/#toc-getting-started.`,focusNavigable:"The Grid should be configured as navigable to control focus. See https://www.telerik.com/kendo-angular-ui/components/grid/keyboard-navigation/.",expandCollapseMethods:(t,n,e,i)=>`The ${t} and ${n} methods should not be called when using the ${e} directive or the ${i} callback. These methods are provided only for backwards compatibility with legacy versions.`,requiredEditService:`The default edit service of the editing directives works only when binding to plain array. Please provide an editService. See https://www.telerik.com/kendo-angular-ui/components/grid/editing/editing-directives/#toc-custom-editing-service.`,requiredModule:(t,n,e)=>`Creating ${t} requires including the ${n} and adding the ${e} component.`,groupBindingDirectives:`Using the "kendoGridGroupBinding" directive in combination with the "kendoGridExpandGroupBy" directive or the "isGroupExpanded" callback is not supported. To use grouping with the "kendoGridGroupBinding" directive, set the Grid "groupable" property to "true".`,unsupportedMethod:(t,n)=>`Using ${t} in this context is not supported. Use ${n} instead.`},ju=t=>t.isSpanColumn,yv=t=>t.isCheckboxColumn,qd=t=>t.isRowReorderColumn,nL=t=>t.isColumnGroup||ju(t),ct=(()=>{class t{constructor(e,i){if(this.parent=e,this.matchesMedia=!0,this.orderIndex=0,this.isColumnGroup=!1,this.isSpanColumn=!1,this.resizable=!0,this.reorderable=!0,this.minResizableWidth=10,this._locked=!1,this.sticky=!1,this.lockable=!0,this.stickable=!0,this.columnMenu=!0,this.includeInChooser=!0,this.tableCellsRole="gridcell",this.headerTemplates=new Ze,this.columnMenuTemplates=new Ze,this.idService=i,e&&i&&e.idService.gridId()===i.gridId()&&!nL(e))throw new Error(di.columnNested)}set leafIndex(e){this._leafIndex=e}get leafIndex(){return this._leafIndex}set width(e){if(typeof e=="string"){let i=this._width=parseInt(e,10);fe()&&console.warn(di.width(e,i))}else this._width=e}get width(){return this._width}set locked(e){this._locked=e}get locked(){return this._locked}get level(){return this.parent&&ju(this.parent)?this.parent.level:this.parent?this.parent.level+1:0}get isLocked(){return this.parent?this.parent.isLocked:this.locked}get colspan(){return 1}rowspan(e){return this.level{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridCellTemplate",""]]}),t})(),Hu=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridEditTemplate",""]]}),t})(),Iv=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridGroupHeaderTemplate",""]]}),t})(),Tv=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridGroupHeaderColumnTemplate",""]]}),t})(),kv=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridGroupFooterTemplate",""]]}),t})(),xv=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridFilterCellTemplate",""]]}),t})(),Rv=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridFilterMenuTemplate",""]]}),t})();function Ls(t){return G(t.field)}var bi=(()=>{class t extends ct{constructor(e,i){super(e,i),this.sortable=!0,this.groupable=!0,this.editor="text",this.filter="text",this.filterable=!0,this.editable=!0}get templateRef(){return this.template?this.template.templateRef:void 0}get groupHeaderTemplateRef(){return this.groupHeaderTemplate?this.groupHeaderTemplate.templateRef:void 0}get groupHeaderColumnTemplateRef(){return this.groupHeaderColumnTemplate?this.groupHeaderColumnTemplate.templateRef:void 0}get groupFooterTemplateRef(){return this.groupFooterTemplate?this.groupFooterTemplate.templateRef:void 0}get editTemplateRef(){return this.editTemplate?this.editTemplate.templateRef:void 0}get filterCellTemplateRef(){return this.filterCellTemplate?this.filterCellTemplate.templateRef:void 0}get filterMenuTemplateRef(){return this.filterMenuTemplate?this.filterMenuTemplate.templateRef:void 0}get displayTitle(){return this.title===void 0?this.field:this.title}}return t.\u0275fac=function(e){return new(e||t)(c(ct,13),c(ni,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-column"]],contentQueries:function(e,i,o){if(e&1&&(B(o,js,5),B(o,Iv,5),B(o,Tv,5),B(o,kv,5),B(o,Hu,5),B(o,xv,5),B(o,Rv,5)),e&2){let s;D(s=E())&&(i.template=s.first),D(s=E())&&(i.groupHeaderTemplate=s.first),D(s=E())&&(i.groupHeaderColumnTemplate=s.first),D(s=E())&&(i.groupFooterTemplate=s.first),D(s=E())&&(i.editTemplate=s.first),D(s=E())&&(i.filterCellTemplate=s.first),D(s=E())&&(i.filterMenuTemplate=s.first)}},inputs:{field:"field",format:"format",sortable:"sortable",groupable:"groupable",editor:"editor",filter:"filter",filterable:"filterable",editable:"editable"},features:[Y([{provide:ct,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();function ml(t){return t.isSpanColumn}var Ov=(()=>{class t extends ct{constructor(e,i){if(super(e,i),this.isSpanColumn=!0,this.template=new Ze,this.editTemplate=new Ze,this.childColumns=new Ze,this.includeInChooser=!1,this._editable=!0,e&&e.isSpanColumn)throw new Error(di.nestedInside("SpanColumnComponent","SpanColumnComponent"))}set editable(e){this._editable=e}get editable(){return G(this.editTemplateRef)&&this._editable}set width(e){}get width(){return this.childColumns.reduce((e,i)=>e+i.width,0)}get leafIndex(){return this.childColumns.first.leafIndex}get templateRef(){let e=this.template.first;return e?e.templateRef:void 0}get editTemplateRef(){let e=this.editTemplate.first;return e?e.templateRef:void 0}get colspan(){return this.childColumns.filter(e=>e.isVisible).length}set locked(e){this._locked=e}get locked(){return this._locked||this.childColumns.some(e=>e.locked)}get childrenArray(){return this.childColumns.toArray()}get hasChildren(){return this.childColumns.length>0}}return t.\u0275fac=function(e){return new(e||t)(c(ct,13),c(ni,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-span-column"]],contentQueries:function(e,i,o){if(e&1&&(B(o,js,4),B(o,Hu,4),B(o,bi,4)),e&2){let s;D(s=E())&&(i.template=s),D(s=E())&&(i.editTemplate=s),D(s=E())&&(i.childColumns=s)}},inputs:{editable:"editable",locked:"locked"},features:[Y([{provide:ct,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),ji=t=>t.reduce((n,e)=>n.concat(ml(e)?e.childrenArray:[e]),[]),z_=t=>t.reduce((n,e)=>n.concat(ml(e)?[e].concat(e.childrenArray):[e]),[]),ln=t=>ji(t).filter(n=>n.isVisible),Mv=t=>n=>(n||[]).reduce((e,i)=>e+(i[t]||0),0),oL=Mv("width"),Ja=Mv("colspan"),sL=new RegExp("^[$A-Z_a-z][$A-Z_a-z0-9\\.]*$"),rL=t=>!dt(t)&&sL.test(t)&&t[0]!=="."&&t[t.length-1]!==".",aL=t=>t.children.filter(n=>n!==t),Hs=t=>t.reduce((n,e)=>(e.isColumnGroup?n=n.concat(Hs(aL(e))):e.isSpanColumn?n=n.concat(e.childrenArray):n.push(e),n),[]).filter(n=>n.isVisible),Qd=(t,...n)=>Hs(n).some(t),lL=t=>t.filter(n=>ti(n.resizable)&&n.isVisible),Mo=t=>as(t,[{field:"orderIndex",dir:"asc"}]),Av=t=>ti(t.parent)&&ml(t.parent);function Ao(t){return t.isColumnGroup}var Lv=(()=>{class t extends ct{constructor(e,i){if(super(e,i),this.parent=e,this.includeInChooser=!1,this.isColumnGroup=!0,this.minResizableWidth=10,e&&e.isSpanColumn)throw new Error(di.nestedInside("ColumnGroupComponent","SpanColumnComponent"))}rowspan(){return 1}get colspan(){return this.children?Ja(this.children.filter(e=>e!==this&&e.isVisible)):1}get leafIndex(){return this.children?(this.firstChild||{}).leafIndex:-1}get childrenArray(){return this.children.filter(e=>e!==this)}get hasChildren(){return!!this.firstChild}get firstChild(){return this.children.find(e=>e!==this)}}return t.\u0275fac=function(e){return new(e||t)(c(ct,13),c(ni,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-column-group"]],contentQueries:function(e,i,o){if(e&1&&B(o,ct,4),e&2){let s;D(s=E())&&(i.children=s)}},features:[Y([{provide:ct,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),cL=(...t)=>{let n=!1;for(let e=0;e{let te=U.isLocked===!0?i:o,x=U.isLocked===!0?s:r,de=U.isLocked===!0?p:m;Ao(U)||(te.push(U),e.push(U),d.push(...ln([U])),de.push(...ln([U])),v=v||Qd(V=>!!V.groupHeaderColumnTemplateRef,U),S=S||Qd(V=>!!V.groupFooterTemplateRef,U),w=w||Qd(V=>!!V.footerTemplateRef,U),U.isLocked||(L+=U.width||0),U.isSpanColumn?U.childColumns.forEach(V=>{V.leafIndex=F++}):U.leafIndex=F++),x.push(U),a.push(U),this.totalLevels=U.level>this.totalLevels?U.level:this.totalLevels}),this.hasGroupHeaderColumn=v,this.hasGroupFooter=S,this.hasFooter=w,this.leafColumnsToRender=d,this.lockedColumnsToRender=p,this.nonLockedColumnsToRender=m,this.unlockedWidth=L;let R=cL([this.leafColumns,e],[this.lockedLeafColumns,i],[this.nonLockedLeafColumns,o],[this.lockedColumns,s],[this.allColumns,a],[this.nonLockedColumns,r])||n!==this.totalLevels;return R&&this.changes.emit(),R}},dL={left:"0px",right:"0px"},Yt=(()=>{class t{constructor(){this.visibilityChange=new C,this.lockedChange=new C,this.stickyChange=new C,this.columnRangeChange=new C,this.columnsContainer=new Ns(()=>[])}get lockedLeafColumns(){return this.columnsContainer.lockedLeafColumns}get nonLockedLeafColumns(){return this.columnsContainer.nonLockedLeafColumns}get isLocked(){return this.lockedLeafColumns.length>0}get totalLevels(){return this.columnsContainer.totalLevels}get hiddenColumns(){return this.list?this.list().filter(e=>!e.isVisible):[]}get leafNamedColumns(){let e=ji(this.list().filterSort(i=>!i.isColumnGroup)).filter(i=>i.matchesMedia&&i.displayTitle);return as(e,[{field:"locked",dir:"desc"}])}get unlockedRootCount(){return this.list().rootColumns().filter(e=>!e.locked&&e.isVisible).length}stickyColumnsStyles(e){if(this.stickyColumns=this.list().rootColumns().filter(o=>o.sticky&&!o.locked&&o.isVisible),this.stickyColumns.length===0)return dL;let i=this.stickyColumns.reduce((o,s)=>(s.leafIndexe.leafIndex&&(o.right+=s.width),o),{left:0,right:0});return{left:`${i.left}px`,right:`${i.right}px`}}init(e,i){this.columnsContainer=e,this.list=i,this.stickyColumns=null}changeVisibility(e){this.stickyColumns=null,this.visibilityChange.emit(e)}changeLocked(e){this.stickyColumns=null,this.lockedChange.emit(e)}changeStuck(e){this.stickyColumns=null,this.stickyChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Ks=(()=>{class t{constructor(e,i,o){this.ctx=e,this.dataChanges=i,this.columnInfoService=o,this.selectedItems=[],this.groupedAggregates={dates:[],numbers:[],booleans:[]},this.aggregates={sum:null,average:null,min:null,max:null,count:null,isTrue:null,isFalse:null,earliest:null,latest:null}}isAggregateIncluded(e){let{cellAggregates:i}=this.ctx.grid.selectable;return typeof i!="boolean"?i?.includes(e):!0}init(){if(this.ctx.grid.selectable.cellAggregates){this.data=this.dataChanges.data?this.dataChanges.data:this.ctx.grid.data,this.isAggregateIncluded("count")&&(this.aggregates.count=0);let e=this.ctx.grid.selectionDirective;e&&!this.isRowSelection&&(this.selectedItems=e.selectedKeys)}}onSelectionChange(e){return this.handleSelectedItems(e),this.nullifyAggregates(),this.handleAggregateChanges(),this.aggregates}get isRowSelection(){return typeof this.ctx.grid.selectable=="boolean"||!this.ctx.grid.selectable.cell}handleAggregateChanges(){let e=this.columnInfoService.lockedLeafColumns.toArray(),i=this.columnInfoService.nonLockedLeafColumns.toArray(),o=this.selectedItems.length,s=[...e,...i],r=s.map(a=>a.field);this.isAggregateIncluded("count")&&(this.aggregates.count=this.isRowSelection?o*s.length:o),this.selectedItems.forEach(a=>{if(this.isRowSelection)r.forEach(d=>{let p=a.dataItem;if(p&&p.hasOwnProperty(d)){let m=a.dataItem[d];this.groupAggregates(m)}});else if(!this.isRowSelection){let d=this.data[a.itemKey],p=r[a.columnKey];if(d&&d.hasOwnProperty(p)){let m=d[r[a.columnKey]];this.groupAggregates(m)}}}),this.calculateAggregates()}groupAggregates(e){typeof e=="number"?this.groupedAggregates.numbers.push(e):typeof e=="boolean"?this.groupedAggregates.booleans.push(e):e instanceof Date&&this.groupedAggregates.dates.push(e)}calculateAggregates(){if(this.groupedAggregates.numbers.length>0&&(this.isAggregateIncluded("min")&&(this.aggregates.min=Math.min(...this.groupedAggregates.numbers)),this.isAggregateIncluded("max")&&(this.aggregates.max=Math.max(...this.groupedAggregates.numbers)),this.isAggregateIncluded("sum")&&(this.aggregates.sum=this.groupedAggregates.numbers.reduce((e,i)=>e+=i,0)),this.isAggregateIncluded("average")&&(this.aggregates.average=this.aggregates.sum/this.groupedAggregates.numbers.length)),this.groupedAggregates.booleans.length>0){if(this.isAggregateIncluded("isTrue")){let e=this.groupedAggregates.booleans.filter(i=>i).length;this.aggregates.isTrue=e>0?e:null}if(this.isAggregateIncluded("isFalse")){let e=this.groupedAggregates.booleans.length-this.aggregates.isTrue;this.aggregates.isFalse=e>0?e:null}}this.groupedAggregates.dates.length>0&&(this.isAggregateIncluded("earliest")&&(this.aggregates.earliest=new Date(Math.min(...this.groupedAggregates.dates))),this.isAggregateIncluded("latest")&&(this.aggregates.latest=new Date(Math.max(...this.groupedAggregates.dates))))}handleSelectedItems(e){let i=`${this.isRowSelection?"selectedRows":"selectedCells"}`,o=`${this.isRowSelection?"deselectedRows":"deselectedCells"}`,s=e[i],r=e[o];this.isRowSelection||r.forEach((a,d)=>{d+10&&s.forEach(a=>{this.selectedItems=[...this.selectedItems,a]}),r.length>0&&(this.isRowSelection?r.forEach(a=>{this.selectedItems=this.selectedItems.filter(d=>d.dataItem!==a.dataItem)}):r.forEach(a=>{let d=this.selectedItems.findIndex(p=>p.itemKey===a.itemKey&&p.columnKey===a.columnKey);this.selectedItems.splice(d,1)}))}nullifyAggregates(){this.groupedAggregates={dates:[],numbers:[],booleans:[]},this.aggregates.count=null,this.aggregates.sum=this.aggregates.average=null,this.aggregates.max=this.aggregates.min=null,this.aggregates.isFalse=this.aggregates.isTrue=null,this.aggregates.earliest=this.aggregates.latest=null}}return t.\u0275fac=function(e){return new(e||t)(J(H),J(Hi),J(Yt))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Fo=(()=>{class t{constructor(e,i,o,s,r){this.domEvents=e,this.aggregateService=i,this.localDataChangesService=o,this.navigationService=s,this.ctxService=r,this.changes=new C,this.currentSelection=[],this.selectAllChecked=!1,this.active=!1,this.dragging=!1,this.lastSelectionData={},this.addSubscriptions()}get enableMarquee(){let e=this.settings&&typeof this.settings=="object"&&this.settings.checkboxOnly;if(!this.settings||e)return!1;let i=this.settings.selectable,o=typeof i=="object"&&G(i)&&i.mode==="multiple"&&i.enabled!==!1&&!i.checkboxOnly&&i.drag;return this.active&&o}init(e){if(this.settings=e,G(this.lastSelectionStartIndex)||(this.lastSelectionStartIndex=this.ctxService?.grid.selectionDirective?.rangeSelectionStartRow?.index||0,this.lastSelectionData=this.ctxService?.grid.selectionDirective?.rangeSelectionStartRow?.dataItem||{}),this.currentSelection=[],e.selectable&&e.selectable.enabled!==!1){let i=this.getIterator();this._selectAllState=!0;let o=i.next();for(;!o.done;){if(o.value&&o.value.type==="data"){let s={dataItem:o.value.data,index:o.value.index};e.rowSelected(s)?this.currentSelection[o.value.index]=s:this._selectAllState=void 0}o=i.next()}this.currentSelection.length===0&&(this._selectAllState=!1)}}isSelected(e){if(this.settings&&this.active)return this.options.enabled&&G(this.currentSelection[e])}handleClick(e,i){if(this.dragging){this.dragging=!1;return}let o,s=i.ctrlKey||i.metaKey;this.options.mode==="single"&&s&&this.isSelected(e.index)?o=this.toggle(e):this.options.mode==="multiple"&&(s&&!i.shiftKey?o=this.toggle(e):i.shiftKey&&(o=this.addAllTo(e,s))),G(o)||(o=this.select(e),this.currentSelection[e.index]={dataItem:e.data,index:e.index}),!(!o.selectedRows.length&&!o.deselectedRows.length)&&(o.ctrlKey=s,o.shiftKey=i.shiftKey,this.options.cellAggregates&&(o.cellAggregates=this.aggregateService.onSelectionChange(o)),o.shiftKey&&(o.rangeStartRow={dataItem:this.lastSelectionData,index:this.lastSelectionStartIndex},o.rangeEndRow={dataItem:e.data,index:e.index}),this.changes.emit(o))}toggle(e){let i=[],o=[];this.lastSelectionStartIndex=e.index,this.lastSelectionData=e.data;let s={dataItem:e.data,index:e.index};return this.isSelected(e.index)?o.push(s):i.push(s),{deselectedRows:o,selectedRows:i}}toggleByIndex(e){let i=this.getIterator();this.selectAllChecked&&this.isSelected(e)&&(this.selectAllChecked=!1);let o=i.next();for(;!o.done;){if(o.value&&o.value.type==="data"&&o.value.index===e){let s={data:o.value.data,index:o.value.index};return this.isSelected(e)||this.options.mode==="multiple"?this.toggle(s):this.select(s)}o=i.next()}}select(e){let i=[],o=[];return this.lastSelectionStartIndex=e.index,this.lastSelectionData=e.data,this.isSelected(e.index)||o.push({dataItem:e.data,index:e.index}),this.currentSelection.forEach(s=>{s.index!==e.index&&i.push(s)}),{deselectedRows:i,selectedRows:o}}deselect(e){let i=this.getIterator(),o=i.next();for(;!o.done;){if(o.value&&o.value.type==="data"&&o.value.data===e){let s={dataItem:o.value.data,index:o.value.index};if(this.isSelected(s.index)){let r={ctrlKey:!1,deselectedRows:[s],selectedRows:[]};this.changes.emit(r)}}o=i.next()}}addAllTo(e,i){let o=[],s=[],r=Math.min(this.lastSelectionStartIndex,e.index),a=Math.max(this.lastSelectionStartIndex,e.index),d=this.getIterator(),p=d.next();for(;!p.done;){if(p.value&&p.value.type==="data"){let m=p.value.index,v={dataItem:p.value.data,index:m};(ma)&&this.isSelected(m)&&!i&&s.push(v),m>=r&&m<=a&&!this.isSelected(m)&&o.push(v)}p=d.next()}return{deselectedRows:s,selectedRows:o}}updateAll(e){this.selectAllChecked=e;let i=[],o=[],s=this.getIterator(),r=s.next();for(;!r.done;){if(r.value&&r.value.type==="data"){let d=r.value.index,p={dataItem:r.value.data,index:d};this.isSelected(d)&&!e&&o.push(p),!this.isSelected(d)&&e&&i.push(p)}r=s.next()}if(!i.length&&!o.length)return;let a={ctrlKey:!0,deselectedRows:o,selectedRows:i,shiftKey:!0};this.options.cellAggregates&&(a.cellAggregates=this.aggregateService.onSelectionChange(a)),this.changes.emit(a)}selectRange(e,i){let o=[],s=[],r=Math.min(e,i),a=Math.max(e,i),d=this.getIterator(),p=d.next();for(;!p.done;){if(p.value&&p.value.type==="data"){let v=p.value.index,S={dataItem:p.value.data,index:v};(va)&&this.isSelected(v)&&s.push(S),v>=r&&v<=a&&!this.isSelected(v)&&o.push(S)}p=d.next()}let m;return this.options.cellAggregates&&(m=this.aggregateService.onSelectionChange({selectedRows:o,deselectedRows:s})),{deselectedRows:s,selectedRows:o,cellAggregates:m}}get selectAllState(){return this._selectAllState}get selected(){return this.currentSelection.map(e=>e.index).filter(e=>typeof e=="number")}get options(){let e={cellAggregates:!1,checkboxOnly:!1,enabled:!0,mode:"multiple"};return G(this.settings)?typeof this.settings.selectable=="boolean"?{cellAggregates:!1,checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}ngOnDestroy(){this.removeSubscriptions()}targetArgs(){return{index:this.mouseDownEventArgs.rowIndex,dataItem:this.mouseDownEventArgs.dataItem}}addSubscriptions(){this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(e=>{this.options.enabled&&!this.options.checkboxOnly&&e.type!=="contextmenu"&&this.active&&this.handleClick({index:e.rowIndex,data:e.dataItem},e.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(e=>{this.mouseDownEventArgs=e,this.options.enabled&&(!this.options.mode||this.options.mode==="multiple")&&!this.options.checkboxOnly&&e.originalEvent.shiftKey&&this.active&&(e.originalEvent.preventDefault(),this.navigationService.focusCellByElement(e.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(e=>{this.active&&G(e.action)&&e.action==="remove"&&this.deselect(e.item)}))}getIterator(){let e=this.settings.view.accessor();if(e)return e[Bi]()}removeSubscriptions(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(J(no),J(Ks),J(Hi),J(Lt),J(H))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Ya=(()=>{class t{constructor(e,i,o,s){this.domEvents=e,this.aggregateService=i,this.localDataChangesService=o,this.navigationService=s,this.changes=new C,this.mouseUpEvent=new C,this.currentSelection=[],this.active=!1,this.dragging=!1,this.dragSelectDeselect=!1,this.lastSelectionItem={itemKey:0,columnKey:0},this.lastSelectionItemRowIndex=0,this.lastSelectionItemColIndex=0,this.addSubscriptions()}get enableMarquee(){let e=this.settings&&typeof this.settings=="object"&&this.settings.checkboxOnly;if(!this.settings||e)return!1;let i=this.settings.selectable,o=typeof i=="object"&&G(i)&&i.mode==="multiple"&&i.cell&&i.enabled!==!1&&i.drag;return this.active&&o}init(e){if(this.settings=e,this.currentSelection=[],e.selectable&&e.selectable.enabled!==!1){let i=this.getIterator(),o=i.next();for(;!o.done;){if(o.value&&o.value.type==="data"){let s={dataItem:o.value.data,index:o.value.index};e.columns.forEach(r=>{let a=e.cellSelected(s,r,r.leafIndex);a.selected&&this.currentSelection.push(a.item)})}o=i.next()}}}isCellSelected(e,i){if(this.settings&&this.active){let o=this.settings.cellSelected({dataItem:e.data,index:e.index},i,i.leafIndex);return this.options.enabled&&o.selected}return!1}handleClick(e,i){if(this.dragging){this.dragging=!1;return}let o,s=i.ctrlKey||i.metaKey;if(this.options.mode==="single"&&s&&this.isCellSelected(e,e.column))o=this.toggle(e);else if(this.options.mode==="multiple"){if(s&&!i.shiftKey)o=this.toggle(e);else if(i.shiftKey){let r=Math.min(this.lastSelectionItemRowIndex,e.index),a=Math.min(this.lastSelectionItemColIndex,e.column.leafIndex),d=Math.max(this.lastSelectionItemRowIndex,e.index),p=Math.max(this.lastSelectionItemColIndex,e.column.leafIndex);o=this.selectRange(r,a,d,p)}}G(o)||(o=this.select(e),this.currentSelection=[this.lastSelectionItem]),!(!o.selectedCells.length&&!o.deselectedCells.length)&&(o.ctrlKey=s,o.shiftKey=i.shiftKey,this.options.cellAggregates&&!i.shiftKey&&(o.cellAggregates=this.aggregateService.onSelectionChange(o)),o.shiftKey&&(o.rangeStartCell=this.lastSelectionItem,o.rangeEndCell=at({},this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item)),this.changes.emit(o))}toggle(e){let i=[],o=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item,this.lastSelectionItemRowIndex=e.index,this.lastSelectionItemColIndex=e.column.leafIndex,this.isCellSelected(e,e.column)?o.push(this.lastSelectionItem):i.push(this.lastSelectionItem),{deselectedCells:o,selectedCells:i}}select(e){let i=[],o=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item,this.lastSelectionItemRowIndex=e.index,this.lastSelectionItemColIndex=e.column.leafIndex,this.isCellSelected(e,e.column)||i.push(this.lastSelectionItem),this.currentSelection.forEach(s=>{(s.itemKey!==this.lastSelectionItem.itemKey||s.columnKey!==this.lastSelectionItem.columnKey)&&o.push(s)}),{deselectedCells:o,selectedCells:i}}deselect(e){let i=this.getIterator(),o=i.next(),s;for(;!o.done;){if(o.value&&o.value.type==="data"&&o.value.data===e){s={dataItem:o.value.data,index:o.value.index};break}o=i.next()}if(s){let r=this.currentSelection.filter(a=>{let d=this.settings.cellSelected(s,null,null).item;return a.itemKey===d.itemKey});if(r.length){let a={ctrlKey:!1,deselectedCells:r,selectedCells:[]};this.changes.emit(a)}}}selectRange(e,i,o,s){let r=[],a=[],d=Math.min(e,o),p=Math.min(i,s),m=Math.max(e,o),v=Math.max(i,s),S=this.getIterator(),w=S.next();for(;!w.done;){if(w.value&&w.value.type==="data"){let F=w.value.index,U={dataItem:w.value.data,index:F};this.settings.columns.forEach(te=>{let{item:x}=this.settings.cellSelected(U,te,te.leafIndex),de=this.isCellSelected(w.value,te),V=d<=F&&F<=m,_e=p<=te.leafIndex&&te.leafIndex<=v,Ee=V&&_e;!Ee&&de&&a.push(x),Ee&&!de&&r.push(x)})}w=S.next()}let L;return this.options.cellAggregates&&(L=this.aggregateService.onSelectionChange({selectedCells:r,deselectedCells:a})),{deselectedCells:a,selectedCells:r,cellAggregates:L}}get options(){let e={cellAggregates:!1,checkboxOnly:!1,enabled:!0,mode:"multiple"};return G(this.settings)?typeof this.settings.selectable=="boolean"?{cellAggregates:!1,checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}ngOnDestroy(){this.removeSubscriptions()}addSubscriptions(){this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(e=>{this.options.enabled&&!this.options.checkboxOnly&&e.type!=="contextmenu"&&this.active&&this.handleClick({index:e.rowIndex,data:e.dataItem,column:e.column},e.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(e=>{this.mouseDownEventArgs=e,this.options.enabled&&(!this.options.mode||this.options.mode==="multiple")&&!this.options.checkboxOnly&&e.originalEvent.shiftKey&&this.active&&(e.originalEvent.preventDefault(),this.navigationService.focusCellByElement(e.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(e=>{this.active&&G(e.action)&&e.action==="remove"&&this.deselect(e.item)}))}getIterator(){let e=this.settings.view.accessor();if(e)return e[Bi]()}removeSubscriptions(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(J(no),J(Ks),J(Hi),J(Lt))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),uL=()=>{if(!ae())return;let t=document.createElement("div");t.className="k-marquee";let n=document.createElement("div");return n.className="k-marquee-color",t.appendChild(n),t},xn=2,hL=5,U_={topLeft:{x:xn,y:xn},topRight:{x:-xn,y:xn},bottomLeft:{x:xn,y:-xn},bottomRight:{x:-xn,y:-xn}},pL=(()=>{class t{constructor(e,i,o,s,r,a){this.draggable=e,this.selection=i,this.cellSelection=o,this.domEvents=s,this.host=r,this.renderer=a,this.selectionStarted=!1}ngOnInit(){this.subscriptions=this.draggable.kendoPress.subscribe(this.start.bind(this)),this.subscriptions.add(this.draggable.kendoDrag.subscribe(this.moveMarquee.bind(this)))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.clean()}start(e){let i=e.originalEvent.target.matches(".k-grid-content, .k-grid-content-locked, .k-grid-aria-root, .k-checkbox"),o=tt(e.originalEvent.target.closest(".k-drag-cell"));if(i||o){this.pressArgs=null;return}this.pressArgs=e,this.pressTarget=null}moveMarquee(e){this.pressTarget||(this.pressTarget=this.cellSelection.active?this.cellSelection.mouseDownEventArgs:this.selection.mouseDownEventArgs);let i=this.pressArgs;if(!i)return;if(!this.selectionStarted)if(Math.sqrt((e.pageX-i.pageX)**2+(e.pageY-i.pageY)**2)>hL)this.selectionStarted=!0,this.renderer.addClass(this.host.nativeElement,"user-select-none"),this.renderer.setStyle(this.host.nativeElement,"user-select","none"),this.dragEndSubscription=_t(this.domEvents.cellMouseup.pipe(Ke(1)),this.draggable.kendoRelease.pipe(Vn(1),Ke(1))).subscribe(this.endSelection.bind(this));else return;this.initMarquee();let o=this.marqueeElement,s=this.getMarqueeQuadrant(e.pageX,e.pageY,i.pageX,i.pageY),r=Math.min(e.pageX,i.pageX),a=Math.min(e.pageY,i.pageY),d=Math.abs(e.pageX-i.pageX),p=Math.abs(e.pageY-i.pageY);s&&(r+=U_[s].x,a+=U_[s].y),o.style.left=`${r}px`,o.style.top=`${a}px`,o.style.width=`${d}px`,o.style.height=`${p}px`}endSelection(e){(e.type==="mouseup"||e.type==="touchend")&&(this.cellSelection.active?(this.cellSelection.dragging=!0,this.cellSelection.changes.emit(this.cellSelection.selectRange(this.pressTarget.rowIndex,this.pressTarget.column.leafIndex,e.rowIndex,e.column.leafIndex))):this.selection.active&&(this.selection.dragging=!0,this.selection.changes.emit(this.selection.selectRange(this.pressTarget.rowIndex,e.rowIndex)))),this.clean()}clean(){this.marqueeElement&&(document.body.removeChild(this.marqueeElement),this.marqueeElement=null),this.dragEndSubscription&&this.dragEndSubscription.unsubscribe(),this.renderer.removeClass(this.host.nativeElement,"user-select-none"),this.renderer.removeStyle(this.host.nativeElement,"user-select"),this.dragEndSubscription=null,this.pressTarget=null,this.pressArgs=null,this.selectionStarted=!1,this.cellSelection.active?this.cellSelection.dragging=!1:this.selection.dragging=!1}initMarquee(){ae()&&(this.marqueeElement||(this.marqueeElement=uL(),document.body.appendChild(this.marqueeElement)))}getMarqueeQuadrant(e,i,o,s){let r=eo,d=is;return r&&d?"topLeft":r&&p?"bottomLeft":a&&d?"topRight":a&&p?"bottomRight":null}}return t.\u0275fac=function(e){return new(e||t)(c(Li),c(Fo),c(Ya),c(no),c(W),c(X))},t.\u0275dir=A({type:t,selectors:[["","kendoGridSelectionMarquee",""]]}),t})(),xs=class extends C{constructor(n,e=!1){super(e),this.ngZone=n}subscribe(n,e,i){let o,s=a=>null,r=()=>null;return n&&typeof n=="object"?(o=a=>{this.ngZone.run(()=>n.next(a))},n.error&&(s=a=>{this.ngZone.run(()=>n.error(a))}),n.complete&&(r=()=>{this.ngZone.run(()=>n.complete())})):(o=a=>{this.ngZone.run(()=>n(a))},e&&(s=a=>{this.ngZone.run(()=>e(a))}),i&&(r=()=>{this.ngZone.run(()=>i())})),super.subscribe(o,s,r)}},mL={name:"@progress/kendo-angular-grid",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1716480571,version:"16.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},Nv=(()=>{class t{constructor(e){this.templateRef=e,this._condition=()=>!0}set showIf(e){if(typeof e!="function")throw new Error(ft.functionType("showIf",e));this._condition=e}get showIf(){return this._condition}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridDetailTemplate",""]],inputs:{showIf:[0,"kendoGridDetailTemplateShowIf","showIf"]}}),t})(),Pv=()=>ae()&&document.createElement,Ua=null,Fv,Jd=null;function gL(){if(Ua===null&&Pv()){Fv=window.devicePixelRatio||1;let t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),Ua=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return Ua}function fL(){if(Jd===null&&Pv()){let t=document.createElement("div");t.style.direction="rtl",t.style.display="block",t.style.clear="both",t.style.width="100px",t.style.visibility="hidden",t.style.position="absolute",t.style.left="-10000px",t.style.overflow="scroll",t.style.zoom="1";let n=document.createElement("div");n.style.width="200px",n.style.height="1px",t.append(n),document.body.appendChild(t);let e=t.scrollLeft;t.scrollLeft=-1,Jd=t.scrollLeft<0?t.scrollLeft:e,document.body.removeChild(t)}return Jd}var du=(()=>{class t{constructor(e,i){this.zone=e,this.changeDetector=i,this.changes=new C,!(typeof window>"u")&&this.zone.runOutsideAngular(()=>{this.subscriptions=Wt(window,"resize").pipe(jh(100)).subscribe(()=>{Fv!==window.devicePixelRatio&&e.run(()=>{Ua=null,this.changes.emit(),this.changeDetector.markForCheck()})})})}ngOnDestroy(){this.subscriptions&&(this.subscriptions.unsubscribe(),this.subscriptions=null)}get scrollbarWidth(){return gL()}get rtlScrollLeft(){return fL()}}return t.\u0275fac=function(e){return new(e||t)(J(re),J(ve))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Ku=t=>t.items!==void 0&&t.field!==void 0,_L=t=>t.offset!==void 0&&t.skipHeader!==void 0,Gv=t=>t.reduce((n,e)=>Ku(e)?n.concat(Gv(e.items)):n.concat([e]),[]),vL=(t,n)=>{let e=t[0];return G(e)&&Ku(e)?Gv(t)[n]:t[n]},Vv=(t,{footers:n,level:e,dataIndex:i,parentGroupIndex:o,groupIndex:s,parentGroup:r})=>{let a=t[0];return G(a)&&Ku(a)?(_L(a)&&(s=G(a.offset)?a.offset:s),new pu(t,n,e,i,o,s,r)):new hu(t,i,o,r)},uu=class{constructor(n,e=0){this.arr=n,this.idx=e,this.arr=n||[]}[Bi](){return this}next(){return this.idxo){this.dataIndex=e,this.resultMap=i;let o=n[Bi];this._innerIterator=o?n[Bi]():new uu(n)}[Bi](){return this}next(){return this.resultMap(this._innerIterator.next(),this.dataIndex++)}},hu=class extends Za{constructor(n,e,i,o){super(n,e,(s,r)=>({done:s.done,value:{data:s.value,groupIndex:i,index:r,type:"data",group:o}}))}get index(){return this.dataIndex}},CL=(t,n)=>`${t&&t+"_"}${n}`,pu=class{constructor(n,e=!1,i=0,o=0,s="",r=0,a=void 0){this.arr=n,this.outputFooters=e,this.level=i,this.dataIndex=o,this.parentIndex=s,this.groupIndex=r,this.parentGroup=a,this.currentGroupIndex="",this.arr=n||[],this._iterator=new Za(this.arr,this.dataIndex)}[Bi](){return this}nextGroupItem(){return this.current=this._iterator.next().value,this._innerIterator=null,this.current?(this.currentGroupIndex=CL(this.parentIndex,this.groupIndex++),{done:!1,value:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}):(this.current=null,{done:!0,value:void 0})}footerItem(){if(this.current){let n=this.current;return this.current=null,{done:!1,value:{data:n,groupIndex:this.currentGroupIndex,level:this.level,type:"footer",group:{data:n,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}}}else return this.current=null,{done:!0,value:void 0}}innerIterator(n){return this._innerIterator||(this._innerIterator=Vv(n.items,{dataIndex:this.dataIndex,footers:this.outputFooters,level:this.level+1,parentGroupIndex:this.currentGroupIndex,parentGroup:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}})),this._innerIterator}nextDataItem(n){let i=this.innerIterator(n).next();return G(i.value)&&!i.done&&i.value.type==="data"&&(this.dataIndex=i.value.index+1),i.done?void 0:i}next(){if(!G(this.current))return this.nextGroupItem();let n=this.nextDataItem(this.current);return n||(this.outputFooters?this.footerItem():this.nextGroupItem())}get index(){return this.dataIndex+1}},mu=class{constructor(n,e=0,i=!1){this.source=n,this.skip=e,this.groupFooters=i,this.source=this.source?this.source:[],this.isObject=this.isGridDataResult(this.source)}isGridDataResult(n){return n.total!==void 0&&n.data!==void 0}get total(){return this.isObject?this.source.total:this.source.length}get data(){return this.isObject?this.source.data:this.source}map(n){return this.data.map(n)}filter(n){return this.data.filter(n)}reduce(n,e){return this.data.reduce(n,e)}forEach(n){this.data.forEach(n)}some(n){return this.data.some(n)}[Bi](){return Vv(this.data,{dataIndex:this.skip,footers:this.groupFooters,groupIndex:this.skip})}toString(){return this.data.toString()}},gu=class{constructor(n){this.accessor=n}get total(){return this.accessor().total}get length(){return this.accessor().data.length}get first(){return this.accessor().data[0]}get last(){return this.accessor().data[this.length-1]}at(n){return vL(this.accessor().data,n)}map(n){return this.accessor().map(n)}filter(n){return this.accessor().filter(n)}reduce(n,e){return this.accessor().reduce(n,e)}forEach(n){this.accessor().forEach(n)}some(n){return this.accessor().some(n)}[Bi](){return this.accessor()[Bi]()}toString(){return this.accessor().toString()}},Xa=class{constructor(n,e,i){this.keysX=new Map,this.totalKeysCount=0,n&&e&&i&&n.forEach(o=>this.add(o[e],o[i]))}get size(){return this.totalKeysCount}add(n,e){this.keysX.has(n)||this.keysX.set(n,new Set),this.has(n,e)||(this.keysX.get(n).add(e),this.totalKeysCount+=1)}delete(n,e){this.has(n,e)&&(this.keysX.get(n).delete(e),this.totalKeysCount-=1)}has(n,e){return this.keysX.has(n)&&this.keysX.get(n).has(e)}clear(){this.keysX.clear(),this.totalKeysCount=0}toArray(n,e){return Array.from(this.keysX).reduce((i,o)=>{let[s,r]=o;return Array.from(r).forEach(a=>i.push({[n]:s,[e]:a})),i},[])}},zv=(()=>{class t{constructor(e,i){this.ctx=e,this.cd=i,this.selectedKeys=[],this.rangeSelectionStartColumnIndex=0,this.selectedKeysChange=new C,this.rowSelectionState=new Set,this.cellSelectionState=new Xa,this.init()}get isCellSelectionMode(){return G(this.ctx.grid.selectable)&&this.ctx.grid.selectable.cell}ngOnChanges(e){G(e.selectedKeys)&&this.lastSelectionState!==this.selectedKeys&&this.setState(this.selectedKeys)}init(){G(this.ctx.grid.rowSelected)||(this.ctx.grid.rowSelected=e=>this.rowSelectionState.has(this.getItemKey(e))),G(this.ctx.grid.cellSelected)||(this.ctx.grid.cellSelected=(e,i,o)=>{let s=this.getSelectionItem(e,i,o);return{selected:this.cellSelectionState.has(s.itemKey,s.columnKey),item:s}}),this.selectionChangeSubscription=this.ctx.grid.selectionChange.subscribe(this.onSelectionChange.bind(this))}destroy(){this.selectionChangeSubscription.unsubscribe()}reset(){this.rowSelectionState.clear(),this.cellSelectionState.clear()}getItemKey(e){if(this.selectionKey){if(typeof this.selectionKey=="string")return e.dataItem[this.selectionKey];if(typeof this.selectionKey=="function")return this.selectionKey(e)}return e.index}stateToArray(){return this.isCellSelectionMode?this.cellSelectionState.toArray("itemKey","columnKey"):Array.from(this.rowSelectionState)}getSelectionItem(e,i,o){let s={};return s.itemKey=this.getItemKey(e),!G(i)&&!G(o)?s:(this.columnKey&&(typeof this.columnKey=="string"&&(s.columnKey=e.dataItem[this.columnKey]),typeof this.columnKey=="function"&&(s.columnKey=this.columnKey(i,o))),{itemKey:s.itemKey,columnKey:s.columnKey?s.columnKey:o})}onSelectionChange(e){e.selectedRows?(e.deselectedRows.forEach(i=>{let o=this.getItemKey(i);this.rowSelectionState.delete(o)}),this.ctx.grid.selectableSettings.mode==="single"&&this.rowSelectionState.size>0&&this.reset(),e.selectedRows.forEach(i=>{let o=this.getItemKey(i);this.rowSelectionState.add(o)})):(e.deselectedCells.forEach(({itemKey:i,columnKey:o})=>{this.cellSelectionState.delete(i,o)}),this.ctx.grid.selectableSettings.mode==="single"&&this.cellSelectionState.size>0&&this.reset(),e.selectedCells.forEach(({itemKey:i,columnKey:o})=>{this.cellSelectionState.add(i,o)})),this.cd.markForCheck(),this.notifyChange()}notifyChange(){this.lastSelectionState=this.stateToArray(),this.selectedKeysChange.emit(this.lastSelectionState)}setState(e){this.reset(),this.isCellSelectionMode?this.cellSelectionState=new Xa(e,"itemKey","columnKey"):this.rowSelectionState=new Set(e)}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(ve))},t.\u0275dir=A({type:t,selectors:[["kendo-grid-selection-base"]],inputs:{selectedKeys:"selectedKeys",rangeSelectionStartRow:"rangeSelectionStartRow",rangeSelectionStartColumnIndex:"rangeSelectionStartColumnIndex",selectionKey:[0,"kendoGridSelectBy","selectionKey"],columnKey:"columnKey"},outputs:{selectedKeysChange:"selectedKeysChange"},features:[be]}),t})(),Ba=(t,n)=>{t.forEach(e=>{n(e),e.isColumnGroup&&e.hasChildren&&Ba(e.childrenArray,n)})},Uv=(t,n)=>{Mo(t).forEach(e=>{n(e),e.isColumnGroup&&e.hasChildren&&Uv(e.childrenArray,n)})},fu=(t,n)=>{let e=[];return Mo(t).forEach(i=>{if(n(i))if(i.isColumnGroup){let o=fu(i.childrenArray,n);o.length&&e.push(i,...o)}else(!i.isSpanColumn||fu(i.childrenArray,n).length)&&e.push(i)}),e.sort((i,o)=>Number(o.locked)-Number(i.locked))},Ps=class t{constructor(n){this.columns=n}static empty(){return new t(new Ze)}forEach(n){Ba(this.columns,n)}filter(n){let e=[];return Ba(this.columns,i=>{n(i)&&e.push(i)}),e}filterHierarchy(n){return fu(this.columns.toArray(),n)}filterSort(n){let e=[];return Uv(this.columns.toArray(),i=>{n(i)&&e.push(i)}),e}toArray(){let n=[];return Ba(this.columns,e=>{n.push(e)}),n}rootColumns(){return this.columns.toArray()}totalColumnLevels(){let n=0;return this.forEach(e=>{n=Math.max(e.level,n)}),n}},Go=class{constructor(){this._columnList=Ps.empty}get columns(){return ji(this._columnList().toArray()).filter(Ls)}registerColumnsContainer(n){this._columnList=n}formatForGroup(n){let e=this.columnForGroup(n);return e?e.format:""}isGroupable(n){let[e]=this.columns.filter(i=>i.field===n);return e?e.groupable:!0}groupTitle(n){let e=this.columnForGroup(n);return e?e.title||e.field:this.groupField(n)}groupHeaderTemplate(n){let e=this.columnForGroup(n);return e?e.groupHeaderTemplateRef||e.groupHeaderColumnTemplateRef:void 0}groupField(n){return n.data?n.data.field:n.field}columnForGroup(n){let e=this.groupField(n),[i]=this.columns.filter(o=>o.field===e);return i}},el=(()=>{class t{constructor(e){this.ngZone=e,this.changes=new C}notify(){(!this.subscription||this.subscription.closed)&&(this.subscription=this.ngZone.onStable.asObservable().pipe(Ke(1)).subscribe(()=>this.changes.emit()))}}return t.\u0275fac=function(e){return new(e||t)(J(re))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Bv=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridNoRecordsTemplate",""]]}),t})(),jv=t=>n=>n.forEach(e=>e.style.height=t),SL=t=>t.filter(([n,e])=>n.style.height||e.style.height).forEach(jv("")),bL=(t,n)=>{let e=[];for(let i=0,o=t.length;i(n,e)=>jv(`${t[e]+1}px`)(n),EL=t=>t.map(([n,e])=>{let i=n.offsetHeight,o=e.offsetHeight;return i{if(!ae())return;let e=document.activeElement,i=bL(t.rows,n.rows);SL(i);let o=EL(i);[t,n].forEach(s=>s.style.display="none"),i.forEach(DL(o)),[t,n].forEach(s=>s.style.display=""),document.activeElement!==e&&(t.contains(e)||n.contains(e))&&e.focus()},Fs=(()=>{class t{constructor(){this.isColumnMenu=!1,this.isPopupOpen=!1,this.isTabbedInterface=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),It=(()=>{class t{constructor(e){this.changes=new Qe,this.menuTabbingService=e}filter(e){this.changes.next(e)}}return t.\u0275fac=function(e){return new(e||t)(J(Fs,8))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Kv=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoPagerTemplate",""]]}),t})(),_u=(()=>{class t{constructor(){this.savePDF=new C,this.drawPDF=new C,this.exportClick=new C,this.dataChanged=new C}save(e){this.emitEvent(this.savePDF,e)}draw(e,i){this.emitEvent(this.drawPDF,{component:e,promise:i})}emitEvent(e,i){if(e.observers.length===0){if(fe())throw new Error(ft.requiredModule("PDF","PDFModule",""))}else e.emit(i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),vu=class extends On{constructor(){super()}},$v=(()=>{class t{constructor(){this.scroll=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),wL=t=>({xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"})[t]||t,yL=t=>window.matchMedia(t).matches,B_=(()=>{class t{constructor(){this.matchMedia=yL}matchesMedia(e){return!e||this.matchMedia(wL(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),j_=(()=>{class t{constructor(){this.saveToExcel=new C,this.exportClick=new C}save(e){if(this.saveToExcel.observers.length===0){if(fe())throw new Error(ft.requiredModule("excel","ExcelModule",""))}else this.saveToExcel.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Wv=(()=>{class t{constructor(e){this.templateRef=e,this._position="top"}set position(e){this._position=e}get position(){return this._position}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridToolbarTemplate",""]],inputs:{position:"position"}}),t})(),tl=(()=>{class t{constructor(e){this.ngZone=e,this.changes=new Qe,this.elements=[],this.subscriptions=new Se,this.headerSubscription=new Se,this.bodySubscription=new Se,this.subscriptions.add(this.changes.subscribe(i=>this.scrollLeft(i)))}registerEmitter(e,i){this.unregister(i),this.elements.push({element:e,sourceType:i}),(i==="body"||i==="header")&&this.ngZone.runOutsideAngular(()=>{let o=Wt(e,"scroll").pipe(Ve(({target:{scrollLeft:r}})=>({scrollLeft:r,sourceType:i}))),s=o.pipe(Kh((r,a)=>r.scrollLeft===a.scrollLeft),pe(r=>!this.source||this.source===r.sourceType),$e(r=>this.source=r.sourceType)).subscribe(r=>this.changes.next(r));s.add(o.pipe(pe(r=>this.source&&this.source!==r.sourceType)).subscribe(()=>this.source=void 0)),i==="body"?this.bodySubscription.add(s):this.headerSubscription.add(s)})}destroy(){this.subscriptions.unsubscribe(),this.headerSubscription.unsubscribe(),this.bodySubscription.unsubscribe()}scrollLeft({scrollLeft:e,sourceType:i}){this.ngZone.runOutsideAngular(()=>{this.elements.filter(o=>i!==o.sourceType).forEach(({element:o})=>o.scrollLeft=e)})}unregister(e){let i=this.elements.findIndex(o=>o.sourceType===e);i>-1&&(e==="header"?(this.headerSubscription.unsubscribe(),this.headerSubscription=new Se):e==="body"&&(this.bodySubscription.unsubscribe(),this.bodySubscription=new Se),this.elements.splice(i,1))}}return t.\u0275fac=function(e){return new(e||t)(J(re))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),$u=(()=>{class t{constructor(){this.resizeSubscription=new Se(()=>{}),this.dispatcher=new Qe,this.changes=this.dispatcher.asObservable().pipe(qh(100))}connect(e){this.resizeSubscription.add(e.subscribe(this.dispatcher))}destroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Wu=t=>t.parent?Wu(t.parent):!!t.locked,H_=(t,n)=>Object.assign({columns:Hs([t]),locked:Wu(t)},n),Gs=(()=>{class t{constructor(){this.changes=new C,this.tables=[],this.batch=null}start(e){this.trackColumns(e);let i=(this.column.isColumnGroup?[e]:[]).concat(Hs([e]));this.changes.emit({columns:i,locked:Wu(this.column),type:"start"})}resizeColumns(e){let i=H_(this.column,{deltaPercent:e,type:"resizeColumn"});this.changes.emit(i)}resizeTable(e,i){let o=H_(e,{delta:i,type:"resizeTable"});this.changes.emit(o)}resizedColumn(e){this.resizedColumns.push(e)}end(){this.changes.emit({columns:[],resizedColumns:this.resizedColumns,type:"end"})}registerTable(e){return this.tables.push(e),()=>{this.tables.splice(this.tables.indexOf(e),1)}}measureColumns(e){this.batch!==null?this.batch.push(...e):this.autoFitBatch(e,()=>this.end())}autoFit(...e){let i=e.filter(o=>!o.isLocked);this.autoFitStart(i),this.autoFitBatch(this.batch,()=>{if(i.lengths.isLocked);this.autoFitStart(o),this.autoFitBatch(this.batch,()=>this.end())}else this.end()})}trackColumns(e){this.resizedColumns=[],this.column=e}autoFitStart(e){if(this.batch=[],this.resizedColumns=[],e.length===0)return;let i=e[0].isLocked;this.changes.emit({type:"start",columns:e,locked:i}),this.changes.emit({type:"triggerAutoFit",columns:e,locked:i})}autoFitBatch(e,i){let o=e.length>0?e[0].column.isLocked:!1,s=this.tables.filter(r=>r.locked===o).map(r=>r.autoFit(e));Bh(...s).pipe(Ke(1)).subscribe(r=>{this.changes.emit({columns:e.map(a=>a.column),type:"autoFitComplete",widths:r,locked:o}),i&&i()}),this.batch=null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})();var IL=t=>typeof t=="string"&&t.indexOf("menu")>-1,Vs=t=>t===!0||typeof t=="string"&&t.indexOf("row")>-1,TL=(t,n)=>{for(;t;){if(n(t))return!0;t=t.parentNode}return!1},Cu=class extends On{constructor(n){super(),this.originalEvent=n}},kL="k-grid-filter-popup",$s=(()=>{class t{constructor(e,i,o,s,r){this.popupService=e,this.renderer=i,this.ngZone=o,this.ctx=r,this.onClose=new Qe,this.pointerEventsSub=new Se,this.scrollSubscription=s.changes.subscribe(()=>this.destroy())}open(e,i,o,s=kL){let r=G(o)&&this.popupRef===o;if(this.destroy(),!r){let d=this.ctx.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:d},popupAlign:{vertical:"top",horizontal:d},anchor:e,popupClass:s,content:i,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.ctx.localization.rtl?"rtl":"ltr"),this.attachClose(e)}let a=this.popupRef?.popupElement;return a&&this.attachMouseListeners(a),this.popupRef}destroy(){this.popupRef&&(this.detachClose(),this.pointerEventsSub.unsubscribe(),this.pointerEventsSub=null,this.popupRef.close(),this.popupRef=null)}ngOnDestroy(){this.destroy(),this.scrollSubscription.unsubscribe()}detachClose(){this.removeClick&&this.removeClick()}attachClose(e){ae()&&(this.detachClose(),this.ngZone.runOutsideAngular(()=>this.removeClick=this.renderer.listen("document","click",i=>{if(!TL(i.target,o=>this.popupRef.popupElement===o||o===e)){let o=new Cu(i);this.onClose.next(o),!o.isDefaultPrevented()&&this.canClosePopup&&this.destroy(),this.canClosePopup=!0}})))}attachMouseListeners(e){this.pointerEventsSub=new Se,this.ngZone.runOutsideAngular(()=>{this.pointerEventsSub.add(this.renderer.listen(e,"pointerdown",i=>{i.stopImmediatePropagation(),this.canClosePopup=!1})),this.pointerEventsSub.add(this.renderer.listen(e,"pointerup",()=>{this.canClosePopup=!0}))})}}return t.\u0275fac=function(e){return new(e||t)(J(ho),J(X),J(re),J(tl),J(H))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),qv=t=>{if(!ae())return;let n=!1;return()=>(n||(document.body.appendChild(t),n=!0),t)},xL=t=>t.ownerDocument.documentElement,RL=t=>t.ownerDocument.defaultView,Qv=t=>{let{clientTop:n,clientLeft:e}=xL(t),{pageYOffset:i,pageXOffset:o}=RL(t),{top:s,left:r}=t.getBoundingClientRect();return{top:s+i-n,left:r+o-e}},Jv=(t,n)=>(n.compareDocumentPosition(t)&4)!==0,OL=(t,n)=>t===n||(n.compareDocumentPosition(t)&16)!==0,Yv=(t,n)=>{let e=Qv(t),{offsetWidth:i,offsetHeight:o}=t,s=e.left+(n?0:i),r=e.top;return{left:s,top:r,height:o}},qu=(()=>{class t{constructor(){this.changes=new C,this.register=[],this.lastTarget=null}add(e){this.register.push(e)}remove(e){this.register=this.register.filter(i=>i!==e)}notifyDrag(e,i,o){let s=this.targetFor(i);this.lastTarget!==s&&(this.changes.next({draggable:e,mouseEvent:o,target:this.lastTarget,type:"leave"}),s&&this.changes.next({draggable:e,mouseEvent:o,target:s,type:"enter"}),this.lastTarget=s)}notifyDrop(e,i){this.changes.next({draggable:e,mouseEvent:i,target:this.lastTarget,type:"drop"}),this.lastTarget=null}targetFor(e){let i=OL.bind(null,e);return this.register.find(({element:{nativeElement:o}})=>i(o))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),K_=(t,n,e)=>{let i=t.querySelector(".k-icon");if(e){let o=i.firstElementChild;o.removeChild(o.firstElementChild);let s=n?Ul.content:fr.content;i.firstElementChild.innerHTML=s+i.firstElementChild.innerHTML}i.setAttribute("class",i.getAttribute("class").replace(/(plus|cancel)/,n?"plus":"cancel"))},$_=(t,n=null,e)=>{let i=t.querySelectorAll(".k-icon")[1],o=n===null?"":n?`k${e?"-svg":""}-i-lock`:`k${e?"-svg":""}-i-unlock`;e?(i.setAttribute("class",i.getAttribute("class").replace(/(k-svg-i-unlock|k-svg-i-lock)/,"").trim()+` ${o}`),i.firstElementChild.innerHTML=n?Vl.content:zl.content):i.setAttribute("class",i.getAttribute("class").replace(/(k-i-unlock|k-i-lock)/,"").trim()+` ${o}`)},ML=t=>{t.className="k-header k-drag-clue",t.style.position="absolute",t.style.zIndex="20000"},AL=(t,n,e)=>` ${e}`,LL=t=>` ${t}`,gl=(()=>{class t{constructor(e,i){this.santizer=e,this.iconsService=i,this.cancelIcon=fr}create(e){if(!ae())return;this.dom=document.createElement("div"),ML(this.dom);let i=this.santizer.sanitize(Jh.HTML,e),o=this.isSVG?AL(this.cancelIcon.viewBox,this.cancelIcon.content,i):LL(i);this.dom.innerHTML=o}attach(){return qv(this.dom)}remove(){this.dom&&this.dom.parentNode&&(function(e){setTimeout(()=>document.body.removeChild(e))}(this.dom),this.dom=null)}show(){this.dom.style.display=""}hide(){this.dom.style.display="none"}enable(){K_(this.dom,!0,this.isSVG)}disable(){K_(this.dom,!1,this.isSVG)}removeLock(){$_(this.dom,!1,this.isSVG)}toggleLock(e){$_(this.dom,e,this.isSVG)}move(e){this.dom.style.top=e.pageY+"px",this.dom.style.left=e.pageX+"px"}get isSVG(){return(this.iconsService.iconSettings?.type||this.iconsService.changes.value.type)==="svg"}}return t.\u0275fac=function(e){return new(e||t)(J(lp),J(Wp))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),fl=(()=>{class t{create(){ae()&&(this.dom=document.createElement("div"),this.dom.className="k-grouping-dropclue",this.hide())}attach(){return qv(this.dom)}remove(){this.dom&&this.dom.parentElement&&(document.body.removeChild(this.dom),this.dom=null)}hide(){this.dom.style.display="none"}position({left:e,top:i,height:o}){this.dom.style.display="block",this.dom.style.height=o+"px",this.dom.style.top=i+"px";let s=this.dom.offsetWidth/2;this.dom.style.left=e-s+"px"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),Su=(()=>{class t{constructor(){this.changes=new C}reorder(e){this.changes.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),il=class extends On{constructor({column:n,newIndex:e,oldIndex:i}){super(),this.column=n,this.newIndex=e,this.oldIndex=i}},bu=class{constructor(n,e,i,o,s,r,a,d){this.dataRows=n,this.headerRows=e,this.isVirtual=i,this.hasPager=o,this.hasDetailTemplate=s,this.gridElement=r,this.virtualColumns=a,this.columns=d}get maxLogicalRowIndex(){let n=this.hasDetailTemplate?this.dataRows*2:this.dataRows;return this.headerRows+n-1}},Vo=class{constructor(){this.changes=new Qe}sort(n){this.changes.next(n)}},Du=class{constructor(n){this.columns=n}},nl=class{constructor(n){this.columns=n}},ja=32,W_=600,NL=768;function Qu(t,n){return n.type==="data"&&n.isEditing?n.data:t}var Eu=class{constructor(n){this.columns=n}},Zv=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridCellLoadingTemplate",""]]}),t})(),Xv=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoGridLoadingTemplate",""]]}),t})(),Mn=(()=>{class t{constructor(){this.changes=new Qe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),PL=(t,n)=>t===n.nextElementSibling,FL=(t,n)=>t===n.previousElementSibling,GL=(t,n)=>t?.parentElement!==n?.parentElement;function VL(t){let{clientTop:n,clientLeft:e}=KL(t),{pageYOffset:i,pageXOffset:o}=$L(t),{top:s,left:r}=t.getBoundingClientRect();return{top:s+i-n,left:r+o-e}}var zL={forbidden:"cancel",before:"insert-middle",after:"insert-middle"},UL={forbidden:fr,before:Bl,after:Bl},Kt={forbidden:"forbidden",before:"before",after:"after"},q_={zIndex:"20000",display:"flex",position:"fixed"},BL=["k-drag-clue","k-reorder-clue"],Q_={zIndex:"19000",position:"absolute"},jL=["k-drop-hint","k-drop-hint-h"],HL={handle:".k-table-td.k-drag-cell",dragTarget:".k-master-row",dropTarget:".k-master-row"},KL=t=>t?.ownerDocument.documentElement,$L=t=>t?.ownerDocument.defaultView,wu=(()=>{class t{constructor(e){this.renderer=e,this.hintElement=null,this.defaultSelectors=HL,this.hintText="",this.lastDropPosition=Kt.forbidden,this.dragTarget=null,this.dropTarget=null,this.rowReorder=new C}press(e){this.dragTarget=e.dragTarget,this.offsetY=e.dragEvent.offsetY}dragStart(){this.createDropIndicator()}drag(e){tt(e.hintElement)&&!tt(this.hintElement)&&(this.hintElement=e.hintElement,this.decorateHint());let i={x:e.dragEvent.clientX,y:e.dragEvent.clientY-this.offsetY};tt(this.hintElement)&&(this.renderer.setStyle(this.hintElement,"left",`${i.x}px`),this.renderer.setStyle(this.hintElement,"top",`${i.y}px`)),this.positionDropIndicator(e)}dragEnter(e){this.dropTarget=e.dropTarget}dragLeave(){this.dropTarget=null,this.hide()}dragEnd(){this.destroyDropIndicator(),this.dragTarget=null,this.dropTarget=null,this.hintElement=null}drop(e){this.destroyDropIndicator();let i=this.rowReorderArgs(this.dragTarget,this.dropTarget,e.dragData);this.rowReorder.emit(i)}reorderRows(e,i){if(this.lastDropPosition===Kt.forbidden)return;let{draggedRows:o,dropTargetRow:s}=e,r=o[0].dataItem,a=s.dataItem,d=i.indexOf(r),p=i.indexOf(a),m=this.calculateIndexToAdd(d,p);i.splice(d,1),i.splice(m,0,r)}get hintIcon(){return zL[this.lastDropPosition]}get hintSVGIcon(){return UL[this.lastDropPosition]}getDefaultHintText(e,i){let o="",s=e.toArray().filter(d=>!d.hidden&&tt(d.field)).map(d=>d.field),a=this.getDragRowPerElement(this.dragTarget,i)?.dataItem;return tt(a)&&s.forEach(d=>{let p=a[d];tt(p)&&(o+=`${p} `)}),o.trim()}rowReorderArgs(e,i,o){let s=this.getDragRowPerElement(e,o),r=this.getDragRowPerElement(i,o);return{draggedRows:[s],dropTargetRow:r,dropPosition:this.lastDropPosition}}getDragRowPerElement(e,i){let o=e?.getAttribute("data-kendo-grid-item-index");o=o?parseInt(o,10):-1;let s=this.skip||0;return{dataItem:o===-1?null:i[o-s],rowIndex:o,element:e}}createDropIndicator(){ae()&&(this.dropIndicator=document.createElement("div"),this.decorateDropIndicator(),this.dropIndicator.innerHTML=`
`,document.body.appendChild(this.dropIndicator),this.hide())}destroyDropIndicator(){ae()&&this.dropIndicator&&this.dropIndicator.parentElement&&(document.body.removeChild(this.dropIndicator),this.dropIndicator=null)}decorateHint(){BL.forEach(e=>this.renderer.addClass(this.hintElement,e)),Object.keys(q_).forEach(e=>this.renderer.setStyle(this.hintElement,e,q_[e]))}positionDropIndicator(e){this.lastDropPosition=this.getDropPosition(e.dragEvent),this.updateDropIndicatorPosition()}calculateIndexToAdd(e,i){if(e>i&&this.lastDropPosition===Kt.after)return i+1;if(e>i&&this.lastDropPosition===Kt.before)return i;if(ethis.renderer.addClass(this.dropIndicator,e)),Object.keys(Q_).forEach(e=>this.renderer.setStyle(this.dropIndicator,e,Q_[e]))}getDropPosition(e){if(this.dropTarget===this.dragTarget||!tt(this.dropTarget)||GL(this.dropTarget,this.dragTarget))return Kt.forbidden;let i=this.dropTarget.getBoundingClientRect(),s=i.height/2,r=e.clientY,a=i.top,d=null;return r=a+i.height-s&&(d=Kt.after),(d===Kt.before&&PL(this.dropTarget,this.dragTarget)||d===Kt.after&&FL(this.dropTarget,this.dragTarget))&&(d=Kt.forbidden),d}updateDropIndicatorPosition(){if(this.shouldHideDropIndicator()||!this.dropTarget){this.hide();return}this.show();let e=VL(this.dropTarget),i=e.top,o=e.left+this.dropIndicator.offsetWidth/2;this.lastDropPosition===Kt.after&&(i+=this.dropTarget.offsetHeight),this.renderer.setStyle(this.dropIndicator,"left",`${o}px`),this.renderer.setStyle(this.dropIndicator,"top",`${i}px`)}shouldHideDropIndicator(){return this.lastDropPosition===Kt.forbidden}hide(){tt(this.dropIndicator)&&(this.dropIndicator.style.display="none")}show(){tt(this.dropIndicator)&&(this.dropIndicator.style.display="")}}return t.\u0275fac=function(e){return new(e||t)(J(X))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),e0=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le))},t.\u0275dir=A({type:t,selectors:[["","kendoGridStatusBarTemplate",""]]}),t})(),yu=(()=>{class t{constructor(e){this.contextService=e,this.itemToString=(i,o)=>o.length?o.map(s=>i[s.field]).join(" "):null}createClipboardData(e,i,o){let s={gridItems:[],dataString:""},r=i.flatMap(p=>p instanceof bi&&tt(p.field)?[p]:[]),a={items:[],dataStrings:[]},d=r.map(p=>p.field);if(o.wholeRow)this.targetColField=r[0]?.field,this.targetRowIndex=e[0].dataRowIndex,e.forEach(p=>{a.items.push({dataItem:at({},p.dataItem),fields:d}),a.dataStrings.push(this.itemToString(p.dataItem,r))}),s={gridItems:o.operationType==="cut"?a.items.map(p=>(p.fields.forEach(m=>p.dataItem[m]=null),p)):[...a.items],dataString:o.copyHeaders?this.addHeaders(a.dataStrings.join(`\r `),r):a.dataStrings.join(` `)};else if(o.target==="selection"){let{tabular:p,groups:m}=this.groupSelection(),v=this.contextService.grid.selectionDirective,S=v.columnKey;if(p){let w=m[0].items.map(R=>R.columnKey),L=i.flatMap((R,U)=>R instanceof bi&&R.field&&tt(w.find(te=>typeof S=="function"?te===S(R,U):te===U))?[R]:[]),F=L.map(R=>R.field);this.targetColField=F[0],s.dataString=e.flatMap(R=>{let U=this.itemToString(R.dataItem,L),te=tt(U);return!tt(this.targetRowIndex)&&tt(U)&&(this.targetRowIndex=R.dataRowIndex),o.operationType==="cut"&&F.forEach(x=>R.dataItem[x]=null),s.gridItems.push({dataItem:R.dataItem,fields:F}),te?[U]:[]}).join(`\r `),o.copyHeaders&&(s.dataString=this.addHeaders(s.dataString,L))}else{let w=v.selectionKey;s.dataString=e.flatMap(L=>{let F=w?typeof w=="string"?L.dataItem[w]:w({index:L.dataRowIndex,dataItem:L.dataItem}):L.dataRowIndex,R=m.find(V=>V.value===F).items.map(V=>V.columnKey),U=i.flatMap((V,_e)=>V instanceof bi&&V.field&&tt(R.find(Ee=>typeof S=="function"?Ee===S(V,_e):Ee===_e))?[V]:[]),te=U.map(V=>V.field);this.targetColField||(this.targetColField=te[0]);let x=this.itemToString(L.dataItem,U),de=tt(x);return!tt(this.targetRowIndex)&&de&&(this.targetRowIndex=L.dataRowIndex),de&&(o.operationType==="cut"&&te.forEach(V=>L.dataItem[V]=null),s.gridItems.push({dataItem:L.dataItem,fields:te})),de?o.copyHeaders?[this.addHeaders(x,U)]:[x]:[]}).join(`\r `)}}else{let p=e[0],m=i[p.colIndex],v=m.field,S=m.title,w=p.dataItem[v];this.targetRowIndex=p.dataRowIndex,this.targetColField=v,o.operationType==="cut"&&v&&(p.dataItem[v]=null),s={gridItems:[{dataItem:p.dataItem,fields:v?[v]:[]}],dataString:o.copyHeaders?[S||v,w].join(`\r `):v?w:""}}return s}getGridData(e,i,o,s,r){let a=e.includes(`\r `)?`\r `:e.includes(` `)?` `:null,d=a?e.split(a).filter(m=>m.length):[e];if(this.targetRowIndex=s,o==="activeCell")if(r.wholeRow)this.targetColField=i.find(m=>m instanceof bi&&m.field)?.field;else{let m=this.contextService.grid.activeCell.colIndex;for(let v=0;v=m){this.targetColField=S.field;break}}}else if(r.wholeRow||!r.isCellSelection)this.targetColField=i.filter(m=>m instanceof bi&&m.field)[0].field;else{let{groups:m}=this.groupSelection(),S=this.contextService.grid.selectionDirective.columnKey,w=i.filter(U=>U.isVisible),L=m[0].items.map(U=>U.columnKey),R=w.flatMap((U,te)=>U instanceof bi&&U.field&&tt(L.find(x=>typeof S=="function"?x===S(U,te):x===te))?[U]:[]).map(U=>U.field);this.targetColField=R[0]}return d.map(m=>{let v=m.includes(" ")?m.split(" "):[m],S=i.flatMap(R=>R instanceof bi&&R.field?[R.field]:[]),w=S.indexOf(this.targetColField),L=S.slice(w,w+v.length),F={};return S.slice(w,w+v.length).forEach((R,U)=>F[R]=v[U]),{dataItem:F,fields:L}})}groupSelection(){let e=this.contextService.grid.selection,i=Qn(e,[{field:"itemKey"}]).map(o=>(o.items.sort((s,r)=>s.columnKey-r.columnKey),o));for(let o=1;os.title||s.field).join(" ")}\r ${e}`}}return t.\u0275fac=function(e){return new(e||t)(J(H))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),ol=(()=>{class t{constructor(e,i){this.element=e,this.service=i,this.context={},this.enter=new C,this.leave=new C,this.drop=new C,this.subscriptions=new Se}ngOnInit(){this.service.add(this);let e=this.service.changes.pipe(pe(({target:i})=>i===this));this.subscriptions.add(e.pipe(pe(({type:i})=>i==="leave")).subscribe(i=>{this.leave.next(this.eventArgs(i))})),this.subscriptions.add(e.pipe(pe(({type:i})=>i==="enter")).subscribe(i=>{this.enter.next(this.eventArgs(i))})),this.subscriptions.add(e.pipe(pe(({type:i})=>i==="drop")).subscribe(i=>{this.drop.next(this.eventArgs(i))}))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}eventArgs(e){return{target:this,mouseEvent:e.mouseEvent,draggable:e.draggable}}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(qu))},t.\u0275dir=A({type:t,selectors:[["","kendoDropTarget",""]],inputs:{context:"context"},outputs:{enter:"enter",leave:"leave",drop:"drop"}}),t})(),WL=t=>n=>Qi(n).pipe(Vn(150),qt(t)),io=t=>n=>new RegExp(`(^| )${t}( |$)`).test(n.className),qL=hl(io("k-i-x"),io("k-svg-i-x"),io("k-icon-button")),QL=hl(io("k-i-sort-asc-small"),io("k-i-sort-desc-small"),io("k-svg-i-sort-asc-small"),io("k-svg-i-sort-desc-small")),JL=Vu(Ts(qL),Ts(QL),Ts(Bs),Ts(At("label"))),J_=({clientX:t,clientY:n})=>ae()&&document.elementFromPoint(t,n),YL=(t,n)=>{t.style.display="none";let e=n();return t.style.display="block",e},t0=(()=>{class t{constructor(e,i,o,s,r,a,d,p){this.draggable=e,this.element=i,this.zone=o,this.service=s,this.hint=r,this.cue=a,this.nav=d,this.renderer=p,this.context={},this.drag=new C,this.subscriptions=new Se}set enableDrag(e){this.enabled=e,this.updateTouchAction()}get hostClass(){return this.enabled}ngOnInit(){this.subscriptions.add(this.zone.runOutsideAngular(()=>this.draggable.kendoPress.pipe(pe(e=>this.enabled),pe(({originalEvent:{target:e}})=>e===this.element.nativeElement||JL(e)),$e(e=>{let i=e.originalEvent;e.isTouch||i.preventDefault(),this.nav.navigateTo(i.target)}),xt(WL(this.draggable.kendoRelease)),$e(e=>{this.hint.create(this.context.hint),this.cue.create()}),xt(e=>this.draggable.kendoDrag.pipe($e(i=>{i.isTouch&&i.originalEvent.preventDefault()}),$e(this.hint.attach()),$e(this.cue.attach()),qt(this.draggable.kendoRelease),Ve(i=>({move:i,down:e})))),$e(this.performDrag.bind(this)),Yo(this.draggable.kendoRelease)).subscribe(this.drop.bind(this))))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}drop(e){this.hint.remove(),this.cue.remove(),this.service.notifyDrop(this,e)}performDrag({move:e}){this.hint.move(e);let i=this.elementUnderCursor(e);i&&this.service.notifyDrag(this,i,e),this.drag.emit({draggable:this,mouseEvent:e})}elementUnderCursor(e){this.hint.hide();let i=J_(e);return i&&/k-grouping-dropclue/.test(i.className)&&(i=YL(i,J_.bind(this,e))),this.hint.show(),i}updateTouchAction(){this.element&&(this.enabled?this.renderer.addClass(this.element.nativeElement,"k-touch-action-none"):this.renderer.removeClass(this.element.nativeElement,"k-touch-action-none"))}}return t.\u0275fac=function(e){return new(e||t)(c(Li,1),c(W),c(re),c(qu),c(gl),c(fl),c(Lt),c(X))},t.\u0275dir=A({type:t,selectors:[["","kendoDraggableColumn",""]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-grid-draggable-header",i.hostClass)},inputs:{context:"context",enableDrag:"enableDrag"},outputs:{drag:"drag"}}),t})(),ZL=({field:t})=>dt(t),XL=({groups:t,field:n})=>t.some(e=>e.field===n),eN=({target:t,field:n})=>t.field===n,tN=({target:t})=>t.lastTarget,iN=({groups:t,field:n})=>t.map(e=>e.field).indexOf(n)===t.length-1,nN=t=>({field:n})=>!t.isGroupable(n),oN=t=>hl(ZL,XL,nN(t)),sN=hl(eN,Vu(tN,iN)),rN=(()=>{class t{constructor(e,i,o,s,r,a,d,p){this.hint=e,this.cue=i,this.groupInfoService=o,this.ctx=s,this.cd=r,this.popupService=a,this.ngZone=d,this.renderer=p,this.change=new C,this.groups=[],this.dropTargets=new Ze,this.groupTitles=[],this.isChipMenuOpen=!1,this.rtl=!1,this.arrowLeftIcon=Ap,this.arrowRightIcon=Mp,this.handleKeyDown=m=>{if(m.keyCode===T.ArrowDown||m.keyCode===T.ArrowUp){m.preventDefault();let v=m.target.matches(":first-child")?"next":"previous";this.activateMenuItem(m.target,v)}else m.keyCode===T.Escape?this.destroyMenu(!0):m.keyCode===T.Tab?this.destroyMenu(!0):(m.keyCode===T.Space||m.keyCode===T.Enter)&&this.handleMenuClick(m)},this.handleClick=m=>{m.preventDefault();let v=m.target.closest(".k-menu-item");if(!v.matches('[aria-disabled="true"]')){this.handleMenuClick(m);return}if(v.getAttribute("tabindex")==="0")return;let S=v.closest(".k-menu-group").querySelector('[tabindex="0"]'),w=S.matches(":first-child")?"next":"previous";this.activateMenuItem(S,w)}}get groupHeaderClass(){return!0}set text(e){this.emptyText=e}get text(){return this.emptyText?this.emptyText:this.ctx.localization.get("groupPanelEmpty")}get gridId(){return this.ctx.grid?.ariaRootId}ngAfterViewInit(){this.subscription=this.ctx.localization.changes.subscribe(({rtl:e})=>{this.rtl=e,this.cd.markForCheck()}),this.subscription.add(ul(this.dropTargets).subscribe(this.attachTargets.bind(this)))}ngDoCheck(){let e=this.groups.map(i=>this.groupInfoService.groupTitle(i));(e.length!==this.groupTitles.length||e.some((i,o)=>i!==this.groupTitles[o]))&&(this.groupTitles=e,this.cd.markForCheck())}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.targetSubscription&&this.targetSubscription.unsubscribe(),this.destroyMenu()}messageFor(e){return this.ctx.localization.get(e)}getTitle(e){return this.messageFor(e.dir==="desc"?"sortedDescending":"sortedAscending")}getDirectionIcon(e){return e.dir==="desc"?"sort-desc-sm":"sort-asc-sm"}getDirectionSvgIcon(e){return e.dir==="desc"?vr:_r}directionChange(e){e.dir=e.dir?e.dir:"asc",e.dir=e.dir==="asc"?"desc":"asc";let i=this.groups.findIndex(s=>s.field===e.field),o=[...this.groups.slice(0,i),e,...this.groups.slice(i+1)];this.change.emit(o)}insert(e,i){let o=this.groups.filter(s=>s.field!==e);(o.length||this.groups.length===0)&&this.change.emit([...o.slice(0,i),{field:e},...o.slice(i)])}remove(e){this.change.emit(this.groups.filter(i=>i.field!==e.field))}toggleMenu(e,i,o,s){let r=e.element.nativeElement.querySelector(".k-chip-action");if(this.popupRef){let p=this.popupRef.popup.instance.anchor;if(this.destroyMenu(),r===p)return}this.first=i,this.last=o;let a=this.ctx.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:r,content:this.defaultTemplate,anchorAlign:{vertical:"bottom",horizontal:a},popupAlign:{vertical:"top",horizontal:a},positionMode:"absolute"}),this.activeItem=this.dropTargets.find(p=>p.context.field===s),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.ctx.localization.rtl?"rtl":"ltr");let d=Array.from(this.popupRef.popupElement.querySelectorAll(".k-menu-item"));this.activateMenuItem(d[1],"previous"),this.popupSubs=this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.destroyMenu(!0)}),!to()&&this.ngZone.runOutsideAngular(()=>{this.popupSubs.add(Wt(document,"click").pipe(pe(p=>!yt(p.target,m=>m===this.popupRef.popupElement||m.matches&&m.matches(".k-chip-action")))).subscribe(()=>{this.destroyMenu()}))})}canDrop(e,i){return!(e.type==="groupIndicator"?sN:oN(this.groupInfoService))({field:e.field,groups:this.groups,target:i})}attachTargets(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Se;let e=this.dropTargets.reduce((s,r)=>_t(s,r.enter),Gn([])),i=this.dropTargets.reduce((s,r)=>_t(s,r.leave),Gn([])),o=this.dropTargets.reduce((s,r)=>_t(s,r.drop),Gn([]));this.targetSubscription.add(e.pipe($e(s=>{this.hint.removeLock(),this.destroyMenu()}),pe(({draggable:s,target:r})=>this.canDrop(s.context,r.context)),$e(this.enter.bind(this)),Yo(o.pipe(qt(i.pipe($e(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}enter({draggable:e,target:i}){this.hint.enable();let o=i.context.lastTarget||Jv(e.element.nativeElement,i.element.nativeElement);this.ctx.localization.rtl&&(o=!o),this.cue.position(Yv(i.element.nativeElement,o))}leave(){this.hint.disable(),this.cue.hide()}drop({target:e,draggable:i}){let o=i.context.field,s=this.dropTargets.toArray().indexOf(e);this.insert(o,s)}destroyMenu(e){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.popupSubs&&this.popupSubs.unsubscribe(),e&&this.activeItem.context.target.focus())}activateMenuItem(e,i){this.renderer.setAttribute(e,"tabindex","-1"),this.renderer.removeClass(e,"k-focus");let o=e[`${i}ElementSibling`];this.renderer.setAttribute(o,"tabindex","0"),this.renderer.addClass(o,"k-focus"),this.ngZone.runOutsideAngular(()=>setTimeout(()=>o.focus()))}handleMenuClick(e){if(e.preventDefault(),e.target.getAttribute("aria-disabled")!=="true"){let i=this.dropTargets.toArray().slice(0,this.dropTargets.length-1),o,s;for(let a=0;a0?this.insert(o.context.field,s-1):!r&&s{class t{constructor(){this.columns=[],this.groups=[],this.sort=new Array}get columnsToRender(){return ln(this.columns)}trackBy(e,i){return e}isSorted(e){let i=this.sortDescriptor(e.field);return this.isSortable(e)&&(i.dir==="asc"||i.dir==="desc")}getColumnComponent(e){return e}isSortable(e){return!dt(e.field)&&ti(e.sortable)}sortDescriptor(e){return this.sort.find(i=>i.field===e)||{field:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["","kendoGridColGroup",""]],inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate",sort:"sort"},attrs:Ax,decls:4,vars:4,consts:[[3,"k-group-col",4,"ngFor","ngForOf"],[3,"k-hierarchy-col",4,"ngIf"],[3,"width","k-sorted",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(e,i){e&1&&(q(0),_(1,Lx,1,2,"col",0)(2,Nx,1,2,"col",1)(3,Px,1,4,"col",2),Q()),e&2&&(u(),l("ngForOf",i.groups),u(),l("ngIf",i.detailTemplate==null?null:i.detailTemplate.templateRef),u(),l("ngForOf",i.columnsToRender)("ngForTrackBy",i.trackBy))},dependencies:[qe,oe],encapsulation:2}),t})(),n0=(()=>{class t{constructor(e,i,o,s){this.el=e,this.renderer=i,this.resizeService=o,this.ctx=s,this.enabled=!1}set lockedWidth(e){this._lockedWidth=e,this.enabled&&(this.attachResize(),this.resize())}set kendoGridResizableContainer(e){let i=e!==this.enabled;this.enabled=e,i&&(this.attachResize(),this.resize())}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}attachResize(){this.resizeSubscription&&!this.enabled&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=null),!this.resizeSubscription&&this.enabled&&(this.resizeSubscription=this.resizeService.changes.subscribe(this.resize.bind(this)))}resize(){if(this.ctx.grid&&this.ctx.grid.wrapper){let e=this.ctx.grid.wrapper.nativeElement,i=Math.max(e.clientWidth-this._lockedWidth,0);this.enabled&&i>0?this.renderer.setStyle(this.el.nativeElement,"width",i+"px"):this.renderer.setStyle(this.el.nativeElement,"width","")}}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(X),c($u),c(H))},t.\u0275dir=A({type:t,selectors:[["","kendoGridResizableContainer",""]],inputs:{lockedWidth:"lockedWidth",kendoGridResizableContainer:"kendoGridResizableContainer"}}),t})(),aN=({columns:t})=>Math.max(1,lL(t).length),Y_=t=>n=>n.querySelector(t),lN=t=>n=>n.querySelectorAll("thead>tr")[t],Yd=(t,n="td")=>e=>e.querySelectorAll(`${n}:not(.k-group-cell):not(.k-hierarchy-cell)`)[t],Fa=t=>t.offsetWidth,Zd=(...t)=>n=>t.reduce((e,i)=>e?i(e):0,n),o0=(()=>{class t{constructor(e,i,o,s,r){this.element=e,this.renderer=i,this.service=o,this.zone=s,this.cdr=r,this.locked=!1,this.firstResize=!1}get minWidth(){return this.firstResize?0:null}ngOnInit(){let e=this.service.changes.pipe(pe(i=>this.locked===i.locked));this.subscription=e.pipe(pe(i=>i.type==="start"),$e(this.initState.bind(this)),Ve(aN),xt(i=>e.pipe(pe(o=>o.type==="resizeTable"),Ve(o=>o.delta),Hh(i)))).subscribe(this.resize.bind(this)),this.autoFitSubscription=this.service.registerTable({autoFit:this.autoFitObservable.bind(this),locked:this.locked})}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.autoFitSubscription&&(this.autoFitSubscription(),this.autoFitSubscription=null)}initState(){this.firstResize=!0,(!this.virtualColumns||this.locked)&&(this.originalWidth=Fa(this.element.nativeElement))}resize(e){if(!this.virtualColumns||this.locked){let i=e.reduce((s,r)=>s+r,0),o=this.originalWidth+i;this.renderer.setStyle(this.element.nativeElement,"width",o+"px")}this.cdr.detectChanges()}autoFitObservable(e){return ao.create(i=>{this.zone.runOutsideAngular(()=>{this.renderer.addClass(this.element.nativeElement,"k-autofitting"),this.cdr.detectChanges();let o=e.map(this.measureColumn.bind(this));this.renderer.removeClass(this.element.nativeElement,"k-autofitting"),i.next(o)})})}measureColumn(e){let i=this.element.nativeElement,o=Zd(lN(e.level),Yd(e.headerIndex,"th"),Fa)(i),s=0;(!e.isParentSpan||e.isParentSpan&&e.isLastInSpan)&&(s=Zd(Y_("tbody>tr:not(.k-grouping-row):not(.k-grid-norecords)"),Yd(e.index),Fa)(i));let r=Zd(Y_("tfoot>tr"),Yd(e.index),Fa)(i);return Math.max(o,s,r)}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(X),c(Gs),c(re),c(ve))},t.\u0275dir=A({type:t,selectors:[["table"]],hostVars:2,hostBindings:function(e,i){e&2&&ce("min-width",i.minWidth)},inputs:{locked:"locked",virtualColumns:"virtualColumns"}}),t})(),cN=(()=>{class t{constructor(e){this.ctx=e,this.hostClass=!0}get loadingText(){return this.ctx.localization.get("loading")}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridLoading",""]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-loading-mask",i.hostClass)},inputs:{loadingTemplate:"loadingTemplate"},attrs:Fx,decls:2,vars:2,consts:[[4,"ngIf"],[1,"k-loading-text"],[1,"k-loading-image"],[1,"k-loading-color"],[3,"ngTemplateOutlet"]],template:function(e,i){e&1&&_(0,Gx,5,1,"ng-container",0)(1,zx,1,1,null,0),e&2&&(l("ngIf",!i.loadingTemplate),u(),l("ngIf",i.loadingTemplate))},dependencies:[oe,Fe],encapsulation:2}),t})(),Ju=(()=>{class t{constructor(e){this.wrapper=e,this.hostClass=!0,this._size="medium"}get sizeSmallClass(){return this.size==="small"}get sizeMediumClass(){return this.size==="medium"||!this.size}set size(e){this._size=e,e==="none"&&this.wrapper.nativeElement.classList.remove("k-table-sm","k-table-md")}get size(){return this._size}}return t.\u0275fac=function(e){return new(e||t)(c(W))},t.\u0275dir=A({type:t,selectors:[["","kendoGridTable",""]],hostVars:6,hostBindings:function(e,i){e&2&&N("k-table",i.hostClass)("k-table-sm",i.sizeSmallClass)("k-table-md",i.sizeMediumClass)},inputs:{size:"size"}}),t})(),s0="k-hierarchy-cell k-detail-cell k-group-cell",dN="k-grouping-row k-group-footer k-detail-row k-grid-norecords",uN="k-icon k-svg-icon",hN="k-grid k-grid-ignore-click",Lo=(()=>{class t{constructor(e){this.root=e,this.active=!0,this.children=[],this.root.registerGroup(this)}get focusableChildren(){return this.children.filter(e=>e.canFocus())}get isActive(){return this.active}ngOnDestroy(){this.root.unregisterGroup(this),this.active=!0}registerElement(e){this.unregisterElement(e),this.children.push(e)}unregisterElement(e){this.children=this.children.filter(i=>i!==e)}isNavigable(){let e=this.focusableChildren;return e.length===1&&e[0].isNavigable()}canFocus(){return this.focusableChildren.length>0}focus(){this.canFocus()&&!this.hasFocus()&&this.focusableChildren[0].focus()}activate(){this.toggleState(!0)}deactivate(){this.toggleState(!1)}hasFocus(){return this.children.reduce((e,i)=>e||i.hasFocus(),!1)}toggleState(e){this.active!==e&&(this.active=e,this.children.forEach(i=>i.toggle(e)))}}return t.\u0275fac=function(e){return new(e||t)(J(Rn))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),pN=0;function mN(){return pN++}var Ws=(()=>{class t{constructor(e,i,o,s,r,a,d,p){this.focusGroup=e,this.element=i,this.columnInfoService=o,this.idService=s,this.navigationService=r,this.renderer=a,this.zone=d,this.cellContext=p,this.logicalSlaveCell=!1,this.colSpan=1,this.rowSpan=1,this.dataRowIndex=-1,this.detailExpandCell=!1,this.uid=mN()}get id(){if(!this.logicalSlaveCell&&this.columnInfoService.isLocked)return this.idService.cellId(this.logicalRowIndex,this.logicalColIndex)}get ariaColIndex(){if(!(this.logicalSlaveCell||this.logicalColIndex===-1))return this.logicalColIndex+1}ngOnInit(){this.navigationService.tableEnabled&&(this.navigationChange=this.navigationService.changes.subscribe(e=>this.onNavigationChange(e)))}ngDoCheck(){!this.navigationService.tableEnabled||this.logicalColIndex===-1||(this.cellContext&&(this.cellContext.focusGroup=this.focusGroup),this.registerNoChanges())}ngOnChanges(e){if(!this.navigationService.tableEnabled)return;let i=Object.keys(e);if(i.length===1&&i[0]==="groupItem"||this.logicalColIndex===-1)return;let o=e.logicalColIndex,s=e.logicalRowIndex,r=o&&!o.isFirstChange()?o.previousValue:this.logicalColIndex,a=s&&!s.isFirstChange()?s.previousValue:this.logicalRowIndex;this.navigationService.unregisterCell(r,a,this),this.registerChanges(),this.updateElement()}ngOnDestroy(){this.navigationChange&&this.navigationChange.unsubscribe(),this.navigationService.unregisterCell(this.logicalColIndex,this.logicalRowIndex,this)}onNavigationChange(e){let i=this.logicalColIndex===e.colIndex&&this.logicalRowIndex===e.rowIndex,o=this.logicalColIndex===e.prevColIndex&&this.logicalRowIndex===e.prevRowIndex;(i||o)&&this.updateElement()}updateElement(){let e=this.element.nativeElement;this.renderer.setAttribute(e,"tabIndex",this.isFocusable()&&!this.logicalSlaveCell?"0":"-1"),this.isFocused()?(this.focusGroup.isNavigable()?this.focusGroup.focus():(!this.logicalSlaveCell&&this.navigationService.autoFocusCell(this.logicalColIndex,this.logicalColIndex+this.colSpan-1)&&this.microtask(()=>this.isFocused()&&e.focus()),this.renderer.addClass(e,"k-focus")),this.headerLabelText&&e.removeAttribute("aria-label")):(this.renderer.removeClass(e,"k-focus"),this.headerLabelText&&e.setAttribute("aria-label",this.headerLabelText))}microtask(e){this.zone.runOutsideAngular(()=>Promise.resolve(null).then(e))}registerChanges(){this.logicalSlaveCell||this.navigationService.registerCell(this)}registerNoChanges(){this.logicalSlaveCell||this.navigationService.registerCellOnCurrentRow(this)}isFocusable(){return this.navigationService.isCellFocusable(this)}isFocused(){return this.navigationService.isCellFocused(this)}}return t.\u0275fac=function(e){return new(e||t)(c(Lo),c(W),c(Yt),c(ni),c(Lt),c(X),c(re),c(cn,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridLogicalCell",""]],hostVars:2,hostBindings:function(e,i){e&2&&M("id",i.id)("aria-colindex",i.ariaColIndex)},inputs:{logicalColIndex:"logicalColIndex",logicalRowIndex:"logicalRowIndex",logicalSlaveCell:"logicalSlaveCell",colIndex:"colIndex",colSpan:"colSpan",rowSpan:"rowSpan",groupItem:"groupItem",dataRowIndex:"dataRowIndex",dataItem:"dataItem",detailExpandCell:"detailExpandCell",headerLabelText:"headerLabelText"},features:[Y([{provide:Lo,deps:[Rn],useClass:Lo}]),be]}),t})(),gN=0;function fN(){return gN++}var Yu=(()=>{class t{constructor(e,i){this.idService=e,this.navigation=i,this.logicalSlaveRow=!1,this.logicalSlaveCellsCount=0,this.dataRowIndex=-1,this.uid=fN(),this.tableRowClass=!0}get hostRole(){return this.logicalSlaveRow?"presentation":"row"}get ariaRowIndex(){return this.logicalSlaveRow?null:this.logicalRowIndex+1}get rowIndex(){return this.logicalSlaveRow?this.logicalRowIndex+1:null}get ariaOwns(){if(this.logicalSlaveRow||this.logicalSlaveCellsCount===0)return;let e=[];if(this.dataRowIndex<0){let i=this.logicalCellsCount+this.logicalSlaveCellsCount;this.columnsArray.forEach(o=>{o.isSpanColumn&&(i+=o.colspan-1)});for(let o=this.logicalCellsCount;o{o.isLocked||e.push(this.idService.cellId(this.logicalRowIndex,i)),i+=o.isSpanColumn?o.colspan:1})}return e.join(" ")}ngOnChanges(e){if(!this.navigation.enabled||this.logicalSlaveRow)return;let i=e.logicalRowIndex,o=e.logicalSlaveRow;if(i||o){let s=i&&!i.isFirstChange()?i.previousValue:this.logicalRowIndex;this.navigation.unregisterRow(s,this),this.navigation.registerRow(this)}else Ji(["dataRowIndex","dataItem"],e)&&this.navigation.updateRow(this)}ngOnDestroy(){this.navigation.unregisterRow(this.logicalRowIndex,this)}get columnsArray(){return this.totalColumns?.allColumns.toArray()||[]}}return t.\u0275fac=function(e){return new(e||t)(c(ni),c(Lt))},t.\u0275dir=A({type:t,selectors:[["","kendoGridLogicalRow",""]],hostVars:6,hostBindings:function(e,i){e&2&&(M("role",i.hostRole)("aria-rowindex",i.ariaRowIndex)("data-kendo-grid-row-index",i.rowIndex)("aria-owns",i.ariaOwns),N("k-table-row",i.tableRowClass))},inputs:{logicalRowIndex:"logicalRowIndex",logicalSlaveRow:"logicalSlaveRow",logicalCellsCount:"logicalCellsCount",logicalSlaveCellsCount:"logicalSlaveCellsCount",dataRowIndex:"dataRowIndex",dataItem:"dataItem",totalColumns:"totalColumns"},features:[be]}),t})(),_l=(()=>{class t{constructor(e){this.viewContainerRef=e}set templateContext(e){this.removeView(),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))}ngOnDestroy(){this.removeView()}removeView(){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0)}}return t.\u0275fac=function(e){return new(e||t)(c(Ei))},t.\u0275dir=A({type:t,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),t})(),_N=/\{\d+:?/,r0=(()=>{class t{constructor(e){this.intlService=e}transform(e,i,o){if(!dt(i)){let s=ur(i)(e);return dt(o)?s:this.formatValue(o,s)}return e}formatValue(e,i){let o=this.intlService;return Fu(e)&&e.match(_N)?o.format(e,i):o.toString(i,e)}}return t.\u0275fac=function(e){return new(e||t)(c(Et,16))},t.\u0275pipe=Qh({name:"valueOf",type:t,pure:!1}),t})(),vN=(()=>{class t{constructor(e,i,o){this.groupsService=e,this.groupInfoService=i,this.ctx=o,this.skipGroupDecoration=!1,this.hasDetails=!1,this.totalColumnsCount=0,this.groups=[],this.groupItemClass=!0,this.tableGroupRowClass=!0,this.isExpanded=!1,this.caretAltDownIcon=Zi,this.caretAltRightIcon=Sn,this.caretAltLeftIcon=bn}ngDoCheck(){let e={group:this.item.data,groupIndex:this.item.index,parentGroup:Wa(this.item.parentGroup)};this.isExpanded=this.groupsService.isExpanded(e)}prefixGroupCell(e){return new Array(e.level)}toggleGroup(e){return this.groupsService.toggleRow(e),!1}groupSpan(e){let i=(this.groups||[]).length,o=this.hasDetails?1:0;if(this.hasGroupHeaderColumn)return i+1+o-e.level;let s=Ja(this.columns);return this.skipGroupDecoration?s:i+s+o-e.level}logicalColSpan(){return this.skipGroupDecoration?1:this.totalColumnsCount}ariaRole(){return this.skipGroupDecoration?"presentation":"gridcell"}formatForGroup(e){return this.groupInfoService.formatForGroup(e)}groupTitle(e){return this.groupInfoService.groupTitle(e)}groupHeaderTemplate(e){return this.groupInfoService.groupHeaderTemplate(e)}get groupButtonTitle(){let e=this.isExpanded?"groupCollapse":"groupExpand";return this.ctx.localization.get(e)}get arrowIcon(){return this.isExpanded?"caret-alt-down":this.ctx.localization.rtl?"caret-alt-left":"caret-alt-right"}get arrowSVGIcon(){return this.isExpanded?this.caretAltDownIcon:this.ctx.localization.rtl?this.caretAltLeftIcon:this.caretAltRightIcon}}return t.\u0275fac=function(e){return new(e||t)(c(oo),c(Go),c(H))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridGroupHeader",""]],hostVars:4,hostBindings:function(e,i){e&2&&N("k-grouping-row",i.groupItemClass)("k-table-group-row",i.tableGroupRowClass)},inputs:{rowIndex:"rowIndex",logicalRowIndex:"logicalRowIndex",item:"item",skipGroupDecoration:"skipGroupDecoration",hasDetails:"hasDetails",totalColumnsCount:"totalColumnsCount",hasGroupHeaderColumn:"hasGroupHeaderColumn",groupHeaderColumns:"groupHeaderColumns",columns:"columns",groups:"groups"},attrs:Ux,decls:3,vars:3,consts:[[4,"ngIf"],["aria-selected","false","class","k-table-td","kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan",4,"ngIf"],["class","k-group-cell k-table-td","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"k-group-cell","k-table-td"],["aria-selected","false","kendoGridLogicalCell","",1,"k-table-td",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan"],[1,"k-reset"],["href","#","tabindex","-1","role","presentation",3,"click"],[3,"name","svgIcon"],[3,"templateContext"],["role","gridcell","class","k-table-td","aria-selected","false","kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan",4,"ngFor","ngForOf"],["role","gridcell","aria-selected","false","kendoGridLogicalCell","",1,"k-table-td",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){e&1&&_(0,Kx,2,1,"ng-container",0)(1,Qx,3,9,"td",1)(2,Xx,2,1,"ng-container",0),e&2&&(l("ngIf",!i.skipGroupDecoration),u(),l("ngIf",!(i.skipGroupDecoration&&i.hasGroupHeaderColumn)),u(),l("ngIf",i.hasGroupHeaderColumn))},dependencies:[qe,oe,Fe,Ws,_l,Je,r0],encapsulation:2}),t})(),a0=(()=>{class t extends ct{constructor(e,i){super(e,i),this.parent=e}get templateRef(){return this.template?this.template.templateRef:void 0}}return t.\u0275fac=function(e){return new(e||t)(c(ct,13),c(ni,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-command-column"]],contentQueries:function(e,i,o){if(e&1&&B(o,js,5),e&2){let s;D(s=E())&&(i.template=s.first)}},features:[Y([{provide:ct,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),l0=(()=>{class t{constructor(e,i,o,s,r){this.selectionService=e,this.aggregateService=i,this.el=o,this.renderer=s,this.ngZone=r,this.type="checkbox",this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this)),this.destroyKeyDown=this.renderer.listen(this.el.nativeElement,"keydown",this.onKeyDown.bind(this))})}ngAfterContentChecked(){this.setCheckedState()}ngOnDestroy(){this.destroyClick&&this.destroyClick(),this.destroyKeyDown&&this.destroyKeyDown()}onClick(){this.selectionService.options.enabled&&this.ngZone.run(()=>{let e=this.selectionService.toggleByIndex(this.itemIndex);e.ctrlKey=!0,e.shiftKey=!1,this.selectionService.options.cellAggregates&&(e.cellAggregates=this.aggregateService.onSelectionChange(e)),this.selectionService.changes.emit(e)})}onKeyDown(e){e.keyCode===T.Enter&&this.onClick()}setCheckedState(){this.renderer.setProperty(this.el.nativeElement,"checked",this.selectionService.isSelected(this.itemIndex))}}return t.\u0275fac=function(e){return new(e||t)(c(Fo),c(Ks),c(W),c(X),c(re))},t.\u0275dir=A({type:t,selectors:[["","kendoGridSelectionCheckbox",""]],hostVars:1,hostBindings:function(e,i){e&2&&M("type",i.type)},inputs:{itemIndex:[0,"kendoGridSelectionCheckbox","itemIndex"]}}),t})(),CN=(()=>{class t{constructor(e,i,o,s){this.editService=e,this.idService=i,this.ctx=o,this.cellContext=s,this.isNew=!1,this.isLoading=!1,this.isVirtual=!1,this.reorderIcon=Lp,this._templateContext={},this._editTemplateContext={}}get commandCellClass(){return this.isCommand(this.column)}get dragHandleCellClass(){return qd(this.column)}get dragRowHandleLabel(){return qd(this.column)?this.ctx.localization.get("dragRowHandleLabel"):void 0}set rowIndex(e){this._rowIndex=e,this.updateCellContext()}get rowIndex(){return this._rowIndex}get isEdited(){if(!(this.editService.isEditing()||this.isNew)||!this.isColumnEditable)return!1;let e=this.editService.columnContext(this.rowIndex,this.column);return this.isFieldEditable(e,this.column)}get showLoading(){return this.isVirtual&&this.isLoading}get formGroup(){return this.editService.context(this.rowIndex).group}get templateContext(){return this._templateContext}get editTemplateContext(){return this._editTemplateContext.$implicit=this.formGroup,this._editTemplateContext.isNew=this.isNew,this._editTemplateContext.column=this.column,this._editTemplateContext.dataItem=this.dataItem,this._editTemplateContext.formGroup=this.formGroup,this._editTemplateContext.rowIndex=this.rowIndex,this._editTemplateContext}get format(){if(Ls(this.column)&&!dt(this.column.format))return Gu(this.column.format)}get isBoundColumn(){return this.column.field&&!this.column.templateRef}get isCheckboxColumn(){return yv(this.column)&&!this.column.templateRef}get selectionCheckboxId(){return this.idService.selectionCheckboxId(this.rowIndex)}get selectionCheckboxLabel(){return this.ctx.localization.get("selectionCheckboxLabel")}get isSpanColumn(){return ju(this.column)&&!this.column.templateRef}get childColumns(){return ln([this.column])}get isRowReorderColumn(){return qd(this.column)&&!this.column.templateRef}get isColumnEditable(){return!this.column||this.isCommand(this.column)?!1:this.column.editable!==!1}ngDoCheck(){this.updateCellContext()}ngOnChanges(e){this.updateTemplateContext()}ngAfterContentChecked(){this.updateTemplateContext()}isCommand(e){return e instanceof a0}isFieldEditable(e,i){return G(e)?G(i.editTemplate)?!0:G(e.group)&&G(e.group.get(i.field)):!1}updateCellContext(){this.cellContext&&(this.cellContext.rowIndex=this._rowIndex)}updateTemplateContext(){if(!this.column.templateRef)return;let e=this._templateContext;e.isNew=this.isNew,e.column=this.column,e.dataItem=this.dataItem,e.rowIndex=this.rowIndex,e.columnIndex=this.columnIndex,e.$implicit=this.dataItem}}return t.\u0275fac=function(e){return new(e||t)(c(Ri),c(ni),c(H),c(cn,8))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridCell",""]],hostVars:7,hostBindings:function(e,i){e&2&&(M("aria-label",i.dragRowHandleLabel),N("k-command-cell",i.commandCellClass)("k-drag-cell",i.dragHandleCellClass)("k-touch-action-none",i.dragHandleCellClass))},inputs:{column:"column",columnIndex:"columnIndex",isNew:"isNew",isLoading:"isLoading",isVirtual:"isVirtual",loadingTemplate:"loadingTemplate",rowIndex:"rowIndex",dataItem:"dataItem"},features:[be],attrs:eR,decls:3,vars:3,consts:[["loading",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngFor","ngForOf"],[1,"k-checkbox-wrap"],[1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"kendoGridSelectionCheckbox"],["name","reorder",3,"svgIcon"],["class","k-skeleton-text k-skeleton",4,"ngIf"],[1,"k-skeleton-text","k-skeleton"],[3,"ngSwitch",4,"ngIf"],["kendoGridFocusable","",3,"format","formControl",4,"ngSwitchCase"],["type","checkbox","class","k-checkbox k-checkbox-md k-rounded-md","kendoGridFocusable","",3,"formControl",4,"ngSwitchCase"],["type","text","class","k-textbox k-input k-input-md k-input-solid k-rounded-md","kendoGridFocusable","",3,"formControl",4,"ngSwitchDefault"],["kendoGridFocusable","",3,"format","formControl"],["type","checkbox","kendoGridFocusable","",1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"formControl"],["type","text","kendoGridFocusable","",1,"k-textbox","k-input","k-input-md","k-input-solid","k-rounded-md",3,"formControl"]],template:function(e,i){e&1&&(q(0,1),_(1,mR,4,2,"ng-container",2)(2,DR,3,2,"ng-container",2),Q()),e&2&&(l("ngSwitch",i.isEdited),u(),l("ngSwitchCase",!1),u(),l("ngSwitchCase",!0))},dependencies:[qe,oe,Fe,rr,ar,ap,Rl,cp,lr,mp,ii,Je,Dn,va,l0,r0],encapsulation:2}),t})(),SN=(t,n)=>{let e=0;for(let i=0;i{class t{constructor(e,i,o,s,r,a,d,p,m,v,S,w,L){this.detailsService=e,this.groupsService=i,this.changeNotification=o,this.editService=s,this.ctx=r,this.ngZone=a,this.renderer=d,this.element=p,this.domEvents=m,this.selectionService=v,this.cellSelectionService=S,this.columnInfoService=w,this.navigationService=L,this.columns=[],this.groups=[],this.skip=0,this.noRecordsText=this.ctx.localization.get("noRecords"),this.isLocked=!1,this.skipGroupDecoration=!1,this.showGroupFooters=!1,this.lockedColumnsCount=0,this.totalColumnsCount=0,this.trackBy=Qu,this.hostClass=!0,this.minusIcon=zp,this.plusIcon=Ul,this.rowClass=()=>null,this.cellKeydownSubscription=this.navigationService.cellKeydown.subscribe(F=>this.cellKeydownHandler(F)),this.trackByWrapper=this.trackByWrapper.bind(this),this.trackByColumns=this.trackByColumns.bind(this)}get newDataItem(){return this.editService.newDataItem}unlockedColumnsCount(e){let i=this.allColumns||this.columns,o=i.length;i.forEach(a=>{a.isSpanColumn&&(o+=a.colspan-1)});let s=this.totalColumnsCount-this.lockedColumnsCount-o,r=this.totalColumnsCount-this.lockedColumnsCount-(this.allColumns||this.columns).length;return e&&this.isDataItem(e)?s:r}isAriaSelected(e,i){return this.cellSelectionService.isCellSelected(e,i)||this.isRowSelected(e)?"true":"false"}toggleRow(e,i){return this.detailsService.toggleRow(e,i),!1}isExpanded(e){return this.detailsService.isExpanded(e.index,e.data)}detailButtonIconName(e){return this.isExpanded(e)?"minus":"plus"}detailButtonSvgIcon(e){return this.isExpanded(e)?this.minusIcon:this.plusIcon}detailButtonTitle(e){let i=this.isExpanded(e)?"detailCollapse":"detailExpand";return this.ctx.localization.get(i)}isGroup(e){return e.type==="group"}isDataItem(e){return!this.isGroup(e)&&!this.isFooter(e)}isFooter(e){return e.type==="footer"}isFooterItemInExpandedGroup(e){let i={data:e.data,index:e.groupIndex,parentGroup:e.group.parentGroup};return this.isInExpandedGroup(i)}isDataItemInExpandedGroup(e){let i={data:e.group.data,index:e.groupIndex,parentGroup:e.group.parentGroup};return this.isInExpandedGroup(i)}isInExpandedGroup(e){return this.groupsService.isInExpandedGroup(e)}isParentGroupExpanded(e){return this.groupsService.isInExpandedGroup(e.parentGroup)}isOdd(e){return e.index%2!==0}isSelectable(){return this.selectable&&this.selectable.enabled!==!1}isRowSelected(e){return this.selectionService.isSelected(e.index)}trackByWrapper(e,i){return i.type==="data"&&(i.isEditing=this.editService.hasEdited(i.index)),this.trackBy(e,i)}trackByColumns(e,i){return this.virtualColumns?e:i}ngDoCheck(){this.hasGroupHeaderColumn?this.groupHeaderColumns=ln(this.skipGroupDecoration?this.columns:this.columns.toArray().slice(1)):this.groupHeaderColumns=[],this.isLocked?this.groupHeaderSlaveCellsCount=this.hasGroupHeaderColumn?this.columnsContainer.nonLockedColumnsToRender.length:1:this.groupHeaderSlaveCellsCount=0}ngAfterViewChecked(){this.rowSticky&&this.applyStickyRowsStyling()}ngOnChanges(e){ot("columns",e,!1)&&this.changeNotification.notify()}logicalRowIndex(e){let i=this.skip+e;this.hasDetailTemplate&&(i*=2);let o=1+i,s=this.editService.hasNewItem?1:0,r=Vs(this.filterable)?1:0,a=this.columnInfoService.totalLevels+r+s;return o+a}addRowLogicalIndex(){return this.columnInfoService.totalLevels+1+(Vs(this.filterable)?1:0)}logicalColIndex(e){return G(e.leafIndex)?e.leafIndex+(this.hasDetailTemplate?1:0):-1}ngOnInit(){this.ngZone.runOutsideAngular(()=>{let i=this.clickHandler.bind(this),o=this.renderer.listen(this.element.nativeElement,"mousedown",i),s=this.renderer.listen(this.element.nativeElement,"mouseup",i),r=this.renderer.listen(this.element.nativeElement,"click",i),a=this.renderer.listen(this.element.nativeElement,"contextmenu",i),d=this.renderer.listen(this.element.nativeElement,"touchstart",i),p=this.renderer.listen(this.element.nativeElement,"touchend",i);this.clickSubscription=()=>{o(),s(),r(),a()},this.touchSubscription=()=>{d(),p()}});let e=this.ctx.localization.get("noRecords");this.l10nSubscription=this.ctx.localization.changes.subscribe(()=>{this.noRecordsText===e&&(this.noRecordsText=this.ctx.localization.get("noRecords"),e=this.noRecordsText)})}ngOnDestroy(){this.clickSubscription&&this.clickSubscription(),this.touchSubscription&&this.touchSubscription(),this.l10nSubscription&&this.l10nSubscription.unsubscribe(),this.cellKeydownSubscription.unsubscribe(),clearTimeout(this.clickTimeout)}isEditingCell(e,i){return this.editService.isEditing()&&this.editService.isEditedColumn(e,i)}isEditingRow(e){return this.editService.isEditing()&&this.editService.hasEdited(e)}get hasGroupHeaderColumn(){return this.columnsContainer.hasGroupHeaderColumn}get columnsContainer(){return this.columnInfoService.columnsContainer}get columnsSpan(){return Ja(this.columns)}get allColumnsSpan(){return Ja(this.allColumns||this.columns)}get colSpan(){return this.columnsSpan+this.groups.length+(this.hasDetailTemplate?1:0)}get footerColumns(){return Array.from(this.columns).reduce((i,o)=>{let s=o instanceof Ov?Array.from(o.childColumns):[o];return[...i,...s]},[])}showGroupHeader(e){return!e.data.skipHeader}addStickyColumnStyles(e){let i=this.columnInfoService.stickyColumnsStyles(e);return at(at({},e.style),i)}resizeHandler(){this.applyStickyRowsStyling()}get hasDetailTemplate(){return G(this.detailTemplate)}clickHandler(e){let i=this.element.nativeElement,o=this.eventTarget(e),s,r,a,d,p=o;do s=yt(p,At("td")),r=yt(s,At("tr")),a=yt(r,At("tbody")),p=a,d=iu(p,Os("k-grid"),i);while(a&&a!==i&&!d);if(s&&!Oo(s,s0)&&!Oo(r,dN)&&a===i&&!d&&(this.editService.preventCellClose(),!(o!==s&&Bs(o,!1))&&!At("label")(o)&&!Oo(o,uN)&&!iu(o,Os(hN),s))){let v=this.cellClickArgs(s,r,e);e.type==="mousedown"||e.type==="touchstart"?this.domEvents.cellMousedown.emit(v):e.type==="mouseup"||e.type==="touchend"?this.domEvents.cellMouseup.emit(v):(v.isEditedColumn||!this.editService.closeCell(e))&&(e.type==="click"?this.clickTimeout=setTimeout(()=>{this.emitCellClick(v)},0):this.emitCellClick(v))}}emitCellClick(e){this.domEvents.cellClick.emit(Object.assign(e,{isEdited:e.isEditedRow||e.isEditedColumn}))}cellKeydownHandler(e){e.keyCode===T.Enter&&this.clickHandler(e)}cellClickArgs(e,i,o){let s=SN(e,i.cells),r=this.columns.toArray()[s],a=this.lockedColumnsCount+s,d=i.getAttribute("data-kendo-grid-item-index");d=d?parseInt(d,10):-1;let p=d===-1?this.editService.newDataItem:this.data.at(d-this.skip),m=this.editService.isEditedColumn(d,r),v=this.editService.isEdited(d),S=o.type==="keydown"?"click":o.type;return{column:r,columnIndex:a,dataItem:p,isEditedColumn:m,isEditedRow:v,originalEvent:o,rowIndex:d,type:S}}eventTarget(e){if(ae()){if(e.type==="touchend"){let i=e.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}return e.target}}applyStickyRowsStyling(){if(!ae())return;let e=RA(this.element.nativeElement.querySelectorAll(".k-grid-row-sticky"));if(e.length){let o=0,s=[];e.forEach(r=>{let a=r.getBoundingClientRect().height;s.push({accumulatedHeight:o,rowHeight:a}),o+=a}),e.forEach((r,a)=>{this.renderer.setStyle(r,"top",`${s[a].accumulatedHeight}px`),this.renderer.setStyle(r,"bottom",`${o-s[a].accumulatedHeight-s[a].rowHeight}px`)})}}}return t.\u0275fac=function(e){return new(e||t)(c(Ms),c(oo),c(el),c(Ri),c(H),c(re),c(X),c(W),c(no),c(Fo),c(Ya),c(Yt),c(Lt))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridTableBody",""]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-table-tbody",i.hostClass)},inputs:{columns:"columns",allColumns:"allColumns",groups:"groups",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",data:"data",skip:"skip",selectable:"selectable",filterable:"filterable",noRecordsText:"noRecordsText",isLocked:"isLocked",isLoading:"isLoading",isVirtual:"isVirtual",cellLoadingTemplate:"cellLoadingTemplate",skipGroupDecoration:"skipGroupDecoration",showGroupFooters:"showGroupFooters",lockedColumnsCount:"lockedColumnsCount",totalColumnsCount:"totalColumnsCount",virtualColumns:"virtualColumns",trackBy:"trackBy",rowSticky:"rowSticky",totalColumns:"totalColumns",rowClass:"rowClass"},features:[be],attrs:ER,decls:4,vars:5,consts:[[4,"ngIf"],["class","k-grid-norecords","role","row",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"resize",4,"ngIf"],["kendoGridLogicalRow","",1,"k-grid-add-row","k-grid-edit-row","k-master-row",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns"],["class","k-hierarchy-cell k-table-td","kendoGridLogicalCell","","aria-selected","false",3,"logicalRowIndex","logicalColIndex",4,"ngIf"],["class","k-table-td","kendoGridCell","","kendoGridLogicalCell","",3,"rowIndex","columnIndex","isNew","column","dataItem","k-grid-content-sticky","ngClass","left","ngStyle","logicalRowIndex","logicalColIndex","colSpan",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-group-cell k-table-td","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"k-group-cell","k-table-td"],["kendoGridLogicalCell","","aria-selected","false",1,"k-hierarchy-cell","k-table-td",3,"logicalRowIndex","logicalColIndex"],["kendoGridCell","","kendoGridLogicalCell","",1,"k-table-td",3,"rowIndex","columnIndex","isNew","column","dataItem","ngClass","ngStyle","logicalRowIndex","logicalColIndex","colSpan"],["role","row",1,"k-grid-norecords"],[1,"k-table-td"],[3,"templateContext"],["kendoGridGroupHeader","","kendoGridLogicalRow","",3,"columns","groups","item","hasDetails","skipGroupDecoration","hasGroupHeaderColumn","groupHeaderColumns","rowIndex","totalColumnsCount","logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridLogicalRow","",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount","class","k-grid-row-sticky","ngClass","k-master-row","k-grid-edit-row","k-selected",4,"ngIf"],["class","k-detail-row","kendoGridLogicalRow","",3,"k-alt","dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount",4,"ngIf"],["class","k-group-footer","kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridGroupHeader","","kendoGridLogicalRow","",3,"columns","groups","item","hasDetails","skipGroupDecoration","hasGroupHeaderColumn","groupHeaderColumns","rowIndex","totalColumnsCount","logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount"],["kendoGridLogicalRow","",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount","ngClass"],["class","k-hierarchy-cell k-table-td","kendoGridLogicalCell","","aria-selected","false","role","gridcell",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","detailExpandCell",4,"ngIf"],["kendoGridCell","","kendoGridLogicalCell","","class","k-table-td",3,"rowIndex","columnIndex","column","dataItem","isLoading","isVirtual","loadingTemplate","logicalRowIndex","logicalColIndex","dataRowIndex","colIndex","colSpan","k-grid-content-sticky","k-touch-action-none","k-touch-action-auto","ngClass","k-grid-edit-cell","ngStyle","k-selected",4,"ngFor","ngForOf","ngForTrackBy"],["kendoGridLogicalCell","","aria-selected","false","role","gridcell",1,"k-hierarchy-cell","k-table-td",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","detailExpandCell"],["href","#","tabindex","-1",3,"click",4,"ngIf"],["href","#","tabindex","-1",3,"click"],[3,"name","svgIcon"],["kendoGridCell","","kendoGridLogicalCell","",1,"k-table-td",3,"rowIndex","columnIndex","column","dataItem","isLoading","isVirtual","loadingTemplate","logicalRowIndex","logicalColIndex","dataRowIndex","colIndex","colSpan","ngClass","ngStyle"],["kendoGridLogicalRow","",1,"k-detail-row",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount"],["class","k-group-cell k-table-td",4,"ngFor","ngForOf"],[1,"k-hierarchy-cell","k-table-td"],["kendoGridLogicalCell","","role","gridcell","aria-selected","false",1,"k-detail-cell","k-table-td",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","colIndex","colSpan"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-group-cell","k-table-td"],["kendoGridLogicalRow","",1,"k-group-footer",3,"logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount"],["kendoGridLogicalCell","","class","k-table-td",3,"logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf","ngForTrackBy"],["kendoGridLogicalCell","",1,"k-table-td",3,"logicalRowIndex","logicalColIndex"],[3,"resize"]],template:function(e,i){e&1&&_(0,OR,5,9,"ng-container",0)(1,NR,4,3,"tr",1)(2,ZR,5,4,"ng-container",2)(3,XR,1,0,"kendo-resize-sensor",3),e&2&&(l("ngIf",i.editService.hasNewItem),u(),l("ngIf",(i.data==null?null:i.data.length)===0||i.data===null),u(),l("ngForOf",i.data)("ngForTrackBy",i.trackByWrapper),u(),l("ngIf",i.rowSticky))},dependencies:[st,qe,oe,Fe,Pt,Ws,Yu,_l,Je,vN,yi,CN],encapsulation:2}),t})(),bN={allowUnsort:!0,mode:"single",showIndexes:!0,initialDirection:"asc",multiSortKey:"none"},Ha=(...t)=>Object.assign({},bN,...t),d0=(t,n)=>t.filter!==!1&&n.field&&n.filterable,u0=(t,n)=>t.sort!==!1&&n.field&&n.sortable,h0=(t,n)=>t.lock&&n.lockable&&!(n.parent&&!n.parent.isSpanColumn),DN=(t,n)=>t.stick&&n.stickable&&!(n.parent&&!n.parent.isSpanColumn),EN=(t,n)=>t.setColumnPosition&&(n.stickable||n.lockable)&&!(n.parent&&!n.parent.isSpanColumn),p0=t=>t.columnChooser!==!1,m0=t=>t.autoSizeColumn,g0=t=>t.autoSizeAllColumns,f0=(t,n,e)=>{e?t.autoFitColumn(e):t.autoFitColumns(),n.close()},wN=(t,n)=>g0(t)||p0(t)||d0(t,n)||m0(t)||h0(t,n)||u0(t,n),yN=t=>n=>Object.keys(t).reduce((e,i)=>(e[t[i]]=n.get(i),e),{}),Z_=yN({filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterAfterOrEqualOperator:"after-eq",filterAfterOperator:"after",filterBeforeOrEqualOperator:"before-eq",filterBeforeOperator:"before"}),vl=t=>t.map(n=>n.toJSON()),xe=(()=>{class t{constructor(e,i){this.operator=e,this.ctx=i,this.messages=Z_(this.ctx.localization),this._text=this.messages[this.operator],this.subscription=this.ctx.localization.changes.subscribe(this.refreshText.bind(this))}get text(){return this._text}set text(e){this._text=dt(e)?this.messages[this.operator]:e}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}toJSON(){return{text:this.text,value:this.operator}}refreshText(){let e=this._text===this.messages[this.operator];this.messages=Z_(this.ctx.localization),e&&(this._text=this.messages[this.operator])}}return t.\u0275fac=function(e){return new(e||t)(c("filterOperator"),c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-filter-operator-base"]],inputs:{text:"text"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),IN=(t,n,e)=>(n=n||{filters:[],logic:"and"},n.filters[t]=e,e),zo=(t,n,e,i)=>G(n)&&G(n.filters)&&n.filters.length>t?n.filters[t]:IN(t,n,{field:e,operator:i}),Uo=t=>[{text:t.get("filterAndLogic"),value:"and"},{text:t.get("filterOrLogic"),value:"or"}],Zu=t=>G(t.filters)?t.filters.reduce((n,e)=>n.concat(Gt(e)?Zu(e):[e]),[]):[],_0=(t,n)=>{G(t)&&G(t.filters)&&(t.filters=t.filters.filter(e=>Gt(e)?(_0(e,n),e.filters.length):e.field!==n))},qs=(t,n)=>Zu(t||{}).filter(e=>e.field===n),TN=(t,n)=>{let[e]=qs(t,n);return e},Iu=(t,n)=>(_0(t,n),t),Cl=t=>n=>Object.keys(t).map(e=>({text:n.get(e),value:t[e]})),Bo=(()=>{class t{constructor(e){this.filterService=e,this.operatorList=new Ze,this.size="medium"}get hostClasses(){return!0}get operators(){return this._operators?.length?this._operators:this.defaultOperators}set operators(e){this._operators=e}ngAfterContentInit(){this.operationListSubscription=ul(this.operatorList).pipe(Ve(e=>e.toArray()),Ve(vl)).subscribe(e=>{this.operators=e})}ngOnDestroy(){this.operationListSubscription&&this.operationListSubscription.unsubscribe()}filterByField(e){return TN(this.filter,e)}filtersByField(e){return qs(this.filter,e)}removeFilter(e){return Iu(this.filter,e)}updateFilter(e){let i=this.filter||{filters:[],logic:"and"},[o]=Zu(i).filter(s=>s.field===e.field);return G(o)?Object.assign(o,e):i.filters.push(e),i}applyFilter(e){this.filterService.filter(e)}}return t.\u0275fac=function(e){return new(e||t)(c(It))},t.\u0275dir=A({type:t,contentQueries:function(e,i,o){if(e&1&&B(o,xe,4),e&2){let s;D(s=E())&&(i.operatorList=s)}},hostVars:2,hostBindings:function(e,i){e&2&&N("k-filtercell",i.hostClasses)},inputs:{operators:"operators"}}),t})(),kN=(t,n)=>t.field!==n.field||t.operator!==n.operator||t.value!==n.value,xN=(t,n)=>{if(t.length!==n.length)return!0;for(let e=0,i=t.length;e{let n={};if(Object.assign(n,t),t.constructor!==Object){let e=t.constructor.prototype;Object.getOwnPropertyNames(e).forEach(i=>{i!=="constructor"&&e.hasOwnProperty(i)&&(n[i]=t[i])})}return n},ON=t=>RN(t),zs=t=>{if(t)return Gt(t)?{filters:zs(t.filters),logic:t.logic}:Array.isArray(t)?t.map(zs):ON(t)},v0=(t,n)=>G(t)&&!G(n)||!G(t)&&G(n)?!0:G(t)&&G(n)&&xN(t.filters,n.filters),C0=(()=>{class t{constructor(e,i){this.host=e,this.resolver=i}ngOnInit(){this.component=this.host.createComponent(this.resolver.resolveComponentFactory(this.componentType())),this.initComponent({column:this.column,filter:this.filter})}ngOnDestroy(){this.component&&(this.component.destroy(),this.component=null)}ngOnChanges(e){Ji(["column","filter"],e)&&this.initComponent({column:this.column,filter:this.filter})}initComponent({column:e,filter:i}){let o=this.component.instance;o.column=e,o.filter=i}}return t.\u0275fac=function(e){return new(e||t)(c(Ei),c(ir))},t.\u0275dir=A({type:t,selectors:[["","kendoGridFilterHostBase",""]],inputs:{column:"column",filter:"filter"},features:[be]}),t})(),MN=Cl({filterEqOperator:"eq",filterNotEqOperator:"neq",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"}),S0=(()=>{class t extends Bo{constructor(e,i){super(e),this.ctx=i,this.operator="contains"}get currentFilter(){return this.filterByField((this.column||{}).field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.ctx.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=MN(this.ctx.localization),this.operatorList.length&&(this.operators=vl(this.operatorList.toArray()))}}return t.\u0275fac=function(e){return new(e||t)(c(It),c(H))},t.\u0275dir=A({type:t,inputs:{column:"column",filter:"filter",operator:"operator"},features:[z]}),t})(),dn=(()=>{class t{constructor(e,i,o,s){this.element=o,this.renderer=s,this.change=new C,this.composing=!1,this.filterDelay=500,this.changeRequests=new Qe,this.accessor=e[0],i.runOutsideAngular(()=>{let r=s.listen(o.nativeElement,"compositionstart",()=>this.composing=!0),a=s.listen(o.nativeElement,"compositionend",()=>this.composing=!1);this.unsubscribeEvents=()=>{r(),a()}})}set value(e){this.accessor.writeValue(e)}set disabled(e){this.accessor.setDisabledState(e)}ngAfterViewInit(){this.addAriaAttributes(),this.accessor.registerOnChange(e=>this.filterDelay>0?this.changeRequests.next(e):this.change.emit(e)),this.subscribeChanges()}ngOnChanges(e){ot("filterDelay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())}ngOnDestroy(){this.unsubscribeChanges(),this.unsubscribeEvents()}subscribeChanges(){this.changeRequestsSubscription=this.changeRequests.pipe(Dl(this.filterDelay),pe(()=>!this.composing)).subscribe(e=>this.change.emit(e))}unsubscribeChanges(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()}addAriaAttributes(){let e=this.columnLabel;if(this.kendoInput&&this.kendoInput.focusableId&&ae()){let i=this.element.nativeElement.querySelector(`#${this.kendoInput.focusableId}`)||this.element.nativeElement;this.renderer.setAttribute(i,"aria-label",e)}else{let i=this.element.nativeElement.querySelector(".k-input-inner"),o=i||this.element.nativeElement;e&&this.renderer.setAttribute(o,"aria-label",e)}}}return t.\u0275fac=function(e){return new(e||t)(c(Un,2),c(re),c(W),c(X))},t.\u0275dir=A({type:t,selectors:[["","kendoFilterInput",""]],contentQueries:function(e,i,o){if(e&1&&B(o,uo,7),e&2){let s;D(s=E())&&(i.kendoInput=s.first)}},inputs:{filterDelay:"filterDelay",columnLabel:"columnLabel",value:"value"},features:[be]}),t})(),AN=new Set(["isnull","isnotnull","isempty","isnotempty"]),Ga=t=>AN.has(t),b0=(()=>{class t extends Bo{constructor(e){super(e)}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){let e=this.currentFilter;return this._operator||(this._operator=e?e.operator:this.defaultOperator),this._operator}set currentOperator(e){this._operator=e;let i=Ga(e);this.filterInputDisabled=i,i?this.applyNoValueFilter(e):!ks(e)&&G(this.currentFilter)&&this.onChange(this.currentFilter.value)}get defaultOperator(){if(dt(this._defaultOperator)){if(this.operators&&this.operators.length)return this.operators[0].value}else return this._defaultOperator;return"eq"}set defaultOperator(e){this._defaultOperator=e}set filterInputDisabled(e){this.input&&(this.input.disabled=e)}ngAfterContentInit(){G(this.input)&&(this.changeSubscription=this.input.change.subscribe(this.onChange.bind(this)),this.filterInputDisabled=Ga(this.currentOperator))}ngOnDestroy(){super.ngOnDestroy(),this.changeSubscription&&this.changeSubscription.unsubscribe()}onChange(e){(!dt(e)||this.filterByField(this.column.field))&&this.filterChange(dt(e)?this.removeFilter(this.column.field):this.updateFilter({field:this.column.field,operator:this.currentOperator,value:e}))}onClear(){this.onChange(null),this.filterInputDisabled=Ga(this.defaultOperator)}applyNoValueFilter(e){this.filterChange(this.updateFilter({field:this.column.field,operator:e,value:null}))}ngOnChanges(e){ot("filter",e,!1)&&(this._operator=null,this.filterInputDisabled=Ga(this.currentOperator))}}return t.\u0275fac=function(e){return new(e||t)(c(It))},t.\u0275dir=A({type:t,contentQueries:function(e,i,o){if(e&1&&B(o,dn,5),e&2){let s;D(s=E())&&(i.input=s.first)}},inputs:{column:"column",filter:"filter",defaultOperator:"defaultOperator"},features:[z,be]}),t})(),Qs=(()=>{class t{constructor(e){this.host=e,this.keydownHandler=i=>{i.keyCode===T.Escape&&this.host.isOpen&&(i.stopPropagation(),this.host.toggle(!1))}}ngAfterViewInit(){let e=this.host.wrapper.nativeElement;e.setAttribute("aria-label",this.filterMenuDropDownLabel),e.addEventListener("keydown",this.keydownHandler,!0)}ngOnDestroy(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)}}return t.\u0275fac=function(e){return new(e||t)(c(_i))},t.\u0275dir=A({type:t,selectors:[["","kendoFilterMenuDropDown",""]],inputs:{filterMenuDropDownLabel:"filterMenuDropDownLabel"}}),t})(),Xu=(()=>{class t extends b0{constructor(e){super(null),this.ctx=e}get hostClasses(){return!1}ngAfterViewInit(){let e=this.isFirstDropDown&&this.filterService&&this.filterService.menuTabbingService,i=this.menuTabbingService?.isTabbedInterface;e&&!i&&(this.filterService.menuTabbingService.firstFocusable=this.firstOperatorDropDown,this.firstOperatorDropDown.focus())}operatorChange(e){this.currentOperator=e}filterChange(e){this.applyFilter(e)}get currentFilter(){return this._currentFilter}set currentFilter(e){this._currentFilter=e}updateFilter(e){return Object.assign(this.currentFilter,e),this.filter}onChange(e){this.filterChange(this.updateFilter({field:this.column.field,operator:this.currentOperator,value:e}))}onShiftTab(e){e.stopImmediatePropagation(),(!this.menuTabbingService||!this.menuTabbingService.isColumnMenu)&&this.isFirstDropDown&&this.filterService.menuTabbingService.lastFocusable&&(e.preventDefault(),this.filterService.menuTabbingService.lastFocusable.focus())}get filterMenuDropDownLabel(){let e=this.ctx.localization.get("filterMenuOperatorsDropDownLabel")||"",i=this.column?this.column.title||this.column.field:"";return Tt(e,"columnName",i)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-filter-menu-input-wrapper"]],viewQuery:function(e,i){if(e&1&&j(_i,5),e&2){let o;D(o=E())&&(i.firstOperatorDropDown=o.first)}},inputs:{filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService",currentFilter:"currentFilter"},features:[z],ngContentSelectors:An,decls:2,vars:4,consts:[["kendoFilterMenuDropDown","","textField","text","valueField","value",3,"valueChange","keydown.shift.tab","filterMenuDropDownLabel","data","value","valuePrimitive"]],template:function(e,i){e&1&&(Le(),g(0,"kendo-dropdownlist",0),O("valueChange",function(s){return i.operatorChange(s)})("keydown.shift.tab",function(s){return i.onShiftTab(s)}),f(),Ne(1)),e&2&&l("filterMenuDropDownLabel",i.filterMenuDropDownLabel)("data",i.operators)("value",i.currentOperator)("valuePrimitive",!0)},dependencies:[_i,Qs],encapsulation:2}),t})(),LN=(()=>{class t{constructor(e){this.ctx=e,this.operators=[]}get columnLabel(){let e=this.ctx.localization.get("filterInputLabel")||"",i=this.column?this.column.title||this.column.field:"";return Tt(e,"columnName",i)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-string-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService"},decls:2,vars:11,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoTextBox","","kendoFilterInput","",3,"columnLabel","filterDelay","ngModel"]],template:function(e,i){e&1&&(g(0,"kendo-grid-filter-menu-input-wrapper",0),b(1,"input",1),f()),e&2&&(l("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("currentFilter",i.currentFilter)("filterService",i.filterService)("isFirstDropDown",i.isFirstDropDown)("menuTabbingService",i.menuTabbingService),u(),l("columnLabel",i.columnLabel)("filterDelay",0)("ngModel",i.currentFilter==null?null:i.currentFilter.value))},dependencies:[Rl,lr,Ml,Zp,dn,Xu],encapsulation:2}),t})(),eh=(()=>{class t extends S0{constructor(e){super(null,e),this.logicOperators=Uo(this.ctx.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return zo(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return zo(1,this.filter,(this.column||{}).field,this.operator)}logicChange(e){this.filter.logic=e}get filterMenuDropDownLabel(){let e=this.ctx.localization.get("filterMenuLogicDropDownLabel")||"",i=this.column?this.column.title||this.column.field:"";return Tt(e,"columnName",i)}localizationChange(){this.logicOperators=Uo(this.ctx.localization),super.localizationChange()}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-string-filter-menu"]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-filtercell",i.hostClasses)},inputs:{column:"column",filter:"filter",extra:"extra",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[z],decls:3,vars:9,consts:[[3,"currentFilter","operators","filterService","column","filter","isFirstDropDown","menuTabbingService"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"valueChange","filterMenuDropDownLabel","data","valuePrimitive","value"],[3,"operators","currentFilter","filterService","column","filter","menuTabbingService"]],template:function(e,i){e&1&&(b(0,"kendo-grid-string-filter-menu-input",0),_(1,eO,1,4,"kendo-dropdownlist",1)(2,tO,1,6,"kendo-grid-string-filter-menu-input",2)),e&2&&(l("currentFilter",i.firstFilter)("operators",i.operators)("filterService",i.filterService)("column",i.column)("filter",i.filter)("isFirstDropDown",!0)("menuTabbingService",i.menuTabbingService),u(),l("ngIf",i.extra),u(),l("ngIf",i.extra))},dependencies:[oe,_i,LN,Qs],encapsulation:2}),t})(),X_=Cl({filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"}),D0=(()=>{class t extends Bo{constructor(e,i){super(e),this.ctx=i,this.operator="eq",this.step=1,this.spinners=!0,this.defaultOperators=X_(this.ctx.localization)}get format(){return dt(this._format)?this.columnFormat:this._format}set format(e){this._format=e}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}get columnFormat(){return this.column&&!dt(this.column.format)?Gu(this.column.format):"n2"}ngOnInit(){this.subscription=this.ctx.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=X_(this.ctx.localization),this.operatorList.length&&(this.operators=vl(this.operatorList.toArray()))}}return t.\u0275fac=function(e){return new(e||t)(c(It),c(H))},t.\u0275dir=A({type:t,inputs:{column:"column",filter:"filter",operator:"operator",step:"step",min:"min",max:"max",spinners:"spinners",decimals:"decimals",format:"format"},features:[z]}),t})(),NN=(()=>{class t{constructor(e){this.ctx=e,this.operators=[],this.step=1,this.spinners=!0}messageFor(e){return this.ctx.localization.get(e)}get columnLabel(){let e=this.ctx.localization.get("filterInputLabel")||"",i=this.column?this.column.title||this.column.field:"";return Tt(e,"columnName",i)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-numeric-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",filterDelay:"filterDelay",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService",step:"step",min:"min",max:"max",spinners:"spinners",decimals:"decimals",format:"format"},decls:3,vars:20,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","step"],[3,"increment","decrement"]],template:function(e,i){e&1&&(g(0,"kendo-grid-filter-menu-input-wrapper",0)(1,"kendo-numerictextbox",1),b(2,"kendo-numerictextbox-messages",2),f()()),e&2&&(l("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("currentFilter",i.currentFilter)("filterService",i.filterService)("isFirstDropDown",i.isFirstDropDown)("menuTabbingService",i.menuTabbingService),u(),l("columnLabel",i.columnLabel)("filterDelay",i.filterDelay)("autoCorrect",!0)("value",i.currentFilter==null?null:i.currentFilter.value)("format",i.format)("decimals",i.decimals)("spinners",i.spinners)("min",i.min)("max",i.max)("step",i.step),u(),l("increment",i.messageFor("filterNumericIncrement"))("decrement",i.messageFor("filterNumericDecrement")))},dependencies:[Dn,Hl,dn,Xu],encapsulation:2}),t})(),E0=(()=>{class t extends D0{constructor(e){super(null,e),this.logicOperators=Uo(this.ctx.localization),this.filter={filters:[],logic:"and"},this.extra=!0,this.filterDelay=500}get hostClasses(){return!1}get firstFilter(){return zo(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return zo(1,this.filter,(this.column||{}).field,this.operator)}logicChange(e){this.filter.logic=e}get filterMenuDropDownLabel(){let e=this.ctx.localization.get("filterMenuLogicDropDownLabel")||"",i=this.column?this.column.title||this.column.field:"";return Tt(e,"columnName",i)}localizationChange(){this.logicOperators=Uo(this.ctx.localization),super.localizationChange()}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-numeric-filter-menu"]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-filtercell",i.hostClasses)},inputs:{column:"column",filter:"filter",extra:"extra",filterService:"filterService",filterDelay:"filterDelay",menuTabbingService:"menuTabbingService"},features:[z],decls:3,vars:16,consts:[[3,"currentFilter","operators","filterService","column","filter","filterDelay","format","decimals","spinners","min","max","step","menuTabbingService","isFirstDropDown"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"valueChange","filterMenuDropDownLabel","data","valuePrimitive","value"],[3,"operators","currentFilter","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService"]],template:function(e,i){e&1&&(b(0,"kendo-grid-numeric-filter-menu-input",0),_(1,iO,1,4,"kendo-dropdownlist",1)(2,nO,1,12,"kendo-grid-numeric-filter-menu-input",2)),e&2&&(l("currentFilter",i.firstFilter)("operators",i.operators)("filterService",i.filterService)("column",i.column)("filter",i.filter)("filterDelay",i.filterDelay)("format",i.format)("decimals",i.decimals)("spinners",i.spinners)("min",i.min)("max",i.max)("step",i.step)("menuTabbingService",i.menuTabbingService)("isFirstDropDown",!0),u(),l("ngIf",i.extra),u(),l("ngIf",i.extra))},dependencies:[oe,_i,NN,Qs],encapsulation:2}),t})(),ev=Cl({filterEqOperator:"eq",filterNotEqOperator:"neq",filterAfterOrEqualOperator:"gte",filterAfterOperator:"gt",filterBeforeOrEqualOperator:"lte",filterBeforeOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"}),w0=(()=>{class t extends Bo{constructor(e,i){super(e),this.ctx=i,this.operator="gte",this.activeView="month",this.bottomView="month",this.topView="century",this.weekNumber=!1,this.defaultOperators=ev(this.ctx.localization)}get currentFilter(){return this.filterByField(this.column.field)}set format(e){this._format=e}get format(){return dt(this._format)?this.columnFormat:this._format}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}get columnFormat(){return this.column&&!dt(this.column.format)?Gu(this.column.format):"d"}ngOnInit(){this.subscription=this.ctx.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=ev(this.ctx.localization),this.operatorList.length&&(this.operators=vl(this.operatorList.toArray()))}}return t.\u0275fac=function(e){return new(e||t)(c(It),c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-date-filter-base"]],inputs:{column:"column",filter:"filter",operator:"operator",format:"format",min:"min",max:"max",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber"},features:[z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),PN=(()=>{class t{constructor(e,i){this.popupService=e,this.ctx=i,this.operators=[]}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}open(e){this.subscription=this.popupService.onClose.pipe(pe(()=>e.isActive)).subscribe(i=>i.preventDefault())}messageFor(e){return this.ctx.localization.get(e)}get columnLabel(){let e=this.ctx.localization.get("filterInputLabel")||"",i=this.column?this.column.title||this.column.field:"";return Tt(e,"columnName",i)}}return t.\u0275fac=function(e){return new(e||t)(c($s),c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-date-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",menuTabbingService:"menuTabbingService",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",min:"min",max:"max",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber",isFirstDropDown:"isFirstDropDown"},decls:4,vars:22,consts:[["picker",""],[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",3,"open","columnLabel","filterDelay","value","placeholder","formatPlaceholder","format","min","max","activeView","bottomView","topView","weekNumber"],[3,"toggle","today"]],template:function(e,i){if(e&1){let o=K();g(0,"kendo-grid-filter-menu-input-wrapper",1)(1,"kendo-datepicker",2,0),O("open",function(){y(o);let r=me(2);return I(i.open(r))}),b(3,"kendo-datepicker-messages",3),f()()}e&2&&(l("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("currentFilter",i.currentFilter)("filterService",i.filterService)("isFirstDropDown",i.isFirstDropDown)("menuTabbingService",i.menuTabbingService),u(),l("columnLabel",i.columnLabel)("filterDelay",0)("value",i.currentFilter==null?null:i.currentFilter.value)("placeholder",i.placeholder)("formatPlaceholder",i.formatPlaceholder)("format",i.format)("min",i.min)("max",i.max)("activeView",i.activeView)("bottomView",i.bottomView)("topView",i.topView)("weekNumber",i.weekNumber),u(2),l("toggle",i.messageFor("filterDateToggle"))("today",i.messageFor("filterDateToday")))},dependencies:[va,pd,dn,Xu],encapsulation:2}),t})(),y0=(()=>{class t extends w0{constructor(e){super(null,e),this.logicOperators=Uo(this.ctx.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return zo(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return zo(1,this.filter,(this.column||{}).field,this.operator)}logicChange(e){this.filter.logic=e}get filterMenuDropDownLabel(){let e=this.ctx.localization.get("filterMenuLogicDropDownLabel")||"",i=this.column?this.column.title||this.column.field:"";return Tt(e,"columnName",i)}localizationChange(){this.logicOperators=Uo(this.ctx.localization),super.localizationChange()}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-date-filter-menu"]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-filtercell",i.hostClasses)},inputs:{column:"column",filter:"filter",extra:"extra",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[z],decls:3,vars:18,consts:[[3,"currentFilter","operators","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","isFirstDropDown","menuTabbingService"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"valueChange","filterMenuDropDownLabel","data","valuePrimitive","value"],[3,"operators","currentFilter","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","menuTabbingService"]],template:function(e,i){e&1&&(b(0,"kendo-grid-date-filter-menu-input",0),_(1,oO,1,4,"kendo-dropdownlist",1)(2,sO,1,15,"kendo-grid-date-filter-menu-input",2)),e&2&&(l("currentFilter",i.firstFilter)("operators",i.operators)("filterService",i.filterService)("column",i.column)("filter",i.filter)("activeView",i.activeView)("bottomView",i.bottomView)("topView",i.topView)("format",i.format)("formatPlaceholder",i.formatPlaceholder)("placeholder",i.placeholder)("min",i.min)("max",i.max)("weekNumber",i.weekNumber)("isFirstDropDown",!0)("menuTabbingService",i.menuTabbingService),u(),l("ngIf",i.extra),u(),l("ngIf",i.extra))},dependencies:[oe,_i,PN,Qs],encapsulation:2}),t})(),I0=(()=>{class t extends Bo{constructor(e,i){super(e),this.ctx=i,this.operator="eq",this.items=[{text:this.ctx.localization.get("filterIsTrue"),value:!0},{text:this.ctx.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.ctx.localization.get("filterBooleanAll"),value:null}}get hostClasses(){return!0}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.ctx.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.items=[{text:this.ctx.localization.get("filterIsTrue"),value:!0},{text:this.ctx.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.ctx.localization.get("filterBooleanAll"),value:null}}}return t.\u0275fac=function(e){return new(e||t)(c(It),c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-boolean-filter-base"]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-filtercell-boolean",i.hostClasses)},inputs:{column:"column",filter:"filter"},features:[z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Tu=(()=>{class t{constructor(e,i){this.hostElement=e,this.renderer=i}ngAfterViewInit(){this.radioButtonEl=this.hostElement.nativeElement,this.renderer.setAttribute(this.hostElement.nativeElement,"aria-label",this.columnLabel)}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(X))},t.\u0275dir=A({type:t,selectors:[["","kendoFilterMenuRadioButton",""]],inputs:{columnLabel:"columnLabel"}}),t})(),T0=(()=>{class t extends I0{constructor(e){super(null,e),this.filter={filters:[],logic:"and"},this.idPrefix=ri()}get hostClasses(){return!1}ngAfterViewInit(){this.filterService.menuTabbingService.firstFocusable=this.radioButtons.first.radioButtonEl,this.menuTabbingService?.isTabbedInterface||this.radioButtons.first.radioButtonEl.focus()}radioId(e){return`${this.idPrefix}_${e}`}onChange(e,i){this.applyFilter(this.updateFilter({field:this.column.field,operator:"eq",value:e})),this.filterService.menuTabbingService.firstFocusable=i}isSelected(e){return this.filtersByField(this.column.field).some(({value:i})=>i===e)}onShiftTab(e){(!this.menuTabbingService||!this.menuTabbingService.isColumnMenu)&&this.filterService.menuTabbingService.lastFocusable&&(e.preventDefault(),this.filterService.menuTabbingService.lastFocusable.focus())}get columnLabel(){let e=this.ctx.localization.get("filterInputLabel")||"",i=this.column.title||this.column.field;return Tt(e,"columnName",i)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-boolean-filter-menu"]],viewQuery:function(e,i){if(e&1&&j(Tu,5),e&2){let o;D(o=E())&&(i.radioButtons=o)}},hostVars:2,hostBindings:function(e,i){e&2&&N("k-filtercell",i.hostClasses)},inputs:{filter:"filter",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[z],decls:2,vars:1,consts:[["input",""],[1,"k-radio-list","k-reset"],[4,"ngFor","ngForOf"],["type","radio","kendoFilterMenuRadioButton","","kendoRadioButton","",3,"change","keydown.shift.tab","columnLabel","name","checked"],[1,"k-radio-label"]],template:function(e,i){e&1&&(g(0,"ul",1),_(1,rO,5,6,"li",2),f()),e&2&&(u(),l("ngForOf",i.items))},dependencies:[qe,tm,Tu],encapsulation:2}),t})(),FN=t=>({boolean:T0,date:y0,numeric:E0,text:eh})[t],GN=(()=>{class t extends C0{constructor(e,i){super(e,i)}componentType(){return G(this.column)&&!dt(this.column.filter)?FN(this.column.filter):eh}initComponent(e){super.initComponent(e),this.component.instance.filterService=this.filterService,this.component.instance.menuTabbingService=this.menuTabbingService}}return t.\u0275fac=function(e){return new(e||t)(c(Ei),c(ir))},t.\u0275dir=A({type:t,selectors:[["","kendoFilterMenuHost",""]],inputs:{filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[z]}),t})(),VN=t=>t==="isnull"||t==="isnotnull"||t==="isempty"||t==="isnotempty",k0=({value:t,operator:n})=>!dt(t)||VN(n),zN=t=>(t.filters=t.filters.filter(k0),t),x0=(t,n,e)=>t.reduce((i,o)=>i||(o.filters?x0(o.filters,n,o):o.field===n?e:i),void 0),UN=(t,n,e="and")=>{let i=x0((t||{}).filters||[],n);return G(i)?i.logic:e},th=(()=>{class t{constructor(e,i,o,s,r){this.parentService=e,this.childService=i,this.ctx=o,this.cd=s,this.close=new C,this.actionsClass="k-actions k-actions-stretched k-actions-horizontal",this._templateContext={},this.menuTabbingService=r}set filter(e){this._filter=zs(e)}get filter(){return this._filter}get childFilter(){return G(this._childFilter)||(this._childFilter={filters:qs(this.filter,(this.column||{}).field),logic:UN(this.filter,(this.column||{}).field)}),this._childFilter}ngOnInit(){this.subscription=this.childService.changes.subscribe(e=>this._childFilter=e),this.subscription.add(this.ctx.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngAfterViewChecked(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=this.disabled?this.resetButton.nativeElement:this.filterButton.nativeElement)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.menuTabbingService.lastFocusable=void 0}get disabled(){return!this.childFilter.filters.some(k0)}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.childFilter,this._templateContext.filterService=this.childService,this._templateContext.$implicit=this.childFilter,this._templateContext}get hasTemplate(){return G(this.column)&&G(this.column.filterMenuTemplateRef)}submit(){let e=zN(this.childFilter);if(e.filters.length){let i=this.filter||{filters:[],logic:"and"};Iu(i,this.column.field),i.filters.push(e),this.parentService.filter(i)}return this.close.emit(),!1}reset(){let e=this.filter||{filters:[],logic:"and"};Iu(e,this.column.field),this.parentService.filter(e),this.close.emit()}onTab(e,i){this.menuTabbingService.firstFocusable&&(!this.menuTabbingService.isColumnMenu||this.isLast)&&(e.preventDefault(),i==="reset"?this.menuTabbingService.firstFocusable.focus():this.disabled?this.menuTabbingService.firstFocusable.focus():this.resetButton.nativeElement.focus())}get clearText(){return this.ctx.localization.get("filterClearButton")}get filterText(){return this.ctx.localization.get("filterFilterButton")}}return t.\u0275fac=function(e){return new(e||t)(c(It,4),c(It),c(H),c(ve),c(Fs))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-filter-menu-container"]],viewQuery:function(e,i){if(e&1&&(j(_v,5),j(aO,5)),e&2){let o;D(o=E())&&(i.resetButton=o.first),D(o=E())&&(i.filterButton=o.first)}},inputs:{column:"column",isLast:"isLast",isExpanded:"isExpanded",menuTabbingService:"menuTabbingService",filter:"filter",actionsClass:"actionsClass"},outputs:{close:"close"},features:[Y([It,Fs])],decls:12,vars:7,consts:[["filterButton",""],["resetButton",""],[1,"k-filter-menu",3,"submit","reset"],[1,"k-filter-menu-container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngClass"],["type","submit",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab","disabled"],["type","reset",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab"],["kendoFilterMenuHost","",3,"filterService","column","filter","menuTabbingService"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){if(e&1){let o=K();g(0,"form",2),O("submit",function(){return y(o),I(i.submit())})("reset",function(){return y(o),I(i.reset())}),g(1,"div",3),q(2,4),_(3,lO,2,4,"ng-container",5)(4,uO,2,1,"ng-container",5),Q(),g(5,"div",6)(6,"button",7,0),O("keydown.tab",function(r){return y(o),I(i.onTab(r,"filter"))}),ee(8),f(),g(9,"button",8,1),O("keydown.tab",function(r){return y(o),I(i.onTab(r,"reset"))}),ee(11),f()()()()}e&2&&(u(2),l("ngSwitch",i.hasTemplate),u(),l("ngSwitchCase",!1),u(),l("ngSwitchCase",!0),u(),l("ngClass",i.actionsClass),u(),l("disabled",i.disabled),u(2),De(i.filterText),u(3),De(i.clearText))},dependencies:[st,oe,Fe,rr,ar,pp,dp,up,GN],encapsulation:2}),t})(),BN=0,jN=t=>`${t}-filter-menu-${BN++}`,tv=(()=>{class t{constructor(e,i,o,s,r,a,d){this.filterService=e,this.popupService=i,this.ctx=o,this.navigationService=s,this.renderer=r,this.cdr=a,this.idService=d,this.filterIcon=ts,this.tabIndex="-1"}get hasFilters(){return qs(this.filter,(this.column||{}).field).length>0}get filterLabel(){let e=this.ctx.localization.get("filterMenuTitle")||"",i=this.column.title||this.column.field;return Tt(e,"columnName",i)}get isNavigable(){return this.navigationService.tableEnabled}toggle(e,i){this.popupRef=this.popupService.open(e,i,this.popupRef);let o=this.isNavigable?e.closest(".k-table-th"):e;if(this.popupRef){this.popupRef.popup.instance.close.pipe(Ke(1)).subscribe(()=>{this.popupRef=null;let r=this.isNavigable?e.closest(".k-table-th"):e;r&&this.renderer.removeAttribute(r,"aria-controls"),r&&this.renderer.setAttribute(r,"aria-expanded","false")});let s=this.popupRef.popupElement.querySelector(".k-grid-filter-popup");if(s){let r=jN(this.idService?.gridId());this.renderer.setAttribute(s,"id",r),this.renderer.setAttribute(s,"role","dialog"),this.renderer.setAttribute(s,"aria-label",this.filterLabel),o&&this.renderer.setAttribute(o,"aria-controls",r),o&&this.renderer.setAttribute(o,"aria-expanded","true")}}else this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus();return!1}close(){this.popupService.destroy(),this.popupRef=null,this.cdr.markForCheck(),this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(c(It),c($s),c(H),c(Lt),c(X),c(ve),c(ni,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-filter-menu"]],viewQuery:function(e,i){if(e&1&&(j(Pu,7),j(vv,7,le)),e&2){let o;D(o=E())&&(i.anchor=o.first),D(o=E())&&(i.template=o.first)}},inputs:{column:"column",filter:"filter",tabIndex:"tabIndex"},decls:5,vars:7,consts:[["anchor",""],["template",""],["href","#",1,"k-grid-filter-menu","k-grid-header-menu",3,"click","keydown.enter","tabindex"],["name","filter",3,"svgIcon"],[3,"close","keydown.escape","keydown.enter","column","filter"]],template:function(e,i){if(e&1){let o=K();g(0,"a",2,0),O("click",function(){y(o);let r=me(1),a=me(4);return I(i.toggle(r,a))})("keydown.enter",function(r){return y(o),I(r.stopImmediatePropagation())}),b(2,"kendo-icon-wrapper",3),f(),_(3,hO,1,2,"ng-template",null,1,ut)}e&2&&(N("k-active",i.hasFilters),l("tabindex",i.tabIndex),M("title",i.filterLabel)("aria-haspopup",i.isNavigable?void 0:"dialog")("aria-expanded",i.isNavigable?void 0:!1),u(2),l("svgIcon",i.filterIcon))},dependencies:[Je,th],encapsulation:2}),t})(),ku=(()=>{class t{constructor(e){this.closeMenu=new C,this.menuTabbingService=e}close(){this.closeMenu.emit()}}return t.\u0275fac=function(e){return new(e||t)(J(Fs))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),iv=(()=>{class t{constructor(e){this.renderer=e,this.activeIndex=0}next(){this.toggle(this.activeIndex,!1),this.activeIndex=Math.min(this.activeIndex+1,this.items.length-1),this.toggle(this.activeIndex,!0)}prev(){this.toggle(this.activeIndex,!1),this.activeIndex=Math.max(this.activeIndex-1,0),this.toggle(this.activeIndex,!0)}toggle(e,i){let o=this.items[e]?.host.nativeElement;o&&this.renderer.setAttribute(this.items[e].host.nativeElement,"tabindex",i?"0":"-1"),i&&o&&o.focus()}toggleCheckedState(){this.items[this.activeIndex].host.nativeElement.firstElementChild.click()}}return t.\u0275fac=function(e){return new(e||t)(J(X))},t.\u0275prov=ne({token:t,factory:t.\u0275fac}),t})(),nv=(()=>{class t{constructor(e,i){this.host=e,this.renderer=i,this.checkedChangeSub=new Se}ngAfterViewInit(){this.checkedChangeSub.add(this.renderer.listen(this.host.nativeElement.firstElementChild,"change",e=>{this.kendoColumnMenuChooserItemChecked=e.target.checked}))}ngOnDestroy(){this.checkedChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(X))},t.\u0275dir=A({type:t,selectors:[["","kendoColumnMenuChooserItemChecked",""]],hostVars:1,hostBindings:function(e,i){e&2&&M("aria-checked",i.kendoColumnMenuChooserItemChecked)},inputs:{kendoColumnMenuChooserItemChecked:"kendoColumnMenuChooserItemChecked"}}),t})(),ih=(()=>{class t{constructor(e,i,o,s){this.element=e,this.ngZone=i,this.renderer=o,this.listNavigationService=s,this.reset=new C,this.apply=new C,this.columnChange=new C,this.autoSync=!0,this.allowHideAll=!1,this.actionsClass="k-actions k-actions-stretched k-actions-horizontal",this.unlockedCount=0,this.domSubscriptions=new Se,this.onKeydown=r=>{r.keyCode!==T.Tab&&r.preventDefault(),r.keyCode===T.ArrowDown?this.listNavigationService.next():r.keyCode===T.ArrowUp?this.listNavigationService.prev():r.keyCode===T.Space&&r.target.classList.contains("k-column-list-item")&&this.listNavigationService.toggleCheckedState()}}get className(){return!0}isChecked(e){return e.checked}set columns(e){this._columns=e.filter(i=>i.includeInChooser!==!1),this.allColumns=e,this.updateColumnState()}get columns(){return this._columns}ngOnInit(){this.element&&this.ngZone.runOutsideAngular(()=>{this.domSubscriptions.add(this.renderer.listen(this.element.nativeElement,"click",e=>{let i=e.target.closest(".k-column-list-item");if(i){let o=i.querySelector(".k-checkbox"),s=parseInt(o.getAttribute("data-index"),10);if(e.target===o?i.focus():(e.preventDefault(),o.checked=!o.checked),this.autoSync){let r=this.columns[s],a=!o.checked;!!r.hidden!==a&&this.ngZone.run(()=>{r.hidden=a,this.columnChange.emit([r])})}else this.updateDisabled();s!==this.listNavigationService.activeIndex&&(this.listNavigationService.toggle(this.listNavigationService.activeIndex,!1),this.listNavigationService.activeIndex=s,this.listNavigationService.toggle(s,!0))}})),this.domSubscriptions.add(this.renderer.listen(this.element.nativeElement,"keydown",this.onKeydown))})}ngAfterViewInit(){this.listNavigationService.items=this.options.toArray(),this.listNavigationService.toggle(0,!0),this.updateDisabled()}ngOnChanges(e){this.service&&(e.isLast&&this.isLast&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement),e.isExpanded&&this.isExpanded&&this.isLast&&this.applyButton&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement))}ngOnDestroy(){this.domSubscriptions.unsubscribe()}isDisabled(e){return!(this.allowHideAll||this.hasFiltered||e.hidden||this.columns.find(i=>i!==e&&!i.hidden))||this.hasVisibleLocked&&!this.hasUnlockedFiltered&&this.unlockedCount===1&&!e.locked&&!e.hidden}cancelChanges(){this.forEachCheckBox((e,i)=>{e.checked=!this.columns[i].hidden}),this.updateDisabled(),this.reset.emit()}applyChanges(){let e=[];this.forEachCheckBox((i,o)=>{let s=this.columns[o],r=!i.checked;!!s.hidden!==r&&(s.hidden=r,e.push(s))}),this.updateDisabled(),this.apply.emit(e)}onTab(e){this.isLast&&(e.preventDefault(),this.service?this.service.menuTabbingService.firstFocusable.focus():this.listNavigationService.toggle(this.listNavigationService.activeIndex,!0))}forEachCheckBox(e){let i=this.element.nativeElement.getElementsByClassName("k-checkbox"),o=i.length;for(let s=0;s{i.checked&&e.push({checkbox:i,index:o}),this.setDisabledState(i,!1)}),!this.allowHideAll&&e.length===1&&!this.hasFiltered)this.setDisabledState(e[0].checkbox,!0);else if(this.hasLocked&&!this.hasUnlockedFiltered){let i=this.columns,o=e.filter(s=>!i[s.index].locked);o.length===1&&this.setDisabledState(o[0].checkbox,!0)}}updateColumnState(){this.hasLocked=this.allColumns.filter(i=>i.locked&&(!i.hidden||i.includeInChooser!==!1)).length>0,this.hasVisibleLocked=this.allColumns.filter(i=>i.locked&&!i.hidden).length>0,this.unlockedCount=this.columns.filter(i=>!i.locked&&!i.hidden).length;let e=this.allColumns.filter(i=>i.includeInChooser===!1&&!i.hidden);e.length?(this.hasFiltered=e.length>0,this.hasUnlockedFiltered=e.filter(i=>!i.locked).length>0):(this.hasFiltered=!1,this.hasUnlockedFiltered=!1)}setDisabledState(e,i){e.disabled=i;let o=e.parentElement,s=i?"addClass":"removeClass",r=i?"setAttribute":"removeAttribute";this.renderer[s](o,"k-disabled"),this.renderer[r](o,"aria-disabled",i?"true":void 0)}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(re),c(X),c(iv))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnlist"]],viewQuery:function(e,i){if(e&1&&(j(_v,5),j(pO,5),j(nv,5)),e&2){let o;D(o=E())&&(i.resetButton=o.first),D(o=E())&&(i.applyButton=o.first),D(o=E())&&(i.options=o)}},hostVars:2,hostBindings:function(e,i){e&2&&N("k-column-list-wrapper",i.className)},inputs:{columns:"columns",autoSync:"autoSync",ariaLabel:"ariaLabel",allowHideAll:"allowHideAll",applyText:"applyText",resetText:"resetText",actionsClass:"actionsClass",isLast:"isLast",isExpanded:"isExpanded",service:"service"},outputs:{reset:"reset",apply:"apply",columnChange:"columnChange"},features:[Y([iv]),be],decls:3,vars:3,consts:[["applyButton",""],["resetButton",""],["role","listbox","aria-multiselectable","true",1,"k-column-list"],["class","k-column-list-item","role","option",3,"kendoColumnMenuChooserItemChecked",4,"ngFor","ngForOf"],[3,"ngClass",4,"ngIf"],["role","option",1,"k-column-list-item",3,"kendoColumnMenuChooserItemChecked"],["type","checkbox","tabindex","-1",1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"checked","disabled"],[1,"k-checkbox-label"],[3,"ngClass"],["type","button",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"click","keydown.enter","keydown.space"],["type","button",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab","click","keydown.enter","keydown.space"]],template:function(e,i){e&1&&(g(0,"div",2),_(1,mO,4,6,"label",3),f(),_(2,gO,7,3,"div",4)),e&2&&(M("aria-label",i.ariaLabel),u(),l("ngForOf",i.columns),u(),l("ngIf",!i.autoSync))},dependencies:[st,qe,oe,nv],encapsulation:2}),t})(),Ln=(()=>{class t{constructor(){this.hostClass=!0}ngOnInit(){if(fe()&&!this.service)throw new Error(As.serviceInput)}close(){this.service.close()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-column-menu-item-base"]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-columnmenu-item-wrapper",i.hostClass)},inputs:{service:"service"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Js=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(c(le,8))},t.\u0275dir=A({type:t,selectors:[["","kendoGridColumnMenuItemContentTemplate",""]]}),t})(),un=(()=>{class t{constructor(){this.itemClick=new C,this.expand=new C,this.collapse=new C,this.contentState="collapsed"}ngAfterViewInit(){this.contentTemplate&&(this.contentId=`k-${ri()}`)}ngOnChanges(e){e.expanded&&this.updateContentState()}onClick(e){this.itemClick.emit(e),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),this.expanded?this.expand.emit():this.collapse.emit())}updateContentState(){this.contentState=this.expanded?"expanded":"collapsed"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnmenu-item"]],contentQueries:function(e,i,o){if(e&1&&B(o,Js,5),e&2){let s;D(s=E())&&(i.contentTemplate=s.first)}},inputs:{icon:"icon",svgIcon:"svgIcon",text:"text",selected:"selected",disabled:"disabled",expanded:"expanded",service:"service"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},features:[be],decls:4,vars:10,consts:[["role","button",1,"k-columnmenu-item",3,"click","keydown.enter"],[3,"name","svgIcon"],["class","k-columnmenu-item-content",3,"overflow",4,"ngIf"],[1,"k-columnmenu-item-content"],[3,"ngTemplateOutlet"]],template:function(e,i){e&1&&(g(0,"div",0),O("click",function(s){return i.onClick(s)})("keydown.enter",function(s){return i.onClick(s)}),b(1,"kendo-icon-wrapper",1),ee(2),f(),_(3,fO,3,5,"div",2)),e&2&&(N("k-selected",i.selected)("k-disabled",i.disabled),M("aria-expanded",i.expanded)("aria-controls",i.expanded?i.contentId:void 0),u(),l("name",i.icon)("svgIcon",i.svgIcon),u(),St(" ",i.text," "),u(),l("ngIf",i.contentTemplate))},dependencies:[oe,Fe,Je],encapsulation:2,data:{animation:[Cn("state",[wi("collapsed",Ce({display:"none"})),wi("expanded",Ce({display:"block"})),Ai("collapsed => expanded",[Ce({height:"0px",display:"block"}),lt("100ms ease-in",Ce({height:"*"}))]),Ai("expanded => collapsed",[Ce({height:"*"}),lt("100ms ease-in",Ce({height:"0px"}))])])]}}),t})(),nh=(()=>{class t extends Ln{constructor(e,i,o,s){super(),this.ctx=e,this.columnInfoService=i,this.changeDetector=o,this.hostElement=s,this.expand=new C,this.collapse=new C,this.expanded=!1,this.isLast=!1,this.actionsClass="k-actions k-actions-stretched k-actions-horizontal",this.columnsIcon=gr}get columns(){return this.columnInfoService.leafNamedColumns}onApply(e){this.close(),e.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e))}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}onExpand(){this.expanded=!0,this.expand.emit()}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Yt),c(ve),c(W))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnmenu-chooser"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[z],decls:2,vars:3,consts:[["icon","columns",3,"collapse","expand","text","svgIcon","expanded"],["kendoGridColumnMenuItemContentTemplate",""],[3,"apply","applyText","resetText","ariaLabel","columns","autoSync","allowHideAll","actionsClass","isLast","isExpanded","service"]],template:function(e,i){e&1&&(g(0,"kendo-grid-columnmenu-item",0),O("collapse",function(){return i.onCollapse()})("expand",function(){return i.onExpand()}),_(1,_O,1,10,"ng-template",1),f()),e&2&&l("text",i.ctx.localization.get("columns"))("svgIcon",i.columnsIcon)("expanded",i.expanded)},dependencies:[ih,un,Js],encapsulation:2}),t})(),sl=(()=>{class t extends Ln{constructor(e,i){super(),this.ctx=e,this.hostElement=i,this.expand=new C,this.collapse=new C,this.expanded=!1,this.isLast=!1,this.actionsClass="k-actions k-actions-stretched k-actions-horizontal",this.filterIcon=ts}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}onExpand(){this.expanded=!0,this.expand.emit()}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(W))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnmenu-filter"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[z],decls:2,vars:3,consts:[["icon","filter",3,"collapse","expand","text","svgIcon","expanded"],["kendoGridColumnMenuItemContentTemplate",""],[3,"keydown.shift.tab","close","column","menuTabbingService","filter","actionsClass","isLast","isExpanded"]],template:function(e,i){e&1&&(g(0,"kendo-grid-columnmenu-item",0),O("collapse",function(){return i.onCollapse()})("expand",function(){return i.onExpand()}),_(1,vO,1,6,"ng-template",1),f()),e&2&&l("text",i.ctx.localization.get("filter"))("svgIcon",i.filterIcon)("expanded",i.expanded)},dependencies:[th,un,Js],encapsulation:2}),t})(),R0=(()=>{class t extends Ln{constructor(e,i,o){super(),this.ctx=e,this.sortService=i,this.renderer=o,this.sortAscSmallIcon=_r,this.sortDescSmallIcon=vr}get sortedAsc(){let e=this.descriptor;return e&&(!e.dir||e.dir==="asc")}get sortedDesc(){let e=this.descriptor;return e&&e.dir==="desc"}toggleSort(e){let i=this.service.column.field,{mode:o,allowUnsort:s}=Ha(this.service.sortable),r=this.descriptor,a=o==="multiple"?this.service.sort.filter(d=>d.field!==i):[];if(r&&r.dir===e){if(!s)return}else a.push({field:i,dir:e});this.sortService.sort(a),this.close()}get descriptor(){return[].concat(this.service.sort||[]).find(e=>e.field===this.service.column.field)}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Vo),c(X))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnmenu-sort"]],features:[z],decls:2,vars:6,consts:[["icon","sort-asc-small",3,"itemClick","text","svgIcon","selected"],["icon","sort-desc-small",3,"itemClick","text","svgIcon","selected"]],template:function(e,i){e&1&&(g(0,"kendo-grid-columnmenu-item",0),O("itemClick",function(){return i.toggleSort("asc")}),f(),g(1,"kendo-grid-columnmenu-item",1),O("itemClick",function(){return i.toggleSort("desc")}),f()),e&2&&(l("text",i.ctx.localization.get("sortAscending"))("svgIcon",i.sortAscSmallIcon)("selected",i.sortedAsc),u(),l("text",i.ctx.localization.get("sortDescending"))("svgIcon",i.sortDescSmallIcon)("selected",i.sortedDesc))},dependencies:[un],encapsulation:2}),t})(),oh=(()=>{class t extends Ln{constructor(e,i,o){super(),this.ctx=e,this.columnInfoService=i,this.changeDetector=o,this.unlockIcon=zl,this.lockIcon=Vl}get text(){return this.ctx.localization.get(this.locked?"unlock":"lock")}get icon(){return this.locked?"unlock":"lock"}get svgIcon(){return this.locked?this.unlockIcon:this.lockIcon}get disabled(){return!this.locked&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.locked),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(e){let i=this.service.column;for(;i.parent;)i=i.parent;let o=[i],s=[];for(;o.length;){let r=o.shift();r.locked=e,s.push(r),r.hasChildren&&o.push(...r.childrenArray)}this.columnInfoService.changeLocked(s)}get locked(){return this.service.column.locked}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Yt),c(ve))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnmenu-lock"]],features:[z],decls:1,vars:4,consts:[[3,"itemClick","text","icon","svgIcon","disabled"]],template:function(e,i){e&1&&(g(0,"kendo-grid-columnmenu-item",0),O("itemClick",function(){return i.toggleColumn()}),f()),e&2&&l("text",i.text)("icon",i.icon)("svgIcon",i.svgIcon)("disabled",i.disabled)},dependencies:[un],encapsulation:2}),t})(),sh=(()=>{class t extends Ln{constructor(e,i,o){super(),this.ctx=e,this.columnInfoService=i,this.changeDetector=o,this.stickIcon=Bp,this.unstickIcon=jp}get text(){return this.ctx.localization.get(this.sticky?"unstick":"stick")}get icon(){return this.sticky?"unstick":"stick"}get svgIcon(){return this.sticky?this.unstickIcon:this.stickIcon}get disabled(){return!this.sticky&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.sticky),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(e){let i=this.service.column;for(;i.parent;)i=i.parent;let o=[i],s=[];for(;o.length;){let r=o.shift();r.sticky=e,s.push(r),r.hasChildren&&o.push(...r.childrenArray)}this.columnInfoService.changeStuck(s)}get sticky(){return this.service.column.sticky}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Yt),c(ve))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnmenu-stick"]],features:[z],decls:1,vars:4,consts:[[3,"itemClick","text","icon","svgIcon","disabled"]],template:function(e,i){e&1&&(g(0,"kendo-grid-columnmenu-item",0),O("itemClick",function(){return i.toggleColumn()}),f()),e&2&&l("text",i.text)("icon",i.icon)("svgIcon",i.svgIcon)("disabled",i.disabled)},dependencies:[un],encapsulation:2}),t})(),rh=(()=>{class t extends Ln{constructor(e,i){super(),this.ctx=e,this.hostElement=i,this.expand=new C,this.collapse=new C,this.expanded=!1,this.actionsClass="k-actions",this.setColumnPositionIcon=Hp,this._isLast=!1}set isLast(e){this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem(),this._isLast=e}get isLast(){return this._isLast}onTab(e,i){this.isLast&&i&&(e.preventDefault(),e.stopImmediatePropagation(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.collapse.emit()}onExpand(){this.expanded=!0,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.expand.emit()}getLastFocusableItem(){let e=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),i=this.expanded?e.length-1:0;return e[i]}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(W))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnmenu-position"]],inputs:{expanded:"expanded",showLock:"showLock",showStick:"showStick",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[z],decls:2,vars:3,consts:[["icon","set-column-position",3,"keydown.tab","collapse","expand","text","svgIcon","expanded"],["kendoGridColumnMenuItemContentTemplate",""],[3,"service","keydown.tab",4,"ngIf"],[3,"keydown.tab","service"]],template:function(e,i){e&1&&(g(0,"kendo-grid-columnmenu-item",0),O("keydown.tab",function(s){return i.onTab(s,!i.expanded)})("collapse",function(){return i.onCollapse()})("expand",function(){return i.onExpand()}),_(1,bO,2,2,"ng-template",1),f()),e&2&&l("text",i.ctx.localization.get("setColumnPosition"))("svgIcon",i.setColumnPositionIcon)("expanded",i.expanded)},dependencies:[oe,un,Js,oh,sh],encapsulation:2}),t})(),ah=(()=>{class t{constructor(e,i,o){this.hostElement=e,this.renderer=i,this.ngZone=o,this._isFirst=!1,this._isLast=!1,this.subs=new Se,this.onTab=s=>{if(s.keyCode===T.Tab&&(this.isFirst&&s.shiftKey&&s.target===this.columnMenuItems[0]&&(s.preventDefault(),this.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),this.isLast&&!s.shiftKey)){let r=this.getLastColumnMenuItem(),a=this.menuItemComponent.expanded;r===s.target&&!a&&(s.preventDefault(),this.menuItemComponent.service.menuTabbingService.firstFocusable.focus())}}}set isFirst(e){if(e){let i=this.columnMenuItems[0];this.menuItemComponent.service.menuTabbingService.firstFocusable=i,this.ngZone.runOutsideAngular(()=>{let o=this.renderer.listen(i,"keydown",this.onTab);this.subs.add(o)})}this._isFirst=e}get isFirst(){return this._isFirst}set isLast(e){if(this.columnMenuItems){if(e){let i=this.getLastColumnMenuItem();this.menuItemComponent.service.menuTabbingService.lastFocusable=i,this.ngZone.runOutsideAngular(()=>{let o=this.renderer.listen(i,"keydown",this.onTab);this.subs.add(o)}),this.isExpandableItem()&&(this.menuItemComponent.isLast=!0)}this._isLast=e}}get isLast(){return this._isLast}ngAfterViewInit(){this.columnMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),[].slice.apply(this.columnMenuItems).forEach(e=>this.renderer.setAttribute(e,"tabindex","0")),this.menuItemComponent instanceof sl&&(this.menuItemComponent.service.menuTabbingService.isColumnMenu=!0),this.menuItemComponent.service?.columnMenuContainer.templateMenuItems.push(this)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}getLastColumnMenuItem(){return this.columnMenuItems.length===1?this.columnMenuItems[0]:this.columnMenuItems[1]}isExpandableItem(){return this.menuItemComponent instanceof sl||this.menuItemComponent instanceof nh||this.menuItemComponent instanceof rh}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(X),c(re))},t.\u0275dir=A({type:t,selectors:[["","kendoGridColumnMenuItem",""]],inputs:{menuItemComponent:[0,"kendoGridColumnMenuItem","menuItemComponent"]}}),t})(),O0=(()=>{class t{constructor(e,i){this.service=e,this.ngZone=i,this.templateMenuItems=[],e.columnMenuContainer=this}ngAfterViewInit(){if(this.columnMenuItems.length)this.columnMenuItems.first.isFirst=!0,this.columnMenuItems.last.isLast=!0;else if(this.templateMenuItems.length)this.templateMenuItems[0].isFirst=!0,this.templateMenuItems[this.templateMenuItems.length-1].isLast=!0;else return;this.ngZone.onStable.pipe(Ke(1)).subscribe(()=>this.service.menuTabbingService.firstFocusable.focus())}}return t.\u0275fac=function(e){return new(e||t)(c(ku),c(re))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnmenu-container"]],contentQueries:function(e,i,o){if(e&1&&B(o,ah,5),e&2){let s;D(s=E())&&(i.columnMenuItems=s)}},ngContentSelectors:An,decls:1,vars:0,template:function(e,i){e&1&&(Le(),Ne(0))},encapsulation:2}),t})(),M0=(()=>{class t extends Ln{constructor(e){super(),this.ctx=e,this.maxWidthIcon=Fp}ngOnInit(){this.ctx.grid.columnMenuTemplate&&this.ctx.grid.virtualColumns&&fe()&&console.warn(As.autoSizeColumn)}autoSizeColumn(){f0(this.ctx.grid,this.service,this.column)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnmenu-autosize-column"]],inputs:{column:"column"},features:[z],decls:1,vars:1,consts:[["class","k-grid-columnmenu-autosize-column","icon","max-width",3,"text","svgIcon","itemClick",4,"ngIf"],["icon","max-width",1,"k-grid-columnmenu-autosize-column",3,"itemClick","text","svgIcon"]],template:function(e,i){e&1&&_(0,DO,1,2,"kendo-grid-columnmenu-item",0),e&2&&l("ngIf",!i.ctx.grid.virtualColumns)},dependencies:[oe,un],encapsulation:2}),t})(),A0=(()=>{class t extends Ln{constructor(e){super(),this.ctx=e,this.displayInlineFlexIcon=Pp}ngOnInit(){this.ctx.grid.columnMenuTemplate&&this.ctx.grid.virtualColumns&&fe()&&console.warn(As.autoSizeAllColumns)}autoSizeAllColumns(){f0(this.ctx.grid,this.service)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-columnmenu-autosize-all-columns"]],features:[z],decls:1,vars:1,consts:[["icon","display-inline-flex",3,"text","svgIcon","itemClick",4,"ngIf"],["icon","display-inline-flex",3,"itemClick","text","svgIcon"]],template:function(e,i){e&1&&_(0,EO,1,2,"kendo-grid-columnmenu-item",0),e&2&&l("ngIf",!i.ctx.grid.virtualColumns)},dependencies:[oe,un],encapsulation:2}),t})(),HN="k-grid-columnmenu-popup k-column-menu",KN=0,$N=t=>`${t}-column-menu-${KN++}`,xu=(()=>{class t{constructor(e,i,o,s,r,a,d,p){this.navigationService=e,this.popupService=i,this.service=o,this.ctx=s,this.renderer=r,this.cdr=a,this.columnInfoService=d,this.idService=p,this.standalone=!0,this.settings={},this.sortable=!0,this.tabIndex="-1",this.columnsIcon=gr,this.actionsClass="k-actions",this.slidersIcon=$p,this.filterIcon=ts,this.expandedFilter=!1,this.expandedColumns=!1,this.expandedPosition=!1,this.moreVerticalIcon=Np,this.closeSubscription=o.closeMenu.subscribe(this.close.bind(this,!0))}get showGeneralTab(){return this.hasSort||this.hasLock||this.hasStick||this.hasPosition||this.hasAutoSizeColumn||this.hasAutoSizeAllColumns}get isActive(){return this.hasFilter&&qs(this.filter,this.column.field).length>0||!this.sortable&&this.hasSort&&this.sort.find(e=>e.field===this.column.field)}get hasFilter(){return d0(this.settings,this.column)}get isNavigable(){return this.navigationService.tableEnabled}get hasSort(){return u0(this.settings,this.column)}get hasColumnChooser(){return p0(this.settings)}onApply(e){this.close(!0),e.length&&(this.cdr.markForCheck(),this.columnInfoService.changeVisibility(e))}get hasAutoSizeColumn(){return m0(this.settings)}get hasAutoSizeAllColumns(){return g0(this.settings)}get hasLock(){return h0(this.settings,this.column)}get hasStick(){return DN(this.settings,this.column)}get hasPosition(){return EN(this.settings,this.column)}get columns(){return this.columnInfoService.leafNamedColumns}ngAfterViewInit(){this.ctx.grid.virtualColumns&&fe()&&(this.settings.autoSizeAllColumns&&(this.settings.autoSizeAllColumns=!1,console.warn(As.autoSizeAllColumns)),this.settings.autoSizeColumn&&(this.settings.autoSizeColumn=!1,console.warn(As.autoSizeColumn))),this.service.menuTabbingService.isTabbedInterface=this.settings.view==="tabbed"}ngOnChanges(){this.service.column=this.column,this.service.sort=this.sort,this.service.filter=this.filter,this.service.sortable=this.sortable}ngOnDestroy(){this.close(),this.closeSubscription.unsubscribe()}toggle(e,i,o){e&&(e.preventDefault(),e.stopImmediatePropagation()),this.expandedFilter=this.getExpandedState(this.settings.filter),this.expandedColumns=this.getExpandedState(this.settings.columnChooser),this.expandedPosition=this.getExpandedState(this.settings.setColumnPosition),this.popupRef=this.popupService.open(i,o,this.popupRef,HN);let s=this.isNavigable?i.closest(".k-table-th"):i;if(this.popupRef){this.popupRef.popup.instance.close.pipe(Ke(1)).subscribe(()=>{this.popupRef=null;let a=this.isNavigable?i.closest(".k-table-th"):i;a&&this.renderer.removeAttribute(a,"aria-controls"),a&&this.renderer.setAttribute(a,"aria-expanded","false")});let r=this.popupRef.popupElement.querySelector(".k-grid-columnmenu-popup");if(r){let a=$N(this.idService?.gridId());this.renderer.setAttribute(r,"id",a),this.renderer.setAttribute(r,"role","dialog"),this.renderer.setAttribute(r,"aria-label",this.columnMenuTitle),s&&this.renderer.setAttribute(s,"aria-controls",a),s&&this.renderer.setAttribute(s,"aria-expanded","true")}this.settings.view==="tabbed"&&(this.renderer.addClass(r,"k-column-menu-tabbed"),this.renderer.addClass(r,"k-column-menu"),this.cdr.detectChanges(),this.tabStrip?.selectTab(0))}else this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}close(e=!1){this.popupService.destroy(),this.popupRef=null,this.cdr.markForCheck(),e&&(this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus())}get columnMenuTitle(){let e=this.ctx.localization.get("columnMenu")||"",i=this.column.title||this.column.field;return Tt(e,"columnName",i)}getExpandedState(e){return typeof e=="object"?e.expanded:!1}}return t.\u0275fac=function(e){return new(e||t)(c(Lt),c($s),c(ku),c(H),c(X),c(ve),c(Yt),c(ni,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-column-menu"]],viewQuery:function(e,i){if(e&1&&(j(Pu,7),j(vv,7,le),j(gv,7,le),j(wO,7,le),j(Is,5)),e&2){let o;D(o=E())&&(i.anchor=o.first),D(o=E())&&(i.template=o.first),D(o=E())&&(i.defaultTemplate=o.first),D(o=E())&&(i.tabbedInterfaceTemplate=o.first),D(o=E())&&(i.tabStrip=o.first)}},hostVars:2,hostBindings:function(e,i){e&2&&N("k-grid-column-menu-standalone",i.standalone)},inputs:{standalone:"standalone",column:"column",settings:"settings",sort:"sort",filter:"filter",sortable:"sortable",columnMenuTemplate:"columnMenuTemplate",tabIndex:"tabIndex"},features:[Y([ku,Fs]),be],decls:9,vars:8,consts:[["anchor",""],["template",""],["defaultTemplate",""],["tabbedInterfaceTemplate",""],["sortItem",""],["lockItem",""],["stickItem",""],["positionItem",""],["chooserItem",""],["autoSizeColumnItem",""],["autoSizeAllColumnsItem",""],["filterItem",""],["tabstrip",""],["href","#",1,"k-grid-header-menu","k-grid-column-menu",3,"click","keydown.enter","ngClass","tabindex"],["name","more-vertical",3,"svgIcon"],[3,"keydown.escape","keydown.enter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"kendoGridColumnMenuItem","service",4,"ngIf"],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded",4,"ngIf"],["class","k-separator",3,"borderColor",4,"ngIf"],[3,"kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"service","kendoGridColumnMenuItem","column",4,"ngIf"],[3,"service","kendoGridColumnMenuItem",4,"ngIf"],[3,"kendoGridColumnMenuItem","service"],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded"],[1,"k-separator"],[3,"kendoGridColumnMenuItem","service","expanded"],[3,"service","kendoGridColumnMenuItem","column"],[3,"service","kendoGridColumnMenuItem"],[3,"keydown.escape"],[4,"ngIf"],["kendoTabTitle",""],["kendoTabContent",""],["name","filter",3,"svgIcon"],[3,"keydown.shift.tab","close","column","menuTabbingService","filter","actionsClass"],["name","sliders",3,"svgIcon"],["name","columns",3,"svgIcon"],[3,"apply","applyText","resetText","columns","autoSync","allowHideAll","actionsClass","service"]],template:function(e,i){if(e&1){let o=K();g(0,"a",13,0),O("click",function(r){y(o);let a=me(1),d=me(4);return I(i.toggle(r,a,d))})("keydown.enter",function(r){return y(o),I(r.stopImmediatePropagation())}),b(2,"kendo-icon-wrapper",14),f(),_(3,TO,2,5,"ng-template",null,1,ut)(5,GO,11,10,"ng-template",null,2,ut)(7,nM,5,3,"ng-template",null,3,ut)}e&2&&(l("ngClass",We(6,yO,i.isActive))("tabindex",i.tabIndex),M("title",i.columnMenuTitle)("aria-expanded",i.isNavigable?void 0:!1)("aria-haspopup",i.isNavigable?void 0:"dialog"),u(2),l("svgIcon",i.moreVerticalIcon))},dependencies:[st,oe,Fe,th,Je,Is,Pa,La,Na,ih,nh,sl,R0,oh,O0,ah,sh,rh,M0,A0],encapsulation:2}),t})(),lh=(()=>{class t{constructor(e,i){this.ctx=e,this.sizing=i,this.clearText="Clear",this.filterClearIcon=Up,this.filterSVGIcon=ts,this.size="medium",this.operators=[],this.showOperators=!0,this.valueChange=new C,this.clear=new C}get hostClasses(){return!0}onChange(e){this.valueChange.emit(e)}clearClick(){return this.clear.emit(),!1}clearKeydown(e){(e.keyCode===T.Enter||e.keyCode===T.Space)&&this.clear.emit()}dropdownKeydown(e){e.defaultPrevented||e.keyCode===T.Enter&&!this.dropdown.isOpen&&(this.dropdown.toggle(!0),e.preventDefault())}ngOnInit(){this.subs=this.ctx.localization.changes.subscribe(()=>this.clearText=this.ctx.localization.get("filterClearButton")),this.subs.add(this.sizing.changes.subscribe(e=>this.size=e))}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}get columnLabel(){let e=this.ctx.localization.get("filterCellOperatorLabel")||"",i=this.column.title||this.column.field;return Tt(e,"columnName",i)}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Mn))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-filter-cell-operators"]],viewQuery:function(e,i){if(e&1&&j(oM,5),e&2){let o;D(o=E())&&(i.dropdown=o.first)}},hostVars:2,hostBindings:function(e,i){e&2&&N("k-filtercell-operator",i.hostClasses)},inputs:{operators:"operators",showButton:"showButton",showOperators:"showOperators",value:"value",column:"column"},outputs:{valueChange:"valueChange",clear:"clear"},decls:2,vars:2,consts:[["dropdown",""],["kendoGridFocusable","","class","k-dropdown-operator","icon","filter","textField","text","valueField","value",3,"data","value","svgIcon","valuePrimitive","popupSettings","size","valueChange","keydown",4,"ngIf"],["type","button","kendoButton","","kendoGridFocusable","","icon","filter-clear",3,"svgIcon","title","size","click","keydown",4,"ngIf"],["kendoGridFocusable","","icon","filter","textField","text","valueField","value",1,"k-dropdown-operator",3,"valueChange","keydown","data","value","svgIcon","valuePrimitive","popupSettings","size"],["type","button","kendoButton","","kendoGridFocusable","","icon","filter-clear",3,"click","keydown","svgIcon","title","size"]],template:function(e,i){e&1&&_(0,sM,2,8,"kendo-dropdownlist",1)(1,rM,1,3,"button",2),e&2&&(l("ngIf",i.showOperators),u(),l("ngIf",i.showButton))},dependencies:[oe,_i,ii,vt],encapsulation:2}),t})(),WN=["isnull","isnotnull","isempty","isnotempty"],Ys=(()=>{class t extends b0{constructor(e){super(e),this.showOperators=!0}get hostClasses(){return!0}get overrideBaseClasses(){return!1}get showButton(){let e=this.currentFilter;return G(e)&&(!dt(e.value)||WN.indexOf(String(e.operator))>=0)}filterChange(e){this.applyFilter(e)}}return t.\u0275fac=function(e){return new(e||t)(c(It))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-filter-wrapper-cell"]],hostVars:4,hostBindings:function(e,i){e&2&&N("k-filtercell-wrapper",i.hostClasses)("k-filtercell",i.overrideBaseClasses)},inputs:{showOperators:"showOperators"},features:[z],ngContentSelectors:An,decls:2,vars:5,consts:[[3,"clear","valueChange","showOperators","column","operators","showButton","value"]],template:function(e,i){e&1&&(Le(),Ne(0),g(1,"kendo-grid-filter-cell-operators",0),O("clear",function(){return i.onClear()}),Il("valueChange",function(s){return yl(i.currentOperator,s)||(i.currentOperator=s),s}),f()),e&2&&(u(),l("showOperators",i.showOperators)("column",i.column)("operators",i.operators)("showButton",i.showButton),wl("value",i.currentOperator))},dependencies:[lh],encapsulation:2}),t})(),ch=(()=>{class t extends S0{constructor(e,i,o){super(e,i),this.filterDelay=500,this.showOperators=!0,this.subs=o.changes.subscribe(s=>this.size=s)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}get columnLabel(){let e=this.ctx.localization.get("filterInputLabel")||"",i=this.column.title||this.column.field;return Tt(e,"columnName",i)}}return t.\u0275fac=function(e){return new(e||t)(c(It),c(H),c(Mn))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-string-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[z],decls:2,vars:9,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoTextBox","","kendoGridFocusable","","kendoFilterInput","",3,"size","columnLabel","filterDelay","ngModel"]],template:function(e,i){e&1&&(g(0,"kendo-grid-filter-wrapper-cell",0),b(1,"kendo-textbox",1),f()),e&2&&(l("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("showOperators",i.showOperators),u(),l("size",i.size)("columnLabel",i.columnLabel)("filterDelay",i.filterDelay)("ngModel",i.currentFilter==null?null:i.currentFilter.value))},dependencies:[lr,Ml,em,ii,dn,Ys],encapsulation:2}),t})(),L0=(()=>{class t extends D0{constructor(e,i,o){super(e,i),this.ctx=i,this.filterDelay=500,this.showOperators=!0,this.subs=o.changes.subscribe(s=>this.size=s)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}messageFor(e){return this.ctx.localization.get(e)}get columnLabel(){let e=this.ctx.localization.get("filterInputLabel")||"",i=this.column.title||this.column.field;return Tt(e,"columnName",i)}}return t.\u0275fac=function(e){return new(e||t)(c(It),c(H),c(Mn))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-numeric-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[z],decls:3,vars:18,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","size","step"],[3,"increment","decrement"]],template:function(e,i){e&1&&(g(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-numerictextbox",1),b(2,"kendo-numerictextbox-messages",2),f()()),e&2&&(l("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("showOperators",i.showOperators),u(),l("columnLabel",i.columnLabel)("filterDelay",i.filterDelay)("autoCorrect",!0)("value",i.currentFilter==null?null:i.currentFilter.value)("format",i.format)("decimals",i.decimals)("spinners",i.spinners)("min",i.min)("max",i.max)("size",i.size)("step",i.step),u(),l("increment",i.messageFor("filterNumericIncrement"))("decrement",i.messageFor("filterNumericDecrement")))},dependencies:[Dn,Hl,ii,dn,Ys],encapsulation:2}),t})(),N0=(()=>{class t extends I0{constructor(e,i,o,s){super(e,i),this.cd=o,this.size="medium",this.subs=s.changes.subscribe(r=>this.size=r)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}localizationChange(){super.localizationChange(),this.cd.markForCheck()}get columnLabel(){let e=this.ctx.localization.get("booleanFilterCellLabel")||"",i=this.column.title||this.column.field;return Tt(e,"columnName",i)}}return t.\u0275fac=function(e){return new(e||t)(c(It),c(H),c(ve),c(Mn))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-boolean-filter-cell"]],features:[z],decls:2,vars:12,consts:[[3,"column","filter","showOperators","defaultOperator"],["kendoFilterInput","","kendoGridFocusable","","textField","text","valueField","value",3,"size","columnLabel","defaultItem","data","popupSettings","valuePrimitive","value"]],template:function(e,i){e&1&&(g(0,"kendo-grid-filter-wrapper-cell",0),b(1,"kendo-dropdownlist",1),f()),e&2&&(l("column",i.column)("filter",i.filter)("showOperators",!1)("defaultOperator",i.operator),u(),l("size",i.size)("columnLabel",i.columnLabel)("defaultItem",i.defaultItem)("data",i.items)("popupSettings",si(11,Cv))("valuePrimitive",!0)("value",i.currentFilter==null?null:i.currentFilter.value))},dependencies:[_i,ii,dn,Ys],encapsulation:2}),t})(),P0=(()=>{class t extends w0{constructor(e,i,o){super(e,i),this.ctx=i,this.showOperators=!0,this.subs=o.changes.subscribe(s=>this.size=s)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}messageFor(e){return this.ctx.localization.get(e)}get columnLabel(){let e=this.ctx.localization.get("filterInputLabel")||"",i=this.column.title||this.column.field;return Tt(e,"columnName",i)}}return t.\u0275fac=function(e){return new(e||t)(c(It),c(H),c(Mn))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-date-filter-cell"]],inputs:{showOperators:"showOperators"},features:[z],decls:3,vars:19,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoFilterInput","","kendoGridFocusable","",3,"columnLabel","value","format","size","formatPlaceholder","placeholder","activeView","bottomView","topView","min","max","weekNumber"],[3,"toggle","today"]],template:function(e,i){e&1&&(g(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-datepicker",1),b(2,"kendo-datepicker-messages",2),f()()),e&2&&(l("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("showOperators",i.showOperators),u(),l("columnLabel",i.columnLabel)("value",i.currentFilter==null?null:i.currentFilter.value)("format",i.format)("size",i.size)("formatPlaceholder",i.formatPlaceholder)("placeholder",i.placeholder)("activeView",i.activeView)("bottomView",i.bottomView)("topView",i.topView)("min",i.min)("max",i.max)("weekNumber",i.weekNumber),u(),l("toggle",i.messageFor("filterDateToggle"))("today",i.messageFor("filterDateToday")))},dependencies:[va,pd,ii,dn,Ys],encapsulation:2}),t})(),qN=t=>({boolean:N0,date:P0,numeric:L0,text:ch})[t],QN=(()=>{class t extends C0{constructor(e,i){super(e,i)}componentType(){return dt(this.column.filter)?ch:qN(this.column.filter)}}return t.\u0275fac=function(e){return new(e||t)(c(Ei),c(ir))},t.\u0275dir=A({type:t,selectors:[["","kendoFilterCellHost",""]],features:[z]}),t})(),F0=(()=>{class t{constructor(){this.hostRole="gridcell",this.size="medium",this._templateContext={}}get filter(){return this._filter}set filter(e){this._filter=zs(e)}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.filter,this._templateContext.$implicit=this.filter,this._templateContext}get hasTemplate(){return G(this.column.filterCellTemplateRef)}get isFilterable(){return G(this.column)&&!dt(this.column.field)&&this.column.filterable}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["","kendoGridFilterCell",""]],hostVars:1,hostBindings:function(e,i){e&2&&M("role",i.hostRole)},inputs:{column:"column",filter:"filter",size:"size"},attrs:aM,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["kendoFilterCellHost","",3,"column","filter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){e&1&&_(0,hM,4,3,"ng-container",0),e&2&&l("ngIf",i.isFilterable)},dependencies:[oe,Fe,rr,ar,QN],encapsulation:2}),t})(),G0=(()=>{class t{constructor(e,i){this.ctx=e,this.columnInfoService=i,this.columns=[],this.groups=[],this.filterRowClass=!0}addStickyStyles(e){let i=e.sticky?this.columnInfoService.stickyColumnsStyles(e):null;return at(at({},i),e.filterStyle)}filterLabel(e){let i=this.ctx.localization.get("filterInputLabel")||"",o=e.title||e.field;return Tt(i,"columnName",o)}getLogicalColIndex(e){let i=this.lockedColumnsCount+e;return this.detailTemplate?.templateRef?i+1:i}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Yt))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridFilterRow",""]],hostVars:2,hostBindings:function(e,i){e&2&&N("k-filter-row",i.filterRowClass)},inputs:{columns:"columns",filter:"filter",groups:"groups",detailTemplate:"detailTemplate",logicalRowIndex:"logicalRowIndex",lockedColumnsCount:"lockedColumnsCount"},attrs:pM,decls:3,vars:3,consts:[["class","k-table-td","role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["class","k-table-td","role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["class","k-table-td","kendoGridFilterCell","","kendoGridLogicalCell","",3,"k-grid-header-sticky","ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf"],["role","presentation",1,"k-table-td"],["kendoGridFilterCell","","kendoGridLogicalCell","",1,"k-table-td",3,"ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex"]],template:function(e,i){e&1&&_(0,mM,1,2,"td",0)(1,gM,1,2,"td",1)(2,fM,1,9,"td",2),e&2&&(l("ngForOf",i.groups),u(),l("ngIf",i.detailTemplate==null?null:i.detailTemplate.templateRef),u(),l("ngForOf",i.columns))},dependencies:[st,qe,oe,Pt,Ws,F0],encapsulation:2}),t})(),JN=(t,n)=>{let e=n<0?-1:1;return Math.ceil(Math.abs(n)/100*t)*e},YN=(t,n)=>t/n*100,Xd=t=>t.nativeElement.parentElement.offsetWidth,ov=t=>ji(t).filter(n=>!n.isColumnGroup),ZN=({originalEvent:t})=>{t.stopPropagation(),t.preventDefault()},XN=(t,n)=>e=>n.kendoDrag.pipe(qt(n.kendoRelease.pipe($e(()=>t.end()))),Ve(({pageX:i})=>({originalX:e.pageX,pageX:i}))),eP=t=>n=>Qi(n).pipe(Vn(150),qt(t)),V0=t=>!!(t.parent&&t.parent.isSpanColumn),tP=(t,n)=>{let e=0,i=0,o=0;for(;e{class t{constructor(e,i,o,s,r,a,d){this.draggable=e,this.element=i,this.service=o,this.zone=s,this.cdr=r,this.ctx=a,this.columnInfoService=d,this.columns=[],this.subscriptions=new Se,this.rtl=!1}get visible(){return this.column.resizable?"block":"none"}get leftStyle(){return ti(this.rtl)?0:null}get rightStyle(){return ti(this.rtl)?null:0}autoFit(){let e=ov(this.columns),i=Hs([this.column]).filter(s=>ti(s.resizable)),o=i.map(s=>{let r=V0(s),a=r?s.parent.childColumns.last===s:!1,d=tP(s,e);return{column:s,headerIndex:this.columnsForLevel(s.level).indexOf(s),index:d,isLastInSpan:a,isParentSpan:r,level:s.level}});i.forEach(s=>s.width=0),this.service.measureColumns(o)}ngOnInit(){ks(this.column.width)&&(this.column.implicitWidth=Xd(this.element));let e=this.service.changes.pipe(pe(()=>this.column.resizable),pe(i=>G(i.columns.find(o=>o===this.column))));this.subscriptions.add(e.pipe(pe(i=>i.type==="start")).subscribe(this.initState.bind(this))),this.subscriptions.add(e.pipe(pe(i=>i.type==="resizeColumn")).subscribe(this.resize.bind(this))),this.subscriptions.add(this.service.changes.pipe(pe(i=>i.type==="start"),pe(this.shouldUpdate.bind(this)),Ke(1)).subscribe(this.initColumnWidth.bind(this))),this.subscriptions.add(this.zone.runOutsideAngular(()=>this.draggable.kendoPress.pipe($e(ZN),$e(()=>this.service.start(this.column)),xt(eP(this.draggable.kendoRelease)),xt(XN(this.service,this.draggable))).subscribe(({pageX:i,originalX:o})=>{let s=i-o,r=YN(s,this.column.resizeStartWidth||this.column.width);this.service.resizeColumns(r)}))),this.subscriptions.add(e.pipe(pe(i=>i.type==="autoFitComplete")).subscribe(this.sizeToFit.bind(this))),this.subscriptions.add(e.pipe(pe(i=>i.type==="triggerAutoFit")).subscribe(this.autoFit.bind(this))),this.subscriptions.add(this.ctx.localization.changes.subscribe(({rtl:i})=>this.rtl=i))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}shouldUpdate(){return!ov(this.columns).map(e=>e.width).some(ks)}initColumnWidth(){this.column.width=Xd(this.element)}initState(){this.column.resizeStartWidth=Xd(this.element),this.service.resizedColumn({column:this.column,oldWidth:this.column.resizeStartWidth})}resize({deltaPercent:e}){let i=JN(this.column.resizeStartWidth,e);ti(this.rtl)&&(i*=-1);let o=Math.max(this.column.resizeStartWidth+i,this.column.minResizableWidth);G(this.column.maxResizableWidth)&&(o=Math.min(o,this.column.maxResizableWidth));let s=this.getTableDelta(o,i);this.updateWidth(this.column,o),this.service.resizeTable(this.column,s)}sizeToFit({columns:e,widths:i}){let o=e.indexOf(this.column),s=Math.max(...i.map(a=>a[o]))+1,r=s-this.column.resizeStartWidth;this.updateWidth(this.column,s),this.service.resizeTable(this.column,r)}updateWidth(e,i){e.width=i,this.columnInfoService.hiddenColumns.forEach(o=>{ks(o.width)&&G(o.implicitWidth)&&(o.width=o.implicitWidth)}),this.cdr.markForCheck()}columnsForLevel(e){return ln(this.columns?this.columns.filter(i=>i.level===e):[])}getTableDelta(e,i){let o=this.column.minResizableWidth,s=this.column.maxResizableWidth,r=this.column.resizeStartWidth,a=e>o,d=e{class t{constructor(e,i,o,s){this.selectionService=e,this.el=i,this.renderer=o,this.ngZone=s,this.selectAllChange=new C,this.type="checkbox",this.stateSet=!1,this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this))})}ngAfterContentChecked(){this.setState()}ngOnChanges(){this.stateSet=!0}ngOnDestroy(){this.destroyClick&&this.destroyClick()}onClick(){let i=xA()&&this.selectionService.selectAllState===void 0?!0:this.el.nativeElement.checked,o=this.selectionService.options,s=o.enabled&&o.mode==="multiple",r=bt(this.selectAllChange);(s||r)&&this.ngZone.run(()=>{s&&this.selectionService.updateAll(i),r&&this.selectAllChange.emit(i?"checked":"unchecked")})}setState(){let e=this.stateSet?this.stateToBool():this.selectionService.selectAllState,i=this.el.nativeElement;this.renderer.setProperty(i,"indeterminate",!G(e)),this.renderer.setProperty(i,"checked",G(e)?e:!1)}stateToBool(){switch(this.state){case"checked":return!0;case"unchecked":return!1;default:return}}}return t.\u0275fac=function(e){return new(e||t)(c(Fo),c(W),c(X),c(re))},t.\u0275dir=A({type:t,selectors:[["","kendoGridSelectAllCheckbox",""]],hostVars:1,hostBindings:function(e,i){e&2&&M("type",i.type)},inputs:{state:"state"},outputs:{selectAllChange:"selectAllChange"},features:[be]}),t})(),Va=(...t)=>Object.assign.apply(null,[{}].concat(t)),nP=t=>t==="asc"?["asc","desc"]:["desc","asc"],oP=({parent:t})=>!ti(t),sP=({draggable:t})=>["column","columnGroup"].indexOf(t.context.type)>=0,rP=({draggable:t,target:n})=>t.element.nativeElement!==n.element.nativeElement,U0=(t,n)=>t.parent===n.parent||Av(n)&&U0(t,n.parent),aP=({draggable:t,target:n})=>U0(t.context.column,n.context.column),lP=({draggable:t})=>!ti(t.context.column.locked)&&oP(t.context.column)&&t.context.lastColumn,cP=({draggable:t})=>!Av(t.context.column),dP=({draggable:t})=>t.context.column.reorderable,uP=({draggable:t,target:n})=>t.context.column.lockable!==!1||t.context.column.isLocked===n.context.column.isLocked,hP=Vu(sP,dP,cP,rP,aP,Ts(lP),uP),pP=["alt","ctrl","shift","meta"],mP=(()=>{class t{constructor(e,i,o,s,r,a,d,p,m,v){this.popupService=e,this.hint=i,this.cue=o,this.reorderService=s,this.idService=r,this.sortService=a,this.columnInfoService=d,this.cd=p,this.contextService=m,this.navigationService=v,this.columns=[],this.groups=[],this.sort=new Array,this.sortable=!1,this.groupable=!1,this.lockedColumnsCount=0,this.resizable=!1,this.reorderable=!1,this.columnMenu=!1,this.totalColumnsCount=0,this.size="medium",this.sortedFields={},this.hostClass=!0,this.dropTargets=new Ze,this.sortAscSmallIcon=_r,this.sortDescSmallIcon=vr,this.subscription=new Se}get headerClass(){return!this.scrollable}get sortableLabel(){return this.contextService.localization.get("sortable")}get columnMenuSettings(){return this.columnMenu}get unlockedColumnsCount(){return this.totalColumnsCount-this.lockedColumnsCount-this.columns.length}sortColumn(e){this.sortService.sort(e)}getColumnComponent(e){return e}onSortClick(e,i,o){let s=i.target;if(e.headerTemplateRef&&s!==o&&!!iu(s,bv,o))return;let r=this.matchModifier(i),a=this.toggleSort(e,r);this.sortColumn(a)}onHeaderKeydown(e,i){if(i.keyCode===T.ArrowDown&&i.altKey&&this.showFilterMenu){i.preventDefault(),i.stopImmediatePropagation();let d=this.filterMenus.find(p=>p.column===e);d.toggle(d.anchor.nativeElement,d.template);return}if(i.keyCode===T.ArrowDown&&i.altKey&&this.showColumnMenu(e)){i.preventDefault(),i.stopImmediatePropagation();let d=this.columnMenus.find(p=>p.column===e);d.toggle(null,d.anchor.nativeElement,d.template);return}let o=i.ctrlKey||i.metaKey;if((i.keyCode===T.Enter||i.keyCode===T.Space)&&o&&this.isGroupable(e)){i.preventDefault(),i.stopImmediatePropagation(),this.groups.some(p=>p.field===e.field)?this.groups=this.groups.filter(p=>p.field!==e.field):this.groups.push({field:e.field}),this.contextService.grid.groupChange.emit(this.groups);return}if((i.keyCode===T.ArrowLeft||i.keyCode===T.ArrowRight)&&o&&this.isReorderable(e)){i.preventDefault();let d=this.columnInfoService.leafNamedColumns.length,p=i.keyCode===T.ArrowLeft?-1:1,m=this.contextService.localization.rtl?-1:1,v=p*m,S=e.leafIndex+v,w=Math.min(Math.max(0,S),d-1),L=this.contextService.grid;L.reorderColumn(e,w,{before:v<0}),L.columnReorder.emit(new il({column:e,newIndex:w,oldIndex:e.leafIndex}));return}if(!(!this.sortable||i.defaultPrevented||e.sortable===!1)&&i.keyCode===T.Enter&&G(e.field)){let d=this.matchModifier(i);this.sortService.sort(this.toggleSort(e,d))}}showSortNumbering(e){let{showIndexes:i}=Ha(this.sortable);return i&&this.sort&&this.sort.filter(({dir:o})=>G(o)).length>1&&this.sortOrder(e.field)>0}sortOrder(e){return this.sort.filter(({dir:i})=>G(i)).findIndex(i=>i.field===e)+1}sortState(e){if(!this.isSortable(e))return;let i=this.sortDescriptor(e.field);if(i.dir==="asc")return"ascending";if(i.dir==="desc")return"descending"}get isNavigable(){return this.navigationService.tableEnabled}toggleSort(e,i=!0){let{allowUnsort:o,mode:s,initialDirection:r}=Ha(this.sortable,e.sortable),a=this.toggleDirection(e.field,o,r);return s==="single"||!i?[a]:[...this.sort.filter(d=>d.field!==e.field),a]}matchModifier(e){let{multiSortKey:i}=Ha(this.sortable);return i==="none"?pP.every(o=>!e[`${o}Key`]):i==="ctrl"?e.ctrlKey||e.metaKey:e[`${i}Key`]}ngAfterViewInit(){this.subscription.add(ul(this.dropTargets).subscribe(this.attachTargets.bind(this)))}ngDoCheck(){this._leafColumns=ln(this.columns||[]).filter(e=>!Ao(e))}ngOnChanges(e){let i=e.sort;i&&!i.isFirstChange()&&i.currentValue.forEach(o=>{this.sortedFields[o.field]=!0})}ngOnInit(){this.subscription.add(this.contextService.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.popupService&&this.popupService.destroy(),this.subscription.unsubscribe()}selectAllCheckboxId(){return this.idService.selectAllCheckboxId()}get selectAllCheckboxLabel(){return this.contextService.localization.get("selectAllCheckboxLabel")}isFirstOnRow(e,i){let o=s=>s&&(this.columnsForLevel(s.level).indexOf(s)>0||o(s.parent));return i===0&&!this.groups.length&&!this.detailTemplate&&o(e.parent)}logicalColumnIndex(e){let i=e.leafIndex;return G(i)?i+(G(this.detailTemplate)?1:0):-1}get showFilterMenu(){return!this.columnMenu&&IL(this.filterable)}get showFilterRow(){return Vs(this.filterable)}showColumnMenu(e){return this.columnMenu&&e.columnMenu&&(this.columnMenuTemplate||e.columnMenuTemplates.length||wN(this.columnMenu,e))}isFilterable(e){return!dt(e.field)&&e.filterable===!0}canDrop(e,i){return this.reorderable&&hP({draggable:e,target:i})}shouldActivate(e){let i=this.isReorderable(e);return!i&&!Ls(e)?!1:this.isGroupable(e)||i}isSortable(e){return!dt(e.field)&&ti(this.sortable)&&ti(e.sortable)}isCheckboxColumn(e){return yv(e)&&!e.templateRef}trackByIndex(e,i){return e}addStickyStyles(e){let i=this.columnInfoService.stickyColumnsStyles(e);return at(at({},e.headerStyle),i)}toggleDirection(e,i,o){let s=this.sortDescriptor(e),[r,a]=nP(o),d=r;return s.dir===r?d=a:s.dir===a&&i&&(d=void 0),{dir:d,field:e}}columnsForLevel(e){let i=this.columns?this.columns.filter(o=>o.level===e):[];return Mo(ln(i))}isColumnGroupComponent(e){return Ao(e)}sortDescriptor(e){return this.sort.find(i=>i.field===e)||{field:e}}get columnLevels(){return new Array((this.totalColumnLevels||0)+1)}get leafColumns(){return this._leafColumns}isReorderable(e){return this.reorderable&&e.reorderable}isGroupable(e){return this.groupable&&Ls(e)&&e.groupable!==!1}attachTargets(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Se;let e=_t(...this.dropTargets.map(s=>s.enter)),i=_t(...this.dropTargets.map(s=>s.leave)),o=_t(...this.dropTargets.map(s=>s.drop));this.targetSubscription.add(e.pipe($e(({target:s,draggable:r})=>{if(r.context.type==="groupIndicator")return;let a=ti(s.context.column.isLocked),d=ti(r.context.column.isLocked);(this.lockedColumnsCount>0||a||d)&&this.hint.toggleLock(a)}),pe(({draggable:s,target:r})=>this.canDrop(s,r)),xt(this.trackMove.bind(this,i,o)),Ve(s=>Va(s,{before:this.calculateBefore(s),changeContainer:s.changeContainer})),Ve(this.normalizeTarget.bind(this)),$e(this.enter.bind(this)),xt(s=>o.pipe(Ve(()=>s),qt(i.pipe($e(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}normalizeTarget(e){let i=e.target,o=i.context.column.parent;if(o&&o.isSpanColumn){let s=this.dropTargets.toArray(),r=s.find(p=>p.context.column.parent===o),a=s.indexOf(r),d=e.before?0:o.childColumns.length-1;i=s[a+d]}return Va(e,{target:i})}trackMove(e,i,o){let s=o.target.context.column,r=this.columnsForLevel(s.level),a=r.indexOf(s),d=s.locked?a===r.length-1:a===0,p=o.draggable.context.column.isLocked!==s.isLocked;return p&&d?o.draggable.drag.pipe(qt(e),qt(i),Ve(({mouseEvent:m})=>Va({changeContainer:!0},o,{mouseEvent:m}))):Qi(Va({changeContainer:p},o))}calculateBefore({draggable:e,target:i,mouseEvent:o,changeContainer:s=!1}){let r=i.element.nativeElement,a=!1;if(s){let{left:d}=Qv(r),p=r.offsetWidth/2;a=d+p>o.pageX,this.contextService.localization.rtl&&(a=!a)}else a=Jv(e.element.nativeElement,r);return a}enter({target:e,before:i}){this.hint.enable(),this.contextService.localization.rtl&&(i=!i),this.cue.position(Yv(e.element.nativeElement,i))}leave(){this.hint.disable(),this.cue.hide()}drop({draggable:e,target:i,before:o,changeContainer:s}){this.reorderService.reorder({before:o,changeContainer:s,source:e.context.column,target:i.context.column})}}return t.\u0275fac=function(e){return new(e||t)(c($s),c(gl),c(fl),c(Su),c(ni),c(Vo),c(Yt),c(ve),c(H),c(Lt))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridHeader",""]],viewQuery:function(e,i){if(e&1&&(j(ol,5),j(tv,5),j(xu,5)),e&2){let o;D(o=E())&&(i.dropTargets=o),D(o=E())&&(i.filterMenus=o),D(o=E())&&(i.columnMenus=o)}},hostVars:4,hostBindings:function(e,i){e&2&&N("k-grid-header",i.headerClass)("k-table-thead",i.hostClass)},inputs:{totalColumnLevels:"totalColumnLevels",columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",filterable:"filterable",sort:"sort",filter:"filter",sortable:"sortable",groupable:"groupable",lockedColumnsCount:"lockedColumnsCount",resizable:"resizable",reorderable:"reorderable",columnMenu:"columnMenu",columnMenuTemplate:"columnMenuTemplate",totalColumnsCount:"totalColumnsCount",totalColumns:"totalColumns",tabIndex:"tabIndex",size:"size"},features:[be],attrs:_M,decls:3,vars:2,consts:[["link",""],["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns",4,"ngFor","ngForOf"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns",4,"ngIf"],["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns"],["class","k-group-cell k-header k-table-th","role","presentation",4,"ngFor","ngForOf"],["class","k-hierarchy-cell k-header k-table-th","role","presentation",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","presentation",1,"k-group-cell","k-header","k-table-th"],["role","presentation",1,"k-hierarchy-cell","k-header","k-table-th"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header k-table-th",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","k-sorted","enableDrag","context","k-filterable","k-first","k-grid-header-sticky","ngClass","ngStyle","keydown",4,"ngIf"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header k-table-th",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","k-first","k-filterable","k-grid-content-sticky","ngClass","ngStyle",4,"ngIf"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header","k-table-th",3,"keydown","logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","ngClass","ngStyle"],[4,"ngIf"],["kendoGridColumnHandle","","kendoDraggable","","class","k-column-resizer",3,"column","columns",4,"ngIf"],[1,"k-cell-inner"],[1,"k-link","!k-cursor-default"],[3,"templateContext"],[3,"column","filter","tabIndex",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex",4,"ngIf"],[1,"k-column-title"],[3,"column","filter","tabIndex"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex"],[1,"k-link",3,"click"],[1,"k-sort-icon"],["role","note",3,"name","svgIcon",4,"ngIf"],["class","k-sort-order",4,"ngIf"],["role","note",3,"name","svgIcon"],[1,"k-sort-order"],[1,"k-checkbox-wrap"],["kendoGridSelectAllCheckbox","","kendoGridFocusable","",1,"k-checkbox","k-checkbox-md","k-rounded-md"],["kendoGridColumnHandle","","kendoDraggable","",1,"k-column-resizer",3,"column","columns"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header","k-table-th",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","ngClass","ngStyle"],[1,"k-link"],[3,"standalone","settings","column","columnMenuTemplate",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns"]],template:function(e,i){e&1&&(q(0),_(1,jM,4,9,"tr",1)(2,HM,1,10,"tr",2),Q()),e&2&&(u(),l("ngForOf",i.columnLevels),u(),l("ngIf",i.showFilterRow))},dependencies:[st,qe,oe,Pt,G0,Ws,Yu,ii,_l,Li,Je,tv,t0,ol,xu,iP,z0],encapsulation:2}),t})(),gP=(()=>{class t{constructor(e){this.columnInfoService=e,this.columns=[],this.groups=[],this.lockedColumnsCount=0,this.logicalRowIndex=0,this.hostClass=!0,this.hostRole="rowgroup"}get footerClass(){return!this.scrollable}get columnsToRender(){return ln(this.columns||[])}logicalColumnIndex(e){let i=e.leafIndex;return G(i)?i+(G(this.detailTemplate)?1:0):-1}addStickyStyles(e){let i=this.columnInfoService.stickyColumnsStyles(e);return at(at({},e.footerStyle),i)}}return t.\u0275fac=function(e){return new(e||t)(c(Yt))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridFooter",""]],hostVars:5,hostBindings:function(e,i){e&2&&(M("role",i.hostRole),N("k-grid-footer",i.footerClass)("k-table-tfoot",i.hostClass))},inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",lockedColumnsCount:"lockedColumnsCount",logicalRowIndex:"logicalRowIndex",totalColumns:"totalColumns"},attrs:KM,decls:5,vars:10,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns"],["class","k-table-td k-group-cell","role","presentation",4,"ngFor","ngForOf"],["role","presentation","class","k-table-td k-hierarchy-cell",4,"ngIf"],["kendoGridLogicalCell","","class","k-table-td","role","gridcell","aria-selected","false",3,"logicalRowIndex","logicalColIndex","k-grid-footer-sticky","ngClass","ngStyle",4,"ngFor","ngForOf"],["role","presentation",1,"k-table-td","k-group-cell"],["role","presentation",1,"k-table-td","k-hierarchy-cell"],["kendoGridLogicalCell","","role","gridcell","aria-selected","false",1,"k-table-td",3,"logicalRowIndex","logicalColIndex","ngClass","ngStyle"],[3,"templateContext"]],template:function(e,i){e&1&&(q(0),g(1,"tr",0),_(2,$M,1,0,"td",1)(3,WM,1,0,"td",2)(4,QM,2,12,"td",3),f(),Q()),e&2&&(u(),N("k-footer-template",!0),l("logicalRowIndex",i.logicalRowIndex)("logicalSlaveRow",i.lockedColumnsCount>0)("logicalCellsCount",i.columns.length)("logicalSlaveCellsCount",i.columns.length-i.lockedColumnsCount)("totalColumns",i.totalColumns),u(),l("ngForOf",i.groups),u(),l("ngIf",i.detailTemplate==null?null:i.detailTemplate.templateRef),u(),l("ngForOf",i.columnsToRender))},dependencies:[st,qe,oe,Pt,Ws,Yu,_l],encapsulation:2}),t})(),fP=({buttonCount:t=10,info:n=!0,type:e="numeric",pageSizes:i=!1,previousNext:o=!0,responsive:s=!0,position:r="bottom"})=>({buttonCount:t,info:n,pageSizes:i===!0?[5,10,20]:i,previousNext:o,type:e,responsive:s,position:r}),sv=t=>fP(t===!0?{}:t),jo=(()=>{class t{constructor(e,i,o){this.ctx=e,this.pagerContext=i,this.cd=o,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize,this.caretAltLeftIcon=bn,this.caretAltToLeftIcon=Rp,this.caretAltRightIcon=Sn,this.caretAltToRightIcon=xp,this.size="medium"}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}textFor(e){return this.ctx.localization.get(e)}changePage(e){return this.pagerContext.changePage(e),!1}ngOnInit(){this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.ctx.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}get prevArrowIcons(){return this.ctx.localization.rtl?["caret-alt-to-right","caret-alt-right"]:["caret-alt-to-left","caret-alt-left"]}get prevArrowSVGIcons(){return this.ctx.localization.rtl?[this.caretAltToRightIcon,this.caretAltRightIcon]:[this.caretAltToLeftIcon,this.caretAltLeftIcon]}get nextArrowIcons(){return this.ctx.localization.rtl?["caret-alt-left","caret-alt-to-left"]:["caret-alt-right","caret-alt-to-right"]}get nextArrowSVGIcons(){return this.ctx.localization.rtl?[this.caretAltLeftIcon,this.caretAltToLeftIcon]:[this.caretAltRightIcon,this.caretAltToRightIcon]}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Di),c(ve))},t.\u0275dir=A({type:t,inputs:{size:"size"}}),t})(),Ru=(()=>{class t extends jo{constructor(e,i,o){super(e,o,i),this.pagerContext=o}get maxItems(){return Math.min(this.currentPage*this.pageSize,this.total)}get currentPageText(){return this.total?(this.currentPage-1)*this.pageSize+1:0}get classes(){return!0}onChanges({total:e,skip:i,pageSize:o}){this.total=e,this.skip=i,this.pageSize=o,this.cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(ve),c(Di))},t.\u0275cmp=k({type:t,selectors:[["kendo-pager-info"]],hostVars:4,hostBindings:function(e,i){e&2&&N("k-pager-info",i.classes)("k-label",i.classes)},features:[z],decls:1,vars:5,template:function(e,i){e&1&&ee(0),e&2&&np("",i.currentPageText," - ",i.maxItems," ",i.textFor("pagerOf")," ",i.total," ",i.textFor("pagerItems"),"")},encapsulation:2,changeDetection:0}),t})(),B0=(()=>{class t{constructor(e){this.host=e,this.keydownHandler=i=>{i.keyCode===T.Escape&&this.host.isOpen&&(i.stopPropagation(),this.host.toggle(!1))}}ngAfterViewInit(){this.host.wrapper.nativeElement.addEventListener("keydown",this.keydownHandler,!0)}ngOnDestroy(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)}}return t.\u0275fac=function(e){return new(e||t)(c(_i))},t.\u0275dir=A({type:t,selectors:[["","kendoGridPagerDropDown",""]]}),t})(),Ou=(()=>{class t extends jo{constructor(e,i,o,s){super(e,o,i),this.pagerContext=o,this.navigationService=s,this._pageSizes=[]}set pageSizes(e){let i=[];e.forEach(o=>{typeof o=="number"?i.push({text:o.toString(),value:o}):i.push(o)}),this.pageSize&&!i.some(o=>o.value===this.pageSize)&&(i=[{text:this.pageSize.toString(),value:this.pageSize},...i]),this._pageSizes=i}get pageSizes(){return this._pageSizes}get classes(){return!0}get showInitialPageSize(){return this.pageSizes.filter(e=>typeof e.value=="number"?e.value===Number(this.pageSize):this.total===Number(this.pageSize)).length===0}pageSizeChange(e){this.pageSize=typeof e=="number"?e:this.total,this.pagerContext.changePageSize(this.pageSize)}getValue(e){return typeof e.value=="number"?e.value:this.total}onChanges({total:e,skip:i,pageSize:o}){this.total=e,this.skip=i,this.pageSize=typeof o=="number"?o:this.total,this.cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(ve),c(Di),c(Lt))},t.\u0275cmp=k({type:t,selectors:[["kendo-pager-page-sizes"]],hostVars:4,hostBindings:function(e,i){e&2&&N("k-pager-sizes",i.classes)("k-label",i.classes)},inputs:{pageSizes:"pageSizes"},features:[z],decls:3,vars:7,consts:[["dropdownlist",""],["kendoGridPagerDropDown","","kendoGridFocusable","","textField","text","valueField","value",1,"k-dropdown",3,"valueChange","size","tabindex","data","valuePrimitive","value"],[3,"for","text"]],template:function(e,i){if(e&1){let o=K();g(0,"kendo-dropdownlist",1,0),O("valueChange",function(r){return y(o),I(i.pageSizeChange(r))}),f(),b(2,"kendo-label",2)}if(e&2){let o=me(1);l("size",i.size)("tabindex",0)("data",i.pageSizes)("valuePrimitive",!0)("value",i.pageSize),u(2),l("for",o)("text",i.textFor("pagerItemsPerPage"))}},dependencies:[Tp,_i,ii,B0],encapsulation:2,changeDetection:0}),t})(),Mu=(()=>{class t extends jo{constructor(e,i,o){super(e,o,i),this.pagerContext=o}get buttons(){let e=[];for(let i=this.start;i<=this.end;i++)e.push(i);return e}get end(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}get start(){let e=this.currentPage,i=this.buttonCount;if(e>i){let o=e%i;return o===0?e-i+1:e-o+1}return 1}pageLabel(e){let i=this.textFor("pagerPage");return i?i+" "+e:e.toString()}onSelectChange(e){let i=e.target,o=Number(i.value);Number.isNaN(o)?i.value==="previousButtons"?this.changePage(this.start-2):this.changePage(this.end):this.changePage(o-1)}onChanges({total:e,skip:i,pageSize:o}){this.total=e,this.skip=i,this.pageSize=o,this.cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(ve),c(Di))},t.\u0275cmp=k({type:t,selectors:[["kendo-pager-numeric-buttons"]],viewQuery:function(e,i){if(e&1&&(j(JM,5,W),j(YM,5,W)),e&2){let o;D(o=E())&&(i.selectElement=o.first),D(o=E())&&(i.numbersElement=o.first)}},inputs:{buttonCount:"buttonCount"},features:[z],decls:10,vars:14,consts:[["select",""],["numbers",""],["kendoGridFocusable","",1,"k-dropdown-list","k-dropdown","k-picker","k-picker-solid","k-rounded-md",3,"change","ngClass"],["value","previousButtons",3,"selected",4,"ngIf"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["value","nextButtons",3,"selected",4,"ngIf"],[1,"k-pager-numbers"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","class","k-pager-nav","rounded","none",3,"size","click",4,"ngIf"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","class","k-pager-nav","rounded","none",3,"size","selected","click",4,"ngFor","ngForOf"],["type","button","kendoGridFocusable","","kendoButton","","class","k-pager-nav","fillMode","flat","themeColor","primary","rounded","none",3,"size","click",4,"ngIf"],["value","previousButtons",3,"selected"],[3,"value","selected","ngClass"],["value","nextButtons",3,"selected"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","rounded","none",1,"k-pager-nav",3,"click","size"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","rounded","none",1,"k-pager-nav",3,"click","size","selected"]],template:function(e,i){if(e&1){let o=K();g(0,"select",2,0),O("change",function(r){return y(o),I(i.onSelectChange(r))}),_(2,e1,2,2,"option",3)(3,t1,2,8,"option",4)(4,i1,2,2,"option",5),f(),g(5,"div",6,1),_(7,n1,2,3,"button",7)(8,o1,2,6,"button",8)(9,s1,2,3,"button",9),f()}e&2&&(ce("display","none"),l("ngClass",et(11,ZM,i.size==="small",i.size==="medium"||!i.size)),M("title",i.textFor("selectPage"))("aria-label",i.textFor("selectPage")),u(2),l("ngIf",i.start>1),u(),l("ngForOf",i.buttons),u(),l("ngIf",i.end1),u(),l("ngForOf",i.buttons),u(),l("ngIf",i.end{class t extends jo{constructor(e,i,o,s){super(e,i,o),this.navigationService=s}get disabled(){return this.currentPage===1||!this.total}onChanges({total:e,skip:i,pageSize:o}){this.total=e,this.skip=i,this.pageSize=o,this.cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Di),c(ve),c(Lt))},t.\u0275cmp=k({type:t,selectors:[["kendo-pager-prev-buttons"]],features:[z],decls:2,vars:14,consts:[["kendoButton","","type","button","role","button","fillMode","flat","rounded","none",1,"k-pager-nav","k-pager-first",3,"click","kendoGridFocusable","title","icon","svgIcon","disabled","size"],["kendoButton","","type","button","fillMode","flat","rounded","none",1,"k-pager-nav",3,"click","kendoGridFocusable","disabled","icon","svgIcon","size","title"]],template:function(e,i){e&1&&(g(0,"button",0),O("click",function(){return i.currentPage!==1?i.changePage(0):!1}),f(),g(1,"button",1),O("click",function(){return i.currentPage!==1?i.changePage(i.currentPage-2):!1}),f()),e&2&&(l("kendoGridFocusable",!i.disabled)("title",i.textFor("pagerFirstPage"))("icon",i.prevArrowIcons[0])("svgIcon",i.prevArrowSVGIcons[0])("disabled",i.disabled)("size",i.size),M("aria-label",i.textFor("pagerFirstPage")),u(),l("kendoGridFocusable",!i.disabled)("disabled",i.disabled)("icon",i.prevArrowIcons[1])("svgIcon",i.prevArrowSVGIcons[1])("size",i.size)("title",i.textFor("pagerPreviousPage")),M("aria-label",i.textFor("pagerPreviousPage")))},dependencies:[vt,ii],encapsulation:2,changeDetection:0}),t})(),H0=(()=>{class t extends jo{constructor(e,i,o,s){super(e,i,o),this.navigationService=s}get disabled(){return this.currentPage===this.totalPages||!this.total}onChanges({total:e,skip:i,pageSize:o}){this.total=e,this.skip=i,this.pageSize=o,this.cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Di),c(ve),c(Lt))},t.\u0275cmp=k({type:t,selectors:[["kendo-pager-next-buttons"]],features:[z],decls:2,vars:14,consts:[["kendoButton","","type","button","fillMode","flat","rounded","none",1,"k-pager-nav",3,"click","kendoGridFocusable","size","icon","svgIcon","disabled","title"],["kendoButton","","type","button","fillMode","flat","rounded","none",1,"k-pager-nav","k-pager-last",3,"click","kendoGridFocusable","size","icon","svgIcon","disabled","title"]],template:function(e,i){e&1&&(g(0,"button",0),O("click",function(){return i.currentPage!==i.totalPages?i.changePage(i.currentPage):!1}),f(),g(1,"button",1),O("click",function(){return i.currentPage!==i.totalPages?i.changePage(i.totalPages-1):!1}),f()),e&2&&(l("kendoGridFocusable",!i.disabled)("size",i.size)("icon",i.nextArrowIcons[0])("svgIcon",i.nextArrowSVGIcons[0])("disabled",i.disabled)("title",i.textFor("pagerNextPage")),M("aria-label",i.textFor("pagerNextPage")),u(),l("kendoGridFocusable",!i.disabled)("size",i.size)("icon",i.nextArrowIcons[1])("svgIcon",i.nextArrowSVGIcons[1])("disabled",i.disabled)("title",i.textFor("pagerLastPage")),M("aria-label",i.textFor("pagerLastPage")))},dependencies:[vt,ii],encapsulation:2,changeDetection:0}),t})(),K0=(()=>{class t{constructor(e,i){this.host=e,this.renderer=i}ngAfterViewInit(){let e=this.host.numericInput.nativeElement;this.renderer.addClass(e,"k-pager-nav")}}return t.\u0275fac=function(e){return new(e||t)(c(Dn),c(X))},t.\u0275dir=A({type:t,selectors:[["","kendoGridPagerInput",""]]}),t})(),$0=(()=>{class t extends jo{constructor(e,i,o,s,r){super(e,i,r),this.pagerContext=i,this.zone=o,this.navigationService=s,this.handleKeyDown=a=>{let d=this.numericInput.value||this.current;a.keyCode===T.Enter&&(a.preventDefault(),d!==this.current&&this.zone.run(()=>{this.changePage(d-1)}))},this.handleBlur=()=>{let a=this.numericInput.value;if(!a){this.numericInput.writeValue(this.current);return}a!==this.current&&this.zone.run(()=>{this.changePage(a-1)})}}get current(){return this.hasPages?this.currentPage:0}get hasPages(){return this.totalPages!==0}onChanges({total:e,skip:i,pageSize:o}){this.total=e,this.skip=i,this.pageSize=o,this.cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Di),c(re),c(Lt),c(ve))},t.\u0275cmp=k({type:t,selectors:[["kendo-pager-input"]],viewQuery:function(e,i){if(e&1&&j(Dn,5),e&2){let o;D(o=E())&&(i.numericInput=o.first)}},features:[z],decls:4,vars:17,consts:[[1,"k-pager-input","k-label"],["kendoGridPagerInput","","format","n0",3,"kendoGridFocusable","spinners","decimals","disabled","value","min","max","size","autoCorrect","title","kendoEventsOutsideAngular"]],template:function(e,i){e&1&&(g(0,"span",0),ee(1),b(2,"kendo-numerictextbox",1),ee(3),f()),e&2&&(u(),St(" ",i.textFor("pagerPage")," "),u(),l("kendoGridFocusable",i.hasPages)("spinners",!1)("decimals",0)("disabled",!i.hasPages)("value",i.current)("min",i.hasPages?1:0)("max",i.totalPages)("size",i.size)("autoCorrect",!0)("title",i.textFor("pagerPageNumberInputTitle"))("kendoEventsOutsideAngular",et(14,r1,i.handleKeyDown,i.handleBlur)),u(),El(" ",i.textFor("pagerOf")," ",i.totalPages," "))},dependencies:[Yi,Dn,ii,K0],encapsulation:2}),t})(),W0=(()=>{class t{constructor(e,i,o,s,r,a,d,p,m){this.pagerContext=e,this.navigationService=i,this.element=o,this.renderer=s,this.zone=r,this.ctx=a,this.cellContext=d,this.focusRoot=p,this.focusGroup=m,this.total=0,this.skip=1,this.pageChange=new C,this.gridPagerClass=!0,this.settings=sv({}),this.subscriptions=new Se,this._templateContext={},this._isFocused=!1,this._size="medium",this.resizeHandler=()=>{let v=this.element.nativeElement;this.template||!v||this.zone.runOutsideAngular(()=>{setTimeout(()=>{let S=v.offsetWidth;if(this.numericButtons){let w=this.numericButtons.selectElement.nativeElement,L=this.numericButtons.numbersElement.nativeElement;this.renderer.removeStyle(L,"display"),this.renderer.setStyle(w,"display","none"),S1)&&this.pagerContext.prevPage()}navigateToNextPage(e){e.preventDefault(),this.shouldTriggerPageChange(e.target,this.currentPage1)&&this.pagerContext.changePage(0)}navigateToLastPage(e){e.preventDefault(),this.shouldTriggerPageChange(e.target,this.currentPage{i==="start"?e.relatedTarget===this.element.nativeElement?this.focusFirstElement():this.focusLastElement():this.focusFirstElement()})}shouldTriggerPageChange(e,i){return this.navigationService.pagerEnabled&&e===this.element.nativeElement&&i}focusFirstElement(){let e=Dv(this.element.nativeElement,!0);e&&e.focus()}focusLastElement(){let e=PA(this.element.nativeElement,!0);e&&e.focus()}updateCellContext(){this.cellContext&&(this.cellContext.focusGroup=this.focusGroup)}clearResponsiveStyling(){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.numericButtons&&(this.renderer.removeStyle(this.numericButtons.numbersElement.nativeElement,"display"),this.renderer.setStyle(this.numericButtons.selectElement.nativeElement,"display","none")),this.pagerInfo&&this.renderer.removeStyle(this.pagerInfo.nativeElement,"display"),this.pagerPageSizes&&this.renderer.removeStyle(this.pagerPageSizes.nativeElement,"display")})})}}return t.\u0275fac=function(e){return new(e||t)(c(Di),c(Lt),c(W),c(X),c(re),c(H),c(cn,8),c(Rn),c(Lo))},t.\u0275cmp=k({type:t,selectors:[["kendo-pager"]],viewQuery:function(e,i){if(e&1&&(j(Ru,5,W),j(Ou,5,W),j(Mu,5)),e&2){let o;D(o=E())&&(i.pagerInfo=o.first),D(o=E())&&(i.pagerPageSizes=o.first),D(o=E())&&(i.numericButtons=o.first)}},hostVars:9,hostBindings:function(e,i){e&1&&O("focusin",function(s){return i.onFocusIn(s)})("focusout",function(){return i.onFocusOut()})("keydown.escape",function(){return i.onEscape()})("keydown.enter",function(s){return i.onEnter(s)})("keydown.arrowleft",function(s){return i.navigateToPreviousPage(s)})("keydown.pageup",function(s){return i.navigateToPreviousPage(s)})("keydown.arrowright",function(s){return i.navigateToNextPage(s)})("keydown.pagedown",function(s){return i.navigateToNextPage(s)})("keydown.home",function(s){return i.navigateToFirstPage(s)})("keydown.end",function(s){return i.navigateToLastPage(s)}),e&2&&(M("aria-label",i.pagerAriaLabel),N("k-grid-pager",i.gridPagerClass)("k-pager-sm",i.sizeSmallClass)("k-pager-md",i.sizeMediumClass)("k-focus",i.isFocused))},inputs:{total:"total",skip:"skip",pageSize:"pageSize",options:"options",size:"size",template:"template"},outputs:{pageChange:"pageChange"},features:[Y([{provide:tu,useValue:!0},{provide:Rn,deps:[tu],useClass:Rn},{provide:Lo,deps:[Rn],useClass:Lo}]),be],decls:5,vars:5,consts:[["class","k-sr-only",3,"tabindex","focusin",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"resize",4,"ngIf"],[1,"k-sr-only",3,"focusin","tabindex"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-pager-numbers-wrap"],[3,"size",4,"ngIf"],[3,"size","buttonCount",4,"ngIf"],[3,"size","pageSizes",4,"ngIf"],[3,"size"],[3,"size","buttonCount"],[3,"size","pageSizes"],[3,"resize"]],template:function(e,i){e&1&&_(0,a1,1,2,"div",0)(1,l1,1,2,"ng-container",1)(2,g1,8,6,"ng-container",2)(3,f1,1,2,"div",0)(4,_1,1,0,"kendo-resize-sensor",3),e&2&&(l("ngIf",i.navigationService.pagerEnabled),u(),l("ngIf",i.template==null?null:i.template.templateRef),u(),l("ngIf",!(i.template!=null&&i.template.templateRef)),u(),l("ngIf",i.navigationService.pagerEnabled),u(),l("ngIf",i.settings.responsive))},dependencies:[oe,Fe,yi,j0,H0,Mu,$0,Ru,Ou],encapsulation:2}),t})(),_P=(t,n,e)=>[...t.slice(0,n+1),...t.slice(n+1).map(i=>i+e)],Au=class{constructor(n=0,e,i){this.total=n,this.rowHeight=e,this.detailRowHeight=i,this.offsets=[],this.heights=[];let o=0;for(let s=0;sthis.rowHeight&&this.updateRowHeight(n,this.detailRowHeight*-1)}isExpanded(n){return this.height(n)>this.rowHeight}index(n){if(n<0)return;let e=this.offsets.reduce((i,o,s)=>{if(i!==void 0)return i;if(o===n)return s;if(o>n)return s-1},void 0);return e===void 0?this.total-1:e}offset(n,e=!1){if(e){let i=0,o=0;for(let s=0;sn+e,0)}updateRowHeight(n,e){this.total>0&&(this.heights[n]+=e,this.offsets=_P(this.offsets,n,e))}},No=class{constructor(n){this.offset=n}},Us=class{constructor(n,e){this.skip=n,this.take=e}},rl=class{},vP=2,Lu=class{constructor(n){this.scrollObservable=n,this.firstLoaded=0}create(n,e,i,o){this.rowHeightService=n,this.firstLoaded=e,this.lastLoaded=e+i,this.take=i,this.total=o,this.lastScrollTop=0;let s=new fn(new No(this.rowHeightService.offset(e)));return this.subscription=ao.create(r=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(a=>this.onScroll(a,r))}).subscribe(r=>s.next(r)),s}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollTop:n,offsetHeight:e,scrollHeight:i,clientHeight:o},s){if(!ae()||this.lastScrollTop===n)return;let r=this.lastScrollTop>=n;this.lastScrollTop=n;let a=this.rowHeightService.index(n),d=this.rowHeightService.offset(a),p=this.rowHeightService.index(n+e);if(!r)if(p>=this.lastLoaded&&this.lastLoaded0&&(a=a-m,d=this.rowHeightService.offset(a)),this.firstLoaded=a,s.next(new No(d));let v=this.firstLoaded+this.take;this.lastLoaded=Math.min(v,this.total),v=v>this.total?this.total-this.firstLoaded:this.take,s.next(new Us(this.firstLoaded,this.take))}else i-o-n{for(let i=0,o=0;iq0(t,n,()=>1),CP=(t,n)=>q0(t,n,e=>Oo(e,s0)?0:parseInt(e.getAttribute("colSpan"),10)||1),av={},lv=new _n("grid-scroll-service-factory");function SP(t){return new Lu(t)}var Q0=t=>{let n=t.wheelDeltaY;return t.wheelDelta&&(n===void 0||n)?t.wheelDelta:t.detail&&t.axis===t.VERTICAL_AXIS?-t.detail*10:0},bP=(t,n)=>{let e=Q0(t),i=n.scrollTop;i===0&&0e=>t.setStyle(e,"transform",`translateY(${n}px)`),eu=t=>t?t.nativeElement:null,EP=(t,n)=>t.nativeElement.offsetWidth>n.nativeElement.clientWidth,wP=t=>({el:n,height:e})=>t.setStyle(n,"height",`${e}px`),cv=1,yP=(()=>{class t{constructor(e,i,o,s,r,a,d,p,m,v,S,w,L,F,R,U,te,x){this.changeNotification=o,this.suspendService=s,this.groupsService=r,this.ngZone=a,this.renderer=d,this.scrollSyncService=p,this.resizeService=m,this.editService=v,this.supportService=S,this.navigationService=w,this.ctx=F,this.columnResizingService=R,this.changeDetector=U,this.pdfService=te,this.columnInfo=x,this.hostClass=!0,this.hostRole="presentation",this.groups=[],this.skip=0,this.columns=new Ns(()=>[]),this.selectable=!1,this.groupable=!1,this.trackBy=Qu,this.sort=new Array,this.size="medium",this.contentScroll=new C,this.pageChange=new C,this.scrollBottom=new C,this.columnsStartIdx=0,this.resizeSensors=new Ze,this.dispatcher=new Qe,this.containerScrollTop=0,this.scrollLeft=0,this.rtl=!1,this.scroller=e(this.dispatcher),this.subscriptions=i.changes.subscribe(de=>this.detailExpand(de)),this.subscriptions.add(L.requests.subscribe(de=>G(de.adjustIndex)?this.scrollTo(de.request,de.adjustIndex):this.scrollToItem(de.request)))}get showFooter(){return this.groupable&&this.groupable.showFooter}get totalWidth(){if(this.virtualColumns&&this.columns.unlockedWidth)return this.columns.unlockedWidth}get lockedLeafColumns(){return this.columns.lockedLeafColumns}get nonLockedLeafColumns(){return this.columns.nonLockedLeafColumns}get nonLockedColumnsToRender(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedLeafColumns}get leafColumns(){return this.columns.leafColumnsToRender}get lockedWidth(){let e=this.groups.length*ja;return ji(this.lockedLeafColumns.toArray()).reduce((i,o)=>i+(o.width||0),e)}get nonLockedWidth(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return oL(ji(this.nonLockedColumnsToRender.toArray()))}get isLocked(){return this.lockedLeafColumns.length>0}ngOnInit(){this.init(),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowSync.bind(this))),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowNavigationLocked.bind(this))),this.subscriptions.add(_t(this.columns.changes,this.resizeService.changes).subscribe(()=>{this.virtualColumns&&this.ngZone.run(()=>{this.updateViewportColumns(),this.changeDetector.markForCheck()})})),this.subscriptions.add(this.ctx.localization.changes.subscribe(({rtl:e})=>this.rtl=e))}ngOnChanges(e){if(!ae())return;let i=e.skip;i&&i.firstChange&&i.currentValue>0&&this.handleInitialScrollToSkip(),ot("skip",e)&&!this.rebind&&(this.skipScroll=!0,this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),Ji(["total","take"],e)&&this.init(),this.rebind=!1}ngDoCheck(){this.virtualColumns&&(!this.viewportColumns||this.viewportWidthChange())&&this.updateViewportColumns()}ngAfterViewInit(){ae()&&(this.skip&&this.isVirtual&&(this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),this.resetNavigationViewport(),this.attachContainerScroll(),this.initResizeService())}ngAfterViewChecked(){let e=this.isLocked;e&&!this.hasLockedContainer&&this.syncRowsHeight(),this.hasLockedContainer=e}syncRowsHeight(){this.lockedContainer&&Hv(this.lockedTable.nativeElement,this.table.nativeElement)}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.resizeService&&this.resizeService.destroy(),this.cleanupScroller()}init(){this.suspendService.scroll||(this.rowHeightService=new Au(this.total,this.rowHeight,this.detailRowHeight),this.totalHeight=this.rowHeightService.totalHeight(),to()||this.ngZone.runOutsideAngular(this.createScroller.bind(this)))}lockedScroll(){if(!this.suspendService.scroll){let e=this.lockedContainer.nativeElement.scrollTop;e!==this.containerScrollTop&&(this.container.nativeElement.scrollTop=this.containerScrollTop=e)}}lockedMousewheel(e){if(!e.ctrlKey){bP(e,this.container.nativeElement);let i=Q0(e);this.container.nativeElement.scrollTop-=i}}lockedKeydown(e){if(e.keyCode===T.PageDown||e.keyCode===T.PageUp){let i=e.keyCode===T.PageDown?1:-1,o=this.container.nativeElement;o.scrollTop+=o.offsetHeight*i*.8,e.preventDefault()}}detailExpand({index:e,expand:i}){i?this.rowHeightService.expandDetail(e):this.rowHeightService.collapseDetail(e),this.totalHeight=this.rowHeightService.totalHeight(),this.resetNavigationViewport()}attachContainerScroll(){to()||(this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(Wt(this.container.nativeElement,"scroll").pipe(Ve(e=>e.target),pe(()=>!this.suspendService.scroll),$e(e=>{this.onContainerScroll(e),this.resetNavigationViewport(),(this.virtualColumns||this.isVirtual)&&this.handleColumnScroll();let i=this.navigationService.viewport||av,o=this.navigationService.columnViewport||av;this.contentScroll.emit({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,startRow:i.firstItemIndex,endRow:i.lastItemIndex,startColumn:o.firstItemIndex,endColumn:o.lastItemIndex})})).subscribe(this.dispatcher))}),this.scrollSyncService.registerEmitter(this.container.nativeElement,"body"))}createScroller(){this.cleanupScroller();let e=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total);this.skipScroll=!1,this.scrollerSubscription=e.pipe(pe(i=>i instanceof Us),pe(()=>{let i=this.skipScroll;return this.skipScroll=!1,!i}),$e(()=>this.rebind=!0)).subscribe(i=>this.ngZone.run(()=>this.pageChange.emit(i))),this.scrollerSubscription.add(e.pipe(pe(i=>i instanceof No)).subscribe(this.scroll.bind(this))),this.scrollerSubscription.add(e.pipe(pe(i=>i instanceof rl)).subscribe(()=>this.scrollBottom.emit()))}scroll({offset:e=0}){this.isVirtual&&[eu(this.table),eu(this.lockedTable)].filter(G).forEach(DP(this.renderer,e)),this.resetNavigationViewport()}onContainerScroll({scrollTop:e}){this.containerScrollTop=e,this.lockedContainer&&(this.lockedContainer.nativeElement.scrollTop=e)}handleInitialScrollToSkip(){let e=()=>this.isVirtual&&this.skip>0&&this.total>0,i=this.changeNotification.changes.pipe(pe(e)).subscribe(o=>{this.scrollTo({row:this.skip}),i.unsubscribe()})}handleRowSync(){let e=()=>G(this.lockedContainer),i=()=>this.ngZone.onStable.asObservable().pipe(Ke(1));return _t(this.changeNotification.changes,this.groupsService.changes.pipe(pe(e),Yo(i())),this.editService.changed,this.resizeService.changes,this.columnResizingService.changes.pipe(pe(o=>o.type==="end")),this.supportService.changes).pipe($e(()=>this.resetNavigationViewport()),pe(e)).subscribe(()=>{let o=this.container.nativeElement.scrollTop,s=this.container.nativeElement.scrollLeft;this.syncRowsHeight(),this.syncContainerHeight(),this.lockedContainer.nativeElement.scrollTop=this.container.nativeElement.scrollTop=o,this.container.nativeElement.scrollLeft=s,this.resizeSensors.forEach(r=>r.acceptSize())})}handleRowNavigationLocked(){return this.navigationService.changes.pipe(pe(()=>G(this.lockedContainer)),Vn(10)).subscribe(e=>{if(this.lockedLeafColumns.length<=e.prevColIndex&&e.colIndex0?ja:0);this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(r+a)}else if(i===0&&this.detailTemplate)this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(0);else{let s=rv(0,this.table.nativeElement.rows);if(s){let r=CP(i,s.cells);r&&(this.container.nativeElement.scrollLeft=this.elementScrollLeft(r))}}}scrollToItem(e){if(!ae())return;let i=this.ctx.grid.data,r=(Array.isArray(i)?i:i.data).flatMap(zu).findIndex(a=>a[e.idField]===e.id);if(r!==-1){let a=Array.from(this.table.nativeElement.rows).find(d=>{let p=d.getAttribute("data-kendo-grid-item-index");return p&&+p===this.ctx.grid.skip+r});a&&a.scrollIntoView(),this.isVirtual&&this.resetNavigationViewport()}}resetNavigationViewport(){if(!ae||!this.container||!this.navigationService.tableEnabled||!this.navigationService.needsViewport()||this.data.length===0)return;let{scrollTop:e,offsetHeight:i}=this.container.nativeElement,o=e+i,s=this.rowHeightService.index(e),r=this.rowHeightService.index(o),a=this.rowHeightService.offset(r),d=s,p=r;if(G(this.detailTemplate)){d*=2,p*=2,this.rowHeightService.offset(s)+this.rowHeighto;S&&!w&&p++}this.navigationService.setViewport(d,p)}cleanupScroller(){this.scrollerSubscription&&this.scrollerSubscription.unsubscribe(),this.scroller&&this.scroller.destroy()}initResizeService(){this.resizeService.connect(_t(...this.resizeSensors.map(e=>e.resize)))}syncContainerHeight(){[eu(this.lockedContainer)].filter(G).map(e=>{e.style.height="";let i=this.container.nativeElement.offsetHeight;return EP(this.table,this.container)&&(i-=this.supportService.scrollbarWidth),{el:e,height:i}}).forEach(wP(this.renderer))}updateViewportColumns(e){let i=this.columns.nonLockedLeafColumns.toArray(),{startIdx:o,endIdx:s,offset:r}=e||this.calculateViewportColumns(),a=Math.max(0,o-cv),d=Math.min(s+cv,i.length-1);if(a=a;m--)r-=i[m].width;let p=i.slice(a,d+1);if(this.viewportColumnsWidth=p.reduce((m,v)=>m+v.width,0),a>0){let m=new ct;m.width=r,p.unshift(m)}this.viewportColumns=new Ze,this.viewportColumns.reset(p),this.columnsStartIdx=a,this.columnsEndIdx=d,this.columnInfo.columnRangeChange.emit({start:a,end:d,offset:r}),e||this.updateColumnViewport(o,s)}handleColumnScroll(){let i=this.container.nativeElement.scrollLeft;if(this.scrollLeft!==i){this.scrollLeft=i;let o=this.calculateViewportColumns();this.updateColumnViewport(o.startIdx,o.endIdx),(o.startIdx{this.ngZone.run(()=>{this.updateViewportColumns(o),this.changeDetector.markForCheck()})}))}}updateColumnViewport(e,i){let o=this.lockedLeafColumns.length,s=this.nonLockedLeafColumns.toArray(),r=o+e+(this.detailTemplate&&e>0?1:0),a=o+i+(this.detailTemplate?1:0);for(let d=0;ds&&(a=v,m=p-(S.width||0)),p>=r){d=v;break}}return!d&&v>0&&(d=o.length-1),{startIdx:a,endIdx:d,offset:m}}viewportWidthChange(){return this.viewportColumns.toArray().reduce((i,o)=>i+o.width,0)!==this.viewportColumnsWidth}normalizeScrollLeft(e){return this.rtl?FA(e,this.container.nativeElement,this.supportService.rtlScrollLeft):e}elementScrollLeft(e){return this.rtl?this.normalizeScrollLeft(this.container.nativeElement.scrollWidth-e.offsetLeft-e.offsetWidth):e.offsetLeft}}return t.\u0275fac=function(e){return new(e||t)(c(lv),c(Ms),c(el),c($v),c(oo),c(re),c(X),c(tl),c($u),c(Ri),c(du),c(Lt),c(qa),c(H),c(Gs),c(ve),c(_u),c(Yt))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-list"]],viewQuery:function(e,i){if(e&1&&(j(v1,7),j(C1,5),j(S1,5),j(b1,7),j(yi,5)),e&2){let o;D(o=E())&&(i.container=o.first),D(o=E())&&(i.lockedContainer=o.first),D(o=E())&&(i.lockedTable=o.first),D(o=E())&&(i.table=o.first),D(o=E())&&(i.resizeSensors=o)}},hostVars:3,hostBindings:function(e,i){e&2&&(M("role",i.hostRole),N("k-grid-container",i.hostClass))},inputs:{data:"data",groups:"groups",total:"total",rowHeight:"rowHeight",stickyRowHeight:"stickyRowHeight",detailRowHeight:"detailRowHeight",take:"take",skip:"skip",columns:"columns",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",selectable:"selectable",groupable:"groupable",filterable:"filterable",rowClass:"rowClass",rowSticky:"rowSticky",loading:"loading",trackBy:"trackBy",virtualColumns:"virtualColumns",isVirtual:"isVirtual",cellLoadingTemplate:"cellLoadingTemplate",loadingTemplate:"loadingTemplate",sort:"sort",size:"size"},outputs:{contentScroll:"contentScroll",pageChange:"pageChange",scrollBottom:"scrollBottom"},features:[Y([{provide:lv,useValue:SP}]),be],decls:13,vars:38,consts:[["container",""],["table",""],["lockedContainer",""],["lockedTable",""],["class","k-grid-content-locked","role","presentation","tabindex","-1",3,"width","kendoEventsOutsideAngular","scope",4,"ngIf"],[1,"k-grid-content","k-virtual-content",3,"kendoGridResizableContainer","lockedWidth"],["role","presentation",1,"k-grid-table-wrap"],["kendoGridTable","","role","presentation",1,"k-grid-table",3,"virtualColumns","size"],["kendoGridColGroup","",3,"groups","columns","detailTemplate","sort"],["kendoGridTableBody","","role","rowgroup",3,"skipGroupDecoration","data","groups","showGroupFooters","columns","allColumns","detailTemplate","noRecordsTemplate","lockedColumnsCount","totalColumnsCount","totalColumns","skip","selectable","trackBy","filterable","rowClass","rowSticky","virtualColumns","isLoading","isVirtual","cellLoadingTemplate"],[4,"ngIf"],["role","presentation",1,"k-height-container"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content-locked",3,"kendoEventsOutsideAngular","scope"],["role","presentation","kendoGridTable","",1,"k-grid-table",3,"locked","size"],["kendoGridTableBody","","role","presentation",3,"groups","isLocked","data","noRecordsText","columns","totalColumnsCount","totalColumns","detailTemplate","showGroupFooters","skip","selectable","trackBy","filterable","rowClass","isLoading","isVirtual","cellLoadingTemplate"],["role","presentation",1,"k-width-container"]],template:function(e,i){e&1&&(_(0,E1,10,36,"div",4),g(1,"div",5,0)(3,"div",6)(4,"table",7,1),b(6,"colgroup",8)(7,"tbody",9),f(),_(8,w1,1,0,"kendo-resize-sensor",10),f(),_(9,y1,1,0,"kendo-resize-sensor",10),g(10,"div",11),b(11,"div"),f(),_(12,I1,2,2,"div",12),f()),e&2&&(l("ngIf",i.isLocked),u(),l("kendoGridResizableContainer",i.lockedLeafColumns.length>0)("lockedWidth",i.lockedWidth+1),u(3),ce("width",i.nonLockedWidth,"px"),l("virtualColumns",i.virtualColumns)("size",i.size),u(2),l("groups",i.isLocked?si(37,Rs):i.groups)("columns",i.nonLockedColumnsToRender)("detailTemplate",i.detailTemplate)("sort",i.sort),u(),l("skipGroupDecoration",i.isLocked)("data",i.data)("groups",i.groups)("showGroupFooters",i.showFooter)("columns",i.nonLockedColumnsToRender)("allColumns",i.nonLockedLeafColumns)("detailTemplate",i.detailTemplate)("noRecordsTemplate",i.noRecordsTemplate)("lockedColumnsCount",i.lockedLeafColumns.length)("totalColumnsCount",i.leafColumns.length)("totalColumns",i.columns)("skip",i.skip)("selectable",i.selectable)("trackBy",i.trackBy)("filterable",i.filterable)("rowClass",i.rowClass)("rowSticky",i.rowSticky)("virtualColumns",i.virtualColumns)("isLoading",i.loading)("isVirtual",i.isVirtual)("cellLoadingTemplate",i.cellLoadingTemplate),u(),l("ngIf",i.isLocked),u(),l("ngIf",i.isLocked||i.virtualColumns),u(2),ce("height",i.totalHeight,"px"),u(),l("ngIf",i.virtualColumns))},dependencies:[oe,i0,n0,o0,Ju,Yi,c0,yi],encapsulation:2}),t})(),J0=(()=>{class t{constructor(e,i){this.ctx=e,this.wrapper=i,this.context={},this.role="toolbar",this._size="medium",this.navigationService=this.ctx[`${this.wrapper.nativeElement.getAttribute("position")}ToolbarNavigation`]}get sizeSmallClass(){return this.size==="small"}get sizeMediumClass(){return this.size==="medium"||!this.size}set position(e){this.context.position=e}set size(e){this._size=e,e==="none"&&this.wrapper.nativeElement.classList.remove("k-toolbar-sm","k-toolbar-md")}get size(){return this._size}clickHandler(e){if(this.navigable&&ae()){let i=Dp(e.target,Ep),o=this.navigationService.navigableElements.indexOf(i);o>-1&&(this.navigationService.currentActiveIndex=o),this.navigationService.updateFocus(),e.target===this.wrapper.nativeElement&&this.navigationService.focus()}}arrowLeftListener(){this.navigable&&ae()&&this.navigationService.navigableElements.length&&(this.navigationService.currentActiveIndex--,this.navigationService.currentActiveIndex<0&&(this.navigationService.currentActiveIndex=this.navigationService.navigableElements.length-1),this.navigationService.updateFocus())}arrowRightListener(){this.navigable&&ae()&&this.navigationService.navigableElements.length&&(this.navigationService.currentActiveIndex++,this.navigationService.currentActiveIndex>=this.navigationService.navigableElements.length&&(this.navigationService.currentActiveIndex=0),this.navigationService.updateFocus())}homeKeyListener(e){this.navigable&&ae()&&this.navigationService.navigableElements.length&&(e.preventDefault(),this.navigationService.currentActiveIndex=0,this.navigationService.updateFocus())}endKeyListener(e){this.navigable&&ae()&&this.navigationService.navigableElements.length&&(e.preventDefault(),this.navigationService.currentActiveIndex=this.navigationService.navigableElements.length-1,this.navigationService.updateFocus())}get toolbarTemplateRef(){return this.ctx.grid.toolbarTemplate?this.ctx.grid.toolbarTemplate.templateRef:void 0}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(W))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-toolbar"]],hostVars:5,hostBindings:function(e,i){e&1&&O("click",function(s){return i.clickHandler(s)})("keydown.arrowleft",function(s){return i.arrowLeftListener(s)})("keydown.arrowright",function(s){return i.arrowRightListener(s)})("keydown.home",function(s){return i.homeKeyListener(s)})("keydown.end",function(s){return i.endKeyListener(s)}),e&2&&(M("role",i.role),N("k-toolbar-sm",i.sizeSmallClass)("k-toolbar-md",i.sizeMediumClass))},inputs:{position:"position",size:"size",navigable:"navigable"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){e&1&&_(0,k1,1,2,null,0),e&2&&l("ngIf",i.toolbarTemplateRef)},dependencies:[oe,Fe],encapsulation:2}),t})(),al=(()=>{class t extends gi{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=oi(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["kendo-grid-messages-base"]],inputs:{groupPanelEmpty:"groupPanelEmpty",noRecords:"noRecords",pagerLabel:"pagerLabel",pagerFirstPage:"pagerFirstPage",pagerLastPage:"pagerLastPage",pagerPreviousPage:"pagerPreviousPage",pagerNextPage:"pagerNextPage",pagerPage:"pagerPage",pagerItemsPerPage:"pagerItemsPerPage",pagerOf:"pagerOf",pagerItems:"pagerItems",pagerPageNumberInputTitle:"pagerPageNumberInputTitle",selectPage:"selectPage",filter:"filter",filterInputLabel:"filterInputLabel",filterMenuTitle:"filterMenuTitle",filterMenuOperatorsDropDownLabel:"filterMenuOperatorsDropDownLabel",filterMenuLogicDropDownLabel:"filterMenuLogicDropDownLabel",filterCellOperatorLabel:"filterCellOperatorLabel",booleanFilterCellLabel:"booleanFilterCellLabel",filterEqOperator:"filterEqOperator",filterNotEqOperator:"filterNotEqOperator",filterIsNullOperator:"filterIsNullOperator",filterIsNotNullOperator:"filterIsNotNullOperator",filterIsEmptyOperator:"filterIsEmptyOperator",filterIsNotEmptyOperator:"filterIsNotEmptyOperator",filterStartsWithOperator:"filterStartsWithOperator",filterContainsOperator:"filterContainsOperator",filterNotContainsOperator:"filterNotContainsOperator",filterEndsWithOperator:"filterEndsWithOperator",filterGteOperator:"filterGteOperator",filterGtOperator:"filterGtOperator",filterLteOperator:"filterLteOperator",filterLtOperator:"filterLtOperator",filterIsTrue:"filterIsTrue",filterIsFalse:"filterIsFalse",filterBooleanAll:"filterBooleanAll",filterAfterOrEqualOperator:"filterAfterOrEqualOperator",filterAfterOperator:"filterAfterOperator",filterBeforeOperator:"filterBeforeOperator",filterBeforeOrEqualOperator:"filterBeforeOrEqualOperator",filterFilterButton:"filterFilterButton",filterClearButton:"filterClearButton",filterAndLogic:"filterAndLogic",filterOrLogic:"filterOrLogic",loading:"loading",gridLabel:"gridLabel",columnMenu:"columnMenu",setColumnPosition:"setColumnPosition",columns:"columns",lock:"lock",unlock:"unlock",stick:"stick",unstick:"unstick",sortable:"sortable",sortAscending:"sortAscending",sortDescending:"sortDescending",autosizeThisColumn:"autosizeThisColumn",autosizeAllColumns:"autosizeAllColumns",sortedAscending:"sortedAscending",sortedDescending:"sortedDescending",sortedDefault:"sortedDefault",columnsApply:"columnsApply",columnsReset:"columnsReset",detailExpand:"detailExpand",detailCollapse:"detailCollapse",filterDateToday:"filterDateToday",filterDateToggle:"filterDateToggle",filterNumericDecrement:"filterNumericDecrement",filterNumericIncrement:"filterNumericIncrement",selectionCheckboxLabel:"selectionCheckboxLabel",selectAllCheckboxLabel:"selectAllCheckboxLabel",groupCollapse:"groupCollapse",groupExpand:"groupExpand",topToolbarLabel:"topToolbarLabel",bottomToolbarLabel:"bottomToolbarLabel",groupPanelLabel:"groupPanelLabel",dragRowHandleLabel:"dragRowHandleLabel",columnMenuFilterTabTitle:"columnMenuFilterTabTitle",columnMenuGeneralTabTitle:"columnMenuGeneralTabTitle",columnMenuColumnsTabTitle:"columnMenuColumnsTabTitle",groupChipMenuPrevious:"groupChipMenuPrevious",groupChipMenuNext:"groupChipMenuNext"},features:[z]}),t})(),IP=(()=>{class t extends al{constructor(e){super(),this.service=e}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275dir=A({type:t,selectors:[["","kendoGridLocalizedMessages",""]],features:[Y([{provide:al,useExisting:ue(()=>t)}]),z]}),t})(),TP=(()=>{class t{constructor(e){this.aggregateService=e,this.hostClasses=!0}get isStatusBarTemplate(){return this.statusBarTemplate?"":"none"}ngOnInit(){this.aggregateService.init()}get aggregates(){return this.aggregateService.aggregates}}return t.\u0275fac=function(e){return new(e||t)(c(Ks))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-status-bar"]],hostVars:6,hostBindings:function(e,i){e&2&&(ce("display",i.isStatusBarTemplate),N("k-selection-aggregates",i.hostClasses)("k-grid-selection-aggregates",i.hostClasses))},inputs:{statusBarTemplate:"statusBarTemplate"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){e&1&&_(0,O1,1,4,null,0),e&2&&l("ngIf",i.statusBarTemplate)},dependencies:[oe,Fe],encapsulation:2}),t})(),kP=t=>(n,e)=>(n[e]=new hp(t[e]),n),xP=t=>ji(t.toArray()).filter(Ls).filter(({field:n})=>!rL(n)).forEach(({field:n})=>console.warn(di.fieldName(n))),RP=(t,n,e,i)=>t.changes.pipe(pe(({group:o,emit:s})=>s&&G(o))).subscribe(o=>o.expand?n.emit(i(o)):e.emit(i(o))),OP=(t,n,e,i)=>t.changes.pipe(pe(({dataItem:o})=>G(o))).subscribe(o=>o.expand?n.emit(i(o)):e.emit(i(o))),dv=(t,n)=>yt(t,Os("k-grid-edit-cell"))&&yt(t,At("kendo-grid"))===n,MP=500,hn=(()=>{class t{constructor(e,i,o,s,r,a,d,p,m,v,S,w,L,F,R,U,te,x,de,V,_e,Ee,he,rt,Nt,Zt,Ct,we){this.supportService=e,this.selectionService=i,this.cellSelectionService=o,this.wrapper=s,this.groupInfoService=r,this.groupsService=a,this.changeNotification=d,this.detailsService=p,this.editService=m,this.filterService=v,this.pdfService=S,this.responsiveService=w,this.renderer=L,this.excelService=F,this.ngZone=R,this.scrollSyncService=U,this.domEvents=te,this.columnResizingService=x,this.changeDetectorRef=de,this.columnReorderService=V,this.columnInfoService=_e,this.navigationService=Ee,this.sortService=he,this.scrollRequestService=rt,this.localization=Nt,this.ctx=Zt,this.sizingService=Ct,this.rowReorderService=we,this.scrollable="scrollable",this.selectable=!1,this.trackBy=Qu,this.virtualColumns=!1,this.gridData=()=>this.flatData,this.filterable=!1,this.sortable=!1,this.pageable=!1,this.groupable=!1,this.autoSize=!1,this.resizable=!1,this.reorderable=!1,this.columnMenu=!1,this.hideHeader=!1,this.filterChange=new C,this.pageChange=new C,this.groupChange=new xs(this.ngZone),this.sortChange=new C,this.selectionChange=new C,this.rowReorder=new C,this.dataStateChange=new C,this.groupExpand=new C,this.groupCollapse=new C,this.detailExpand=new C,this.detailCollapse=new C,this.edit=new C,this.cancel=new C,this.save=new C,this.remove=new C,this.add=new C,this.cellClose=new C,this.cellClick=new xs(this.ngZone),this.pdfExport=new C,this.excelExport=new C,this.columnResize=new xs(this.ngZone),this.columnReorder=new C,this.columnVisibilityChange=new C,this.columnLockedChange=new C,this.columnStickyChange=new C,this.scrollBottom=new C,this.contentScroll=new C,this.columns=new Ze,this.hostClass=!0,this.footer=new Ze,this.selectionDirective=!1,this.ariaRootId=`k-${ri()}`,this.showLicenseWatermark=!1,this.columnsContainer=new Ns(()=>this.columnList.filterHierarchy(Ie=>(to()||(Ie.matchesMedia=this.matchesMedia(Ie)),Ie.isVisible))),this.view=new gu(()=>new mu(this.data,this.skip,this.hasGroupFooters)),this.shouldGenerateColumns=!0,this.notifyTimeout=null,this._sort=new Array,this._group=new Array,this._skip=0,this._data=[],this.cachedWindowWidth=0,this._rowSelected=null,this._cellSelected=null,this._rowReorderable=!1,this._navigable=[],this._size="medium",this._loading=!1,this.rtl=!1,this._rowClass=()=>null;let Dt=pt(mL);this.showLicenseWatermark=Hn(Dt),this.ctx.grid=this,this.localizationSubscription=this.localization.changes.subscribe(({rtl:Ie})=>{this.rtl=Ie,this.direction=this.rtl?"rtl":"ltr"}),this.groupInfoService.registerColumnsContainer(()=>this.columnList),this.columnInfoService.init(this.columnsContainer,()=>this.columnList),this.columnVisibilityChangeSubscription=this.columnInfoService.visibilityChange.subscribe(Ie=>{this.columnVisibilityChange.emit(new Du(Ie))}),this.columnLockedChangeSubscription=this.columnInfoService.lockedChange.subscribe(Ie=>{this.columnLockedChange.emit(new nl(Ie))}),this.columnStickyChangeSubscription=this.columnInfoService.stickyChange.subscribe(Ie=>{this.columnStickyChange.emit(new Eu(Ie))}),this.groupExpandCollapseSubscription=RP(a,this.groupExpand,this.groupCollapse,({group:Ie,groupIndex:Ki,parentGroup:Nn})=>({group:Ie,groupIndex:Ki,parentGroup:Nn})),this.detailsServiceSubscription=OP(p,this.detailExpand,this.detailCollapse,Ie=>Ie),this.filterSubscription=this.filterService.changes.subscribe(Ie=>{this.filterChange.emit(Ie)}),this.sortSubscription=this.sortService.changes.subscribe(Ie=>{this.sortChange.emit(Ie)}),this.attachStateChangesEmitter(),this.attachEditHandlers(),this.attachDomEventHandlers(),this.pdfSubscription=this.pdfService.exportClick.subscribe(this.emitPDFExportEvent.bind(this)),this.excelSubscription=this.excelService.exportClick.subscribe(this.saveAsExcel.bind(this)),this.columnsContainerChange(),this.handleColumnResize(),this.columnList=new Ps(this.columns),this.columnReorderSubscription=this.columnReorderService.changes.subscribe(this.reorder.bind(this)),this.columnRangeChangeSubscription=this.columnInfoService.columnRangeChange.subscribe(this.onColumnRangeChange.bind(this))}set data(e){this._data=e,this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=null),this.rowReorderable&&this.ngZone.runOutsideAngular(()=>{this.notifyTimeout=setTimeout(()=>{this.notifyReorderContainers()},MP)})}get data(){return this._data}get hintText(){return this.rowReorderService.getDefaultHintText(this.columnList,this.flatData)}get skip(){return this._skip}set skip(e){typeof e=="number"&&e>=0&&(this._skip=this.rowReorderService.skip=e)}set sort(e){za(e)&&(this._sort=e)}get sort(){return this._sort}set size(e){this._size=e,e==="none"&&this.wrapper.nativeElement.classList.remove("k-grid-sm","k-grid-md"),this.sizingService.changes.next(this.size)}get size(){return this._size}set group(e){za(e)&&(this._group=e)}get group(){return this._group}get showStatusBar(){return!!this.selectable}get showTopToolbar(){return this.toolbarTemplate&&["top","both"].indexOf(this.toolbarTemplate.position)>-1}get showBottomToolbar(){return this.toolbarTemplate&&["bottom","both"].indexOf(this.toolbarTemplate.position)>-1}get isLocked(){return this.lockedLeafColumns.length>0}get showTopPager(){let e=this.pageable.position;return!this.isVirtual&&this.pageable!==!1&&["top","both"].indexOf(e)>-1}get showBottomPager(){let e=this.pageable.position;return!this.isVirtual&&this.pageable!==!1&&e!=="top"}get hasPager(){return this.showTopPager||this.showBottomPager}get showGroupPanel(){return this.groupable&&this.groupable.enabled!==!1}get groupableEmptyText(){return this.groupable.emptyText}get marqueeSelection(){return this.selectionService.enableMarquee||this.cellSelectionService.enableMarquee}set rowReorderable(e){this._rowReorderable=e,e?this.rowReorderSubscription=this.rowReorderService.rowReorder.subscribe(i=>{this.ngZone.run(()=>{this.rowReorder.emit(i)})}):this.rowReorderSubscription?.unsubscribe()}get rowReorderable(){return this._rowReorderable}set navigable(e){if(typeof e=="boolean"){this._navigable=e?["table","pager","toolbar"]:[],this.ctx.navigable=e;return}else this.ctx.navigable=e.includes("table");this._navigable=e}get navigable(){return this._navigable}set navigatable(e){this.navigable=e}get navigatable(){return this.navigable}set rowClass(e){if(fe()&&typeof e!="function")throw new Error(ft.functionType("rowClass",e));this._rowClass=e}get rowClass(){return this._rowClass}set rowSticky(e){if(fe()&&G(e)&&typeof e!="function")throw new Error(ft.functionType("rowSticky",e));G(e)&&(this._rowSticky=e)}get rowSticky(){return this._rowSticky}set rowSelected(e){if(fe()&&typeof e!="function")throw new Error(ft.functionType("rowSelected",e));this._rowSelected=e}get rowSelected(){return this._rowSelected}set cellSelected(e){if(fe()&&typeof e!="function")throw new Error(ft.functionType("cellSelected",e));this._cellSelected=e}get cellSelected(){return this._cellSelected}get activeCell(){return this.navigationService.activeCell}get activeRow(){return this.navigationService.activeRow}get selection(){return this.selectable||this.selectionDirective?this.defaultSelection?this.defaultSelection.stateToArray():this.selectionDirective.stateToArray():[]}set loading(e){this._loading=e,this.rowReorderable&&this.notifyReorderContainers()}get loading(){return this._loading}get dir(){return this.direction}get sizeSmallClass(){return this.size==="small"}get sizeMediumClass(){return this.size==="medium"||!this.size}get lockedClasses(){return this.lockedLeafColumns.length>0}get virtualClasses(){return this.isVirtual}get noScrollbarClass(){return this.scrollbarWidth===0}get detailTemplate(){return this._customDetailTemplate?this._customDetailTemplate:this.detailTemplateChildren?this.detailTemplateChildren.first:void 0}set detailTemplate(e){this._customDetailTemplate=e}get cellLoadingTemplate(){return this._cellLoadingTemplate?this._customDetailTemplate:this.cellLoadingTemplateChildren?this.cellLoadingTemplateChildren.first:void 0}set cellLoadingTemplate(e){this._cellLoadingTemplate=e}get loadingTemplate(){return this._loadingTemplate?this._loadingTemplate:this.loadingTemplateChildren?this.loadingTemplateChildren.first:void 0}set loadingTemplate(e){this._loadingTemplate=e}get statusBarTemplate(){return this._statusBarTemplate?this._statusBarTemplate:this.statusBarTemplateChildren?this.statusBarTemplateChildren.first:void 0}set statusBarTemplate(e){this._statusBarTemplate=e}get noRecordsTemplate(){return this._customNoRecordsTemplate?this._customNoRecordsTemplate:this.noRecordsTemplateChildren?this.noRecordsTemplateChildren.first:void 0}set noRecordsTemplate(e){this._customNoRecordsTemplate=e}get pagerTemplate(){return this._customPagerTemplate?this._customPagerTemplate:this.pagerTemplateChildren?this.pagerTemplateChildren.first:void 0}set pagerTemplate(e){this._customPagerTemplate=e}get toolbarTemplate(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0}set toolbarTemplate(e){this._customToolbarTemplate=e}get scrollbarWidth(){return this.supportService.scrollbarWidth}get headerPadding(){if(to())return"";let e=Math.max(0,this.scrollbarWidth)+"px",i=this.rtl?0:e,o=this.rtl?e:0;return`0 ${i} 0 ${o}`}get hasGroupFooters(){return this.columnsContainer.hasGroupFooter}get showFooter(){return this.columnsContainer.hasFooter}get showGroupFooters(){return this.groupable&&this.groupable.showFooter}get ariaRowCount(){return this.totalColumnLevels+1+this.view.total+(Vs(this.filterable)?1:0)}get ariaColCount(){return this.columnsContainer.leafColumnsToRender.length}get navigation(){return this.navigationService}get isVirtual(){return this.scrollable==="virtual"}get isScrollable(){return this.scrollable!=="none"}get visibleColumns(){return this.columnsContainer.allColumns}get lockedColumns(){return this.columnsContainer.lockedColumns}get nonLockedColumns(){return this.columnsContainer.nonLockedColumns}get lockedLeafColumns(){return this.columnsContainer.lockedLeafColumns}get stickyColumns(){return this.columns.filter(e=>e.sticky)}get nonLockedLeafColumns(){return this.columnsContainer.nonLockedLeafColumns}get leafColumns(){return this.columnsContainer.leafColumns}get totalColumnLevels(){return this.columnsContainer.totalLevels}get headerColumns(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedColumns}get headerLeafColumns(){return this.virtualColumns&&!this.pdfService.exporting?this.leafViewportColumns:this.nonLockedLeafColumns}get lockedWidth(){let e=this.group.length*ja;return ji(this.lockedLeafColumns.toArray()).reduce((i,o)=>i+(o.width||0),e)}get nonLockedWidth(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return this.virtualColumns?this.leafViewportColumns.reduce((e,i)=>e+(i.width||0),0):this.columnsContainer.unlockedWidth}get selectableSettings(){if(this.selectionService)return this.selectionService.options}get columnMenuTemplate(){let e=this.columnMenuTemplates.first;return e?e.templateRef:null}get totalCount(){return this.isVirtual||!G(this.pageSize)?this.view.total:this.pageSize}getDefaultSelectors(e){return this.rowReorderService.defaultSelectors[e]}getHintSettings(e){return this.rowReorderService[e]}expandRow(e){this.toggleDetailRowLegacy(e,!0)}collapseRow(e){this.toggleDetailRowLegacy(e,!1)}expandGroup(e){this.toggleGroupRowLegacy(e,!0)}collapseGroup(e){this.toggleGroupRowLegacy(e,!1)}resetGroupsState(){this.groupsService.reset()}onDataChange(){this.autoGenerateColumns(),this.changeNotification.notify(),this.pdfService.dataChanged.emit(),G(this.defaultSelection)&&this.defaultSelection.reset(),this.initSelectionService(),this.updateNavigationMetadata()}ngOnChanges(e){ot("data",e)&&this.onDataChange(),this.lockedLeafColumns.length&&Ji(["pageSize","skip","sort","group"],e)&&this.changeNotification.notify(),Ji(["pageSize","scrollable","virtualColumns"],e)&&this.updateNavigationMetadata(),ot("virtualColumns",e)&&(this.viewportColumns=this.leafViewportColumns=null),ot("height",e,!1)&&this.renderer.setStyle(this.wrapper.nativeElement,"height",`${this.height}px`),ot("filterable",e)&&this.lockedColumns.length&&this.syncHeaderHeight(this.ngZone.onStable.asObservable().pipe(Ke(1))),Ji(["columnMenu","sortable","filterable"],e,!1)&&(this.columnMenuOptions=this.columnMenu&&Object.assign({filter:!!this.filterable,sort:!!this.sortable},this.columnMenu)),ot("scrollable",e)&&this.isScrollable&&this.ngZone.onStable.pipe(Ke(1)).subscribe(()=>this.attachScrollSync()),ot("selectable",e)&&this.shouldResetSelection(e.selectable)&&(this.defaultSelection?this.defaultSelection.reset():this.selectionDirective&&this.selectionDirective.reset()),ot("groupable",e,!0)&&(this.groupable=e.groupable.currentValue),ot("navigable",e,!0)&&(this.navigationService.enabled?this.navigationService.setActiveSections(this.navigable):this.navigable.length&&this.navigationService.init(this.navigationMetadata(),this.navigable))}ngAfterViewInit(){this.attachScrollSync(),this.attachElementEventHandlers(),this.updateNavigationMetadata(),this.applyAutoSize()}ngAfterContentChecked(){this.columnsContainer.refresh(),this.verifySettings(),this.initSelectionService()}ngAfterContentInit(){this.shouldGenerateColumns=!this.columns.length,this.autoGenerateColumns(),this.columnList=new Ps(this.columns),this.columnsChangeSubscription=this.columns.changes.subscribe(()=>this.verifySettings())}ngOnInit(){this.navigable.length&&this.navigationService.init(this.navigationMetadata(),this.navigable)}ngOnDestroy(){this.selectionSubscription&&this.selectionSubscription.unsubscribe(),this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.groupExpandCollapseSubscription&&this.groupExpandCollapseSubscription.unsubscribe(),this.detailsServiceSubscription&&this.detailsServiceSubscription.unsubscribe(),this.editServiceSubscription&&this.editServiceSubscription.unsubscribe(),this.pdfSubscription&&this.pdfSubscription.unsubscribe(),this.filterSubscription&&this.filterSubscription.unsubscribe(),this.sortSubscription&&this.sortSubscription.unsubscribe(),this.columnsChangeSubscription&&this.columnsChangeSubscription.unsubscribe(),this.excelSubscription&&this.excelSubscription.unsubscribe(),this.columnsContainerChangeSubscription&&this.columnsContainerChangeSubscription.unsubscribe(),this.scrollSyncService&&this.scrollSyncService.destroy(),this.detachElementEventHandlers&&this.detachElementEventHandlers(),this.defaultSelection&&this.defaultSelection.destroy(),this.cellClickSubscription&&this.cellClickSubscription.unsubscribe(),this.footerChangeSubscription&&this.footerChangeSubscription.unsubscribe(),this.ngZone=null,this.columnResizingSubscription&&this.columnResizingSubscription.unsubscribe(),this.columnReorderSubscription&&this.columnReorderSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe(),this.columnVisibilityChangeSubscription&&this.columnVisibilityChangeSubscription.unsubscribe(),this.columnLockedChangeSubscription&&this.columnLockedChangeSubscription.unsubscribe(),this.columnStickyChangeSubscription&&this.columnStickyChangeSubscription.unsubscribe(),this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.rowReorderSubscription&&this.rowReorderSubscription.unsubscribe(),this.columnRangeChangeSubscription.unsubscribe()}attachScrollSync(){to()||(this.header&&this.scrollSyncService.registerEmitter(this.header.nativeElement,"header"),this.footer&&(this.footerChangeSubscription=ul(this.footer).subscribe(e=>e.map(i=>i.nativeElement).filter(G).forEach(i=>{this.scrollSyncService.registerEmitter(i,"footer"),i.scrollLeft=this.wrapper.nativeElement.querySelector(".k-grid-content")?.scrollLeft}))))}get ariaLabel(){return this.localization.get("gridLabel")}messageFor(e){return this.localization.get(e)}editRow(e,i,o){if(this.editService.editRow(e,i),G(o)&&o.skipFocus)return;let s=`tr[data-kendo-grid-item-index="${e}"]`,r=o&&o.columnIndex,a=isNaN(r)?s:`${s} td[data-kendo-grid-column-index="${r}"]`;this.focusEditElement(a)}closeRow(e){this.editService.close(e)}addRow(e){if(!(e instanceof Ol)){let o=Object.keys(e).reduce(kP(e),{});e=new Ol(o)}this.editService.addRow(e),this.focusEditElement(".k-grid-add-row")}editCell(e,i,o){let s=this.columnInstance(i);this.editService.editCell(e,s,o),this.focusEditElement(".k-grid-edit-cell")}closeCell(){return!this.editService.closeCell()}cancelCell(){this.editService.cancelCell()}isEditing(){return this.editService.isEditing()}isEditingCell(){return this.editService.isEditingCell()}saveAsPDF(){this.pdfService.save(this)}drawPDF(){let e=wA();return this.pdfService.draw(this,e),e}saveAsExcel(){this.excelService.save(this)}autoFitColumn(e){this.columnResizingService.autoFit(e)}autoFitColumns(e=this.columns){let i;e instanceof Ze?i=e.toArray():i=e,this.columnResizingService.autoFit(...i)}notifyPageChange(e,i){e==="list"&&!this.isVirtual||this.pageChange.emit(i)}notifyScrollBottom(){this.scrollable!=="none"&&bt(this.scrollBottom)&&this.ngZone.run(()=>this.scrollBottom.emit({sender:this}))}focusEditElement(e){this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.ngZone.runOutsideAngular(()=>{this.focusElementSubscription=this.ngZone.onStable.asObservable().pipe(Ke(1)).subscribe(()=>{let i=this.wrapper.nativeElement;!this.setEditFocus(i.querySelector(e))&&this.isLocked&&this.setEditFocus(i.querySelector(`.k-grid-content ${e}`)),this.focusElementSubscription=null})})}focus(){return this.assertNavigable(),this.navigationService.focusCell()}focusCell(e,i){return this.assertNavigable(),this.navigationService.focusCell(e,i)}focusNextCell(e=!0){return this.assertNavigable(),this.navigationService.focusNextCell(e)}focusPrevCell(e=!0){return this.assertNavigable(),this.navigationService.focusPrevCell(e)}scrollTo(e){this.scrollRequestService.scrollTo(e,!1)}scrollToItem(e){this.scrollRequestService.scrollToItem(e)}reorderColumn(e,i,o={before:!1}){let r=Mo(this.allColumnsForLevel(e.level))[i];!r||r.isLocked&&!e.isLocked&&this.columnsContainer.nonLockedColumns.length===1||(ml(r)&&!o.before&&(r=r.childColumns.last),this.reorder({before:o.before,source:e,target:r}))}set isDetailExpanded(e){this.detailsService.userCallback=e}get isDetailExpanded(){return this.detailsService.userCallback}set isGroupExpanded(e){this.groupsService.userCallback=e,this.groupable=G(e)}get isGroupExpanded(){return this.groupsService.userCallback}handleReorderEvents(e,i){this.rowReorderService[i](e)}reorder({target:e,source:i,before:o,changeContainer:s}){this.ngZone.run(()=>{let r=Mo(this.allColumnsForLevel(i.level)),a=r.indexOf(e);e.parent&&e.parent.isSpanColumn&&(a=r.indexOf(e.parent),o&&(e=e.parent));let d=r.indexOf(i);s&&(o&&0a&&a++);let p=new il({column:i,oldIndex:d,newIndex:a});this.columnReorder.emit(p),!p.isDefaultPrevented()&&(s&&this.columnLockedChange.emit(new nl([i])),this.updateColumnIndices({columnsForLevel:r,source:i,target:e,before:o}),i.locked!==e.locked&&(i.locked=e.locked),this.columnsContainer.refresh(),this.changeDetectorRef.markForCheck())})}updateColumnIndices({columnsForLevel:e,source:i,target:o,before:s}){let r=z_(e),a=r.indexOf(i),d=0,p=0,m=1;i.isSpanColumn&&(m+=i.childColumns.length);let v=0;for(;v{s.isColumnGroup&&o.push(...s.childrenArray.sort((r,a)=>r.orderIndex-a.orderIndex))}),z_(o).map((s,r)=>s.orderIndex=r),ei.level===e)}initSelectionService(){if(!this.selectable){this.selectionService.ngOnDestroy(),this.cellSelectionService.ngOnDestroy();return}!this.selectionDirective&&!G(this.defaultSelection)&&(this.defaultSelection=new zv(this.ctx,this.changeDetectorRef));let e=this.selectable.cell,i=e?this.cellSelectionService:this.selectionService,o=e?this.selectionService:this.cellSelectionService;o.active&&(o.ngOnDestroy(),i.addSubscriptions(),o.active=!1),i.active=!0,i.init({cellSelected:e?this.cellSelected:void 0,rowSelected:e?void 0:this.rowSelected,selectable:this.selectable,view:this.view,columns:e?this.columnList.toArray():void 0}),!this.selectionDirective&&!this.selectableSettings.enabled&&this.defaultSelection.reset(),this.selectionSubscription&&this.selectionSubscription.unsubscribe(),e?this.selectionSubscription=this.cellSelectionService.changes.subscribe(s=>{this.ngZone.run(()=>this.selectionChange.emit(s))}):this.selectionSubscription=this.selectionService.changes.subscribe(s=>{this.ngZone.run(()=>this.selectionChange.emit(s))})}setEditFocus(e){if(e)return this.navigationService.tryFocus(e)}columnInstance(e){let i;if(typeof e=="number"?i=this.columnsContainer.lockedLeafColumns.toArray().concat(this.columnsContainer.nonLockedLeafColumns.toArray())[e]:typeof e=="string"?i=this.columnList.filter(o=>o.field===e)[0]:i=e,!i&&fe())throw new Error(di.invalidColumn(e));return i}verifySettings(){if(fe()){let e=this.lockedLeafColumns.length||this.columnMenu&&this.columnMenu.lock,i=this.stickyColumns.length||this.columnMenu&&this.columnMenu.stick;if(e&&this.detailTemplate)throw new Error(ft.incompatibleFeatures("detail template","locked columns"));if(i&&this.detailTemplate)throw new Error(ft.incompatibleFeatures("detail template","sticky columns"));if(this.lockedLeafColumns.length&&!this.nonLockedLeafColumns.length&&console.warn(ft.nonLockedColumnPresent),(e||this.virtualColumns)&&ji(this.columnList.toArray()).filter(o=>!o.width&&!Ao(o)).length&&console.warn(di.requiredWidth(e?"Locked":"Virtual")),e&&!this.isScrollable&&console.warn(di.requiredScroll("Locked")),i&&!this.isScrollable&&console.warn(di.requiredScroll("Sticky")),this.virtualColumns&&!this.isScrollable&&console.warn(di.requiredScroll("Virtual")),this.columnList.filter(Ao).filter(o=>!o.hasChildren).length)throw new Error(di.groupColumnContent);if(this.columnList.filter(o=>o.locked&&o.parent&&!o.parent.isLocked).length)throw new Error(di.lockedParent);if((this.rowHeight||this.detailRowHeight)&&!this.isVirtual&&console.warn(ft.rowHeightVirtual),!this.rowHeight&&this.isVirtual&&console.warn(ft.rowHeightVirtual),!this.detailRowHeight&&this.isVirtual&&this.detailTemplate&&console.warn(ft.rowHeightVirtual),i&&ji(this.columnList.toArray()).filter(o=>!o.width&&!Ao(o)).length&&console.warn(di.requiredWidth("Sticky")),i&&this.virtualColumns)throw new Error(ft.incompatibleFeatures("sticky columns","column virtualization"));if(this.rowSticky&&this.scrollable==="virtual")throw new Error(ft.incompatibleFeatures("sticky rows",'row virtualization (scrollable="virtual")'));if(this.rowSticky&&this.groupable)throw new Error(ft.incompatibleFeatures("sticky rows","grouping"));xP(this.columnList)}}autoGenerateColumns(){this.shouldGenerateColumns&&!this.columns.length&&this.view.length&&this.columns.reset(Object.keys(this.view.at(0)).map(e=>{let i=new bi;return i.field=e,i}))}attachStateChangesEmitter(){this.stateChangeSubscription=_t(this.pageChange.pipe(Ve(e=>({filter:this.filter,group:this.group,skip:e.skip,sort:this.sort,take:e.take}))),this.sortChange.pipe(Ve(e=>({filter:this.filter,group:this.group,skip:this.skip,sort:e,take:this.pageSize}))),this.groupChange.pipe(Ve(e=>({filter:this.filter,group:e,skip:this.skip,sort:this.sort,take:this.pageSize}))),this.filterChange.pipe(Ve(e=>({filter:e,group:this.group,skip:0,sort:this.sort,take:this.pageSize})))).subscribe(e=>{this.closeCell(),this.cancelCell(),this.dataStateChange.emit(e)})}attachEditHandlers(){this.editService&&(this.editServiceSubscription=this.editService.changes.subscribe(this.emitCRUDEvent.bind(this)))}emitCRUDEvent(e){let{action:i,rowIndex:o,formGroup:s}=e,r=this.view.at(o-this.skip);switch(i!=="add"&&!r&&(r=s.value),this.closeCell(),Object.assign(e,{dataItem:r,sender:this}),i){case"add":this.add.emit(e);break;case"cancel":this.cancel.emit(e);break;case"edit":this.edit.emit(e);break;case"remove":this.remove.emit(e);break;case"save":this.save.emit(e);break;case"cellClose":this.cellClose.emit(e);break;default:break}}attachDomEventHandlers(){this.cellClickSubscription=this.domEvents.cellClick.subscribe(e=>{this.cellClick.emit(Object.assign({sender:this},e))})}attachElementEventHandlers(){if(to())return;let e=this.wrapper.nativeElement,i=this.ariaRoot.nativeElement;this.ngZone.runOutsideAngular(()=>{let o=this.resizeCheck.bind(this),s=this.renderer.listen("window","resize",o),r=this.renderer.listen("window","orientationchange",o),a=this.renderer.listen("document","click",L=>{let F=document.activeElement;this.editService.shouldCloseCell()&&!yt(L.target,Os("k-animation-container k-grid-ignore-click"))&&!(F&&(yt(F,Os("k-animation-container"))||dv(F,this.wrapper.nativeElement)))&&this.editService.closeCell(L)}),d=this.renderer.listen("window","blur",L=>{let F=document.activeElement;F&&!(At("input")(F)&&F.type==="file"&&dv(F,this.wrapper.nativeElement))&&this.editService.closeCell(L),this.domEvents.windowBlur.emit(L)}),p=this.renderer.listen(e,"click",L=>{this.domEvents.click.emit(L)}),m=this.renderer.listen(e,"keydown",L=>{this.domEvents.keydown.emit(L)}),v=!1,S=this.renderer.listen(i,"focusin",L=>{this.domEvents.focus.emit(L),v||(this.domEvents.focusIn.emit(L),v=!0)}),w=this.renderer.listen(i,"focusout",L=>{let F=L.relatedTarget||document.activeElement;!yt(F,U=>U===i)&&(this.domEvents.focusOut.emit(L),v=!1)});this.detachElementEventHandlers=()=>{s(),r(),a(),d(),p(),m(),S(),w()}})}matchesMedia(e){return this.responsiveService.matchesMedia(e.media)}resizeCheck(){if(window.innerWidth!==this.cachedWindowWidth){this.cachedWindowWidth=window.innerWidth;let e=!1;this.columnList.filterHierarchy(i=>{let o=this.matchesMedia(i);return i.matchesMedia!==o&&(e=!0,i.matchesMedia=o),i.isVisible}),e&&this.ngZone.run(()=>{this.changeDetectorRef.markForCheck()})}}emitPDFExportEvent(){let e=new vu;this.pdfExport.emit(e),e.isDefaultPrevented()||this.saveAsPDF()}syncHeaderHeight(e){return e.pipe(pe(()=>G(this.lockedHeader))).subscribe(()=>Hv(this.lockedHeader.nativeElement.children[0],this.header.nativeElement.children[0]))}columnsContainerChange(){this.columnsContainerChangeSubscription=this.syncHeaderHeight(this.columnsContainer.changes.pipe(pe(()=>this.lockedColumns.length>0),xt(()=>this.ngZone.onStable.asObservable().pipe(Ke(1)))))}handleColumnResize(){let e=this.columnResizingService.changes;this.columnResizingSubscription=e.pipe($e(i=>{i.type==="start"?this.renderer.addClass(this.wrapper.nativeElement,"k-grid-column-resizing"):i.type==="end"&&this.renderer.removeClass(this.wrapper.nativeElement,"k-grid-column-resizing")}),pe(i=>i.type==="start"),xt(()=>e.pipe(qt(e.pipe(pe(i=>i.type==="triggerAutoFit"))),pe(i=>i.type==="end")))).subscribe(this.notifyResize.bind(this))}notifyResize(e){let i=e.resizedColumns.filter(o=>ti(o.column.resizable)&&!o.column.isColumnGroup).map(o=>({column:o.column,newWidth:o.column.width,oldWidth:o.oldWidth}));this.columnResize.emit(i)}assertNavigable(){if(fe()&&!this.navigationService.enabled)throw new Error(ft.focusNavigable)}navigationMetadata(){let e=this.isVirtual,i=this.pageSize,o=e?this.view.total:i,s=this.editService.hasNewItem?1:0,r=Vs(this.filterable)?1:0,a=this.totalColumnLevels+1+r+s;return new bu(o,a,e,this.hasPager,G(this.detailTemplate),this.wrapper,this.virtualColumns,this.columnsContainer)}updateNavigationMetadata(){this.navigationService.metadata=this.navigationMetadata()}applyAutoSize(){let e=this.columns.filter(i=>this.autoSize?i.autoSize!==!1:i.autoSize);e.length>0&&this.ngZone.onStable.pipe(Ke(1)).subscribe(i=>this.autoFitColumns(e))}onColumnRangeChange(e){let i=this.viewportColumns=[],o=this.columnsContainer.nonLockedLeafColumns.toArray().slice(e.start,e.end+1);for(let s=0;s0){let s=o[0],r=e.offset,a=i[0],d=0;for(;a!==s;)r-=a.isColumnGroup?0:a.width,d++,a=i[d];if(r>0){let p=this.columnsContainer.totalLevels,m;for(let v=0;v<=p;v++){let S=v!s.isColumnGroup)}toggleDetailRowLegacy(e,i){let o=typeof this.isDetailExpanded=="function";if(fe()&&o)throw new Error(ft.expandCollapseMethods("expandRow","collapseRow","kendoGridDetailsExpandBy","isDetailExpanded"));!fe()&&o||this.detailsService.isExpanded(e,null)!==i&&this.detailsService.toggleRow(e,null)}toggleGroupRowLegacy(e,i){let o=typeof this.isGroupExpanded=="function";if(fe()&&o)throw new Error(ft.expandCollapseMethods("expandGroup","collapseGroup","kendoGridExpandGroupBy","isGroupExpanded"));!fe()&&o||this.groupsService.isExpanded({groupIndex:e})!==i&&(this.groupsService.toggleRow({index:e},!1),this.ctx.groupBindingDirective&&this.ctx.groupBindingDirective[`group${i?"Expand":"Collapse"}`]({groupIndex:e}))}shouldResetSelection(e){let i=e.previousValue;if(!i)return!1;let o=e.currentValue;return!o||o.enabled===!1?!0:i.cell!==o.cell}notifyReorderContainers(){this.dragTargetContainer?.notify(),this.dropTargetContainer?.notify()}get flatData(){return za(this.data)?this.data:this.data.data}}return t.\u0275fac=function(e){return new(e||t)(c(du),c(Fo),c(Ya),c(W),c(Go),c(oo),c(el),c(Ms),c(Ri),c(It),c(_u),c(B_),c(X),c(j_),c(re),c(tl),c(no),c(Gs),c(ve),c(Su),c(Yt),c(Lt),c(Vo),c(qa),c(ie),c(H),c(Mn),c(wu))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid"]],contentQueries:function(e,i,o){if(e&1&&(B(o,ct,4),B(o,Nv,4),B(o,Zv,4),B(o,Xv,4),B(o,e0,4),B(o,Bv,4),B(o,Kv,4),B(o,Wv,4),B(o,Bu,4)),e&2){let s;D(s=E())&&(i.columns=s),D(s=E())&&(i.detailTemplateChildren=s),D(s=E())&&(i.cellLoadingTemplateChildren=s),D(s=E())&&(i.loadingTemplateChildren=s),D(s=E())&&(i.statusBarTemplateChildren=s),D(s=E())&&(i.noRecordsTemplateChildren=s),D(s=E())&&(i.pagerTemplateChildren=s),D(s=E())&&(i.toolbarTemplateChildren=s),D(s=E())&&(i.columnMenuTemplates=s)}},viewQuery:function(e,i){if(e&1&&(j(M1,5),j(A1,5),j(L1,7),j(Tr,5),j(kr,5),j(N1,5)),e&2){let o;D(o=E())&&(i.lockedHeader=o.first),D(o=E())&&(i.header=o.first),D(o=E())&&(i.ariaRoot=o.first),D(o=E())&&(i.dragTargetContainer=o.first),D(o=E())&&(i.dropTargetContainer=o.first),D(o=E())&&(i.footer=o)}},hostVars:13,hostBindings:function(e,i){e&2&&(M("dir",i.dir),N("k-grid",i.hostClass)("k-grid-sm",i.sizeSmallClass)("k-grid-md",i.sizeMediumClass)("k-grid-lockedcolumns",i.lockedClasses)("k-grid-virtual",i.virtualClasses)("k-grid-no-scrollbar",i.noScrollbarClass))},inputs:{data:"data",pageSize:"pageSize",height:"height",rowHeight:"rowHeight",detailRowHeight:"detailRowHeight",skip:"skip",scrollable:"scrollable",selectable:"selectable",sort:"sort",size:"size",trackBy:"trackBy",filter:"filter",group:"group",virtualColumns:"virtualColumns",filterable:"filterable",sortable:"sortable",pageable:"pageable",groupable:"groupable",rowReorderable:"rowReorderable",navigable:"navigable",navigatable:"navigatable",autoSize:"autoSize",rowClass:"rowClass",rowSticky:"rowSticky",rowSelected:"rowSelected",cellSelected:"cellSelected",resizable:"resizable",reorderable:"reorderable",loading:"loading",columnMenu:"columnMenu",hideHeader:"hideHeader",isDetailExpanded:"isDetailExpanded",isGroupExpanded:"isGroupExpanded"},outputs:{filterChange:"filterChange",pageChange:"pageChange",groupChange:"groupChange",sortChange:"sortChange",selectionChange:"selectionChange",rowReorder:"rowReorder",dataStateChange:"dataStateChange",groupExpand:"groupExpand",groupCollapse:"groupCollapse",detailExpand:"detailExpand",detailCollapse:"detailCollapse",edit:"edit",cancel:"cancel",save:"save",remove:"remove",add:"add",cellClose:"cellClose",cellClick:"cellClick",pdfExport:"pdfExport",excelExport:"excelExport",columnResize:"columnResize",columnReorder:"columnReorder",columnVisibilityChange:"columnVisibilityChange",columnLockedChange:"columnLockedChange",columnStickyChange:"columnStickyChange",scrollBottom:"scrollBottom",contentScroll:"contentScroll"},exportAs:["kendoGrid"],features:[Y([du,ie,Yt,Fo,Ya,Ms,oo,Go,el,Ri,_u,$v,{provide:cn,useValue:jA},{provide:ht,useValue:"kendo.grid"},It,B_,Di,j_,tl,$u,Hi,no,Gs,$s,qu,gl,fl,Su,Lt,Rn,ni,Ks,qa,Vo,H,Mn,wu,yu]),be],decls:16,vars:22,consts:()=>{let n;n=$localize`:kendo.grid.groupPanelEmpty|The label visible in the Grid group panel when it is empty:Drag a column header and drop it here to group by that column`;let e;e=$localize`:kendo.grid.noRecords|The label visible in the Grid when there are no records:No records available.`;let i;i=$localize`:kendo.grid.pagerFirstPage|The label for the first page button in Grid pager:Go to the first page`;let o;o=$localize`:kendo.grid.pagerPreviousPage|The label for the previous page button in Grid pager:Go to the previous page`;let s;s=$localize`:kendo.grid.pagerNextPage|The label for the next page button in Grid pager:Go to the next page`;let r;r=$localize`:kendo.grid.pagerLastPage|The label for the last page button in Grid pager:Go to the last page`;let a;a=$localize`:kendo.grid.pagerPage|The label before the current page number in the Grid pager:Page`;let d;d=$localize`:kendo.grid.pagerOf|The label before the total pages number in the Grid pager:of`;let p;p=$localize`:kendo.grid.pagerItems|The label after the total pages number in the Grid pager:items`;let m;m=$localize`:kendo.grid.pagerPageNumberInputTitle|The label for the pager input in the Grid pager:Page Number`;let v;v=$localize`:kendo.grid.pagerItemsPerPage|The label for the page size chooser in the Grid pager:items per page`;let S;S=$localize`:kendo.grid.filter|The label of the filter cell or icon:Filter`;let w;w=$localize`:kendo.grid.filterEqOperator|The text of the equal filter operator:Is equal to`;let L;L=$localize`:kendo.grid.filterNotEqOperator|The text of the not equal filter operator:Is not equal to`;let F;F=$localize`:kendo.grid.filterIsNullOperator|The text of the is null filter operator:Is null`;let R;R=$localize`:kendo.grid.filterIsNotNullOperator|The text of the is not null filter operator:Is not null`;let U;U=$localize`:kendo.grid.filterIsEmptyOperator|The text of the is empty filter operator:Is empty`;let te;te=$localize`:kendo.grid.filterIsNotEmptyOperator|The text of the is not empty filter operator:Is not empty`;let x;x=$localize`:kendo.grid.filterStartsWithOperator|The text of the starts with filter operator:Starts with`;let de;de=$localize`:kendo.grid.filterContainsOperator|The text of the contains filter operator:Contains`;let V;V=$localize`:kendo.grid.filterNotContainsOperator|The text of the does not contain filter operator:Does not contain`;let _e;_e=$localize`:kendo.grid.filterEndsWithOperator|The text of the ends with filter operator:Ends with`;let Ee;Ee=$localize`:kendo.grid.filterGteOperator|The text of the greater than or equal filter operator:Is greater than or equal to`;let he;he=$localize`:kendo.grid.filterGtOperator|The text of the greater than filter operator:Is greater than`;let rt;rt=$localize`:kendo.grid.filterLteOperator|The text of the less than or equal filter operator:Is less than or equal to`;let Nt;Nt=$localize`:kendo.grid.filterLtOperator|The text of the less than filter operator:Is less than`;let Zt;Zt=$localize`:kendo.grid.filterIsTrue|The text of the IsTrue boolean filter option:Is True`;let Ct;Ct=$localize`:kendo.grid.filterIsFalse|The text of the IsFalse boolean filter option:Is False`;let we;we=$localize`:kendo.grid.filterBooleanAll|The text of the (All) boolean filter option:(All)`;let Dt;Dt=$localize`:kendo.grid.filterAfterOrEqualOperator|The text of the after or equal date filter operator:Is after or equal to`;let Ie;Ie=$localize`:kendo.grid.filterAfterOperator|The text of the after date filter operator:Is after`;let Ki;Ki=$localize`:kendo.grid.filterBeforeOperator|The text of the before date filter operator:Is before`;let Nn;Nn=$localize`:kendo.grid.filterBeforeOrEqualOperator|The text of the before or equal date filter operator:Is before or equal to`;let Ho;Ho=$localize`:kendo.grid.filterFilterButton|The text of the filter button:Filter`;let Pn;Pn=$localize`:kendo.grid.filterClearButton|The text of the clear filter button:Clear`;let so;so=$localize`:kendo.grid.filterAndLogic|The text of the And filter logic:And`;let Zs;Zs=$localize`:kendo.grid.filterOrLogic|The text of the Or filter logic:Or`;let Ko;Ko=$localize`:kendo.grid.loading|The loading text:Loading`;let kt;kt=$localize`:kendo.grid.gridLabel|The Grid aria-label:Data table`;let Z;Z=$localize`:kendo.grid.columns|The text shown in the column menu for the columns item:Columns`;let Oe;Oe=$localize`:kendo.grid.lock|The text shown in the column menu for the lock item:Lock`;let Ge;Ge=$localize`:kendo.grid.unlock|The text shown in the column menu for the unlock item:Unlock`;let ui;ui=$localize`:kendo.grid.setColumnPosition|The text shown in the column menu for the set column position item:Set Column Position`;let Oi;Oi=$localize`:kendo.grid.stick|The text shown in the column menu for the stick item:Stick`;let Be;Be=$localize`:kendo.grid.unstick|The text shown in the column menu for the unstick item:Unstick`;let $t;$t=$localize`:kendo.grid.sortable|The label of the sort icon:Sortable`;let $o;$o=$localize`:kendo.grid.sortAscending|The text shown in the column menu for the sort ascending item:Sort Ascending`;let $i;$i=$localize`:kendo.grid.sortDescending|The text shown in the column menu for the sort descending item:Sort Descending`;let Wi;Wi=$localize`:kendo.grid.autosizeAllColumns|The text shown in the column menu for the autosize all columns item:Autosize All Columns`;let Wo;Wo=$localize`:kendo.grid.autosizeThisColumn|The text shown in the column menu for the autosize this column item:Autosize This Column`;let qo;qo=$localize`:kendo.grid.sortedDefault|The status announcement when a column is no longer sorted:Not Sorted`;let Qo;Qo=$localize`:kendo.grid.sortedAscending|The title of the Group Chip indicating the ascending sorting order of the groups:Sorted Ascending`;let Jo;Jo=$localize`:kendo.grid.sortedDescending|The title of the Group Chip indicating the descending sorting order of the groups:Sorted Descending`;let mn;mn=$localize`:kendo.grid.columnsApply|The text shown in the column menu or column chooser for the columns apply button:Apply`;let Fn;Fn=$localize`:kendo.grid.columnsReset|The text shown in the column menu or column chooser for the columns reset button:Reset`;let hi;hi=$localize`:kendo.grid.detailExpand|The title of the expand icon of detail rows.:Expand Details`;let qi;qi=$localize`:kendo.grid.detailCollapse|The title of the collapse icon of detail rows.:Collapse Details`;let gn;gn=$localize`:kendo.grid.filterDateToday|The text of the Today button of the Date filter.:TODAY`;let ro;ro=$localize`:kendo.grid.filterDateToggle|The title of the Toggle button of the Date filter.:Toggle Calendar`;let ph;ph=$localize`:kendo.grid.filterNumericDecrement|The title of the Decrement button of the Numeric filter.:Decrement`;let mh;mh=$localize`:kendo.grid.filterNumericIncrement|The title of the Increment button of the Numeric filter.:Increment`;let gh;gh=$localize`:kendo.grid.selectionCheckboxLabel|The labels of the checkbox column checkboxes.:Select Row`;let fh;fh=$localize`:kendo.grid.selectAllCheckboxLabel|The label of the checkbox column select all checkbox.:Select All Rows`;let _h;_h=$localize`:kendo.grid.groupCollapse|The text of the title and aria-label attributes applied to the collapse icon of group rows.:Collapse Group`;let vh;vh=$localize`:kendo.grid.groupExpand|The text of the title and aria-label attributes applied to the expand icon of group rows.:Expand Group`;let Ch;Ch=$localize`:kendo.grid.selectPage|The text of the title and aria-label attributes applied to the page chooser in the Grid Pager:Select page`;let Sh;Sh=$localize`:kendo.grid.topToolbarLabel|The label for the Grid top toolbar:Top toolbar`;let bh;bh=$localize`:kendo.grid.bottomToolbarLabel|The label for the Grid bottom toolbar:Bottom toolbar`;let Dh;Dh=$localize`:kendo.grid.groupPanelLabel|The label for the Grid group panel toolbar:Group panel`;let Eh;Eh=$localize`:kendo.grid.dragRowHandleLabel|The label for the Grid drag row handle:Drag row`;let wh;wh=$localize`:kendo.grid.columnMenuFilterTabTitle|The title for the column menu Filter tab:Filter`;let yh;yh=$localize`:kendo.grid.columnMenuGeneralTabTitle|The title for the column menu General tab:General`;let Ih;Ih=$localize`:kendo.grid.columnMenuColumnsTabTitle|The title for the column menu Columns tab:Columns`;let Th;Th=$localize`:kendo.grid.groupChipMenuPrevious|The text for the Group pane Chip Menu Move as previous item:Move as previous`;let kh;kh=$localize`:kendo.grid.groupChipMenuNext|The text for the Group pane Chip Menu Move as next item:Move as next`;let xh;xh=$localize`:kendo.grid.pagerLabel|The label for the Grid pager:${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Rh;Rh=$localize`:kendo.grid.filterInputLabel|The label of the filter row and menu inputs:${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Oh;Oh=$localize`:kendo.grid.filterMenuTitle|The title of the filter menu icon:${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Mh;Mh=$localize`:kendo.grid.filterMenuOperatorsDropDownLabel|The label of the filter menu operators dropdown:${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ah;Ah=$localize`:kendo.grid.filterCellOperatorLabel|The label of the filter cell operators dropdown:${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Lh;Lh=$localize`:kendo.grid.booleanFilterCellLabel|The label of the boolean filter cell dropdown:${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Nh;Nh=$localize`:kendo.grid.filterMenuLogicDropDownLabel|The label of the filter menu logic dropdown:${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ph;return Ph=$localize`:kendo.grid.columnMenu|The title of the column menu icon:${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[["ariaRoot",""],["defaultHint",""],["header",""],["lockedHeader",""],["footer",""],["pagerLabel",xh,"filterInputLabel",Rh,"filterMenuTitle",Oh,"filterMenuOperatorsDropDownLabel",Mh,"filterCellOperatorLabel",Ah,"booleanFilterCellLabel",Lh,"filterMenuLogicDropDownLabel",Nh,"columnMenu",Ph],["kendoGridLocalizedMessages","","groupPanelEmpty",n,"noRecords",e,"pagerFirstPage",i,"pagerPreviousPage",o,"pagerNextPage",s,"pagerLastPage",r,"pagerPage",a,"pagerOf",d,"pagerItems",p,"pagerPageNumberInputTitle",m,"pagerItemsPerPage",v,"filter",S,"filterEqOperator",w,"filterNotEqOperator",L,"filterIsNullOperator",F,"filterIsNotNullOperator",R,"filterIsEmptyOperator",U,"filterIsNotEmptyOperator",te,"filterStartsWithOperator",x,"filterContainsOperator",de,"filterNotContainsOperator",V,"filterEndsWithOperator",_e,"filterGteOperator",Ee,"filterGtOperator",he,"filterLteOperator",rt,"filterLtOperator",Nt,"filterIsTrue",Zt,"filterIsFalse",Ct,"filterBooleanAll",we,"filterAfterOrEqualOperator",Dt,"filterAfterOperator",Ie,"filterBeforeOperator",Ki,"filterBeforeOrEqualOperator",Nn,"filterFilterButton",Ho,"filterClearButton",Pn,"filterAndLogic",so,"filterOrLogic",Zs,"loading",Ko,"gridLabel",kt,"columns",Z,"lock",Oe,"unlock",Ge,"setColumnPosition",ui,"stick",Oi,"unstick",Be,"sortable",$t,"sortAscending",$o,"sortDescending",$i,"autosizeAllColumns",Wi,"autosizeThisColumn",Wo,"sortedDefault",qo,"sortedAscending",Qo,"sortedDescending",Jo,"columnsApply",mn,"columnsReset",Fn,"detailExpand",hi,"detailCollapse",qi,"filterDateToday",gn,"filterDateToggle",ro,"filterNumericDecrement",ph,"filterNumericIncrement",mh,"selectionCheckboxLabel",gh,"selectAllCheckboxLabel",fh,"groupCollapse",_h,"groupExpand",vh,"selectPage",Ch,"topToolbarLabel",Sh,"bottomToolbarLabel",bh,"groupPanelLabel",Dh,"dragRowHandleLabel",Eh,"columnMenuFilterTabTitle",wh,"columnMenuGeneralTabTitle",yh,"columnMenuColumnsTabTitle",Ih,"groupChipMenuPrevious",Th,"groupChipMenuNext",kh,6,"pagerLabel","filterInputLabel","filterMenuTitle","filterMenuOperatorsDropDownLabel","filterCellOperatorLabel","booleanFilterCellLabel","filterMenuLogicDropDownLabel","columnMenu"],["class","k-toolbar k-grid-toolbar","position","top",3,"size","navigable",4,"ngIf"],["class","k-grid-pager-top k-pager",3,"tabindex","template","pageSize","total","skip","size","options","pageChange",4,"ngIf"],["role","toolbar",3,"navigable","text","groups","change",4,"ngIf"],["role","grid",1,"k-grid-aria-root",3,"id"],[4,"ngIf"],["kendoGridLoading","",3,"loadingTemplate",4,"ngIf"],[3,"statusBarTemplate",4,"ngIf"],["class","k-pager",3,"tabindex","template","pageSize","total","skip","size","options","pageChange",4,"ngIf"],["class","k-toolbar k-grid-toolbar k-grid-toolbar-bottom","position","bottom",3,"size","navigable",4,"ngIf"],["kendoWatermarkOverlay","",4,"ngIf"],["position","top",1,"k-toolbar","k-grid-toolbar",3,"size","navigable"],[1,"k-grid-pager-top","k-pager",3,"pageChange","tabindex","template","pageSize","total","skip","size","options"],["role","toolbar",3,"change","navigable","text","groups"],["class","k-grid-header","role","presentation",3,"padding",4,"ngIf"],["kendoDragTargetContainer","","kendoDropTargetContainer","","mode","manual","kendoDraggable","","kendoGridSelectionMarquee","",3,"onPress","onDragStart","onDrag","onDragEnter","onDragLeave","onDragEnd","onDrop","pageChange","scrollBottom","contentScroll","dragDisabled","dropDisabled","dragTargetFilter","dropTargetFilter","dragHandle","hint","dragData","data","rowHeight","detailRowHeight","total","take","groups","groupable","skip","trackBy","columns","selectable","filterable","detailTemplate","noRecordsTemplate","size","rowClass","rowSticky","loading","isVirtual","cellLoadingTemplate","loadingTemplate","virtualColumns","enableDrag","sort"],["class","k-grid-footer",3,"padding",4,"ngIf"],["role","presentation",1,"k-grid-header"],["role","presentation","class","k-grid-header-locked",3,"width",4,"ngIf"],["role","presentation","data-scrollable","",1,"k-grid-header-wrap",3,"kendoGridResizableContainer","lockedWidth"],["role","presentation","kendoGridTable","",1,"k-grid-header-table",3,"virtualColumns","size"],["kendoGridColGroup","",3,"columns","groups","detailTemplate"],["kendoGridHeader","","role","rowgroup",3,"resizable","scrollable","columns","totalColumnLevels","sort","filter","filterable","groupable","reorderable","groups","sortable","columnMenu","columnMenuTemplate","lockedColumnsCount","totalColumnsCount","totalColumns","detailTemplate","tabIndex"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation",1,"k-grid-header-locked"],["role","presentation","kendoGridTable","",1,"k-grid-header-table",3,"locked","size"],["kendoGridHeader","","role","rowgroup",3,"resizable","scrollable","columns","totalColumnLevels","sort","groups","filter","filterable","groupable","reorderable","sortable","columnMenu","columnMenuTemplate","totalColumnsCount","totalColumns","detailTemplate","tabIndex"],["role","presentation",1,"k-width-container"],[1,"k-grid-footer"],["class","k-grid-footer-locked",3,"width",4,"ngIf"],["data-scrollable","",1,"k-grid-footer-wrap",3,"kendoGridResizableContainer","lockedWidth"],["role","presentation","kendoGridTable","",1,"k-grid-footer-table",3,"size"],["kendoGridFooter","",3,"logicalRowIndex","scrollable","groups","columns","lockedColumnsCount","detailTemplate","totalColumns"],[1,"k-grid-footer-locked"],["role","presentation","kendoGridTable","",1,"k-grid-footer-table",3,"locked","size"],["kendoGridFooter","",3,"scrollable","groups","columns","detailTemplate","logicalRowIndex","totalColumns"],["kendoGridTable","","role","presentation",3,"size"],["kendoGridHeader","",3,"resizable","scrollable","columns","totalColumnLevels","totalColumns","groups","groupable","reorderable","sort","sortable","filter","filterable","columnMenu","columnMenuTemplate","detailTemplate","tabIndex",4,"ngIf"],["kendoGridTableBody","","kendoDraggable","","kendoGridSelectionMarquee","",3,"isLoading","groups","data","skip","columns","selectable","filterable","noRecordsTemplate","detailTemplate","showGroupFooters","trackBy","rowClass","enableDrag"],["kendoGridFooter","",3,"scrollable","logicalRowIndex","groups","columns","detailTemplate","totalColumns",4,"ngIf"],["kendoGridHeader","",3,"resizable","scrollable","columns","totalColumnLevels","totalColumns","groups","groupable","reorderable","sort","sortable","filter","filterable","columnMenu","columnMenuTemplate","detailTemplate","tabIndex"],["kendoGridFooter","",3,"scrollable","logicalRowIndex","groups","columns","detailTemplate","totalColumns"],["kendoGridLoading","",3,"loadingTemplate"],[3,"statusBarTemplate"],[1,"k-pager",3,"pageChange","tabindex","template","pageSize","total","skip","size","options"],["position","bottom",1,"k-toolbar","k-grid-toolbar","k-grid-toolbar-bottom",3,"size","navigable"],["innerCssClass","k-drag-status",3,"name","svgIcon"],["kendoWatermarkOverlay",""]]},template:function(e,i){e&1&&(q(0,6),Zh(1,5),Q(),_(2,F1,1,4,"kendo-grid-toolbar",7)(3,G1,1,8,"kendo-pager",8)(4,V1,1,5,"kendo-grid-group-panel",9),g(5,"div",10,0),_(7,K1,4,35,"ng-container",11)(8,q1,6,21,"ng-container",11)(9,Q1,1,1,"div",12),f(),_(10,J1,1,1,"kendo-grid-status-bar",13)(11,Y1,1,8,"kendo-pager",14)(12,Z1,1,4,"kendo-grid-toolbar",15)(13,X1,2,3,"ng-template",null,1,ut)(15,eA,1,0,"div",16)),e&2&&(Xh("Page navigation, page {currentPage} of {totalPages}")("{columnName} Filter")("{columnName} Filter Menu")("{columnName} Filter Operators")("Filter cell operators for {columnName}")("Boolean filter cell for {columnName}")("{columnName} Filter Logic")("{columnName} Column Menu"),ep(1),u(2),l("ngIf",i.showTopToolbar),u(),l("ngIf",i.showTopPager),u(),l("ngIf",i.showGroupPanel),u(),l("id",i.ariaRootId),M("aria-label",i.ariaLabel)("aria-rowcount",i.ariaRowCount)("aria-colcount",i.ariaColCount),u(2),l("ngIf",i.isScrollable),u(),l("ngIf",!i.isScrollable),u(),l("ngIf",i.loading),u(),l("ngIf",i.showStatusBar),u(),l("ngIf",i.showBottomPager),u(),l("ngIf",i.showBottomToolbar),u(3),l("ngIf",i.showLicenseWatermark))},dependencies:[oe,rN,i0,n0,o0,cN,Ju,Li,Je,c0,mP,gP,W0,Tr,kr,Bn,yP,J0,IP,pL,TP],encapsulation:2}),t})(),Y0=(()=>{class t{constructor(e,i,o,s){this.grid=e,this.changeDetector=i,this.localDataChangesService=o,this.rowReorderService=s,this.state={skip:0},this.originalData=[],o&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(this.rebind.bind(this)))}set skip(e){G(e)||(e=0),this.grid.skip=this.state.skip=e,this.rowReorderService&&(this.rowReorderService.skip=e)}set sort(e){this.grid.sort=this.state.sort=e}set filter(e){this.grid.filter=this.state.filter=e}set pageSize(e){this.grid.pageSize=this.state.take=e}set group(e){this.grid.group=this.state.group=e}set data(e){this.originalData=e||[],this.localDataChangesService&&(this.localDataChangesService.data=e),this.dataChanged=!0}ngOnInit(){this.applyState(this.state),this.stateChangeSubscription=this.grid.dataStateChange.subscribe(this.onStateChange.bind(this)),this.rowReorderService&&(this.rowReorderSubscription=this.grid.rowReorder.subscribe(this.onRowReorder.bind(this)))}ngOnDestroy(){this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe(),this.rowReorderSubscription&&this.rowReorderSubscription.unsubscribe()}ngOnChanges(e){Ji(["pageSize","skip","sort","group","filter"],e)&&this.rebind()}ngDoCheck(){this.dataChanged&&this.updateGridData()}onStateChange(e){this.applyState(e),this.rebind()}onRowReorder(e){this.rowReorderService.reorderRows(e,this.originalData),this.rebind()}rebind(){this.data=this.originalData,this.updateGridData(),this.notifyDataChange()}notifyDataChange(){this.grid.onDataChange(),this.changeDetector&&this.changeDetector.markForCheck()}process(e){return wr(this.originalData,e)}applyState({skip:e,take:i,sort:o,group:s,filter:r}){this.skip=e,this.pageSize=i,this.sort=o,this.group=s,this.filter=r}updateGridData(){this.grid.data=this.process(this.state),this.dataChanged=!1}}return t.\u0275fac=function(e){return new(e||t)(c(hn),c(ve),c(Hi),c(wu))},t.\u0275dir=A({type:t,selectors:[["","kendoGridBinding",""]],inputs:{skip:"skip",sort:"sort",filter:"filter",pageSize:"pageSize",group:"group",data:[0,"kendoGridBinding","data"]},exportAs:["kendoGridBinding"],features:[be]}),t})(),AP=(()=>{class t extends zv{constructor(e,i){super(e,i),this.ctx=e}ngOnInit(){this.ctx.grid.selectable===!1&&(this.ctx.grid.selectable=!0),this.ctx.grid.selectionDirective=this}ngOnDestroy(){super.destroy()}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(ve))},t.\u0275dir=A({type:t,selectors:[["","kendoGridSelectBy",""]],features:[z]}),t})(),LP=(()=>{class t{constructor(e){this.grid=e,this.expandedDetailKeysChange=new C,this.expandedDetailKeys=[],this.initiallyExpanded=!1,this.expandedState=new Set,this.subscriptions=new Se,this.grid.isDetailExpanded=this.isExpanded.bind(this),this.subscriptions.add(_t(this.grid.detailExpand.pipe(Ve(i=>at({expand:!0},i))),this.grid.detailCollapse.pipe(Ve(i=>at({expand:!1},i)))).subscribe(this.toggleState.bind(this)))}get expandDetailsKey(){return this._expandBy}set expandDetailsKey(e){Fu(e)?this._expandBy=ur(e):this._expandBy=e}get expandDetailBy(){return this.expandDetailsKey}set expandDetailBy(e){this.expandDetailsKey=e}ngOnChanges(e){G(e.expandedDetailKeys)&&this.lastExpandedState!==this.expandedDetailKeys&&(this.expandedState=new Set(this.expandedDetailKeys))}ngOnDestroy(){this.subscriptions.unsubscribe()}get keyGetter(){return this._expandBy||ur(void 0)}isExpanded(e){let i=this.keyGetter(e.dataItem),o=this.expandedState.has(i);return this.initiallyExpanded?!o:o}toggleState(e){let i=this.keyGetter(e.dataItem);!!this.initiallyExpanded!==e.expand?this.expandedState.add(i):this.expandedState.delete(i),this.notifyChange()}notifyChange(){this.lastExpandedState=Array.from(this.expandedState),this.expandedDetailKeysChange.emit(this.lastExpandedState)}}return t.\u0275fac=function(e){return new(e||t)(c(hn))},t.\u0275dir=A({type:t,selectors:[["","kendoGridExpandDetailsBy",""]],inputs:{expandDetailsKey:[0,"kendoGridExpandDetailsBy","expandDetailsKey"],expandDetailBy:"expandDetailBy",expandedDetailKeys:"expandedDetailKeys",initiallyExpanded:"initiallyExpanded"},outputs:{expandedDetailKeysChange:"expandedDetailKeysChange"},exportAs:["kendoGridExpandDetailsBy"],features:[be]}),t})(),NP=t=>{let n=[];for(;t;)n.push({field:t.group.field,value:t.group.value}),t=t.parentGroup;return n},PP=t=>({field:t.group.field,value:t.group.value,parentGroupKeys:NP(t.parentGroup)}),FP=(()=>{class t{constructor(e){this.grid=e,this.expandedGroupKeysChange=new C,this.groupsInitiallyExpanded=!1,this.subscriptions=new Se,this.grid.isGroupExpanded=this.isExpanded.bind(this),this.subscriptions.add(_t(this.grid.groupExpand.pipe(Ve(i=>at({expand:!0},i))),this.grid.groupCollapse.pipe(Ve(i=>at({expand:!1},i)))).subscribe(this.toggleState.bind(this)))}get expandGroupBy(){return this._expandGroupBy}set expandGroupBy(e){typeof e=="function"&&(this._expandGroupBy=e)}get expandedGroupKeys(){return this._expandedGroupKeys}set expandedGroupKeys(e){this._expandedGroupKeys=(e||[]).slice()}ngOnDestroy(){this.subscriptions.unsubscribe()}get keyGetter(){return this.expandGroupBy||PP}isExpanded(e){return this.getItemIndex(e)>-1?!this.groupsInitiallyExpanded:this.groupsInitiallyExpanded}getItemIndex(e){return this.expandGroupBy?this.expandedGroupKeys.indexOf(this.keyGetter(e)):this.expandedGroupKeys.findIndex(i=>{let o=0,s=e.parentGroup;for(;G(s);){if(!G(i.parentGroupKeys)||!G(i.parentGroupKeys[o])||s.group.value!==i.parentGroupKeys[o].value||s.group.field!==i.parentGroupKeys[o].field)return!1;s=s.parentGroup,o++}return i.value===e.group.value&&i.field===e.group.field})}toggleState(e){let i=this.keyGetter(e);if(!!this.groupsInitiallyExpanded!==e.expand)this.expandedGroupKeys.push(i);else{let o=this.expandedGroupKeys.findIndex(s=>this.expandGroupBy?s===i:i.parentGroupKeys?.length===0?s.value===i.value:JSON.stringify(s)===JSON.stringify(i));this.expandedGroupKeys.splice(o,1)}this.expandedGroupKeysChange.emit(this.expandedGroupKeys.slice())}}return t.\u0275fac=function(e){return new(e||t)(c(hn))},t.\u0275dir=A({type:t,selectors:[["","kendoGridExpandGroupBy",""]],inputs:{expandGroupBy:[0,"kendoGridExpandGroupBy","expandGroupBy"],expandedGroupKeys:"expandedGroupKeys",groupsInitiallyExpanded:"groupsInitiallyExpanded"},outputs:{expandedGroupKeysChange:"expandedGroupKeysChange"},exportAs:["kendoGridExpandGroupBy"]}),t})(),GP=(()=>{class t extends al{constructor(e){super(),this.service=e}get override(){return!0}}return t.\u0275fac=function(e){return new(e||t)(c(ie))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-messages"]],features:[Y([{provide:al,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),VP=Cl({filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterEqOperator:"eq",filterNotEqOperator:"neq",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"}),zP=(()=>{class t extends Bo{constructor(e,i,o,s){super(e),this.ctx=o,this.showOperators=!0,this.size="medium",this.defaultOperators=VP(this.ctx.localization),this.column=i,this.subs=s.changes.subscribe(r=>this.size=r)}set valueField(e){this._valueField=e}get valueField(){return this._valueField?this._valueField:this.column.field}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:"contains"}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(c(It),c(bi),c(H),c(Mn))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-autocomplete-filter-cell"]],inputs:{showOperators:"showOperators",column:"column",filter:"filter",data:"data",valueField:"valueField"},features:[z],decls:2,vars:8,consts:[[3,"column","filter","operators","showOperators"],["kendoFilterInput","",3,"data","size","valueField","value"]],template:function(e,i){e&1&&(g(0,"kendo-grid-filter-wrapper-cell",0),b(1,"kendo-autocomplete",1),f()),e&2&&(l("column",i.column)("filter",i.filter)("operators",i.operators)("showOperators",i.showOperators),u(),l("data",i.data)("size",i.size)("valueField",i.valueField)("value",i.currentFilter==null?null:i.currentFilter.value))},dependencies:[rm,dn,Ys],encapsulation:2}),t})();var pn=(()=>{class t{static exports(){return[bi,Ov,Lv,wv,Nv,ii,Ju]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,Qt,hr,Ni,Qt]}),t})(),UP=(()=>{class t extends xe{constructor(e){super("contains",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-contains-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),BP=(()=>{class t extends xe{constructor(e){super("doesnotcontain",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-not-contains-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),jP=(()=>{class t extends xe{constructor(e){super("endswith",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-endswith-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),HP=(()=>{class t extends xe{constructor(e){super("eq",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-eq-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),KP=(()=>{class t extends xe{constructor(e){super("isempty",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-isempty-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),$P=(()=>{class t extends xe{constructor(e){super("isnotempty",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-isnotempty-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),WP=(()=>{class t extends xe{constructor(e){super("isnotnull",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-isnotnull-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),qP=(()=>{class t extends xe{constructor(e){super("isnull",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-isnull-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),QP=(()=>{class t extends xe{constructor(e){super("neq",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-neq-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),JP=(()=>{class t extends xe{constructor(e){super("startswith",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-startswith-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),YP=(()=>{class t extends xe{constructor(e){super("gt",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-gt-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),ZP=(()=>{class t extends xe{constructor(e){super("gte",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-gte-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),XP=(()=>{class t extends xe{constructor(e){super("lt",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-lt-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),eF=(()=>{class t extends xe{constructor(e){super("lte",e)}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-lte-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),tF=(()=>{class t extends xe{constructor(e){super("after",e)}toJSON(){return{text:this.text,value:"gt"}}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-after-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),iF=(()=>{class t extends xe{constructor(e){super("after-eq",e)}toJSON(){return{text:this.text,value:"gte"}}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-after-eq-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),nF=(()=>{class t extends xe{constructor(e){super("before-eq",e)}toJSON(){return{text:this.text,value:"lte"}}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-before-eq-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),oF=(()=>{class t extends xe{constructor(e){super("before",e)}toJSON(){return{text:this.text,value:"lt"}}}return t.\u0275fac=function(e){return new(e||t)(c(H))},t.\u0275cmp=k({type:t,selectors:[["kendo-filter-before-operator"]],features:[Y([{provide:xe,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),sF=[lh,UP,BP,jP,HP,KP,$P,WP,qP,QP,JP,YP,ZP,XP,eF,tF,iF,nF,oF],rF=[Me,dr,cr,ql,Wl,Cr,Ca,$n,pn,fi];var Po=(()=>{class t{static exports(){return[...sF]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[rF,Me,dr,cr,ql,Wl,Cr,Ca,$n,pn,fi]}),t})();var dh=(()=>{class t{static exports(){return[G0,F0,xv,lh,ch,L0,zP,N0,P0,Po.exports()]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Po,Po]}),t})(),aF=[Me,Cr,kp,fi,am,Pi,pn];var Z0=(()=>{class t{static exports(){return[W0,j0,H0,Mu,$0,Ru,Ou,Kv,B0,K0]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[aF]}),t})();var X0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({}),t})();var Sl=(()=>{class t{static exports(){return[Iv,Tv,kv]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,pn,X0,Jp,$n]}),t})();var bl=(()=>{class t{static exports(){return[eh,Rv,E0,y0,T0,Qs,Tu,Po.exports()]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Po,Po]}),t})(),lF=(()=>{class t{constructor(e,i,o,s,r,a){this.ctx=e,this.columnInfoService=i,this.popupService=o,this.ngZone=s,this.renderer=r,this.changeDetector=a,this.columnsIcon=gr,this.autoSync=!1,this.allowHideAll=!0}get columns(){return this.columnInfoService.leafNamedColumns}ngOnDestroy(){this.close()}toggle(e,i){if(this.popupRef)this.close();else{let o=this.ctx.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:e.element,content:i,positionMode:"absolute",anchorAlign:{vertical:"bottom",horizontal:o},popupAlign:{vertical:"top",horizontal:o}});let s=this.popupRef?.popupElement;if(s){let r=`k-${ri()}`,a=s.querySelector(".k-popup");this.ngZone.runOutsideAngular(()=>{this.escapeListener=this.renderer.listen(a,"keydown",d=>{d.keyCode===T.Escape&&this.close(!0)})}),this.renderer.setAttribute(s,"dir",this.ctx.localization.rtl?"rtl":"ltr"),this.renderer.setAttribute(a,"id",r),this.renderer.setAttribute(a,"role","dialog"),this.popupId=r}if(!ae())return;this.ngZone.runOutsideAngular(()=>this.closeClick=this.renderer.listen("document","click",({target:r})=>{yt(r,a=>a===this.popupRef.popupElement||a===e.element)||this.ngZone.run(()=>{this.close()})}))}}onApply(e){this.close(!0),e.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e))}onChange(e){this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e)}onShiftTab(e){e.target.matches(".k-column-list-item")&&(e.preventDefault(),this.columnList.resetButton.nativeElement.focus())}close(e=!1){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.changeDetector.markForCheck(),this.escapeListener&&this.escapeListener()),this.detachClose(),e&&this.anchor.element.focus()}detachClose(){this.closeClick&&(this.closeClick(),this.closeClick=null)}}return t.\u0275fac=function(e){return new(e||t)(c(H),c(Yt),c(ho),c(re),c(X),c(ve))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-column-chooser"]],viewQuery:function(e,i){if(e&1&&(j(Pu,5),j(tA,5)),e&2){let o;D(o=E())&&(i.anchor=o.first),D(o=E())&&(i.columnList=o.first)}},inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll"},decls:4,vars:5,consts:[["anchor",""],["template",""],["columnList",""],["kendoButton","","type","button","fillMode","flat","icon","columns",3,"click","svgIcon"],[1,"k-column-chooser-title"],[3,"apply","columnChange","keydown.shift.tab","columns","ariaLabel","isLast","applyText","resetText","autoSync","allowHideAll"]],template:function(e,i){if(e&1){let o=K();g(0,"button",3,0),O("click",function(){y(o);let r=me(1),a=me(3);return I(i.toggle(r,a))}),f(),_(2,iA,4,8,"ng-template",null,1,ut)}e&2&&(l("svgIcon",i.columnsIcon),M("title",i.ctx.localization.get("columns"))("aria-haspopup","dialog")("aria-expanded",!!i.popupRef)("aria-controls",i.popupRef?i.popupId:void 0))},dependencies:[vt,ih],encapsulation:2}),t})();var uh=(()=>{class t{static exports(){return[lF,sl,un,Js,R0,oh,sh,rh,nh,Bu,O0,ah,xu,M0,A0]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,bl,fi,Hd]}),t})();var cF=[Me,Sl,dh,bl,pn,X0,uh],eC=(()=>{class t{static exports(){return[Ev,z0]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[cF]}),t})(),dF=(()=>{class t extends ct{constructor(e,i){super(e,i),this.parent=e,this.isCheckboxColumn=!0}get templateRef(){return this.template?this.template.templateRef:void 0}}return t.\u0275fac=function(e){return new(e||t)(c(ct,13),c(ni,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-checkbox-column"]],contentQueries:function(e,i,o){if(e&1&&B(o,js,5),e&2){let s;D(s=E())&&(i.template=s.first)}},inputs:{showSelectAll:"showSelectAll"},features:[Y([{provide:ct,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),uF=(()=>{class t extends vt{constructor(e,i,o,s,r,a){super(o,s,null,r.localization,a),this.editService=e,this.cellContext=i,this.commandClass=!0}get visible(){return this.isEdited?"none":""}onClick(e){e.preventDefault(),this.editService.beginEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return t.\u0275fac=function(e){return new(e||t)(c(Ri),c(cn),c(W),c(X),c(H),c(re))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridEditCommand",""]],hostVars:4,hostBindings:function(e,i){e&1&&O("click",function(s){return i.onClick(s)}),e&2&&(ce("display",i.visible),N("k-grid-edit-command",i.commandClass))},features:[z],attrs:nA,ngContentSelectors:An,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(e,i){e&1&&(Le(),_(0,oA,1,2,"kendo-icon-wrapper",0)(1,sA,2,1,"span",1)(2,rA,1,1,"span",2),g(3,"span",3),Ne(4),f()),e&2&&(l("ngIf",i.icon||i.svgIcon),u(),l("ngIf",i.imageUrl),u(),l("ngIf",i.iconClass))},dependencies:[st,oe,Je],encapsulation:2}),t})(),hF=(()=>{class t extends vt{constructor(e,i,o,s,r,a){super(o,s,null,r.localization,a),this.editService=e,this.cellContext=i,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}onClick(e){e.preventDefault(),this.isEdited&&this.editService.endEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return t.\u0275fac=function(e){return new(e||t)(c(Ri),c(cn),c(W),c(X),c(H),c(re))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridCancelCommand",""]],hostVars:4,hostBindings:function(e,i){e&1&&O("click",function(s){return i.onClick(s)}),e&2&&(ce("display",i.visible),N("k-grid-cancel-command",i.commandClass))},features:[z],attrs:aA,ngContentSelectors:An,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(e,i){e&1&&(Le(),_(0,lA,1,2,"kendo-icon-wrapper",0)(1,cA,2,1,"span",1)(2,dA,1,1,"span",2),g(3,"span",3),Ne(4),f()),e&2&&(l("ngIf",i.icon||i.svgIcon),u(),l("ngIf",i.imageUrl),u(),l("ngIf",i.iconClass))},dependencies:[st,oe,Je],encapsulation:2}),t})(),pF=(()=>{class t extends vt{constructor(e,i,o,s,r,a){super(o,s,null,r.localization,a),this.editService=e,this.cellContext=i,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}onClick(e){e.preventDefault(),this.isEdited&&this.editService.save(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return t.\u0275fac=function(e){return new(e||t)(c(Ri),c(cn),c(W),c(X),c(H),c(re))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridSaveCommand",""]],hostVars:4,hostBindings:function(e,i){e&1&&O("click",function(s){return i.onClick(s)}),e&2&&(ce("display",i.visible),N("k-grid-save-command",i.commandClass))},features:[z],attrs:uA,ngContentSelectors:An,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(e,i){e&1&&(Le(),_(0,hA,1,2,"kendo-icon-wrapper",0)(1,pA,2,1,"span",1)(2,mA,1,1,"span",2),g(3,"span",3),Ne(4),f()),e&2&&(l("ngIf",i.icon||i.svgIcon),u(),l("ngIf",i.imageUrl),u(),l("ngIf",i.iconClass))},dependencies:[st,oe,Je],encapsulation:2}),t})(),mF=(()=>{class t extends vt{constructor(e,i,o,s,r,a){super(o,s,null,r.localization,a),this.editService=e,this.cellContext=i,this.commandClass=!0}get visible(){return this.isEdited?"none":""}onClick(e){e.preventDefault(),this.editService.remove(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return t.\u0275fac=function(e){return new(e||t)(c(Ri),c(cn),c(W),c(X),c(H),c(re))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridRemoveCommand",""]],hostVars:4,hostBindings:function(e,i){e&1&&O("click",function(s){return i.onClick(s)}),e&2&&(ce("display",i.visible),N("k-grid-remove-command",i.commandClass))},features:[z],attrs:gA,ngContentSelectors:An,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(e,i){e&1&&(Le(),_(0,fA,1,2,"kendo-icon-wrapper",0)(1,_A,2,1,"span",1)(2,vA,1,1,"span",2),g(3,"span",3),Ne(4),f()),e&2&&(l("ngIf",i.icon||i.svgIcon),u(),l("ngIf",i.imageUrl),u(),l("ngIf",i.iconClass))},dependencies:[st,oe,Je],encapsulation:2}),t})(),gF=(()=>{class t extends vt{constructor(e,i,o,s,r){super(i,o,null,s.localization,r),this.editService=e}onClick(e){e.preventDefault(),this.editService.beginAdd()}get commandClass(){return!0}}return t.\u0275fac=function(e){return new(e||t)(c(Ri),c(W),c(X),c(H),c(re))},t.\u0275cmp=k({type:t,selectors:[["","kendoGridAddCommand",""]],hostVars:2,hostBindings:function(e,i){e&1&&O("click",function(s){return i.onClick(s)}),e&2&&N("k-grid-add-command",i.commandClass)},features:[z],attrs:CA,ngContentSelectors:An,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(e,i){e&1&&(Le(),_(0,SA,1,2,"kendo-icon-wrapper",0)(1,bA,2,1,"span",1)(2,DA,1,1,"span",2),g(3,"span",3),Ne(4),f()),e&2&&(l("ngIf",i.icon||i.svgIcon),u(),l("ngIf",i.imageUrl),u(),l("ngIf",i.iconClass))},dependencies:[st,oe,Je],encapsulation:2}),t})(),fF=(()=>{class t extends ct{constructor(e,i){super(e,i),this.parent=e,this.isRowReorderColumn=!0}}return t.\u0275fac=function(e){return new(e||t)(c(ct,13),c(ni,8))},t.\u0275cmp=k({type:t,selectors:[["kendo-grid-rowreorder-column"]],inputs:{dragHandleIcon:"dragHandleIcon",dragHandleSVGIcon:"dragHandleSVGIcon"},features:[Y([{provide:ct,useExisting:ue(()=>t)}]),z],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();var _F=[Me,dr,cr,pn,Sl,Xp,Ca,Pi],tC=(()=>{class t{static exports(){return[a0,dF,l0,js,Bv,Hu,uF,hF,pF,mF,gF,Zv,Xv,fF]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[_F]}),t})();var vF=[Me,pn],iC=(()=>{class t{static exports(){return[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[vF]}),t})(),ll=class{constructor(n,e){this.grid=n,this.localDataChangesService=e}create(n){this.hasLocalData&&this.grid.skip?this.localDataChangesService.data.splice(this.grid.skip,0,n):this.data.unshift(n),this.dataChanged()}update(n){}remove(n){let e=this.data;for(let i=0;i{class t{constructor(e,i){this.grid=e,this.localDataChangesService=i,this.subscriptions=new Se,this.defaultEditService=this.createDefaultService()}set editService(e){this.userEditService=e}get editService(){return this.userEditService||this.defaultEditService}ngOnInit(){this.subscriptions.add(this.grid.add.subscribe(this.addHandler.bind(this))),this.subscriptions.add(this.grid.remove.subscribe(this.removeHandler.bind(this))),this.subscriptions.add(this.grid.cancel.subscribe(this.cancelHandler.bind(this))),this.subscriptions.add(this.grid.save.subscribe(this.saveHandler.bind(this))),this.subscriptions.add(this.grid.dataStateChange.subscribe(this.onStateChange.bind(this)))}ngOnDestroy(){this.subscriptions.unsubscribe()}createDefaultService(){return new ll(this.grid,this.localDataChangesService)}addHandler(){this.grid.addRow(this.createModel({isNew:!0}))}saveHandler(e){let i=this.saveModel(e);i&&(e.isNew?this.editService.create(i):this.editService.update(i)),this.grid.closeRow(e.rowIndex)}cancelHandler({rowIndex:e}){this.closeEditor(e)}removeHandler({dataItem:e}){let i=o=>{o&&this.editService.remove(e)};if(this.removeConfirmation){let o=this.removeConfirmation(e);o instanceof Promise?o.then(i):o instanceof ao?o.pipe(Ke(1)).subscribe(i):i(o)}else i(!0)}onStateChange(){this.closeEditor()}closeEditor(e){this.grid.closeRow(e)}}return t.\u0275fac=function(e){return new(e||t)(c(hn),c(Hi))},t.\u0275dir=A({type:t,selectors:[["","kendoGridEditingDirectiveBase",""]],inputs:{editService:"editService",removeConfirmation:"removeConfirmation"}}),t})(),Nu=class extends ll{update(n){this.dataChanged()}},oC=(()=>{class t extends nC{ngOnInit(){super.ngOnInit(),this.subscriptions.add(this.grid.edit.subscribe(this.editHandler.bind(this)))}createDefaultService(){return new Nu(this.grid,this.localDataChangesService)}addHandler(){this.closeEditor(),super.addHandler()}editHandler(e){this.closeEditor(),this.rowIndex=e.rowIndex,this.grid.editRow(e.rowIndex,this.createModel(e))}saveHandler(e){super.saveHandler(e),this.clean()}closeEditor(e=this.rowIndex){super.closeEditor(e),this.clean()}clean(){delete this.rowIndex}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=oi(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["","kendoGridRowEditingDirectiveBase",""]],features:[z]}),t})(),CF=(()=>{class t extends oC{constructor(e,i){super(e,i),this.grid=e,this.localDataChangesService=i}editHandler(e){super.editHandler(e),this.dataItem=e.dataItem,this.originalValues={},this.editService.assignValues(this.originalValues,this.dataItem)}closeEditor(e){this.dataItem&&this.editService.assignValues(this.dataItem,this.originalValues),super.closeEditor(e)}createModel(e){if(e.isNew)return this.createNewItem()}saveModel(e){return e.dataItem}clean(){super.clean(),delete this.dataItem}}return t.\u0275fac=function(e){return new(e||t)(c(hn),c(Hi))},t.\u0275dir=A({type:t,selectors:[["","kendoGridTemplateEditing",""]],inputs:{createNewItem:[0,"kendoGridTemplateEditing","createNewItem"]},features:[z]}),t})(),hh=t=>{if(t.markAsTouched(),t.hasOwnProperty("controls")){let n=t.controls;for(let e in n)n.hasOwnProperty(e)&&hh(n[e])}},SF=(()=>{class t extends oC{constructor(e,i){super(e,i),this.grid=e,this.localDataChangesService=i}createModel(e){return this.createFormGroup(e)}saveModel({dataItem:e,formGroup:i,isNew:o}){if(!(!i.dirty&&!o)){if(i.valid)return this.editService.assignValues(e,i.value),e;hh(i)}}}return t.\u0275fac=function(e){return new(e||t)(c(hn),c(Hi))},t.\u0275dir=A({type:t,selectors:[["","kendoGridReactiveEditing",""]],inputs:{createFormGroup:[0,"kendoGridReactiveEditing","createFormGroup"]},features:[z]}),t})(),bF=(()=>{class t extends nC{constructor(e,i,o){super(e,i),this.grid=e,this.localDataChangesService=i,this.cdr=o}createModel(e){return this.createFormGroup(e)}saveModel({dataItem:e,formGroup:i,isNew:o}){if(!(!i.dirty&&!o)){if(i.valid)return this.editService.assignValues(e,i.value),e;hh(i)}}ngOnInit(){super.ngOnInit(),this.subscriptions.add(this.grid.cellClick.subscribe(this.cellClickHandler.bind(this))),this.subscriptions.add(this.grid.cellClose.subscribe(this.cellCloseHandler.bind(this)))}removeHandler(e){super.removeHandler(e),this.grid.cancelCell()}cellClickHandler(e){!e.isEdited&&e.type!=="contextmenu"&&(this.grid.editCell(e.rowIndex,e.columnIndex,this.createFormGroup(e)),this.cdr.markForCheck())}cellCloseHandler(e){let{formGroup:i,dataItem:o}=e;if(!i.valid)e.preventDefault();else if(i.dirty){if(e.originalEvent&&e.originalEvent.keyCode===T.Escape)return;this.editService.assignValues(o,i.value),this.editService.update(o)}}}return t.\u0275fac=function(e){return new(e||t)(c(hn),c(Hi),c(ve))},t.\u0275dir=A({type:t,selectors:[["","kendoGridInCellEditing",""]],inputs:{createFormGroup:[0,"kendoGridInCellEditing","createFormGroup"]},features:[z]}),t})(),DF=t=>t&&t.length&&t[0].field&&t[0].items,uv=t=>G(t)&&t.length>0,hv=(t,n)=>wr(t,n).data,EF=(t,n)=>e=>e.field!==n.field&&!t.some(i=>i.field===e.field),pv=(t,n)=>{let e=[];return{group:t.split("_").reduce((i,o)=>{let s=parseInt(o,10);return i.items?(e.push(i),i.items[s]):za(i)?i[s]:i},n),parents:e}},wF=(t,n)=>{let e=n.map(i=>({field:i.field,operator:"eq",value:i.value}));return ss(t,{filters:e,logic:"and"})},cl=(t,n=!1)=>t.reduce((e,i)=>{if(i.skipHeader||e++,i.items){let o=cl(i.items,n);n&&o&&!i.hideFooter&&e++,e+=o}return e},0),mv=t=>!G(t)||!t.length,sC=(t,n,e,i=!1)=>{if(!G(e))return t;let o=[];for(let s=0,r=t.length;s0;if(n&&(n--,p&&n>=p)){n-=p;continue}if(!m||p){let v=[],S=!0;if(m||e--,e){if(DF(d)){let w=sC(d,n,e,i);v.push(...w),e-=cl(w,i)}else v.push(...d.slice(n,Math.min(n+e,d.length))),e-=v.length;e&&i&&(S=!1,e--),n=0}o.push({aggregates:a.aggregates,field:a.field,hideFooter:S,items:v,offset:s,skipHeader:m,value:a.value})}}return o},yF=t=>{let n=0;for(;t;)t.skipHeader&&n++,t=t.items&&t.items[0]||null;return n},IF=(()=>{class t extends Y0{constructor(e,i,o,s){super(o.grid,e,i),this.groupsService=s,this.gridSubs=new Se,o.groupBindingDirective=this}set kendoGridGroupBinding(e){this.groups=null,this.grid.resetGroupsState(),this.data=e}set data(e){this.originalData=e||[],this.dataChanged=!0}set sort(e){let i=mv(this.state.sort),o=mv(e),s=this.state.sort!==e&&!(i&&o);this.grid.sort=this.state.sort=e,s&&(this.groups=null,this.grid.resetGroupsState())}set filter(e){v0(this.state.filter,e)&&(this.state.filter=e,this.grid.filter=zs(e),this.groups=null,this.grid.resetGroupsState())}set group(e){let i=uv(this.state.group)||uv(e),o=this.state.group!==e&&i;this.grid.group=this.state.group=e,o&&(this.groups=null,this.grid.resetGroupsState(),this.skip=0)}ngOnInit(){super.ngOnInit(),this.gridSubs.add(this.grid.groupExpand.subscribe(this.groupExpand.bind(this))),this.gridSubs.add(this.grid.groupCollapse.subscribe(this.groupCollapse.bind(this)))}ngAfterContentInit(){if(fe()&&this.grid.isGroupExpanded)throw new Error(ft.groupBindingDirectives)}ngOnDestroy(){this.gridSubs.unsubscribe()}toggleAll(e){this.skip=0,this.grid.scrollTo({row:0,column:0}),this.groups.forEach((i,o)=>{let s=this.groupsService.isExpanded({group:i,groupIndex:o.toString(),parentGroup:void 0});(e&&!s||!e&&s)&&(this.grid.groupsService.toggleRow({type:"group",data:i,index:o.toString(),level:0,parentGroup:void 0}),this[e?"groupExpand":"groupCollapse"]({groupIndex:o.toString()}))})}collapseAll(){this.toggleAll(!1)}expandAll(){this.toggleAll(!0)}groupExpand({groupIndex:e}){let{group:i,parents:o}=pv(e,this.groups);if(i){if(this.groupsService.expandChildren(e),!i.items.length){let s=this.state.group.filter(EF(o,i)),r=wF(this.originalData,o.concat(i));i.items=hv(r,{filter:this.state.filter,group:s,sort:this.state.sort})}this.grid.data=this.dataResult(this.state.skip,this.state.take)}}groupCollapse({groupIndex:e}){let{group:i}=pv(e,this.groups);if(i)i.items=[];else return;this.grid.data=this.dataResult(this.state.skip,this.state.take)}process(e){if(e.group&&e.group.length){let i=this.processGroups(e);return this.grid.skip-=yF(i.data[0]),i}else this.groups=null;return super.process(e)}processGroups(e){return(!this.groups||!this.groups.length)&&(this.groups=hv(this.originalData,{filter:e.filter,group:e.group,sort:e.sort})),this.dataResult(e.skip,e.take)}dataResult(e,i){let o=this.grid.showGroupFooters;return{data:sC(this.groups,e,i,o),total:cl(this.groups,o)}}applyState({skip:e,take:i,sort:o,group:s,filter:r}){this.skip=e,this.state.take=i,this.sort=o,this.group=s,this.filter=r}}return t.\u0275fac=function(e){return new(e||t)(c(ve),c(Hi),c(H),c(oo))},t.\u0275dir=A({type:t,selectors:[["","kendoGridGroupBinding",""]],inputs:{kendoGridGroupBinding:"kendoGridGroupBinding",sort:"sort",filter:"filter",group:"group"},exportAs:["kendoGridGroupBinding"],features:[z]}),t})(),TF=(()=>{class t{constructor(e,i){this.host=e,this.ctx=i}get element(){return this.host.nativeElement}get toolbarPosition(){return ae()&&this.host.nativeElement.closest(".k-toolbar")?.getAttribute("position")}ngAfterViewInit(){!ae()||!this.toolbarPosition||(this.ctx[`${this.toolbarPosition}ToolbarNavigation`]?.navigableElements.push(this.element),this.ctx[`${this.toolbarPosition}ToolbarNavigation`]?.notify())}ngOnDestroy(){if(!ae()||!this.toolbarPosition)return;let e=this.ctx[`${this.toolbarPosition}ToolbarNavigation`].navigableElements;this.ctx[`${this.toolbarPosition}ToolbarNavigation`].navigableElements=e.filter(i=>i!==this.element),this.ctx[`${this.toolbarPosition}ToolbarNavigation`].notify()}}return t.\u0275fac=function(e){return new(e||t)(c(W),c(H))},t.\u0275dir=A({type:t,selectors:[["","kendoGridToolbarFocusable",""],["","kendoGridAddCommand",""],["","kendoGridCancelCommand",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridExcelCommand",""],["","kendoGridPDFCommand",""]]}),t})(),kF=(()=>{class t{constructor(e,i,o,s){this.host=e,this.clipboardService=i,this.renderer=o,this.zone=s,this.clipboard=new C,this._target="selection",this._clipboardSettings={wholeRow:!1,copyHeaders:!1,copy:!0,cut:!0,paste:!0},this.subs=new Se,this.onClipboard=(r,a)=>{if(!this.clipboardSettings[r]||!this.inGrid(a))return;let p=(Array.isArray(this.host.data)?this.host.data:this.host.data.data).flatMap(zu),m=this.host.selection,v=this.host.selectionDirective,S=this.clipboardTarget,w=this.host.selectable?.cell||v.isCellSelectionMode,L=[];switch(S){case"activeCell":{let x=at({},this.host.activeCell);L=x&&[{dataItem:x.dataItem,dataRowIndex:x.dataRowIndex,colIndex:x.colIndex}]}break;case"selection":{let x=v.selectionKey;L=p.flatMap((de,V)=>{if(x){let _e=typeof x=="string"?de[x]:x({index:V+this.host.skip,dataItem:de});return w?m.some(Ee=>Ee.itemKey===_e)?[{dataItem:de,dataRowIndex:V+this.host.skip}]:[]:m.indexOf(_e)>-1?[{dataItem:de,dataRowIndex:V+this.host.skip}]:[]}return w?m.some(_e=>_e.itemKey===V+this.host.skip)?[{dataItem:de,dataRowIndex:V+this.host.skip}]:[]:m.indexOf(V+this.host.skip)>-1?[{dataItem:de,dataRowIndex:V+this.host.skip}]:[]})}break}let F=r==="paste",R=a.clipboardData.getData("text"),U=this.host.columns.toArray().filter(x=>x.isVisible),te=F?{dataString:R,gridItems:this.clipboardService.getGridData(R,U,this.clipboardTarget,L[0]?.dataRowIndex,{wholeRow:this.clipboardSettings.wholeRow,isCellSelection:w})}:this.clipboardService.createClipboardData(L||[],U,{wholeRow:this.clipboardSettings.wholeRow||this.clipboardTarget==="selection"&&!w,target:this.clipboardTarget,copyHeaders:this.clipboardSettings.copyHeaders,operationType:r});!F&&navigator.clipboard.writeText(te.dataString),bt(this.clipboard)&&this.zone.run(()=>{this.clipboard.emit({type:r,originalEvent:a,clipboardData:te.dataString,gridData:te.gridItems,target:{dataRowIndex:this.clipboardService.targetRowIndex,colField:this.clipboardService.targetColField,dataItem:L.find(x=>x.dataRowIndex===this.clipboardService.targetRowIndex)?.dataItem}})}),this.clipboardService.targetColField=this.clipboardService.targetRowIndex=null},this.inGrid=r=>{let a=document.activeElement.matches(".k-table-td")?document.activeElement:r.target,d=yt(a,m=>m.parentElement?.classList.contains("k-grid-container")),p=Sv(this.host.wrapper.nativeElement,a);return a&&p&&d}}set clipboardTarget(e){fe()&&this.zone.onStable.pipe(Ke(1)).subscribe(()=>{e==="activeCell"&&!this.host.navigable.length?console.warn(Wd.clipboardTarget.activeCellNavigable):e==="selection"&&!(this.host.selectable||this.host.selectionDirective)&&console.warn(Wd.selectionSelectable)}),this._target=e}get clipboardTarget(){return this._target}set clipboardSettings(e){this._clipboardSettings=Object.assign({},this._clipboardSettings,e)}get clipboardSettings(){return this._clipboardSettings}ngAfterViewInit(){ae()&&(this.clipboardTarget==="selection"&&!(this.host.selectable||this.host.selectionDirective)&&console.warn(Wd.selectionSelectable),this.zone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(document,"copy",e=>this.onClipboard("copy",e))),this.subs.add(this.renderer.listen(document,"cut",e=>this.onClipboard("cut",e))),this.subs.add(this.renderer.listen(document,"paste",e=>this.onClipboard("paste",e)))}))}ngOnDestroy(){this.subs.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(c(hn),c(yu),c(X),c(re))},t.\u0275dir=A({type:t,selectors:[["","kendoGridClipboard",""]],inputs:{clipboardTarget:"clipboardTarget",clipboardSettings:"clipboardSettings"},outputs:{clipboard:"clipboard"},exportAs:["kendoGridClipboard"],features:[Y([yu])]}),t})(),PB=[hn,Wv,J0,MA,e0,Y0,AP,GP,IF,CF,SF,bF,LP,FP,TF,...Sl.exports(),...pn.exports(),...tC.exports(),...eC.exports(),...iC.exports(),...Z0.exports(),...dh.exports(),...bl.exports(),...uh.exports(),kF];var FB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ke({type:t}),t.\u0275inj=Te({imports:[Me,Sl,pn,tC,eC,iC,Z0,dh,bl,Pi,uh,Vm,jn]}),t})();var xF="KENDO-GRID-LIST",RF="TABLE",GB=At(xF),VB=At(RF);export{A3 as a,wr as b,va as c,Ca as d,ii as e,js as f,Hu as g,Rv as h,bi as i,Lv as j,Nv as k,a0 as l,hn as m,Y0 as n,pn as o,Po as p,dh as q,bl as r,uF as s,hF as t,pF as u,tC as v,TF as w,FB as x}; //# sourceMappingURL=chunk-FSYSUSZU.js.map