import{w as c}from"./element-plus.ab0703f2.js";import{a as u}from"./vue-router.9ddb0e92.js";import{d,r as _,_ as v,o as m,c as f,a as r,J as B,V as i,P as x,Q as y,U as g,u as E,T as h}from"./@vue.340249d8.js";import{d as k}from"./index.ae42b2c0.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.3d784a58.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";const w={class:"error"},C={class:"error-code"},D={class:"text-lg text-tx-secondary mt-7 mb-7"},I=d({__name:"error",props:{code:String,title:String,showBtn:{type:Boolean,default:!0}},setup(t){const n=t;let o=null;const e=_(5),s=u();return n.showBtn&&(o=setInterval(()=>{e.value===0?(clearInterval(o),s.go(-1)):e.value--},1e3)),v(()=>{o&&clearInterval(o)}),(p,a)=>{const l=c;return m(),f("div",w,[r("div",null,[B(p.$slots,"content",{},()=>[r("div",C,i(t.code),1)],!0),r("div",D,i(t.title),1),t.showBtn?(m(),x(l,{key:0,type:"primary",onClick:a[0]||(a[0]=S=>E(s).go(-1))},{default:y(()=>[g(i(e.value)+" \u79D2\u540E\u8FD4\u56DE\u4E0A\u4E00\u9875 ",1)]),_:1})):h("",!0)])])}}});const nt=k(I,[["__scopeId","data-v-9a820143"]]);export{nt as default};