{"version":3,"file":"DLLA1Eus.js","sources":["../../../../src/middleware/only-premium.ts"],"sourcesContent":["import type {User} from \"~/models/services/User\";\n\nexport default defineNuxtRouteMiddleware(async (to, from) => {\n const user = useState('user');\n\n if (!user.value || !user.value.role || !user.value.role.includes('premium')) {\n return navigateTo('/401')\n }\n\n})"],"names":["onlyPremium","defineNuxtRouteMiddleware","to","from","user","useState","navigateTo"],"mappings":"iDAEA,MAAAA,EAAeC,EAA0B,MAAOC,EAAIC,IAAS,CACnD,MAAAC,EAAOC,EAAsB,MAAM,EAEzC,GAAI,CAACD,EAAK,OAAS,CAACA,EAAK,MAAM,MAAQ,CAACA,EAAK,MAAM,KAAK,SAAS,SAAS,EACtE,OAAOE,EAAW,MAAM,CAGhC,CAAC"}