import{d as x,ac as g,o as v,c as y,g as t,t as i,f as T,w as E,h as b,G as k,y as h,_ as w,__tla as H}from"./index-8dc1e40a.js";let m,C=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"},m=w(x({name:"Error",__name:"Error",props:{type:g.string.validate(e=>["404","500","403"].includes(e)).def("404")},emits:["errorClick"],setup(e,{emit:u}){const{t:r}=b(),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=u,_=()=>{f("errorClick",p.type)};return(P,j)=>{const d=k;return v(),y("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:_},{default:E(()=>[h(i(s[e.type].buttonText),1)]),_:1})])])])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/Error/src/Error.vue"]])});export{m as _,C as __tla};
