import{L as k}from"./Logo.cbb8373a.js";import{d as v,eB as A,eN as x,f as w,o as i,V as I,b as c,w as a,u as e,c as p,R as f,f4 as o,aw as s,eA as l,cW as N,cS as m,bL as B,a as C,cT as T,Y as D}from"./vue-router.a333e065.js";import{u as V}from"./workspaceStore.bf1a2ac5.js";import{C as E}from"./Card.30555f3f.js";import"./router.c605742c.js";import"./api.3bef6029.js";import"./runnerData.38462a80.js";import"./url.30f67d32.js";import"./TabPane.4cf5b1ee.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new H().stack;d&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[d]="3ad2812b-5973-4d3d-9752-75c4a5b5251b",r._sentryDebugIdIdentifier="sentry-dbid-3ad2812b-5973-4d3d-9752-75c4a5b5251b")}catch{}})();const L={class:"inner-content"},S={class:"card-content"},R=v({__name:"Error",setup(r){const d=A(),g=x(),u=V(),b=w(()=>{var t,_,y;return(y=(t=u.state.workspace)==null?void 0:t.name)!=null?y:(_=u.state.workspace)==null?void 0:_.brandName}),n=w(()=>{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}}}),h=()=>{g.push({name:"playerHome"})};return(t,_)=>(i(),I("div",L,[c(e(N),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:h},{default:a(()=>[s(l(n.value.action),1)]),_:1})):f("",!0),n.value.showAd?(i(),p(e(E),{key:1,bordered:!1,class:"card"},{default:a(()=>[C("div",S,[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(T),{href:"https://abstra.io"},{default:a(()=>[s("here")]),_:1}),s(".")]),_:1})):f("",!0)])]),_:1})):f("",!0)]))}});const H=D(R,[["__scopeId","data-v-623dafe1"]]);export{H as default};
//# sourceMappingURL=Error.b3d8167e.js.map
