import{c as n}from"./chunk-JOHL7WY7.js";import{u as s}from"./chunk-6VC7H3CZ.js";import{da as o,ja as r}from"./chunk-QMYHTLAJ.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};
