import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-B6ccuaeQ.js";import{A as h}from"./constants-CRRRdcnD.js";import{e as v,b,T as A,G as o,f as B,t as i,l as m,j as p,y as t,n as e,Z as I,aN as _,B as N,Q as a,R as u,k as T,aP as x,H as C,g as c,aq as D}from"./jwt-decode.esm-Bw7_fA5B.js";import{u as E}from"./workspaceStore-DBRM2rRw.js";import{C as R}from"./index-CgULq8_4.js";import"./logo-BiWG9_W5.js";import"./Logo-DXEJHghK.js";import"./userStore-DLKN1Ius.js";import"./runnerData-DrbfUeer.js";import"./url-DO-fsxUp.js";import"./colorHelpers-BQVfELzg.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new G().stack;d&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[d]="b3c5f98d-714d-4813-9e45-6b85fa09502e",r._sentryDebugIdIdentifier="sentry-dbid-b3c5f98d-714d-4813-9e45-6b85fa09502e")}catch{}})();const S={class:"inner-content"},H={class:"card-content"},V=v({__name:"Error",setup(r){const d=A(),g=C(),f=E(),y=b(()=>f.state.workspace?.name??f.state.workspace?.brandName),n=b(()=>{const{status:l}=d.params;switch(l){case"404":return{status:l,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:l,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(l,s)=>(c(),B("div",S,[i(e(I),null,{default:t(()=>[a(u(n.value.title),1)]),_:1}),i(e(_),{class:"message"},{default:t(()=>[a(u(n.value.message),1)]),_:1}),n.value.action?(c(),m(e(N),{key:0,type:"link",onClick:w},{default:t(()=>[a(u(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(c(),m(e(R),{key:1,bordered:!1,class:"card"},{default:t(()=>[T("div",H,[i(k,{style:{"margin-bottom":"10px"}}),i(e(_),null,{default:t(()=>[a("This page is part of "+u(y.value?`the ${y.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(f).state.workspace?(c(),m(e(_),{key:0},{default:t(()=>[s[1]||(s[1]=a("Automate your own processes by getting started ",-1)),i(e(x),{href:e(h).HOMEPAGE},{default:t(()=>[...s[0]||(s[0]=[a("here",-1)])]),_:1},8,["href"]),s[2]||(s[2]=a(".",-1))]),_:1})):p("",!0)])]),_:1})):p("",!0)]))}}),G=D(V,[["__scopeId","data-v-522ad0d4"]]);export{G as default};
//# sourceMappingURL=Error-CWzYTwMi.js.map
