import{aG as i,bo as n,be as o,aC as l,az as u,aB as c,av as m,b3 as p,al as v}from"./index-DrvLDslf.js";const f=["title"],g=i({__name:"PermissionGuard",props:{widgetId:{}},setup(e){const d=e,r=n(),t=m(()=>r.widgetOf(d.widgetId));return(s,a)=>t.value==="interactive"?o(s.$slots,"default",{key:0},void 0,!0):t.value==="readonly"?(p(),l("div",{key:1,class:"pg-readonly",title:`${e.widgetId} 当前为只读`},[o(s.$slots,"default",{},void 0,!0),a[0]||(a[0]=u("div",{class:"pg-mask"},null,-1))],8,f)):c("",!0)}}),k=v(g,[["__scopeId","data-v-3220f2f7"]]);export{k as P};
