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