import{B as R,a6 as O}from"./vendor-ant-design-vue.3e0197c8.js";import{E as e,o as x,p as A,q as v,c as y,P as f}from"./index.b8342cb4.js";import{d as G}from"./vendor-vue-router.66f7893c.js";import"./vendor-@yoyoboot.e8bb6d41.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 _};
