!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("primeng/dom"),require("primeng/api")):"function"==typeof define&&define.amd?define("primeng/blockui",["exports","@angular/core","@angular/common","primeng/dom","primeng/api"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).primeng=e.primeng||{},e.primeng.blockui={}),e.ng.core,e.ng.common,e.primeng.dom,e.primeng.api)}(this,(function(e,t,n,o,i){"use strict";var a=function(){function e(e,t){this.el=e,this.cd=t,this.autoZIndex=!0,this.baseZIndex=0}return Object.defineProperty(e.prototype,"blocked",{get:function(){return this._blocked},set:function(e){this._blocked=e,this.mask&&this.mask.nativeElement&&(this._blocked?this.block():this.unblock())},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){if(this.target&&!this.target.getBlockableElement)throw"Target of BlockUI must implement BlockableUI interface"},e.prototype.ngAfterContentInit=function(){var e=this;this.templates.forEach((function(t){switch(t.getType()){case"content":default:e.contentTemplate=t.template}}))},e.prototype.block=function(){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+ ++o.DomHandler.zindex))},e.prototype.unblock=function(){this.el.nativeElement.appendChild(this.mask.nativeElement)},e.prototype.ngOnDestroy=function(){this.unblock()},e}();a.decorators=[{type:t.Component,args:[{selector:"p-blockUI",template:"\n