{"version":3,"file":"Cz5bRVvz.js","sources":["../../../../middleware/is-vendor-active.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport { type AuthUser } from '@/types';\n\nexport default defineNuxtRouteMiddleware((middleware) => {\n const user: Ref = useSanctumUser();\n\n if (user.value && user.value.vendor?.is_account_active) {\n return navigateTo('/vdp/programs');\n } else {\n return navigateTo('/vdp/login');\n }\n});\n"],"names":["isVendorActive","defineNuxtRouteMiddleware","middleware","user","useSanctumUser","_a","navigateTo"],"mappings":"4WAGA,MAAAA,EAAeC,EAA2BC,GAAe,OACvD,MAAMC,EAA6BC,EAAe,EAElD,OAAID,EAAK,SAASE,EAAAF,EAAK,MAAM,SAAX,MAAAE,EAAmB,mBAC5BC,EAAW,eAAe,EAE1BA,EAAW,YAAY,CAElC,CAAC"}