System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./log-update-legacy-Dk1whsxW.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BWPgT9-g.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DaNJUJqN.js?v=1773287522785","./theme-monokai-legacy-fuYB_bfX.js?v=1773287522785","./ace-legacy-ConAV8RQ.js?v=1773287522785","./file-legacy-Bt6Hxu9s.js?v=1773287522785"],(function(e,t){"use strict";var l,a,n,s,i,u,c,o,p,d,_,r,y,g,m,v,x,f,h,j,w,k,b,$,L,S,U,H,T,C,M,P,z;return{setters:[e=>{l=e.t,a=e.v,n=e.w,s=e.x,i=e.p,u=e.B,c=e.i,o=e.y,p=e.m,d=e.z,_=e.A},e=>{r=e._},e=>{y=e.g},e=>{g=e._,m=e.a,v=e.L},e=>{x=e.k,f=e.aa,h=e.a0,j=e.B},e=>{w=e.k,k=e.R,b=e.r,$=e.S,L=e.$,S=e.Z,U=e.a0,H=e.a9,T=e._,C=e.aa,M=e.F,P=e.j,z=e.ak},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const t={key:0,class:"p-30px"},B=["src"],N=["title"],R={class:"font-600 mt-30px"},W=["innerHTML"];e("default",w({__name:"app-update",props:{row:{},callback:{},hide:{}},setup(e){const{t:w}=k(),Z=l(),q=e,{row:A}=q,D=["nginx","apache","mysql","php"],F=b(),I=b(),O=b(),E=b(),G=b(),J=async(e=1)=>{try{5!==G.value&&(V.data={plugin_title:A.title,plugin_name:A.name},V.show=!0);const{message:t}=await o({sName:A.name,version:5===G.value?A.m_version:I.value,upgrade:5===G.value?A.m_version:I.value,type:e},5===G.value);if(c(t)){if(t.result)return p.success(t.result),Z.taskCount+=1,q.callback?.(),q.hide(),void d();await _({name:t.name,tmp_path:t.tmp_path,title:w("Soft.index_21")},(()=>{q.callback?.()}))}q.hide()}catch{q.hide()}},K=()=>{var e;e=A.name,D.includes(e)||e.startsWith("php-")?Q.show=!0:J(1)},Q=a(w("Home.Install.index_7"),{name:A.name,callback:()=>{J(0)}}),V=a(""),X=()=>{i({title:`${A.title} - ${w("Update Log")}`,width:600,data:{title:A.title,updateLogList:E.value},component:v})};return(async()=>{const{message:e}=await u({sName:A.name},!0);c(e)&&(G.value=e.type,I.value=A.m_version+"."+A.version,O.value=A.create_time,F.value=e.version,E.value=e.versions)})(),(e,l)=>{const a=f,i=h,u=j,c=x,o=r,p=s;return $(A)?(L(),S("div",t,[U(c,{class:"justify-between! items-center"},{default:H((()=>[U(c,{class:"items-center"},{default:H((()=>[T("img",{class:"w-40px",src:$(y)($(A).name)},null,8,B),T("div",null,[T("p",{class:"font-600 text-18px max-w-290px truncate pb-5px",title:`${$(A).title} ${$(F)}`},C($(A).title)+" "+C($(A).title.indexOf("PHP-")>-1?"":$(F)),9,N),U(c,{class:"text-font3",size:0},{default:H((()=>[U(a,{dot:"",offset:[4,0]},{default:H((()=>[T("p",null,C(e.$t("Soft.index_51"))+": "+C($(I)),1)])),_:1}),5!==$(G)?(L(),S(M,{key:0},[U(i,{vertical:""}),T("span",null,C(e.$t("Update time"))+": "+C($(n)($(O),"yyyy/MM/dd")),1),U(i,{vertical:""}),U(u,{type:"primary",text:"",onClick:X},{default:H((()=>[P(C(e.$t("Update Log")),1)])),_:1})],64)):z("",!0)])),_:1})])])),_:1}),U(c,null,{default:H((()=>[U(u,{type:"primary",onClick:K},{default:H((()=>[P(C(e.$t("Home.Update.index_19")),1)])),_:1})])),_:1}),U(i)])),_:1}),T("div",R,C($(w)("Soft.index_52"))+"：",1),T("span",{class:"py-10px inline-block leading-20px text-font2",innerHTML:$(A).update_msg},null,8,W),U(o,null,{default:H((()=>[T("li",null,C(e.$t("Soft.index_35")),1),T("li",null,C($(w)("Soft.index_53")),1),T("li",null,C($(w)("Soft.index_54")),1)])),_:1}),U(p,{show:$(Q).show,"onUpdate:show":l[0]||(l[0]=e=>$(Q).show=e),title:$(Q).title,data:$(Q).data,width:480,footer:!0,"confirm-text":e.$t("WP.TableRow.index_13"),component:g},null,8,["show","title","data","confirm-text"]),U(p,{show:$(V).show,"onUpdate:show":l[1]||(l[1]=e=>$(V).show=e),title:$(V).title,data:$(V).data,width:480,component:m},null,8,["show","title","data"])])):z("",!0)}}}))}}}));
