System.register(["./index-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./public-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434"],function(e,t){"use strict";var a,i,l,n,d,o,s,p,c,r,x,v,u,m,g,b,f,h,y,_,k,H,U,w,$,C,j,z,I,M,P;return{setters:[e=>{a=e.a},e=>{i=e.k,l=e.P,n=e.r,d=e.c,o=e.aq,s=e.a5,p=e.R,c=e.V,r=e.S,x=e.W,v=e.a4,u=e.F,m=e.O,g=e.H,b=e.U,f=e.ak,h=e.a3,y=e.ay,_=e.I,k=e.j},e=>{H=e.a9,U=e.gE,w=e.d,$=e.gF,C=e.gD,j=e.P,z=e.p},e=>{I=e.p},e=>{M=e._,P=e.aC}],execute:function(){var t=document.createElement("style");t.textContent='.card[data-v-76523929]{background:var(--home-update-detail-bg);margin-bottom:20px;border-radius:4px;padding:20px 24px}.version[data-v-76523929]{position:relative;margin-left:95px;padding:5px 0 0 2px;border-left:5px solid #e1e1e1}.version .active[data-v-76523929]{position:absolute;left:-10px;top:21px;display:block;width:15px;height:15px;margin-bottom:10px;background-color:#20a53a;border-radius:50%}.version .active[data-v-76523929]:after{content:"";position:relative;top:5px;left:5px;display:block;height:5px;width:5px;border-radius:50%;background-color:#fff}.version .date[data-v-76523929]{position:absolute;left:-90px;top:13px;line-height:30px;font-size:13px;color:var(--home-update-detail-date)}.version .text[data-v-76523929]{margin-top:7px;margin-left:5px;margin-bottom:5px;padding-left:15px;line-height:32px;border-bottom:1px solid #ececec;font-size:15px;color:#20a53a}.version .content[data-v-76523929]{line-height:24px;font-size:12px;min-height:40px;padding-left:20px;color:#888}\n/*$vite$:1*/',document.head.appendChild(t);const B={class:"w-650px"},E={class:"card"},F={class:"mb-12px font-bold text-18px text-center"},L={class:"min-h-172px text-13px"},S={class:"card"},T={class:"mb-10px text-16px text-center"},q={class:"h-180px overflow-auto"},D={class:"date"},O={class:"text"},R=["innerHTML"],V={class:"font-bold"},W={class:"text-error"};e("B",z(i({__name:"details",emits:["close"],setup(e,{emit:t}){const i=t,{t:z}=l(),A=n(!1),G=n(5),J=d(()=>G.value>0),K=d(()=>!A.value),N=n([]),Q=n([]),{height:X}=o(),Y=d(()=>X.value?.9*X.value+"px":"auto"),Z=()=>{const e=setInterval(()=>{G.value--,G.value<=0&&clearInterval(e)},1e3)},ee=()=>{i("close")},te=()=>{I({title:z("Home.Update.index_24"),content:z("Home.Update.index_25"),onConfirm:async()=>{await $(),await C(),j()}})};return(async()=>{const{message:e}=await U();w(e)&&(N.value=e.beta_ps.split("<br>").map(e=>e.trim()),Q.value=e.list,Z())})(),(e,t)=>{const i=s("i18n-t"),l=M,n=P,d=a;return c(),p("div",B,[r("div",{class:"p-20px overflow-auto",style:_({maxHeight:b(Y)})},[r("div",E,[r("div",F,v(e.$t("Home.Update.index_20")),1),r("ul",L,[(c(!0),p(u,null,m(b(N),(e,t)=>(c(),p("li",{key:e,class:g(["indent--15px pl-15px leading-20px",{"mt-8px":0!==t}])},v(e),3))),128))])]),r("div",S,[r("div",T,v(e.$t("Home.Update.index_21")),1),r("div",q,[(c(!0),p(u,null,m(b(Q),e=>(c(),p("div",{key:e.version,class:"version"},[t[1]||(t[1]=r("div",{class:"active"},null,-1)),r("div",D,v(b(H)(e.uptime,"yyyy-MM-dd")),1),r("div",O,v(e.version),1),r("div",{class:"content",innerHTML:e.upmsg},null,8,R)]))),128))])]),r("div",null,[x(l,{checked:b(A),"onUpdate:checked":t[0]||(t[0]=e=>f(A)?A.value=e:null),disabled:b(J)},{default:h(()=>[x(i,{tag:"div",class:"text-14px",keypath:"Home.Update.index_23_1"},y({title:h(()=>[r("span",V,v(e.$t("Home.Update.index_23_2")),1)]),_:2},[b(G)>0?{name:"wait",fn:h(()=>[r("span",W,v(e.$t("Home.Update.index_23_3",[b(G)])),1)]),key:"0"}:void 0]),1024)]),_:1},8,["checked","disabled"])])],4),x(d,null,{default:h(()=>[x(n,{class:"cancel-btn",size:"small",color:"#cbcbcb",onClick:ee},{default:h(()=>[k(v(e.$t("Public.Btn.Cancel")),1)]),_:1}),x(n,{type:"primary",size:"small",disabled:b(K),onClick:te},{default:h(()=>[k(v(e.$t("Home.Update.index_19")),1)]),_:1},8,["disabled"])]),_:1})])}}}),[["__scopeId","data-v-76523929"]]))}}});
