import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-CufhdSQ7.js";import{A as h}from"./constants-BjnPUTv3.js";import{e as v,b as y,V as A,J as r,f as x,x as d,q as m,j as p,C as t,s as e,$ as C,aO as _,D as I,S as s,T as u,k as T,aQ as B,K as D,g as c,ar as N}from"./jwt-decode.esm-hjaWXwux.js";import{u as S}from"./workspaceStore-KCHQtpxL.js";import{C as E}from"./index-CI2rMmDi.js";import"./logo-BiWG9_W5.js";import"./Logo-CkrwUnIg.js";import"./userStore-DBMdJVjc.js";import"./runnerData-CNJxazV0.js";import"./url-GnsHFl5k.js";import"./colorHelpers-am_R58n2.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]="36bdb5d4-6c4d-493c-b3c8-f6397e6f7087",o._sentryDebugIdIdentifier="sentry-dbid-36bdb5d4-6c4d-493c-b3c8-f6397e6f7087")}catch{}})();const V={class:"inner-content"},R={class:"card-content"},H=v({__name:"Error",setup(o){const i=A(),g=D(),f=S(),b=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}}}),w=()=>{g.push({name:"playerHome"})};return(l,a)=>(c(),x("div",V,[d(e(C),null,{default:t(()=>[s(u(n.value.title),1)]),_:1}),d(e(_),{class:"message"},{default:t(()=>[s(u(n.value.message),1)]),_:1}),n.value.action?(c(),m(e(I),{key:0,type:"link",onClick:w},{default:t(()=>[s(u(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(c(),m(e(E),{key:1,bordered:!1,class:"card"},{default:t(()=>[T("div",R,[d(k,{style:{"margin-bottom":"10px"}}),d(e(_),null,{default:t(()=>[s("This page is part of "+u(b.value?`the ${b.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(f).state.workspace?(c(),m(e(_),{key:0},{default:t(()=>[a[1]||(a[1]=s("Automate your own processes by getting started ",-1)),d(e(B),{href:e(h).HOMEPAGE},{default:t(()=>[...a[0]||(a[0]=[s("here",-1)])]),_:1},8,["href"]),a[2]||(a[2]=s(".",-1))]),_:1})):p("",!0)])]),_:1})):p("",!0)]))}}),$=N(H,[["__scopeId","data-v-522ad0d4"]]);export{$ as default};
//# sourceMappingURL=Error-CnHU0nf9.js.map
