import"./DsnmJJEf.js";import{p as C,e as N,f as I,a as d,b as y,d as a,s as c,r as s,t as p,c as b}from"./BfUaJvxP.js";import{s as v}from"./Bci9YmGs.js";import{p as x,i as z}from"./C8yDvkQM.js";import{i as j}from"./CF1ujZlL.js";import{S as u}from"./CQSCwyoM.js";var w=b('<div class="flex items-center gap-2 rounded-lg border border-amber-200 bg-amber-50 p-3 text-sm text-amber-700 dark:border-amber-800/50 dark:bg-amber-950/30 dark:text-amber-300"><!> </div>'),M=b('<div class="flex flex-col items-center justify-center py-20 text-center"><div class="mb-3 rounded-full bg-muted p-3"><!></div> <h2 class="text-base font-medium text-foreground"> </h2> <p class="mt-1 max-w-sm text-sm text-muted-foreground"> </p></div>');function G(_,o){C(o,!0);let f=x(o,"message",3,"You don't have permission to access this resource."),g=x(o,"compact",3,!1);var l=N(),h=I(l);{var E=t=>{var e=w(),r=a(e);u(r,{size:16,class:"shrink-0"});var m=c(r);s(e),p(()=>v(m,` ${f()??""}`)),d(t,e)},D=t=>{var e=M(),r=a(e),m=a(r);u(m,{size:24,class:"text-muted-foreground"}),s(r);var i=c(r,2),S=a(i,!0);s(i);var n=c(i,2),k=a(n,!0);s(n),s(e),p(A=>{v(S,A),v(k,f())},[()=>j.t("ADMIN_NEXT.ACCESS_DENIED.ACCESS_DENIED")]),d(t,e)};z(h,t=>{g()?t(E):t(D,-1)})}d(_,l),y()}export{G as A};
