import{aN as p,bV as c,bF as i,aG as u,aD as s,aE as m,L as g,c8 as y,ay as v,bs as d,bL as k,ak as _}from"./index-D5GfLbIx.js";/* empty css             *//* empty css                 */const f=["title"],h={class:"pg-hidden-hint"},w=p({__name:"PermissionGuard",props:{widgetId:{}},setup(e){const n=e,l=c(),a=v(()=>l.widgetOf(n.widgetId));return(o,t)=>{const r=g;return a.value==="interactive"?i(o.$slots,"default",{key:0},void 0,!0):a.value==="readonly"?(d(),u("div",{key:1,class:"pg-readonly",title:`${e.widgetId} 当前为只读`},[i(o.$slots,"default",{},void 0,!0),t[0]||(t[0]=s("div",{class:"pg-mask"},null,-1))],8,f)):(d(),m(r,{key:2,class:"pg-hidden"},{description:y(()=>[t[1]||(t[1]=s("p",{class:"pg-hidden-title"},"当前账号无权查看此功能",-1)),s("p",h,"控件："+k(e.widgetId)+"。若应为管理员可见，请尝试顶部切换「管理员/运营」或刷新页面。",1)]),_:1}))}}}),E=_(w,[["__scopeId","data-v-4766a149"]]);export{E as P};
