import{ea as n,fa as g}from"./chunk-D2E2EQ56.js";import{ya as C}from"./chunk-ZZKAL5UM.js";import{Bb as a,Fa as r,Ub as p,dc as m,ec as d,jc as u,pc as f,rc as w,sc as x,vc as S,wc as v,xa as c,xc as y,ya as s}from"./chunk-LEOKSAW2.js";var V=["*"],O=(()=>{class o{constructor(){this.atTop=new r,this.initialized=new r}onScroll(i){let t=i.scrollOffset.top===0;this.atTop.emit(t)}ngAfterViewInit(){setTimeout(()=>this.initialized.emit())}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=a({type:o,selectors:[["tis-scroll"]],viewQuery:function(e,t){if(e&1&&S(n,5),e&2){let l;v(l=y())&&(t.scrollView=l.first)}},outputs:{atTop:"atTop",initialized:"initialized"},ngContentSelectors:V,decls:3,vars:1,consts:[["scrollView",""],["direction","both",3,"onScroll","useNative"]],template:function(e,t){if(e&1){let l=u();w(),m(0,"dx-scroll-view",1,0),f("onScroll",function(h){return c(l),s(t.onScroll(h))}),x(2),d()}e&2&&p("useNative",!0)},dependencies:[C,g,n],styles:[`tis-scroll{background:transparent;display:block}tis-scroll .dx-scrollable-native.dx-scrollable-native-generic .dx-scrollable-content{display:flex;flex-direction:column}tis-scroll .dx-scrollview-content{display:flex;flex-direction:column;flex-grow:1}
`],encapsulation:2,changeDetection:0})}}return o})();export{O as a};
