import{d,ai as g,o as v,c as y,h as s,t as c,g as T,w as b,i as E,D as h,q as k,_ as w,__tla as C}from"./index-7d5b26d3.js";let m,H=Promise.all([(()=>{try{return C}catch{}})()]).then(async()=>{let a,o,l,n,i;a={class:"flex justify-center"},o={class:"text-center"},l=["src"],n={class:"text-14px text-[var(--el-color-info)]"},i={class:"mt-20px"},m=w(d({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}=E(),t={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(z,D)=>{const x=h;return v(),y("div",a,[s("div",o,[s("img",{src:t[e.type].url,alt:"",width:"350"},null,8,l),s("div",n,c(t[e.type].message),1),s("div",i,[T(x,{type:"primary",onClick:_},{default:b(()=>[k(c(t[e.type].buttonText),1)]),_:1})])])])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/components/Error/src/Error.vue"]])});export{m as _,H as __tla};
