System.register(["./index-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,a){"use strict";var t,o,n,d,r,s,i,l,c,p,x,m,u,f,y,v,_,g,h,b,w,H,k,R,T,j,C,$;return{setters:[e=>{t=e._},e=>{o=e.e,n=e._,d=e.dM,r=e.dN,s=e.dO,i=e.dP,l=e.m,c=e.K,p=e.aD},e=>{x=e.d},e=>{m=e.k,u=e.U,f=e.V,y=e.W,v=e.a3,_=e.H,g=e.P,h=e.r,b=e.Q,w=e.F,H=e.O,k=e.a1,R=e.X,T=e.a2,j=e.j,C=e.ah},e=>{$=e.ay},null,null],execute:function(){var a=document.createElement("style");a.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',document.head.appendChild(a);const I=o(m({__name:"info",props:{data:{}},setup:e=>(e,a)=>(u(),f("div",{class:_(["info",e.data.type])},[a[0]||(a[0]=y("div",{class:"mark"},null,-1)),y("div",null,v("start"===e.data.type?e.data.startText:e.data.loadText+"..."),1)],2))}),[["__scopeId","data-v-186f04ad"]]),E={class:"w-466px p-16px text-[#555]"},O={class:"flex items-center text-error"},P={class:"ml-8px leading-17px"},S={class:"my-10px leading-26px"},U={class:"safe-restart"},z=o(m({__name:"index",emits:["setConfirm"],setup(e,{expose:a,emit:t}){const o=t,{t:p}=g(),x=h([{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")}]),m=()=>{setTimeout((async()=>{try{await i(),l.success(p("Home.Restart.index_13")),c()}catch{m()}}),1e3)};return a({onConfirm:async()=>{o("setConfirm",{loading:!0,disabled:!0});try{await(async()=>{x.value[0].type="load",await d(),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 s(),x.value[2].type="done"})(),await(async()=>{x.value[3].type="load";try{await i()}finally{x.value[3].type="done"}})(),m()}catch{x.value.forEach((e=>{e.type="start"})),o("setConfirm",{loading:!1,disabled:!1})}}}),(e,a)=>{const t=n;return u(),f("div",E,[y("div",O,[b(t,{name:"common-ask",size:"17"}),y("span",P,v(e.$t("Home.Restart.index_5")),1)]),y("div",S,v(e.$t("Home.Restart.index_6")),1),y("div",U,[(u(!0),f(w,null,H(R(x),(e=>(u(),k(I,{key:e.startText,data:e},null,8,["data"])))),128))])])}}}),[["__scopeId","data-v-61b30d8c"]]),D={class:"flex items-center justify-center h-110px px-30px"};e("default",o(m({__name:"index",setup(e){const{t:a}=g(),o=h(!1),n=()=>{o.value=!0},d=()=>{x({title:a("Home.Restart.index_3"),content:a("Home.Restart.index_4"),onConfirm:async()=>{await p(!0),c(3e3)}})};return(e,a)=>{const r=$,s=t;return u(),f("div",D,[b(r,{type:"primary",onClick:n},{default:T((()=>[j(v(e.$t("Home.Restart.index_1")),1)])),_:1}),b(r,{type:"primary",class:"ml-32px",onClick:d},{default:T((()=>[j(v(e.$t("Home.Restart.index_2")),1)])),_:1}),b(s,{show:R(o),"onUpdate:show":a[0]||(a[0]=e=>C(o)?o.value=e:null),title:"Safely reboot server",footer:!0,component:z},null,8,["show"])])}}}),[["__scopeId","data-v-d341a5a3"]]))}}}));
