import{NgModule,Component,Input,ElementRef,ViewChild,ChangeDetectionStrategy,ViewEncapsulation,ChangeDetectorRef,ContentChildren}from"@angular/core";import{CommonModule}from"@angular/common";import{DomHandler}from"primeng/dom";import{PrimeTemplate}from"primeng/api";export class BlockUI{constructor(e,t){this.el=e,this.cd=t,this.autoZIndex=!0,this.baseZIndex=0}get blocked(){return this._blocked}set blocked(e){this._blocked=e,this.mask&&this.mask.nativeElement&&(this._blocked?this.block():this.unblock())}ngAfterViewInit(){if(this.target&&!this.target.getBlockableElement)throw"Target of BlockUI must implement BlockableUI interface"}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template}})}block(){this.target?(this.target.getBlockableElement().appendChild(this.mask.nativeElement),this.target.getBlockableElement().style.position="relative"):document.body.appendChild(this.mask.nativeElement),this.autoZIndex&&(this.mask.nativeElement.style.zIndex=String(this.baseZIndex+ ++DomHandler.zindex))}unblock(){this.el.nativeElement.appendChild(this.mask.nativeElement)}ngOnDestroy(){this.unblock()}};BlockUI.decorators=[{type:Component,args:[{selector:"p-blockUI",template:"\n