import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-CPoq8QfW.js";import{A as h}from"./constants-B87hyFPv.js";import{e as v,b,W as A,K as o,f as x,v as i,q as f,j as p,x as t,s as e,a0 as B,aP as _,B as I,T as a,U as u,k as N,aR as T,N as C,g as c,as as D}from"./jwt-decode.esm-TBTnMpAQ.js";import{u as E}from"./workspaceStore-BFbr_c_Q.js";import{C as R}from"./index-rOmUqnMH.js";import"./logo-BiWG9_W5.js";import"./Logo-DSVZcRye.js";import"./userStore-CKr6VRns.js";import"./runnerData-5zbRPzoM.js";import"./url-qvab8xVu.js";import"./colorHelpers-BMn7fztv.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new P().stack;d&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[d]="4945e558-0945-404e-9f4b-d692aa24d11b",r._sentryDebugIdIdentifier="sentry-dbid-4945e558-0945-404e-9f4b-d692aa24d11b")}catch{}})();const S={class:"inner-content"},V={class:"card-content"},H=v({__name:"Error",setup(r){const d=A(),g=C(),m=E(),y=b(()=>m.state.workspace?.name??m.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(),x("div",S,[i(e(B),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(),f(e(I),{key:0,type:"link",onClick:w},{default:t(()=>[a(u(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(c(),f(e(R),{key:1,bordered:!1,class:"card"},{default:t(()=>[N("div",V,[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(m).state.workspace?(c(),f(e(_),{key:0},{default:t(()=>[s[1]||(s[1]=a("Automate your own processes by getting started ",-1)),i(e(T),{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)]))}}),P=D(H,[["__scopeId","data-v-522ad0d4"]]);export{P as default};
//# sourceMappingURL=Error-CgT_KVp5.js.map
