import{_ as a}from"./C9KnTrrC.js";import{d as r,I as i,f as l,b as o,ac as p,c as u,u as e}from"./B2UyoCas.js";import{u as _}from"./C7qbYC45.js";const d=r({__name:"AccessFlagGuard",props:{redirectTo:{default:"/"},checkKey:{default:""}},setup(m){const{t:c}=i(),{checkGeneralAccess:n}=_();return(s,f)=>{const t=a;return o(),l("div",null,[e(n)(s.checkKey)?p(s.$slots,"default",{key:0}):(o(),u(t,{key:1,color:"warning",variant:"subtle",icon:"i-heroicons-exclamation-triangle",title:e(c)("noAccess.title"),description:e(c)("noAccess.description"),actions:[{label:e(c)("noAccess.backToDashboard"),color:"warning",variant:"solid",to:s.redirectTo}]},null,8,["title","description","actions"]))])}}}),g=Object.assign(d,{__name:"AccessFlagGuard"});export{g as _};
