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