import{Mb as h,Ua as o,nd as p,qc as g,vb as r,yb as c}from"./chunk-PGS4AHIT.js";p();p();var B=(()=>{class i{constructor(t){this.elementRef=t}ngOnInit(){this.fillAvailableHeight()}onResize(t){this.fillAvailableHeight()}fillAvailableHeight(){let t=this.elementRef.nativeElement,e;if(this.pawHeightFill){let l=this.pawHeightFill instanceof o?this.pawHeightFill.nativeElement:this.pawHeightFill,m=l.getBoundingClientRect(),a=getComputedStyle(l),f=parseFloat(a.paddingBottom)||0,H=parseFloat(a.marginBottom)||0;e=m.bottom-f-H}else e=window.innerHeight;let s=t.getBoundingClientRect(),n=Math.floor(e-s.top);n=Math.max(0,n),t.style.height=`${n}px`}static{this.\u0275fac=function(e){return new(e||i)(c(o))}}static{this.\u0275dir=h({type:i,selectors:[["","pawHeightFill",""]],hostBindings:function(e,s){e&1&&g("resize",function(l){return s.onResize(l)},!1,r)},inputs:{pawHeightFill:"pawHeightFill"}})}}return i})();export{B as a};
