import{ra as n,sa as g}from"./chunk-KT4MWGDC.js";import{ya as C}from"./chunk-ONNJVTQI.js";import{Ab as a,Ea as r,Tb as p,cc as m,dc as d,ic as u,oc as f,qc as w,rc as x,uc as S,vc as v,wa as c,wc as y,xa as s}from"./chunk-A4WWLITB.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};
