import{c as n}from"./chunk-UIN65BI3.js";import{u as s}from"./chunk-GYAYEJFB.js";import{ea as o,ka as r}from"./chunk-LEOKSAW2.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};
