var i=class{authService;DEFAULT_VISIBLE_COUNT=2;visibleCount;footerButtons=[];constructor(o,t){this.authService=o,this.visibleCount=t??this.DEFAULT_VISIBLE_COUNT}get visibleButtons(){return this.footerButtons?this.footerButtons.slice(0,this.visibleCount):[]}get hiddenButtons(){return this.footerButtons?this.footerButtons.slice(this.visibleCount,this.footerButtons.length):[]}addButton(o,t,s,e){this.footerButtons||(this.footerButtons=[]),s?this.authService.checkPermission(s,e)&&this.pushToButtonList(o,t):this.pushToButtonList(o,t)}clearButtons(){this.footerButtons=[]}onFooterButtonClicked(o,t){o.stopPropagation(),t&&t.apply(this)}pushToButtonList(o,t){this.footerButtons.push({text:o,event:t})}};export{i as a};
