"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("element-plus"),p=require("../types.js"),d={class:"center__desc"},m=e.defineComponent({__name:"index",props:p.wetErrorPageProps,emits:["backhome"],setup(l,{emit:c}){const r=o.useNamespace("errorpage"),t=l,a=c,n={404:{title:"404",desc:"对不起，资源不存在"},500:{title:"500",desc:"服务器错误，请稍后再试"}};return(_,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(r).b()]),style:e.normalizeStyle({"--wet-error-page-bg":`url(${t.backgroundImage||""})`})},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r).e("center")])},[e.createElementVNode("h1",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n[t.type].title.split(""),(i,u)=>(e.openBlock(),e.createElementBlock("span",{class:"center__desc-span",key:u},e.toDisplayString(i),1))),128))]),e.createElementVNode("div",d,e.toDisplayString(n[t.type].desc),1),e.createVNode(e.unref(o.ElButton),{type:"primary",onClick:s[0]||(s[0]=()=>a("backhome"))},{default:e.withCtx(()=>[e.createTextVNode("返回首页")]),_:1})],2)],6))}});exports.default=m;
