import{P as b}from"./PlayerNavbar.bc0b5c6e.js";import{g as h}from"./api.9febf9ca.js";import{a as d}from"./asyncComputed.78ec0807.js";import{W as v}from"./WidgetsFrame.08a9ab91.js";import{d as w,r as k,J as D,eJ as I,eD as x,b as p,ev as C,e as o,f as E,u as t,c as N,w as P,ex as V,eG as f,v as B}from"./outputWidgets.a321903e.js";import{u as n}from"./index.380e90d4.js";import"./PhKanban.vue.087dd403.js";import"./PhSignOut.vue.1879a91e.js";import"./Text.b25e1b1d.js";import"./index.578f39e5.js";import"./Link.6da229b1.js";import"./Paragraph.53f5a9bc.js";import"./Title.e1cf3e99.js";import"./index.9f566aac.js";import"./runnerData.60d212c9.js";import"./url.d108fea5.js";import"./fetch.bf5f2911.js";import"./pubsub.df0290b2.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]="43a05e4f-68b0-41c1-8156-75a2c137bd5c",a._sentryDebugIdIdentifier="sentry-dbid-43a05e4f-68b0-41c1-8156-75a2c137bd5c")}catch{}})();const L={class:"error"},W={class:"inner-content"},A=w({__name:"Error",setup(a){const r=k(n.getUser()),{result:i,refetch:_}=d(async()=>(await n.allow("kanban")).status==="ALLOWED");D(r,()=>_());const c=I(),g=({path:e})=>{c.push({name:"form",query:u.query,params:{path:e.split("/")}})},u=x(),{result:s}=d(h),y=()=>{n.removeUser(),c.push({name:"playerHome"})},m=()=>{const{status:e}=u.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 p(),C("div",null,[o("div",L,[E(b,{"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)?(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",W,[o("h1",null,f(m().status),1),o("p",null,f(m().message),1)])]),_:1},8,["main-color","theme","font-family"])):V("",!0)])])}}});const q=B(A,[["__scopeId","data-v-98d8191f"]]);export{q as default};
//# sourceMappingURL=Error.0f349585.js.map
