import{d as x,p as g,o as v,c as y,g as t,t as c,i as T,w as E,n as b,J as k,j as w,_ as H,__tla as h}from"./index-b2b3c6c4.js";let m,C=Promise.all([(()=>{try{return h}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=H(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(j,P)=>{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,c(s[e.type].message),1),t("div",i,[T(d,{type:"primary",onClick:_},{default:E(()=>[w(c(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};
