import{P as b}from"./PlayerNavbar.19a48ee3.js";import{g as h}from"./api.00407e52.js";import{a as d}from"./asyncComputed.602f821b.js";import{W as v}from"./WidgetsFrame.02d82153.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 a,c as N,w as P,ew as V,eD as p,v as A}from"./outputWidgets.cb8d4118.js";import{u as n}from"./index.618e9d9e.js";import"./PhKanban.vue.74e2223b.js";import"./PhSignOut.vue.c3e3ed91.js";import"./Text.9ccde808.js";import"./index.b090e533.js";import"./Link.4ac04f66.js";import"./Paragraph.bf76481e.js";import"./Title.0c6e5569.js";import"./index.ec60d2a0.js";import"./runnerData.c466048a.js";import"./url.f415825b.js";import"./pubsub.6650fe4e.js";import"./fetch.a950ecae.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new q().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="5666bf7e-dae7-4fba-94f2-ba15e84ae3a6",t._sentryDebugIdIdentifier="sentry-dbid-5666bf7e-dae7-4fba-94f2-ba15e84ae3a6")}catch{}})();const B={class:"error"},L={class:"inner-content"},W=w({__name:"Error",setup(t){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(h),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(b,{"user-email":(l=r.value)==null?void 0:l.claims.email,"is-kanban-visible":a(i)||!1,"runner-data":a(s),onNavigate:g,onLogout:y},null,8,["user-email","is-kanban-visible","runner-data"]),a(s)?(f(),N(v,{key:0,"main-color":a(s).mainColor,theme:a(s).theme,"font-family":a(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.bcd92629.js.map
