import{d as x,ar as y,o as _,c as v,C as t,G as i,f as T,B as b,Q as E,K as k,E as C,__tla as h}from"./index-92ad187a.js";let u,H=Promise.all([(()=>{try{return h}catch{}})()]).then(async()=>{let a,o,l,n,c;a={class:"flex justify-center"},o={class:"text-center"},l=["src"],n={class:"text-14px text-[var(--el-color-info)]"},c={class:"mt-20px"},u=x({name:"Error",__name:"Error",props:{type:y.string.validate(e=>["404","500","403"].includes(e)).def("404")},emits:["errorClick"],setup(e,{emit:m}){const{t:r}=E(),s={404:{url:"/assets/404-1759fece.svg",message:r("error.pageError"),buttonText:r("error.returnToHome")},500:{url:"/assets/500-8fda557c.svg",message:r("error.networkError"),buttonText:r("error.returnToHome")},403:{url:"/assets/403-af24f6bf.svg",message:r("error.noPermission"),buttonText:r("error.returnToHome")}},p=e,f=m,g=()=>{f("errorClick",p.type)};return(w,P)=>{const d=k;return _(),v("div",a,[t("div",o,[t("img",{src:s[e.type].url,alt:"",width:"350"},null,8,l),t("div",n,i(s[e.type].message),1),t("div",c,[T(d,{type:"primary",onClick:g},{default:b(()=>[C(i(s[e.type].buttonText),1)]),_:1})])])])}}})});export{u as _,H as __tla};
