import{L as k}from"./Logo.ba350f35.js";import{d as v,ed as A,eq as x,f as w,X as I,b as d,w as a,u as e,c as f,R as p,o as l,aF as s,ec as i,db as C,d7 as m,bS as N,a as B,d8 as D,eV as o,$ as T}from"./vue-router.4a8a3251.js";import{u as V}from"./workspaceStore.f4d19cfe.js";import{C as E}from"./Card.d67133ee.js";import"./url.11181b9e.js";import"./colorHelpers.e2d21695.js";import"./TabPane.ee7acb8e.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new H().stack;c&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[c]="e542a6db-c6df-4916-adc0-58333c51eb82",r._sentryDebugIdIdentifier="sentry-dbid-e542a6db-c6df-4916-adc0-58333c51eb82")}catch{}})();const S={class:"inner-content"},L={class:"card-content"},R=v({__name:"Error",setup(r){const c=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}=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}}}),h=()=>{g.push({name:"playerHome"})};return(t,_)=>(l(),I("div",S,[d(e(C),null,{default:a(()=>[s(i(n.value.title),1)]),_:1}),d(e(m),{class:"message"},{default:a(()=>[s(i(n.value.message),1)]),_:1}),n.value.action?(l(),f(e(N),{key:0,type:"link",onClick:h},{default:a(()=>[s(i(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(l(),f(e(E),{key:1,bordered:!1,class:"card"},{default:a(()=>[B("div",L,[d(k,{style:{"margin-bottom":"10px"}}),d(e(m),null,{default:a(()=>[s("This page is part of "+i(b.value?`the ${b.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u).state.workspace?(l(),f(e(m),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),d(e(D),{href:"https://abstra.io"},{default:a(()=>[s("here")]),_:1}),s(".")]),_:1})):p("",!0)])]),_:1})):p("",!0)]))}});const H=T(R,[["__scopeId","data-v-623dafe1"]]);export{H as default};
//# sourceMappingURL=Error.00fab715.js.map
