import{_ as e}from"./index.js?v=1764233927359";import{o as a,q as t,gJ as s,gK as o,gL as i,aV as p,P as n,p as l}from"./page_layout.js?v=1764233927359";import{p as d}from"./public.js?v=1764233927359";import{B as r}from"./details4.js?v=1764233927359";import{aC as m}from"./naive.js?v=1764233927359";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=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";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)"}},L={class:"text-22px text-center font-bold"},T={class:"flex justify-between mx-32px mt-20px mb-16px text-14px"},V={class:"mt-10px mx-32px mb-32px p-20px rounded-4px",style:{background:"var(--home-update-content-bg)"}},q=["innerHTML"],B={key:1,class:"update-tips"},F={class:"mr-16px"},I={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:W}=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})),X=v(!1),Y=()=>{X.value=!0},Z=()=>{d({title:W("Home.Update.index_11"),content:W("Home.Update.index_13"),onConfirm:async()=>{await o(),await i(),await p(),n()}})},ee=async()=>{await s({version:E.value.version}),setTimeout(()=>{R("close")},2e3)},ae=async()=>{await i(),await p(),n()};return u({onClose:async()=>{await s({version:E.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(z)?"Pro":b(D)?s.$t("Home.Update.index_7"):s.$t("Home.Update.index_8")])),1)]),H("div",A,[H("div",L,g(s.$t("Home.Update.index_15")),1),H("div",T,[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(z)?"Pro":b(D)?s.$t("Home.Update.index_7"):s.$t("Home.Update.index_8"))+" "+g(b(E).version),1)]),_:1})]),H("div",null,g(s.$t("Home.Update.index_16",[b(E).uptime])),1)]),H("div",V,[H("div",{class:"update-logs",innerHTML:b(E).updateMsg},null,8,q),b(z)?j("",!0):(w(),k(p,{key:0,class:"my-20px!"})),b(z)?j("",!0):(w(),U("div",B,[b(D)?(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",J,[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{K as default};
