import{P as h}from"./PlayerNavbar.39918cc6.js";import{g as b}from"./api.149f0325.js";import{a as d}from"./asyncComputed.9c2e7c90.js";import{W as v}from"./WidgetsFrame.da1bb74c.js";import{d as w,r as k,I,eI as D,eA as x,b as f,eu as C,e as o,f as E,u as t,c as N,w as P,ew as V,eD as p,v as A}from"./outputWidgets.67d01534.js";import{u as n}from"./index.4eebfe3f.js";import"./PhKanban.vue.01a8c7a1.js";import"./PhSignOut.vue.09fa917c.js";import"./Text.fce07a64.js";import"./index.a9d2fb7a.js";import"./Link.1ec60047.js";import"./Paragraph.5d6efe5b.js";import"./Title.3431c309.js";import"./index.cf78c4e6.js";import"./runnerData.0c424852.js";import"./url.df413b89.js";import"./pubsub.ce0b10ac.js";import"./fetch.03065101.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new q().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="13520916-0b7f-4a2a-a354-f6fa345293f4",a._sentryDebugIdIdentifier="sentry-dbid-13520916-0b7f-4a2a-a354-f6fa345293f4")}catch{}})();const B={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");I(r,()=>_());const u=D(),g=({path:e})=>{u.push({name:"form",query:c.query,params:{path:e.split("/")}})},c=x(),{result:s}=d(b),y=()=>{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,F)=>{var l;return f(),C("div",null,[o("div",B,[E(h,{"user-email":(l=r.value)==null?void 0:l.claims.email,"is-kanban-visible":t(i)||!1,"runner-data":t(s),onNavigate:g,onLogout:y},null,8,["user-email","is-kanban-visible","runner-data"]),t(s)?(f(),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,p(m().status),1),o("p",null,p(m().message),1)])]),_:1},8,["main-color","theme","font-family"])):V("",!0)])])}}});const q=A(W,[["__scopeId","data-v-98d8191f"]]);export{q as default};
//# sourceMappingURL=Error.eea685c7.js.map
