import{Mb as h,Ua as l,od as c,rc as g,vb as a,yb as r}from"./chunk-HEIW4SFT.js";c();c();var d=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.fillAvailableHeight()}ngAfterViewInit(){requestAnimationFrame(()=>this.fillAvailableHeight())}onResize(e){this.fillAvailableHeight()}fillAvailableHeight(){let e=this.elementRef.nativeElement,i;if(this.pawHeightFill){let t=this.pawHeightFill instanceof l?this.pawHeightFill.nativeElement:this.pawHeightFill,o=e.getBoundingClientRect().top-t.getBoundingClientRect().top;i=t.clientHeight-o}else{let t=e.getBoundingClientRect();i=Math.floor(window.innerHeight-t.top)}let s=!!e.closest("paw-dialog");i=Math.max(0,i-(s?10:0)),e.style.height=`${i}px`}static{this.\u0275fac=function(i){return new(i||n)(r(l))}}static{this.\u0275dir=h({type:n,selectors:[["","pawHeightFill",""]],hostBindings:function(i,s){i&1&&g("resize",function(o){return s.onResize(o)},!1,a)},inputs:{pawHeightFill:"pawHeightFill"}})}}return n})();export{d as a};
