import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-BP-78XpT.js";import{A as h}from"./constants-B5rys1IL.js";import{e as v,b as y,W as A,K as o,f as I,v as d,q as m,j as p,x as t,s as e,a0 as N,aR as _,B as T,T as a,U as c,k as x,aT as B,N as C,g as f,ar as D}from"./jwt-decode.esm-CX61wVx3.js";import{u as E}from"./workspaceStore-QlTT1mu8.js";import{C as R}from"./index-GnIaed8S.js";import"./logo-BiWG9_W5.js";import"./Logo-Dr2w7cZG.js";import"./userStore-C3Z0vN5p.js";import"./runnerData-B4AKypWD.js";import"./url-D1jI6Lt8.js";import"./colorHelpers-Dde0Xcnl.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new j().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="a735bdb8-fac1-4f3f-9ff3-3204a0a74d5d",r._sentryDebugIdIdentifier="sentry-dbid-a735bdb8-fac1-4f3f-9ff3-3204a0a74d5d")}catch{}})();const S={class:"inner-content"},V={class:"card-content"},H=v({__name:"Error",setup(r){const i=A(),g=C(),l=E();l.actions.fetchIfNeeded();const b=y(()=>l.state.workspace?.name??l.state.workspace?.brandName),n=y(()=>{const{status:u}=i.params;switch(u){case"404":return{status:u,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:u,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(u,s)=>(f(),I("div",S,[d(e(N),null,{default:t(()=>[a(c(n.value.title),1)]),_:1}),d(e(_),{class:"message"},{default:t(()=>[a(c(n.value.message),1)]),_:1}),n.value.action?(f(),m(e(T),{key:0,type:"link",onClick:w},{default:t(()=>[a(c(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(f(),m(e(R),{key:1,bordered:!1,class:"card"},{default:t(()=>[x("div",V,[d(k,{style:{"margin-bottom":"10px"}}),d(e(_),null,{default:t(()=>[a("This page is part of "+c(b.value?`the ${b.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(l).state.workspace?(f(),m(e(_),{key:0},{default:t(()=>[s[1]||(s[1]=a("Automate your own processes by getting started ",-1)),d(e(B),{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-db06ec04"]]);export{j as default};
//# sourceMappingURL=Error-BLJ5cCMo.js.map
