import{be as c,g as r,na as p,ta as n}from"./chunk-WL5U2YIT.js";import{e as d}from"./chunk-ADEKKGI2.js";var g,u=d(()=>{p();c();g=(()=>{let t=class t{constructor(){this.dialogRequestSubject=new r,this.dialogRequest=this.dialogRequestSubject.asObservable()}showDialog(e){this.dialogRequestSubject.next(e)}askForComment(e,s,i="credentialViewed"){this.showDialog({commentType:i,required:{ticketNumber:this.getPromptCommentOptions(e,i)?.ticketNumberRequired,comment:this.getPromptCommentOptions(e,i).commentRequired},name:e?.name,connectionId:e?.id,accept:a=>s?s(a):()=>{}})}getPromptCommentOptions(e,s){switch(s){case"credentialViewed":return e?.resolvedEventsLogsOptions?.credentialsViewedLogsOptions;case"open":return e?.resolvedEventsLogsOptions?.openLogsOptions;case"close":return e?.resolvedEventsLogsOptions?.closeLogsOptions}}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})()});export{g as a,u as b};
