import{B as R,a6 as O}from"./vendor-ant-design-vue.e5e30ccc.js";import{E as e,o as x,p as A,q as v,c as y,P as f}from"./index.f528fccb.js";import{d as G}from"./vendor-vue-router.66f7893c.js";import"./vendor-@yoyoboot.36a72a89.js";import{f as P,r as k,e as m,u as s,c as i}from"./vendor-@vue.d54eea3a.js";var B="/assets/no-data.f7e550cc.svg",C="/assets/net-error.61b7e6df.svg",F=P({name:"ErrorPage",props:{status:{type:Number,default:e.PAGE_NOT_FOUND},title:{type:String,default:""},subTitle:{type:String,default:""},full:{type:Boolean,default:!1}},setup(a){const n=k(new Map),{query:d}=G(),l=x(),c=A(),{l:t}=v.methods,{prefixCls:E}=y("app-exception-page"),p=m(()=>{const{status:o}=d,{status:r}=a;return Number(o)||r}),g=m(()=>s(n).get(s(p))),T=t("BackLogin"),u=t("BackHome");return s(n).set(e.PAGE_NOT_ACCESS,{title:"403",status:`${e.PAGE_NOT_ACCESS}`,subTitle:t("SubTitle403"),btnText:a.full?T:u,handler:()=>a.full?l(f.BASE_LOGIN):l()}),s(n).set(e.PAGE_NOT_FOUND,{title:"404",status:`${e.PAGE_NOT_FOUND}`,subTitle:t("SubTitle404"),btnText:a.full?T:u,handler:()=>a.full?l(f.BASE_LOGIN):l()}),s(n).set(e.ERROR,{title:"500",status:`${e.ERROR}`,subTitle:t("SubTitle500"),btnText:u,handler:()=>l()}),s(n).set(e.PAGE_NOT_DATA,{title:t("NoDataTitle"),subTitle:"",btnText:t("Redo"),handler:()=>c(),icon:B}),s(n).set(e.NET_WORK_ERROR,{title:t("NetworkErrorTitle"),subTitle:t("NetworkErrorSubTitle"),btnText:t("Redo"),handler:()=>c(),icon:C}),()=>{const{title:o,subTitle:r,btnText:_,icon:b,handler:N,status:S}=s(g)||{};return i(O,{class:E,status:S,title:a.title||o,"sub-title":a.subTitle||r},{extra:()=>_&&i(R,{type:"primary",onClick:N},{default:()=>_}),icon:()=>b?i("img",{src:b},null):null})}}});export{F as _};
