text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("primeng/dialog"),require("@angular/platform-browser/animations")):"function"==typeof define&&define.amd?define("angular-weblineindia-message-dialog-box",["exports","@angular/core","primeng/dialog","@angular/platform-browser/animations"],t):t((e=e||self)["angular-weblineindia-message-dialog-box"]={},e.ng.core,e.dialog,e.ng.platformBrowser.animations)}(this,(function(e,t,n,o){"use strict";var s=function(){};s.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new s},token:s,providedIn:"root"}),s.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],s.ctorParameters=function(){return[]};var i=function(){function e(){this.id="",this.visible=!1,this.content="",this.buttons=[],this.showHeader=!1,this.headerContent="",this.closable=!1,this.noOfButton=0,this.index=0,this.draggable=!1,this.resizable=!1,this.baseZIndex=1e3,this.style={width:"50vw"},this.closeOnEscape=!1,this.cancle=new t.EventEmitter,this.buttonClick=new t.EventEmitter}return e.prototype.cancel=function(){this.cancle.emit()},e.prototype.onClickButtons=function(e){this.buttonClick.emit(e)},e}();i.decorators=[{type:t.Component,args:[{selector:"lib-message-dialog",template:'<p-dialog\n  [(visible)]="visible"\n  [modal]="true"\n  [style]="style"\n  [baseZIndex]="baseZIndex"\n  [draggable]="draggable"\n  [resizable]="resizable"\n  [id]="id"\n  [showHeader]="showHeader"\n  [closable]="closable"\n  [header]="headerContent"\n  [closeOnEscape]="closeOnEscape"\n  (onHide)="cancel()"\n>\n\n  <p>\n   {{content}}\n  </p>\n  <p-footer>\n    <div\n      *ngFor="let button of buttons; let i = index"\n    \n      [ngClass]="{\n        \'popup-btn\': true,\n        \'btn-class-1\': buttons.length === 1,\n        \'btn-class-2\': buttons.length === 2,\n        \'btn-class-3\': buttons.length === 3 \n      }"\n    >\n      <button class="pointer" (click)="onClickButtons(button)">{{ button.title }}</button>\n    </div>\n\n\n  </p-footer>\n</p-dialog>\n',styles:[".popup-btn.btn-class-3.ng-star-inserted{float:left;text-align:center;width:31%}.popup-btn.btn-class-2.ng-star-inserted{float:left;text-align:center;width:50%}.popup-btn.btn-class-1.ng-star-inserted{text-align:center;width:100%}"]}]}],i.propDecorators={id:[{type:t.Input}],visible:[{type:t.Input}],content:[{type:t.Input}],buttons:[{type:t.Input}],showHeader:[{type:t.Input}],headerContent:[{type:t.Input}],closable:[{type:t.Input}],noOfButton:[{type:t.Input}],index:[{type:t.Input}],draggable:[{type:t.Input}],resizable:[{type:t.Input}],baseZIndex:[{type:t.Input}],style:[{type:t.Input}],closeOnEscape:[{type:t.Input}],cancle:[{type:t.Output}],buttonClick:[{type:t.Output}]};var a=function(){};a.decorators=[{type:t.NgModule,args:[{declarations:[i],imports:[o.BrowserAnimationsModule,n.DialogModule],exports:[i]}]}],e.MessageDialogComponent=i,e.MessageDialogModule=a,e.MessageDialogService=s,Object.defineProperty(e,"__esModule",{value:!0})}));
  //# sourceMappingURL=angular-weblineindia-message-dialog-box.umd.min.js.map