import{_ as e}from"./index.js?v=1763625242172";import{gI as a,gJ as t,aV as s,P as o,gK as i,o as p,q as n,p as l}from"./page_layout.js?v=1763625242172";import{p as d}from"./public.js?v=1763625242172";import{B as r}from"./details4.js?v=1763625242172";import{aC as m}from"./naive.js?v=1763625242172";import{k as u,P as x,c,r as v,a5 as _,R as U,S as w,U as H,a4 as f,V as g,X as b,a3 as $,j as y,a2 as k,an as j,F as h,aj as M}from"./vue.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const C={class:"update-old"},P={class:"absolute top-15px left-15px text-white text-14px"},A={class:"pt-140px",style:{color:"var(--home-update-title-color)"}},T={class:"text-22px text-center font-bold"},I={class:"flex justify-between mx-32px mt-20px mb-16px text-14px"},L={class:"mt-10px mx-32px mb-32px p-20px rounded-4px",style:{background:"var(--home-update-content-bg)"}},V=["innerHTML"],q={key:1,class:"update-tips"},B={class:"mr-16px"},F={class:"mr-16px"},J={class:"update-btn"},K=l(u({__name:"old",props:{info:{}},emits:["close"],setup(l,{expose:u,emit:K}){const N=l,R=K,{info:S}=N,{t:X}=x(),z=c((()=>S.is_pro)),D=c((()=>S.is_beta)),E=c((()=>z.value?G.value:D.value?Q.value:O.value)),G=c((()=>({uptime:S.pro.uptime.replaceAll("/","-"),downUrl:S.pro.downUrl,version:S.pro.version,updateMsg:S.pro.updateMsg}))),O=c((()=>({uptime:S.uptime.replaceAll("/","-"),downUrl:S.downUrl,version:S.version,updateMsg:S.updateMsg}))),Q=c((()=>({uptime:S.beta.uptime.replaceAll("/","-"),downUrl:S.beta.downUrl,version:S.beta.version,updateMsg:S.beta.updateMsg}))),W=v(!1),Y=()=>{W.value=!0},Z=()=>{d({title:X("Home.Update.index_11"),content:X("Home.Update.index_13"),onConfirm:async()=>{await a(),await t(),await s(),o()}})},ee=async()=>{await i({version:E.value.version}),setTimeout((()=>{R("close")}),2e3)},ae=async()=>{await t(),await s(),o()};return u({onClose:async()=>{await i({version:E.value.version},!1)}}),(a,t)=>{const s=p,o=n,i=_("i18n-t"),l=m,d=e;return U(),w("div",C,[t[1]||(t[1]=H("div",{class:"absolute -top-90px right-40px w-150px"},[H("img",{class:"w-full",src:"/static/vite/images/update-rocket.svg",alt:"rocket img"})],-1)),H("div",P,[H("span",null,f(a.$t("Home.Update.index_14",[g(z)?"Pro":g(D)?a.$t("Home.Update.index_7"):a.$t("Home.Update.index_8")])),1)]),H("div",A,[H("div",T,f(a.$t("Home.Update.index_15")),1),H("div",I,[H("div",null,[H("span",null,f(a.$t("Home.Update.index_17")),1),b(s,{href:"https://www.aapanel.com/forum/d/9-aapanel-linux-panel-6-1-5-installation-tutorial/36",target:"_blank"},{default:$((()=>[y(f(a.$t("Public.Name"))+" "+f(g(z)?"Pro":g(D)?a.$t("Home.Update.index_7"):a.$t("Home.Update.index_8"))+" "+f(g(E).version),1)])),_:1})]),H("div",null,f(a.$t("Home.Update.index_16",[g(E).uptime])),1)]),H("div",L,[H("div",{class:"update-logs",innerHTML:g(E).updateMsg},null,8,V),g(z)?j("",!0):(U(),k(o,{key:0,class:"my-20px!"})),g(z)?j("",!0):(U(),w("div",q,[g(D)?(U(),w(h,{key:1},[H("div",null,[H("span",F,f(a.$t("Home.Update.index_10",[g(O).uptime])),1),H("span",null,f(a.$t("Home.Update.index_6",[g(O).uptime])),1)]),H("div",null,[b(s,{onClick:Z},{default:$((()=>[y(f(a.$t("Home.Update.index_11")),1)])),_:1})])],64)):(U(),w(h,{key:0},[H("div",null,[H("span",B,f(a.$t("Home.Update.index_5",[g(Q).version])),1),H("span",null,f(a.$t("Home.Update.index_6",[g(Q).uptime])),1)]),b(i,{tag:"div",keypath:"Home.Update.index_9_1"},{btn_:$((()=>[b(s,{onClick:Y},{default:$((()=>[y(f(a.$t("Home.Update.index_9_2")),1)])),_:1})])),_:1})],64))]))]),H("div",J,[b(l,{class:"ignore mr-48px",round:"",onClick:ee},{default:$((()=>[y(f(a.$t("Home.Update.index_18")),1)])),_:1}),b(l,{type:"primary",round:"",onClick:ae},{default:$((()=>[y(f(a.$t("Home.Update.index_19")),1)])),_:1})])]),b(d,{show:g(W),"onUpdate:show":t[0]||(t[0]=e=>M(W)?W.value=e:null),title:a.$t("Home.Update.index_12"),component:r},null,8,["show","title"])])}}}),[["__scopeId","data-v-34e59abc"]]);export{K as default};
