import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-DVBfpuSn.js";import{A as h}from"./constants-peN43IX4.js";import{a as v,c as w,ak as A,i as o,k as B,h as d,b as p,e as _,w as t,u as e,ao as I,b2 as f,B as x,g as a,t as u,n as C,b3 as N,af as T,f as c,aO as D}from"./jwt-decode.esm-CcQ3pRvv.js";import{u as E}from"./workspaceStore-DsextT5f.js";import{C as S}from"./index-Dd5qxh4Q.js";import"./logo-BiWG9_W5.js";import"./Logo-nfOvPJmH.js";import"./userStore-C8pIzp5O.js";import"./runnerData-758W1Y4X.js";import"./url-CpkKDaxC.js";import"./colorHelpers-iX7tsD3g.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new G().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="3c0257ed-ba49-4374-94e3-6da7cd0ba4b9",r._sentryDebugIdIdentifier="sentry-dbid-3c0257ed-ba49-4374-94e3-6da7cd0ba4b9")}catch{}})();const R={class:"inner-content"},V={class:"card-content"},H=v({__name:"Error",setup(r){const i=A(),g=T(),m=E(),b=w(()=>m.state.workspace?.name??m.state.workspace?.brandName),n=w(()=>{const{status:l}=i.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}}}),y=()=>{g.push({name:"playerHome"})};return(l,s)=>(c(),B("div",R,[d(e(I),null,{default:t(()=>[a(u(n.value.title),1)]),_:1}),d(e(f),{class:"message"},{default:t(()=>[a(u(n.value.message),1)]),_:1}),n.value.action?(c(),p(e(x),{key:0,type:"link",onClick:y},{default:t(()=>[a(u(n.value.action),1)]),_:1})):_("",!0),n.value.showAd?(c(),p(e(S),{key:1,bordered:!1,class:"card"},{default:t(()=>[C("div",V,[d(k,{style:{"margin-bottom":"10px"}}),d(e(f),null,{default:t(()=>[a("This page is part of "+u(b.value?`the ${b.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(m).state.workspace?(c(),p(e(f),{key:0},{default:t(()=>[s[1]||(s[1]=a("Automate your own processes by getting started ",-1)),d(e(N),{href:e(h).HOMEPAGE},{default:t(()=>[...s[0]||(s[0]=[a("here",-1)])]),_:1},8,["href"]),s[2]||(s[2]=a(".",-1))]),_:1})):_("",!0)])]),_:1})):_("",!0)]))}}),G=D(H,[["__scopeId","data-v-522ad0d4"]]);export{G as default};
//# sourceMappingURL=Error-BXBtt-K2.js.map
