import{P as b}from"./PlayerNavbar.f03d8458.js";import{g as h}from"./api.e416522b.js";import{a as d}from"./asyncComputed.6b2a5298.js";import{W as v}from"./WidgetsFrame.81c1eb3e.js";import{d as w,r as k,K as D,eK as I,eE as x,b as p,ew as E,e as o,f as C,u as t,c as N,w as P,ey as V,eH as f,x as B}from"./outputWidgets.eb498848.js";import{u as n}from"./index.6db17c6b.js";import"./PhKanban.vue.7f700aad.js";import"./PhSignOut.vue.91be2cfd.js";import"./Text.c3630863.js";import"./Base.60455d70.js";import"./index.9769729d.js";import"./Link.32e09244.js";import"./Paragraph.82d8120c.js";import"./Title.ef0a0830.js";import"./index.c6702b27.js";import"./runnerData.c01bfcd7.js";import"./url.1d686ce1.js";import"./fetch.fcae2051.js";import"./pubsub.1ca1fb40.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new A().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="db8fd89f-a152-429b-840e-357329849472",a._sentryDebugIdIdentifier="sentry-dbid-db8fd89f-a152-429b-840e-357329849472")}catch{}})();const K={class:"error"},L={class:"inner-content"},W=w({__name:"Error",setup(a){const r=k(n.getUser()),{result:i,refetch:_}=d(async()=>(await n.allow("kanban")).status==="ALLOWED");D(r,()=>_());const u=I(),y=({path:e})=>{u.push({name:"form",query:m.query,params:{path:e.split("/")}})},m=x(),{result:s}=d(h),g=()=>{n.removeUser(),u.push({name:"playerHome"})},c=()=>{const{status:e}=m.params;switch(e){case"404":return{status:e,message:"Page not found."};case"403":return{status:e,message:"Access denied. Please contact your administrator."};default:return{status:"500",message:"An unknown error ocurred. Please try again or contact support."}}};return(e,q)=>{var l;return p(),E("div",null,[o("div",K,[C(b,{"user-email":(l=r.value)==null?void 0:l.claims.email,"is-kanban-visible":t(i)||!1,"runner-data":t(s),onNavigate:y,onLogout:g},null,8,["user-email","is-kanban-visible","runner-data"]),t(s)?(p(),N(v,{key:0,"main-color":t(s).mainColor,theme:t(s).theme,"font-family":t(s).fontFamily,style:{height:"100vh",width:"100%"}},{default:P(()=>[o("div",L,[o("h1",null,f(c().status),1),o("p",null,f(c().message),1)])]),_:1},8,["main-color","theme","font-family"])):V("",!0)])])}}});const A=B(W,[["__scopeId","data-v-98d8191f"]]);export{A as default};
//# sourceMappingURL=Error.e2202484.js.map
