import{_ as b}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-DyvdRQ5C.js";import{A as h}from"./constants-BsVzWrXw.js";import{e as v,b as y,U as A,H as r,f as B,p as d,l as m,j as p,w as t,n as e,$ as I,aO as _,B as x,R as a,S as u,k as C,aQ as N,J as S,g as c,ar as T}from"./jwt-decode.esm-BPi7UGps.js";import{u as D}from"./workspaceStore-C0F9gl0n.js";import{C as E}from"./index-X5taQPAx.js";import"./logo-BiWG9_W5.js";import"./Logo-BjkHFdxE.js";import"./userStore-DX_yqXyz.js";import"./runnerData-CVdM876v.js";import"./url-pqXfY2Q9.js";import"./colorHelpers-2--HXixt.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new $().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="77367f91-ef51-46de-ac6d-e8263d72ff19",o._sentryDebugIdIdentifier="sentry-dbid-77367f91-ef51-46de-ac6d-e8263d72ff19")}catch{}})();const R={class:"inner-content"},H={class:"card-content"},V=v({__name:"Error",setup(o){const i=A(),g=S(),f=D(),w=y(()=>f.state.workspace?.name??f.state.workspace?.brandName),n=y(()=>{const{status:l}=i.params;switch(l){case"404":return{status:l,title:r.translate("i18n_page_not_found"),message:r.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:l,title:r.translate("i18n_access_denied"),message:r.translate("i18n_access_denied_message"),action:"Go back to home",showAd:!0};default:return{status:"500",title:r.translate("i18n_internal_error"),message:r.translate("i18n_internal_error_message"),showAd:!1}}}),k=()=>{g.push({name:"playerHome"})};return(l,s)=>(c(),B("div",R,[d(e(I),null,{default:t(()=>[a(u(n.value.title),1)]),_:1}),d(e(_),{class:"message"},{default:t(()=>[a(u(n.value.message),1)]),_:1}),n.value.action?(c(),m(e(x),{key:0,type:"link",onClick:k},{default:t(()=>[a(u(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(c(),m(e(E),{key:1,bordered:!1,class:"card"},{default:t(()=>[C("div",H,[d(b,{style:{"margin-bottom":"10px"}}),d(e(_),null,{default:t(()=>[a("This page is part of "+u(w.value?`the ${w.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(f).state.workspace?(c(),m(e(_),{key:0},{default:t(()=>[s[1]||(s[1]=a("Automate your own processes by getting started ",-1)),d(e(N),{href:e(h).HOMEPAGE},{default:t(()=>[...s[0]||(s[0]=[a("here",-1)])]),_:1},8,["href"]),s[2]||(s[2]=a(".",-1))]),_:1})):p("",!0)])]),_:1})):p("",!0)]))}}),$=T(V,[["__scopeId","data-v-522ad0d4"]]);export{$ as default};
//# sourceMappingURL=Error-YjGHJ-3t.js.map
