import{P as h}from"./PlayerNavbar.a89c1e87.js";import{g as b}from"./api.8ecad6bb.js";import{a as d}from"./asyncComputed.8f047c40.js";import{W as v}from"./WidgetsFrame.22445284.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.7dd23d3d.js";import{u as n}from"./index.ac9b4c61.js";import"./PhKanban.vue.b32a2861.js";import"./PhSignOut.vue.0b43dbfe.js";import"./Text.8f0caa1d.js";import"./Base.4bf9624b.js";import"./index.63d9c692.js";import"./Link.ffd51525.js";import"./Paragraph.7df229fc.js";import"./Title.0952eb37.js";import"./index.3a6370f6.js";import"./runnerData.13e158ee.js";import"./url.6301f7e9.js";import"./fetch.55a475bd.js";import"./pubsub.692bcdfa.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]="63969e19-43c5-498d-a605-866a56dbf524",a._sentryDebugIdIdentifier="sentry-dbid-63969e19-43c5-498d-a605-866a56dbf524")}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:c.query,params:{path:e.split("/")}})},c=x(),{result:s}=d(b),g=()=>{n.removeUser(),u.push({name:"playerHome"})},m=()=>{const{status:e}=c.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(h,{"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(m().status),1),o("p",null,f(m().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.4dc43344.js.map
