import{signal as n}from"@angular/core";import*as i from"@angular/core";var s=class e{state=n(null);resolve;open(o){return new Promise(t=>{this.resolve=t,this.state.set(o)})}confirm(){this.resolve?.(!0),this.state.set(null)}cancel(){this.resolve?.(!1),this.state.set(null)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=i.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac,providedIn:"root"})};export{s as a};
