import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.9fc63b70.js";import{A as v}from"./constants.54f5dbb0.js";import{d as A,eb as x,e5 as I,c as h,a5 as T,f as d,b as a,u as e,a as p,h as m,o as i,g as s,ed as l,A as B,T as f,bR as C,e as E,d8 as N,eG as o,_ as D}from"./jwt-decode.esm.28320b05.js";import{u as R}from"./workspaceStore.20104d6a.js";import{C as S}from"./Card.bf61638b.js";import"./Logo.e3649776.js";import"./userStore.c0562f9d.js";import"./url.e7d14364.js";import"./colorHelpers.f396fe13.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new L().stack;c&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[c]="91619ec0-2ead-4be7-b147-373b75d92750",r._sentryDebugIdIdentifier="sentry-dbid-91619ec0-2ead-4be7-b147-373b75d92750")}catch{}})();const V={class:"inner-content"},G={class:"card-content"},H=A({__name:"Error",setup(r){const c=x(),g=I(),u=R(),b=h(()=>{var t,_,y;return(y=(t=u.state.workspace)==null?void 0:t.name)!=null?y:(_=u.state.workspace)==null?void 0:_.brandName}),n=h(()=>{const{status:t}=c.params;switch(t){case"404":return{status:t,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:t,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(t,_)=>(i(),T("div",V,[d(e(B),null,{default:a(()=>[s(l(n.value.title),1)]),_:1}),d(e(f),{class:"message"},{default:a(()=>[s(l(n.value.message),1)]),_:1}),n.value.action?(i(),p(e(C),{key:0,type:"link",onClick:w},{default:a(()=>[s(l(n.value.action),1)]),_:1})):m("",!0),n.value.showAd?(i(),p(e(S),{key:1,bordered:!1,class:"card"},{default:a(()=>[E("div",G,[d(k,{style:{"margin-bottom":"10px"}}),d(e(f),null,{default:a(()=>[s("This page is part of "+l(b.value?`the ${b.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u).state.workspace?(i(),p(e(f),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),d(e(N),{href:e(v).HOMEPAGE},{default:a(()=>[s("here")]),_:1},8,["href"]),s(".")]),_:1})):m("",!0)])]),_:1})):m("",!0)]))}});const L=D(H,[["__scopeId","data-v-522ad0d4"]]);export{L as default};
//# sourceMappingURL=Error.73539d40.js.map
