import{Bb as n,Cb as g,I as l,O as f,Qa as d,U as o,X as h,db as p,kb as y,la as u,lc as S,ma as v,md as B,na as m,xd as D}from"./chunk-LDMD57YL.js";var b=["tableBody"],x=(()=>{class s extends D{constructor(i,e,t,r,c,a,I){super(i,e,t,r,c,a,I),this.electronService=r,this.cordovaService=c,this.settingsService=a}scrollBarIsVisible(){return this.tableBodyView?.nativeElement?this.tableBodyView.nativeElement.clientHeight<this.tableBodyView.nativeElement.scrollHeight:!1}actionPrint(i=null,e=null){this.toggleActions(),this.share=!1,this.getPDFDoc(i,t=>{let r=t.output("arraybuffer");n.isOnElectron()?this.electronService.ipcRenderer.send("printPage",Buffer.from(r)):this.cordovaService.printPDF(r)},e)}actionShare(i=null,e=null){this.toggleActions(),this.share=!0,i.share=!0,this.getPDFDoc(i,t=>{n.isOnCordova()?this.cordovaService.sharePDF(t.output("arraybuffer")):t.save()},e)}static{this.\u0275fac=function(e){return new(e||s)(o(f),o(y),o(p),o(g),o(B),o(S),o(d))}}static{this.\u0275dir=l({type:s,viewQuery:function(e,t){if(e&1&&u(b,5),e&2){let r;v(r=m())&&(t.tableBodyView=r.first)}},features:[h]})}}return s})();export{x as a};
