import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-BAw03oS4.js";import{A as h}from"./constants-2HINPs8G.js";import{e as v,b as y,U as A,l as o,f as B,w as d,n as m,j as p,B as t,p as e,$ as C,aN as _,C as I,Q as a,R as u,k as N,aP as x,H as T,g as c,aq as D}from"./jwt-decode.esm-cMnpfgdw.js";import{u as E}from"./workspaceStore-B9WQPxPo.js";import{C as R}from"./index-BJSUMwQL.js";import"./logo-BiWG9_W5.js";import"./Logo-DJdEFC-4.js";import"./userStore-DbIwjNKy.js";import"./runnerData-B02TUtQ4.js";import"./url-vqNrw1OC.js";import"./colorHelpers-CPrTu2hh.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new P().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="530df881-ecc3-48ea-9022-df2d9bdedb04",r._sentryDebugIdIdentifier="sentry-dbid-530df881-ecc3-48ea-9022-df2d9bdedb04")}catch{}})();const S={class:"inner-content"},H={class:"card-content"},V=v({__name:"Error",setup(r){const i=A(),g=T(),f=E(),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:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:l,title:o.translate("i18n_access_denied"),message:o.translate("i18n_access_denied_message"),action:"Go back to home",showAd:!0};default:return{status:"500",title:o.translate("i18n_internal_error"),message:o.translate("i18n_internal_error_message"),showAd:!1}}}),b=()=>{g.push({name:"playerHome"})};return(l,s)=>(c(),B("div",S,[d(e(C),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(I),{key:0,type:"link",onClick:b},{default:t(()=>[a(u(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(c(),m(e(R),{key:1,bordered:!1,class:"card"},{default:t(()=>[N("div",H,[d(k,{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(x),{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)]))}}),P=D(V,[["__scopeId","data-v-522ad0d4"]]);export{P as default};
//# sourceMappingURL=Error-tT58AJaY.js.map
