import{aQ as b,ad as C,cq as $,ab as w,a8 as h,X as B,at as g,cb as I,ah as N,bs as n,an as r,ak as m,bC as i,al as S,bj as o,bF as T,am as u,bT as l,bO as v,cv as E,aq as y,ct as d,g as R,ap as V,cf as q,_ as D}from"./index-BVAEVuZQ.js";const t={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},k={[t.primary]:b,[t.success]:w,[t.warning]:$,[t.error]:C,[t.info]:b},M=h({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),P=g({name:"ElResult",__name:"result",props:M,setup(_){const p=_,s=I("result"),c=N(()=>{const e=p.icon,a=e&&t[e]?t[e]:"icon-info",f=k[a]||k["icon-info"];return{class:a,component:f}});return(e,a)=>(n(),r("div",{class:o(l(s).b())},[m("div",{class:o(l(s).e("icon"))},[i(e.$slots,"icon",{},()=>[c.value.component?(n(),S(T(c.value.component),{key:0,class:o(c.value.class)},null,8,["class"])):u("v-if",!0)])],2),e.title||e.$slots.title?(n(),r("div",{key:0,class:o(l(s).e("title"))},[i(e.$slots,"title",{},()=>[m("p",null,v(e.title),1)])],2)):u("v-if",!0),e.subTitle||e.$slots["sub-title"]?(n(),r("div",{key:1,class:o(l(s).e("subtitle"))},[i(e.$slots,"sub-title",{},()=>[m("p",null,v(e.subTitle),1)])],2)):u("v-if",!0),e.$slots.extra?(n(),r("div",{key:2,class:o(l(s).e("extra"))},[i(e.$slots,"extra")],2)):u("v-if",!0)],2))}});var j=B(P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const z=E(j),F={class:"notfound-container"},H=g({__name:"404",setup(_){const p=q(),s=()=>{p.replace({path:"/"})};return(c,e)=>{const a=R,f=z;return n(),r("div",F,[y(f,{title:"404","sub-title":"页面不存在"},{icon:d(()=>[...e[0]||(e[0]=[])]),extra:d(()=>[y(a,{onClick:s},{default:d(()=>[...e[1]||(e[1]=[V("返回首页",-1)])]),_:1})]),_:1})])}}}),Q=D(H,[["__scopeId","data-v-9ab98ee6"]]);export{Q as default};
