import{c as n}from"./chunk-UBWF5ENA.js";import{M as s}from"./chunk-OIJW4GMG.js";import{ca as o,ia as r}from"./chunk-3FIHWXA5.js";var h=(()=>{class t{constructor(i,e){this._retailStoreService=i,this._router=e}canActivate(i){let e=i.data.licenses,c=this._retailStoreService.selectedStore?.license?.prefix;return c&&(!e||!e.includes(c))||this._router.createUrlTree(["cabinet"])}static{this.\u0275fac=function(e){return new(e||t)(r(n),r(s))}}static{this.\u0275prov=o({token:t,factory:t.\u0275fac})}}return t})();export{h as a};
