import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-CN5_Lk1n.js";import{A as h}from"./constants-DLqQBhqI.js";import{e as v,b as w,an as A,i as o,p as B,m as i,f as m,g as p,w as t,j as e,ao as I,b3 as _,B as x,k as a,t as u,s as C,b4 as N,ai as T,h as c,aO as D}from"./jwt-decode.esm-og2W_mys.js";import{u as E}from"./workspaceStore-B4xim6np.js";import{C as S}from"./index-F4m9QP88.js";import"./logo-BiWG9_W5.js";import"./Logo-BNNRtoA7.js";import"./userStore-TcL0Pw6I.js";import"./runnerData-DQlisCXz.js";import"./url-Di0QLUa5.js";import"./colorHelpers-BW0h5pOm.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new j().stack;d&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[d]="ae92bf37-70d6-4e4e-818c-6a0bfd17818a",r._sentryDebugIdIdentifier="sentry-dbid-ae92bf37-70d6-4e4e-818c-6a0bfd17818a")}catch{}})();const R={class:"inner-content"},V={class:"card-content"},H=v({__name:"Error",setup(r){const d=A(),g=T(),f=E(),b=w(()=>f.state.workspace?.name??f.state.workspace?.brandName),n=w(()=>{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}}}),y=()=>{g.push({name:"playerHome"})};return(l,s)=>(c(),B("div",R,[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(x),{key:0,type:"link",onClick:y},{default:t(()=>[a(u(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(c(),m(e(S),{key:1,bordered:!1,class:"card"},{default:t(()=>[C("div",V,[i(k,{style:{"margin-bottom":"10px"}}),i(e(_),null,{default:t(()=>[a("This page is part of "+u(b.value?`the ${b.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(N),{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)]))}}),j=D(H,[["__scopeId","data-v-522ad0d4"]]);export{j as default};
//# sourceMappingURL=Error-BStPlxSA.js.map
