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