import{A as e,D as t,E as n,I as r,P as i,Xt as a,et as o,k as s,qt as c,rt as l,s as u}from"./vue-vendor-DMUmTARL.js";import{li as d}from"./icons-vendor-Buq6V-Ga.js";import{t as f}from"./useCapability-CA4VtDqE.js";var p={class:`relative`},m={key:0,class:`bg-surface/60 absolute inset-0 rounded-zf-lg backdrop-blur-sm`},h={class:`sticky top-16 flex flex-col items-center gap-3 px-4 py-8 sm:top-20`},g={class:`zf-icon-tile zf-icon-tile--lg zf-icon-tile--primary`},_={class:`text-base font-medium text-regular`},v={class:`flex items-center gap-2`},y=r({__name:`ProGuard`,props:{capability:{},bypass:{type:Boolean},lockTitle:{}},setup(r){let y=r,b=u(),{isCapabilityEnabled:x}=f(),S=n(()=>!x(y.capability)&&!y.bypass),C=()=>{b.push(`/admin/license`)};return(n,u)=>{let f=d;return o(),e(`div`,p,[t(`div`,{class:c({"pointer-events-none select-none blur-sm":S.value})},[l(n.$slots,`default`)],2),S.value?(o(),e(`div`,m,[t(`div`,h,[t(`div`,g,[i(f,{class:`h-7 w-7 sm:h-8 sm:w-8`})]),t(`p`,_,a(r.lockTitle||`该功能需 Pro 授权`),1),t(`div`,v,[t(`button`,{type:`button`,class:`rounded-zf-md bg-zp px-3 py-1.5 text-xs font-medium text-white transition hover:bg-zp-dark`,onClick:C},` 去激活 `),l(n.$slots,`actions`)])])])):s(``,!0)])}}});export{y as t};