import{a as n}from"./chunk-TC3S442Y.js";import{ca as i,fa as o,gd as a}from"./chunk-BXH3QC5E.js";var c=(()=>{class t{router;itemScanned=!1;constructor(e){this.router=e}canDeactivate(){return this.itemScanned=!1,!0}canActivateChild(e,r){return r.url.endsWith(`/${n.Scan.path}`)||this.itemScanned?!0:this.router.createUrlTree([e.data.redirectTo])}static \u0275fac=function(r){return new(r||t)(o(a))};static \u0275prov=i({token:t,factory:t.\u0275fac})}return t})();export{c as a};
