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 n,c as b}from"./Dyk1ealw.js";import{s as v}from"./DEEYSJdk.js";import{i as z}from"./cYAxD0tk.js";import{p as x}from"./CwjTv5pv.js";import{i as j}from"./CVq-Ik9t.js";import{S as u}from"./BwjKEKhg.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 H(_,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),n(()=>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 p=c(i,2),k=a(p,!0);s(p),s(e),n(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{H as A};
