import{A as l,Ha as m,Qf as u,ea as f,fa as s,oa as h}from"./chunk-SKPDQO4E.js";var p=class{data};var R=function(a,t,n,o){var i=arguments.length,e=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,t,n,o);else for(var c=a.length-1;c>=0;c--)(r=a[c])&&(e=(i<3?r(e):i>3?r(t,n,e):r(t,n))||e);return i>3&&e&&Object.defineProperty(t,n,e),e},v=class{applicationRef;moduleCFR;injector;interactionService;intervalSubscription;constructor(t,n,o,i){this.applicationRef=t,this.moduleCFR=n,this.injector=o,this.interactionService=i}print(t,n=null){this.interactionService.changeWaitingResponseState(!0);let i=document.querySelector("#printSection");i.innerHTML="";let e=this.moduleCFR.resolveComponentFactory(t),r=s.create([{provide:p,useValue:n}],this.injector),c=e.create(r);this.applicationRef.attachView(c.hostView),i.appendChild(c.location.nativeElement),this.intervalSubscription=l(1e3).pipe().subscribe(S=>{this.printComponent()})}printComponent(){window.print(),this.intervalSubscription.unsubscribe(),this.interactionService.changeWaitingResponseState(!1)}static ctorParameters=()=>[{type:m},{type:h},{type:s},{type:u}]};v=R([f({providedIn:"root"})],v);export{p as a,v as b};
