System.register(["./index-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,a){"use strict";var t,o,n,r,d,s,i,l,c,p,x,f,m,u,y,v,_,g,h,b,k,w,H,R,j,T,C,$;return{setters:[e=>{t=e._},e=>{o=e.p,n=e._,r=e.fh,d=e.fi,s=e.fj,i=e.fk,l=e.m,c=e.P,p=e.aV},e=>{x=e.a},e=>{f=e.k,m=e.R,u=e.S,y=e.U,v=e.a4,_=e.H,g=e.P,h=e.r,b=e.X,k=e.F,w=e.O,H=e.a2,R=e.V,j=e.a3,T=e.j,C=e.aj},e=>{$=e.aC},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(f({__name:"info",props:{data:{}},setup:e=>(e,a)=>(m(),u("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"]]),S={class:"w-466px p-16px text-[#555]"},E={class:"flex items-center text-error"},P={class:"ml-8px leading-17px"},U={class:"my-10px leading-26px"},V={class:"safe-restart"},z=o(f({__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")}]),f=()=>{setTimeout((async()=>{try{await i(),l.success(p("Home.Restart.index_13")),c()}catch{f()}}),1e3)};return a({onConfirm:async()=>{o("setConfirm",{loading:!0,disabled:!0});try{await(async()=>{x.value[0].type="load",await r(),x.value[0].type="done"})(),await(async()=>{x.value[1].type="load",await d(),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"}})(),f()}catch{x.value.forEach((e=>{e.type="start"})),o("setConfirm",{loading:!1,disabled:!1})}}}),(e,a)=>{const t=n;return m(),u("div",S,[y("div",E,[b(t,{name:"common-ask",size:"17"}),y("span",P,v(e.$t("Home.Restart.index_5")),1)]),y("div",U,v(e.$t("Home.Restart.index_6")),1),y("div",V,[(m(!0),u(k,null,w(R(x),(e=>(m(),H(I,{key:e.startText,data:e},null,8,["data"])))),128))])])}}}),[["__scopeId","data-v-61b30d8c"]]),F={class:"flex items-center justify-center h-110px px-30px"};e("default",o(f({__name:"index",setup(e){const{t:a}=g(),o=h(!1),n=()=>{o.value=!0},r=()=>{x({title:a("Home.Restart.index_3"),content:a("Home.Restart.index_4"),onConfirm:async()=>{await p(!0),c(3e3)}})};return(e,a)=>{const d=$,s=t;return m(),u("div",F,[b(d,{type:"primary",onClick:n},{default:j((()=>[T(v(e.$t("Home.Restart.index_1")),1)])),_:1}),b(d,{type:"primary",class:"ml-32px",onClick:r},{default:j((()=>[T(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"]]))}}}));
