import{L as k}from"./Logo.18e623b2.js";import{a as v}from"./asyncComputed.7b5c3427.js";import{d as A,eB as x,eM as C,f as I,o as i,eu as B,b as n,w as t,u as e,c as _,ew as f,f2 as s,as as a,eA as l,cS as N,cO as m,bH as D,a as T,cP as E,S as V}from"./vue-router.74c693f1.js";import{g as H}from"./api.2418387e.js";import{C as L}from"./Card.e642dff5.js";import"./router.1b9ffe64.js";import"./runnerData.91386489.js";import"./url.8b7ee03b.js";import"./TabPane.bfa47506.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new j().stack;c&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[c]="76c3421f-ed69-4ceb-b0de-651ee98a7e1f",o._sentryDebugIdIdentifier="sentry-dbid-76c3421f-ed69-4ceb-b0de-651ee98a7e1f")}catch{}})();const S={class:"inner-content"},P={class:"card-content"},R=A({__name:"Error",setup(o){var y,b,h;const c=x(),p=C(),{result:u}=v(H),g=(h=(y=u.value)==null?void 0:y.name)!=null?h:(b=u.value)==null?void 0:b.brandName,r=I(()=>{const{status:d}=c.params;switch(d){case"404":return{status:d,title:s.translate("i18n_page_not_found"),message:s.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:d,title:s.translate("i18n_access_denied"),message:s.translate("i18n_access_denied_message"),action:"Go back to home",showAd:!0};default:return{status:"500",title:s.translate("i18n_internal_error"),message:s.translate("i18n_internal_error_message"),showAd:!1}}}),w=()=>{p.push({name:"playerHome"})};return(d,G)=>(i(),B("div",S,[n(e(N),null,{default:t(()=>[a(l(r.value.title),1)]),_:1}),n(e(m),{class:"message"},{default:t(()=>[a(l(r.value.message),1)]),_:1}),r.value.action?(i(),_(e(D),{key:0,type:"link",onClick:w},{default:t(()=>[a(l(r.value.action),1)]),_:1})):f("",!0),r.value.showAd?(i(),_(e(L),{key:1,bordered:!1,class:"card"},{default:t(()=>[T("div",P,[n(k,{style:{"margin-bottom":"10px"}}),n(e(m),null,{default:t(()=>[a("This page is part of "+l(e(g)?`the ${e(g)}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u)?(i(),_(e(m),{key:0},{default:t(()=>[a("Automate your own processes by getting started "),n(e(E),{href:"https://abstra.io"},{default:t(()=>[a("here")]),_:1}),a(".")]),_:1})):f("",!0)])]),_:1})):f("",!0)]))}});const j=V(R,[["__scopeId","data-v-5f3771e3"]]);export{j as default};
//# sourceMappingURL=Error.a68663bb.js.map
