import{g as d}from"./chunk-CX23ZL4L.js";import{e as u}from"./chunk-KANMOB5U.js";import{g as a,pa as n,ua as s}from"./chunk-IYD54RT7.js";var f=(()=>{let e=class e{constructor(t,r){this.uiService=t,this.router=r,this._ciSetId=new a("-1")}get branchType(){return this.uiService.type}set BranchType(t){this.uiService.typeValue=t}get branchId(){return this.uiService.id}set BranchId(t){this.uiService.idValue=t}get ciSetId(){return this._ciSetId}set CiSetId(t){this._ciSetId.next(t)}set update(t){this.uiService.updated=t}routeToSet(t){let r=this.ciSetId.getValue().replace("-","%2D"),o=t.replace("-","%2D"),i=this.router.url;i.includes(r)?i=i.split(r)[0]+o:i.endsWith(this.branchId.getValue())&&(i=i+"/"+o),this.router.navigateByUrl(i)}};e.\u0275fac=function(r){return new(r||e)(s(d),s(u))},e.\u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"});let c=e;return c})();export{f as a};
