System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,t){"use strict";var a,o,n,r,d,s,i,l,c,p,x,f,m,u,y,v,_,h,b,g,w,k,R,H,T,C,j,$;return{setters:[e=>{a=e.c,o=e.l,n=e.fJ,r=e.fK,d=e.fL,s=e.fM,i=e.m,l=e.f,c=e.x,p=e.h,x=e.b6},e=>{f=e.k,m=e.$,u=e.Z,y=e.L,v=e._,_=e.aa,h=e.R,b=e.r,g=e.a0,w=e.F,k=e.P,R=e.a8,H=e.S,T=e.a9,C=e.j,j=e.X},e=>{$=e.B},null],execute:function(){var t=document.createElement("style");t.textContent='.info[data-v-186f04ad]{display:flex;align-items:center}.info:first-of-type .mark[data-v-186f04ad]:before{display:none}.info .mark[data-v-186f04ad]{position:relative;margin-right:16px;width:8px;height:8px;border-radius:50%;background-color:#c4c4c4}.info .mark[data-v-186f04ad]:before{content:"";position:absolute;left:50%;bottom:50%;width:1px;height:26px;background-color:#c4c4c4;transform:translate(-50%)}.info.load[data-v-186f04ad]{color:#999}.info.done[data-v-186f04ad]{color:#20a53a}.info.done .mark[data-v-186f04ad]{background-color:#20a53a}.info.done .mark[data-v-186f04ad]:before{background-color:#20a53a}.safe-restart[data-v-61b30d8c]{display:flex;flex-direction:column;line-height:26px;padding:16px 20px;border-radius:5px;background-color:rgba(241,249,243,.6)}.n-button[data-v-d341a5a3]{--n-width: 120px;--n-height: 42px;--n-border-radius: 2px;--n-color: #eee;--n-text-color: #333;--n-border: 1px solid #ddd;--n-color-hover: #20a53a;--n-border-hover: 1px solid #20a53a;--n-text-color-hover: #fff;--n-color-focus: #20a53a;--n-border-focus: 1px solid #20a53a}\n/*$vite$:1*/',document.head.appendChild(t);const I=a(f({__name:"info",props:{data:{}},setup:e=>(e,t)=>(m(),u("div",{class:y(["info",e.data.type])},[t[0]||(t[0]=v("div",{class:"mark"},null,-1)),v("div",null,_("start"===e.data.type?e.data.startText:e.data.loadText+"..."),1)],2))}),[["__scopeId","data-v-186f04ad"]]),S={class:"w-466px p-16px text-[#555]"},E={class:"flex items-center text-error"},L={class:"ml-8px leading-17px"},z={class:"my-10px leading-26px"},B={class:"safe-restart"},F=a(f({__name:"index",emits:["setConfirm"],setup(e,{expose:t,emit:a}){const c=a,{t:p}=h(),x=b([{type:"start",startText:p("Home.Restart.index_7"),loadText:p("Home.Restart.index_8")},{type:"start",startText:p("Home.Restart.index_9"),loadText:p("Home.Restart.index_10")},{type:"start",startText:p("Home.Restart.index_11"),loadText:p("Home.Restart.index_11")},{type:"start",startText:p("Home.Restart.index_12"),loadText:p("Home.Restart.index_12")}]),f=()=>{setTimeout((async()=>{try{await s(),i.success(p("Home.Restart.index_13")),l()}catch{f()}}),1e3)};return t({onConfirm:async()=>{c("setConfirm",{loading:!0,disabled:!0});try{await(async()=>{x.value[0].type="load",await n(),x.value[0].type="done"})(),await(async()=>{x.value[1].type="load",await r(),x.value[1].type="done"})(),await(async()=>{x.value[2].type="load",await d(),x.value[2].type="done"})(),await(async()=>{x.value[3].type="load";try{await s()}finally{x.value[3].type="done"}})(),f()}catch{x.value.forEach((e=>{e.type="start"})),c("setConfirm",{loading:!1,disabled:!1})}}}),(e,t)=>{const a=o;return m(),u("div",S,[v("div",E,[g(a,{name:"common-ask",size:"17"}),v("span",L,_(e.$t("Home.Restart.index_5")),1)]),v("div",z,_(e.$t("Home.Restart.index_6")),1),v("div",B,[(m(!0),u(w,null,k(H(x),(e=>(m(),R(I,{key:e.startText,data:e},null,8,["data"])))),128))])])}}}),[["__scopeId","data-v-61b30d8c"]]),J={class:"flex items-center justify-center h-110px px-30px"};e("default",a(f({__name:"index",setup(e){const{t:t}=h(),a=b(!1),o=()=>{a.value=!0},n=()=>{p({title:t("Home.Restart.index_3"),content:t("Home.Restart.index_4"),onConfirm:async()=>{await x(!0),l(3e3)}})};return(e,t)=>{const r=$,d=c;return m(),u("div",J,[g(r,{type:"primary",onClick:o},{default:T((()=>[C(_(e.$t("Home.Restart.index_1")),1)])),_:1}),g(r,{type:"primary",class:"ml-32px",onClick:n},{default:T((()=>[C(_(e.$t("Home.Restart.index_2")),1)])),_:1}),g(d,{show:H(a),"onUpdate:show":t[0]||(t[0]=e=>j(a)?a.value=e:null),title:"Safely reboot server",footer:!0,component:F},null,8,["show"])])}}}),[["__scopeId","data-v-d341a5a3"]]))}}}));
