import{I as e,It as t,Q as n,T as r,Wt as i,bt as a,cn as o,j as s,w as c,x as l}from"./_plugin-vue_export-helper-BVhEvvHC.js";import"./src-CD6Jsigc.js";import{r as u}from"./axios-DSyjHw-i.js";import{t as d}from"./useFeatureNames-x1xeIENn.js";import{t as f}from"./sessionSettingStore-ZHUB-lwo.js";var p=function(e){return e.Unknown=`Unknown`,e.Player=`Player`,e.Coach=`Coach`,e.Manager=`Manager`,e.Analyst=`Analyst`,e.Substitute=`Substitute`,e}({}),m=[`Player`,`Substitute`];function h(e){return m.includes(e)}e(),a(),i();var g=[`title`],_=s({__name:`PremiumBadge`,props:{requiredFeature:{},alwaysShow:{type:Boolean,default:!1}},setup(e){let{t:i}=u({useScope:`global`}),{featureName:a}=d(),s=e,p=f(),m=l(()=>!p.hasFeature(s.requiredFeature)),h=l(()=>s.alwaysShow||m.value),_=l(()=>a(s.requiredFeature));return(e,a)=>h.value?(n(),r(`span`,{key:0,class:`inline-flex shrink-0 items-center rounded-full border border-brand/30 bg-brand/10 px-1.5 py-px text-[10px] font-semibold uppercase leading-4 tracking-wide text-brand`,title:t(i)(`featureGate.upgradeDescription`,{feature:_.value})},o(t(i)(`premium.badge`)),9,g)):c(``,!0)}});export{p as n,h as r,_ as t};