import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.a751048f.js";import{A as v}from"./constants.a095ad42.js";import{d as A,e4 as x,e3 as I,g as w,K as B,b as d,w as a,u as e,c as p,F as m,o as i,az as s,eb as l,d6 as C,d2 as f,bM as E,a as N,d3 as T,eh as o,Q as D}from"./index.dac48cf7.js";import{u as S}from"./workspaceStore.cf197afe.js";import{C as R}from"./Card.7c0bb1bb.js";import"./Logo.31124f9c.js";import"./userStore.c377c1d0.js";import"./runnerData.ae189abc.js";import"./url.1e47d6e4.js";import"./colorHelpers.5e2e7ccf.js";import"./TabPane.58068fcc.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new L().stack;c&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[c]="34bd29c4-6d91-4d97-8edf-1a2941717025",r._sentryDebugIdIdentifier="sentry-dbid-34bd29c4-6d91-4d97-8edf-1a2941717025")}catch{}})();const V={class:"inner-content"},H={class:"card-content"},G=A({__name:"Error",setup(r){const c=x(),g=I(),u=S(),y=w(()=>{var t,_,h;return(h=(t=u.state.workspace)==null?void 0:t.name)!=null?h:(_=u.state.workspace)==null?void 0:_.brandName}),n=w(()=>{const{status:t}=c.params;switch(t){case"404":return{status:t,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:t,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(t,_)=>(i(),B("div",V,[d(e(C),null,{default:a(()=>[s(l(n.value.title),1)]),_:1}),d(e(f),{class:"message"},{default:a(()=>[s(l(n.value.message),1)]),_:1}),n.value.action?(i(),p(e(E),{key:0,type:"link",onClick:b},{default:a(()=>[s(l(n.value.action),1)]),_:1})):m("",!0),n.value.showAd?(i(),p(e(R),{key:1,bordered:!1,class:"card"},{default:a(()=>[N("div",H,[d(k,{style:{"margin-bottom":"10px"}}),d(e(f),null,{default:a(()=>[s("This page is part of "+l(y.value?`the ${y.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u).state.workspace?(i(),p(e(f),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),d(e(T),{href:e(v).HOMEPAGE},{default:a(()=>[s("here")]),_:1},8,["href"]),s(".")]),_:1})):m("",!0)])]),_:1})):m("",!0)]))}});const L=D(G,[["__scopeId","data-v-522ad0d4"]]);export{L as default};
//# sourceMappingURL=Error.3e22f6b2.js.map
