import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.03625e6e.js";import{A as v}from"./constants.4217f4ed.js";import{d as A,ec as x,e4 as E,c as h,a4 as I,f as c,b as a,u as e,a as p,h as f,o as i,g as s,ea as l,A as T,T as m,bQ as B,e as C,d5 as N,eE as o,_ as D}from"./jwt-decode.esm.9a8c48e0.js";import{u as S}from"./workspaceStore.b955b0a2.js";import{C as R}from"./Card.ba30a3db.js";import"./Logo.f1fdf1b2.js";import"./userStore.1333dd7d.js";import"./runnerData.135ba9ac.js";import"./url.143ffc6e.js";import"./colorHelpers.cae3a29f.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new L().stack;d&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[d]="66291e5b-b02a-48d1-97a9-63c5f64c86ba",r._sentryDebugIdIdentifier="sentry-dbid-66291e5b-b02a-48d1-97a9-63c5f64c86ba")}catch{}})();const V={class:"inner-content"},H={class:"card-content"},G=A({__name:"Error",setup(r){const d=x(),g=E(),u=S(),b=h(()=>{var t,_,y;return(y=(t=u.state.workspace)==null?void 0:t.name)!=null?y:(_=u.state.workspace)==null?void 0:_.brandName}),n=h(()=>{const{status:t}=d.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}}}),w=()=>{g.push({name:"playerHome"})};return(t,_)=>(i(),I("div",V,[c(e(T),null,{default:a(()=>[s(l(n.value.title),1)]),_:1}),c(e(m),{class:"message"},{default:a(()=>[s(l(n.value.message),1)]),_:1}),n.value.action?(i(),p(e(B),{key:0,type:"link",onClick:w},{default:a(()=>[s(l(n.value.action),1)]),_:1})):f("",!0),n.value.showAd?(i(),p(e(R),{key:1,bordered:!1,class:"card"},{default:a(()=>[C("div",H,[c(k,{style:{"margin-bottom":"10px"}}),c(e(m),null,{default:a(()=>[s("This page is part of "+l(b.value?`the ${b.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u).state.workspace?(i(),p(e(m),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),c(e(N),{href:e(v).HOMEPAGE},{default:a(()=>[s("here")]),_:1},8,["href"]),s(".")]),_:1})):f("",!0)])]),_:1})):f("",!0)]))}});const L=D(G,[["__scopeId","data-v-522ad0d4"]]);export{L as default};
//# sourceMappingURL=Error.6065036a.js.map
