import{D as e,T as t,Tt as n,W as r,_ as i,nt as a,v as o,w as s,x as c,xt as l}from"./vue.runtime.esm-bundler-gHHLlCcd.js";import{F as u,f as d,u as f}from"./router-DQn-Rzfv.js";import{r as p}from"./_plugin-vue_export-helper-BgFcNt9i.js";var m={class:`size-full min-h-520px flex-col-center gap-24px overflow-hidden`},h={class:`flex text-400px text-primary`},g=e({name:`ExceptionBase`,__name:`exception-base`,props:{type:{}},setup(e){let g=e,{routerPushByKey:_}=d(),v={403:`no-permission`,404:`not-found`,500:`service-error`},y=i(()=>v[g.type]);return(e,i)=>{let d=f,g=p;return r(),c(`div`,m,[o(`div`,h,[t(d,{"local-icon":y.value},null,8,[`local-icon`])]),t(g,{type:`primary`,onClick:i[0]||=e=>l(_)(`root`)},{default:a(()=>[s(n(l(u)(`common.backToHome`)),1)]),_:1})])}}});export{g as t};