import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3f7b87b1.js";import{A as v}from"./constants.6bea9d72.js";import{d as A,ec as x,e4 as E,c as h,a4 as I,f as d,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.4aed0432.js";import{u as S}from"./workspaceStore.a95ba086.js";import{C as R}from"./Card.d2b6a792.js";import"./Logo.0edaafdf.js";import"./userStore.6b52d148.js";import"./runnerData.72dae76e.js";import"./url.b192466e.js";import"./colorHelpers.1c38eab0.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]="110b818d-0d6a-4c5f-82e7-cd9b79a9ad01",r._sentryDebugIdIdentifier="sentry-dbid-110b818d-0d6a-4c5f-82e7-cd9b79a9ad01")}catch{}})();const V={class:"inner-content"},H={class:"card-content"},G=A({__name:"Error",setup(r){const c=x(),g=E(),u=S(),y=h(()=>{var t,_,b;return(b=(t=u.state.workspace)==null?void 0:t.name)!=null?b:(_=u.state.workspace)==null?void 0:_.brandName}),n=h(()=>{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}}}),w=()=>{g.push({name:"playerHome"})};return(t,_)=>(i(),I("div",V,[d(e(T),null,{default:a(()=>[s(l(n.value.title),1)]),_:1}),d(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,[d(k,{style:{"margin-bottom":"10px"}}),d(e(m),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(m),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),d(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.54eb9cb6.js.map
