1"use strict";(self.webpackChunkmbs_ui=self.webpackChunkmbs_ui||[]).push([[8205],{88205(M,v,s){s.d(v,{InvoicesModule:()=>j});var h=s(93683),d=s(34487),p=s(24398),o=s(85240),f=s(85422),r=s(4637),b=s(85841),g=s.n(b),m=s(98497),y=s(61649),I=s(89475),t=s(12481);let a=class l{constructor(){this.route=(0,o.WQX)(f.nX),this.invoicesService=(0,o.WQX)(y.r),this.size=m.suM,this.loading=!1}ngOnInit(){this.download()}download(c=!1){this.loading=c;const e=this.route.snapshot.paramMap.get("id");this.invoicesService.getInvoicePdf(e).pipe((0,r.s)(this),(0,I.j)(()=>this.loading=!1)).subscribe(i=>{const u=i.headers.get("Content-Disposition").split("filename=")[1];g()(i.body,u)})}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=t.VBU({type:l,selectors:[["mbs-invoices"]],decls:12,vars:2,consts:[[1,"mbs-page"],[1,"mbs-page_content","d-flex","align-items-center","justify-content-center","flex-column","text-center"],[1,"text-primary","mt-0","pb-2","mb-4"],[1,"container","pb-2","mb-4"],[1,"row","justify-content-center"],[1,"col-2"],[1,"border-top"],[1,"pb-4","mb-4"],["type","link","customClasses","text-base pl-0",3,"click","disabled","size"]],template:function(e,i){1&e&&(t.j41(0,"div",0)(1,"div",1)(2,"h1",2),t.EFF(3,"Download will begin automatically"),t.k0s(),t.j41(4,"div",3)(5,"div",4)(6,"div",5),t.nrm(7,"div",6),t.k0s()()(),t.j41(8,"p",7),t.EFF(9," If the download did not start, "),t.j41(10,"mbs-button",8),t.bIt("click",function(){return i.download(!0)}),t.EFF(11,"click here."),t.k0s()()()()),2&e&&(t.R7$(10),t.Y8G("disabled",i.loading)("size",i.size.sm))},dependencies:[m.Qpp],encapsulation:2})}};a=(0,p.Cg)([(0,r.d)()],a);const C=[{path:":id",component:a}];let F=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=o.G2t({imports:[d.iI.forChild(C),d.iI]})}}return n})(),j=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=o.G2t({imports:[h.MD,F]})}}return n})()}}]); 2//# sourceMappingURL=8205.60fdfcca9c958f1d.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.