import{A as e,D as t,E as n,I as r,P as i,et as a,k as o,qt as s,rt as c,s as l}from"./vue-vendor-DMUmTARL.js";import{Xr as u}from"./icons-vendor-Db5MGAkr.js";import{t as d}from"./useCapability-DVpkmSeo.js";var f={class:`relative`},p={key:0,class:`absolute inset-0 flex flex-col items-center justify-center gap-3 rounded-xl bg-white/50 backdrop-blur-[2px] dark:bg-zinc-900/50`},m=r({__name:`ProGuard`,props:{capability:{}},setup(r){let m=r,h=l(),{isCapabilityEnabled:g}=d(),_=n(()=>!g(m.capability)),v=()=>{h.push(`/admin/license`)};return(n,r)=>{let l=u;return a(),e(`div`,f,[t(`div`,{class:s({"pointer-events-none select-none blur-sm":_.value})},[c(n.$slots,`default`)],2),_.value?(a(),e(`div`,p,[i(l,{class:`h-8 w-8 text-zinc-400`}),r[0]||=t(`p`,{class:`text-sm font-medium text-zinc-700 dark:text-zinc-200`},`该功能需 Pro 授权`,-1),t(`button`,{type:`button`,class:`rounded-lg bg-blue-500 px-3 py-1.5 text-xs font-medium text-white transition hover:bg-blue-600`,onClick:v},` 去激活 `)])):o(``,!0)])}}});export{m as t};