import{A as e,D as t,E as n,P as r,Pt as i,et as a}from"./vue-vendor-DMUmTARL.js";import{xr as o}from"./icons-vendor-Db5MGAkr.js";import{t as s}from"./_plugin-vue_export-helper-CWyGVBf-.js";import{t as c}from"./useCapability-DVpkmSeo.js";var l={key:0,class:`pro-badge relative ml-1 inline-flex items-center justify-center self-center overflow-hidden rounded-[4px] bg-gradient-to-r from-amber-200 to-yellow-400 px-1.5 py-0.5 align-middle text-[10px] font-bold uppercase leading-none tracking-wider text-amber-900 shadow-sm dark:from-amber-700 dark:to-yellow-500 dark:text-amber-50`},u={key:1,class:`pro-badge-locked relative ml-1 inline-flex cursor-help items-center justify-center gap-0.5 self-center overflow-hidden rounded-[4px] bg-amber-50 px-1.5 py-0.5 align-middle text-[10px] font-bold uppercase leading-none tracking-wider text-amber-600/80 ring-1 ring-inset ring-amber-300/70 transition-colors hover:text-amber-700 hover:ring-amber-400 dark:bg-amber-950/30 dark:text-amber-300/70 dark:ring-amber-600/40 dark:hover:text-amber-200 dark:hover:ring-amber-500`,title:`Pro 功能 · 激活后点亮解锁`},d=s({__name:`ProBadge`,props:{capability:{type:String,default:``}},setup(s){let d=s,{proAuthorized:f,isCapabilityEnabled:p}=c(),m=n(()=>d.capability?p(d.capability):f.value);return(n,s)=>{let c=o;return i(m)?(a(),e(`span`,l,[...s[0]||=[t(`span`,{class:`relative z-10`},`Pro`,-1),t(`span`,{class:`pro-badge-shimmer absolute inset-0 z-0 -translate-x-full bg-gradient-to-r from-transparent via-white/60 to-transparent dark:via-white/30`},null,-1)]])):(a(),e(`span`,u,[r(c,{class:`relative z-10 h-2.5 w-2.5 shrink-0`}),s[1]||=t(`span`,{class:`relative z-10`},`Pro`,-1),s[2]||=t(`span`,{class:`pro-badge-tease pointer-events-none absolute inset-0 z-0 -translate-x-full bg-gradient-to-r from-transparent via-amber-300/60 to-transparent`},null,-1)]))}}},[[`__scopeId`,`data-v-24d4fe62`]]);export{d as t};