import{e as a}from"./vendor-element-C6VO9u7w.js";import{q as e,r as t,t as r,A as n,br as s,M as o,E as i,J as l,bh as c,v}from"./vendor-core-Nc7YMZCV.js";import{u as d,a as f}from"./index-WIJVsNja.js";const u={class:"maintenance-page"},h={class:"content"},p=f(e({__name:"maintenance",setup(e){const f=c(),p=d(),m=t(!1),b=()=>{return a=null,e=null,t=function*(){var a;m.value=!0;try{yield p.fetchSiteConfig(void 0,!0),"1"!==(null==(a=p.siteConfig)?void 0:a.site_status)&&f.replace("/")}catch(e){}finally{m.value=!1}},new Promise((r,n)=>{var s=a=>{try{i(t.next(a))}catch(e){n(e)}},o=a=>{try{i(t.throw(a))}catch(e){n(e)}},i=a=>a.done?r(a.value):Promise.resolve(a.value).then(s,o);i((t=t.apply(a,e)).next())});var a,e,t};return(e,t)=>{const c=a;return v(),r("div",u,[n("div",h,[t[1]||(t[1]=s('<div class="icon" data-v-3bf5e93f><svg viewBox="0 0 24 24" width="80" height="80" fill="none" stroke="currentColor" stroke-width="1.5" data-v-3bf5e93f><path d="M12 2L2 22h20L12 2z" data-v-3bf5e93f></path><path d="M12 9v5" data-v-3bf5e93f></path><circle cx="12" cy="17" r="0.5" fill="currentColor" data-v-3bf5e93f></circle></svg></div><h1 data-v-3bf5e93f>系统维护中</h1><p data-v-3bf5e93f>我们正在进行系统维护，请稍后再访问</p>',3)),o(c,{type:"primary",onClick:b,loading:m.value},{default:i(()=>[...t[0]||(t[0]=[l(" 重试访问 ",-1)])]),_:1},8,["loading"])])])}}}),[["__scopeId","data-v-3bf5e93f"]]);export{p as default};
