import{ra as n,sa as g}from"./chunk-OJKN3TNK.js";import{q as C}from"./chunk-OIJW4GMG.js";import{$b as m,Da as r,Qb as p,ac as d,fc as u,jc as f,lc as w,mc as x,pc as S,qc as v,rc as y,va as c,wa as s,xb as a}from"./chunk-3FIHWXA5.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};
