import{_ as e}from"./index.js?v=1764830988434";import{o as a,q as t,gB as s,gC as o,gD as i,bi as p,P as n,p as l}from"./page_layout.js?v=1764830988434";import{p as d}from"./public.js?v=1764830988434";import{B as r}from"./details4.js?v=1764830988434";import{aC as m}from"./naive.js?v=1764830988434";import{k as u,P as x,c,r as v,a5 as _,R as U,V as w,S as H,W as f,a4 as g,U as b,a3 as $,j as y,a2 as k,an as j,F as h,ak as M}from"./vue.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";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"},B={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)"}},q=["innerHTML"],D={key:1,class:"update-tips"},F={class:"mr-16px"},I={class:"mr-16px"},N={class:"update-btn"},R=l(u({__name:"old",props:{info:{}},emits:["close"],setup(l,{expose:u,emit:R}){const S=l,V=R,{info:W}=S,{t:z}=x(),E=c(()=>W.is_pro),G=c(()=>W.is_beta),J=c(()=>E.value?K.value:G.value?Q.value:O.value),K=c(()=>({uptime:W.pro.uptime.replaceAll("/","-"),downUrl:W.pro.downUrl,version:W.pro.version,updateMsg:W.pro.updateMsg})),O=c(()=>({uptime:W.uptime.replaceAll("/","-"),downUrl:W.downUrl,version:W.version,updateMsg:W.updateMsg})),Q=c(()=>({uptime:W.beta.uptime.replaceAll("/","-"),downUrl:W.beta.downUrl,version:W.beta.version,updateMsg:W.beta.updateMsg})),X=v(!1),Y=()=>{X.value=!0},Z=()=>{d({title:z("Home.Update.index_11"),content:z("Home.Update.index_13"),onConfirm:async()=>{await o(),await i(),await p(),n()}})},ee=async()=>{await s({version:J.value.version}),setTimeout(()=>{V("close")},2e3)},ae=async()=>{await i(),await p(),n()};return u({onClose:async()=>{await s({version:J.value.version},!1)}}),(s,o)=>{const i=a,p=t,n=_("i18n-t"),l=m,d=e;return w(),U("div",C,[o[1]||(o[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,g(s.$t("Home.Update.index_14",[b(E)?"Pro":b(G)?s.$t("Home.Update.index_7"):s.$t("Home.Update.index_8")])),1)]),H("div",A,[H("div",T,g(s.$t("Home.Update.index_15")),1),H("div",B,[H("div",null,[H("span",null,g(s.$t("Home.Update.index_17")),1),f(i,{href:"https://www.aapanel.com/forum/d/9-aapanel-linux-panel-6-1-5-installation-tutorial/36",target:"_blank"},{default:$(()=>[y(g(s.$t("Public.Name"))+" "+g(b(E)?"Pro":b(G)?s.$t("Home.Update.index_7"):s.$t("Home.Update.index_8"))+" "+g(b(J).version),1)]),_:1})]),H("div",null,g(s.$t("Home.Update.index_16",[b(J).uptime])),1)]),H("div",L,[H("div",{class:"update-logs",innerHTML:b(J).updateMsg},null,8,q),b(E)?j("",!0):(w(),k(p,{key:0,class:"my-20px!"})),b(E)?j("",!0):(w(),U("div",D,[b(G)?(w(),U(h,{key:1},[H("div",null,[H("span",I,g(s.$t("Home.Update.index_10",[b(O).uptime])),1),H("span",null,g(s.$t("Home.Update.index_6",[b(O).uptime])),1)]),H("div",null,[f(i,{onClick:Z},{default:$(()=>[y(g(s.$t("Home.Update.index_11")),1)]),_:1})])],64)):(w(),U(h,{key:0},[H("div",null,[H("span",F,g(s.$t("Home.Update.index_5",[b(Q).version])),1),H("span",null,g(s.$t("Home.Update.index_6",[b(Q).uptime])),1)]),f(n,{tag:"div",keypath:"Home.Update.index_9_1"},{btn_:$(()=>[f(i,{onClick:Y},{default:$(()=>[y(g(s.$t("Home.Update.index_9_2")),1)]),_:1})]),_:1})],64))]))]),H("div",N,[f(l,{class:"ignore mr-48px",round:"",onClick:ee},{default:$(()=>[y(g(s.$t("Home.Update.index_18")),1)]),_:1}),f(l,{type:"primary",round:"",onClick:ae},{default:$(()=>[y(g(s.$t("Home.Update.index_19")),1)]),_:1})])]),f(d,{show:b(X),"onUpdate:show":o[0]||(o[0]=e=>M(X)?X.value=e:null),title:s.$t("Home.Update.index_12"),component:r},null,8,["show","title"])])}}}),[["__scopeId","data-v-34e59abc"]]);export{R as default};
