import{p as m,c as p}from"./index-D4Ne4xf-.js";import{l as u,ai as d,m as x,p as _,q as r,T as o,U as g,O as f,S as y}from"./vue-chunks-DyZSmvoe.js";const v="/assets/404-B3JyPfEa.svg",B="/assets/500-BGu8fdSB.svg",T="/assets/403-RqeqO19C.svg",h={class:"flex justify-center"},k={class:"text-center"},C=["src"],E={class:"text-14px text-[var(--el-color-info)]"},b={class:"mt-20px"},P=u({__name:"Error",props:{type:m.string.validate(e=>["404","500","403"].includes(e)).def("404")},emits:["errorClick"],setup(e,{emit:n}){const{t}=p(),s={404:{url:v,message:t("error.pageError"),buttonText:t("error.returnToHome")},500:{url:B,message:t("error.networkError"),buttonText:t("error.returnToHome")},403:{url:T,message:t("error.noPermission"),buttonText:t("error.returnToHome")}},a=e,c=n,i=()=>{c("errorClick",a.type)};return(w,q)=>{const l=d("BaseButton");return x(),_("div",h,[r("div",k,[r("img",{width:"350",src:s[e.type].url,alt:""},null,8,C),r("div",E,o(s[e.type].message),1),r("div",b,[g(l,{type:"primary",onClick:i},{default:f(()=>[y(o(s[e.type].buttonText),1)]),_:1})])])])}}});export{P as _};
