import{l as n}from"./chunk-N7PC5CHF.js";import{z as a}from"./chunk-ZTKV4AIV.js";import{bb as s,cb as d,ha as c,na as l}from"./chunk-FWZCAEAJ.js";var U=(()=>{let r=class r{constructor(){this.logger=a("RedirectService"),this.router=l(n),this._redirectUrl=d(void 0),this.redirectUrl=s(()=>this._redirectUrl())}setRedirectUrl(t){this._redirectUrl.set(t)}resetRedirectUrl(){this._redirectUrl.set(void 0)}redirect(...t){let e=this._redirectUrl()??"/";for(let o of t)e=e?.replace(o.toReplace,o.replaceWith);this.logger.log("redirect","Triggered",e),this.router.navigateByUrl(e)}};r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();export{U as a};
