import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-Dfu-6EjM.js";import{A as h}from"./constants-DCeOk9KD.js";import{e as v,b as w,aj as A,l as o,f as B,v as i,n as p,j as _,w as t,p as e,al as I,b6 as f,B as x,q as a,t as u,k as C,b7 as N,af as T,g as c,aM as D}from"./jwt-decode.esm-1W9iq5Oc.js";import{u as E}from"./workspaceStore-C4LuPoiS.js";import{C as S}from"./index-CRSDZad3.js";import"./logo-BiWG9_W5.js";import"./Logo-DQ7U0XOa.js";import"./userStore-0WDgP3uZ.js";import"./runnerData-DgRTB2fA.js";import"./url-emG1RSF5.js";import"./colorHelpers-DT7BywO0.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new H().stack;l&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[l]="0995e55a-2ba5-4242-a768-0d108beba865",r._sentryDebugIdIdentifier="sentry-dbid-0995e55a-2ba5-4242-a768-0d108beba865")}catch{}})();const R={class:"inner-content"},V={class:"card-content"},j=v({__name:"Error",setup(r){const l=A(),g=T(),m=E(),b=w(()=>m.state.workspace?.name??m.state.workspace?.brandName),n=w(()=>{const{status:d}=l.params;switch(d){case"404":return{status:d,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:d,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(d,s)=>(c(),B("div",R,[i(e(I),null,{default:t(()=>[a(u(n.value.title),1)]),_:1}),i(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,[i(k,{style:{"margin-bottom":"10px"}}),i(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)),i(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)]))}}),H=D(j,[["__scopeId","data-v-522ad0d4"]]);export{H as default};
//# sourceMappingURL=Error-JT5ssXw4.js.map
