import{m as o}from"./index.20192476.js";import{a}from"./addons.9d0af6ad.js";import{R as u,a as d}from"./RequiresUpdate.597e1ef8.js";const A=()=>({getExcludedActivationTabs:(s,r)=>{var e;if(!o().isUnlicensed&&a.isActive(r)&&!a.requiresUpgrade(r))return[];const t=[];return(e=s==null?void 0:s.options)!=null&&e.routes&&s.options.routes.forEach(n=>{if(!n.meta||!n.meta.middleware)return;(Array.isArray(n.meta.middleware)?n.meta.middleware:[n.meta.middleware]).some(m=>m===u)&&t.push(n.name)}),t}}),_=()=>({getExcludedUpdateTabs:(s,r)=>{if(!o().isUnlicensed&&a.hasMinimumVersion(r)&&!a.requiresUpgrade(r))return[];const t=[];return s.options.routes.forEach(e=>{if(!e.meta||!e.meta.middleware)return;(Array.isArray(e.meta.middleware)?e.meta.middleware:[e.meta.middleware]).some(i=>i===d)&&t.push(e.name)}),t}});export{_ as a,A as u};
