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,_,m,r,v,y,g,x,f,h,j,w,k,$,b,L,S,H,U,C,T,M,I,P,z,B;return{setters:[e=>{l=e.t,a=e.v,n=e.w,s=e.x,i=e.y,u=e.i,c=e.m,o=e.z,p=e.A,d=e.p,_=e.B},e=>{m=e._},e=>{r=e.g},e=>{v=e._,y=e.a,g=e.L},e=>{x=e.k,f=e.a0,h=e.B,j=e.a6},e=>{w=e.k,k=e.R,$=e.r,b=e.S,L=e.$,S=e.Z,H=e.a0,U=e.a9,C=e._,T=e.L,M=e.aa,I=e.a8,P=e.j,z=e.ak,B=e.X},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"},N=["src"],R=["title"],W={class:"font-600 mt-30px"},Z=["innerHTML"];e("default",w({__name:"index",props:{name:{},callback:{},hide:{}},setup(e){const{t:w}=k(),q=l(),A=e,D=["nginx","apache","mysql","php"],O=e=>D.includes(e)||e.startsWith("php-"),X=$(),E=$(""),F=$(),G=$(),J=$(),K=(e,t)=>{E.value=t.ps,F.value=t.time},Q=$(5),V=$(),Y=async(e=1)=>{try{if(V.value){5!==Q.value&&(le.data={plugin_title:V.value.title,plugin_name:V.value.name},le.show=!0);const{message:t}=await i({sName:V.value.name,version:X.value,type:e},5===Q.value);if(u(t)){if(t.result)return c.success(t.result),q.taskCount+=1,A.callback?.(),A.hide(),void o();await p({name:t.name,tmp_path:t.tmp_path,title:w("Soft.index_21")},(()=>{A.callback?.()}))}A.hide()}}catch{A.hide()}},ee=()=>{te.show=!0},te=a(w("Home.Install.index_7"),{name:A.name,callback:()=>{Y(0)}}),le=a(""),ae=()=>{d({title:`${V.value?.title} - ${w("Update Log")}`,width:600,data:{title:V.value?.title,updateLogList:G.value},component:g})};return(async()=>{const{message:e}=await _({sName:A.name},!0);u(e)&&(V.value=e,J.value=e.versions.map((t=>{const l=t.m_version+"."+t.version;return{label:5===e.type?t.m_version:l||t.m_version,value:5===e.type?t.m_version:l||t.m_version,ps:t.update_msg,time:t.create_time}})),X.value=J.value[0].value,E.value=J.value[0].ps,F.value=J.value[0].time,Q.value=e.type,G.value=e.versions)})(),(e,l)=>{const a=f,i=h,u=x,c=j,o=m,p=s;return b(V)?(L(),S("div",t,[H(u,{class:"justify-between! items-center"},{default:U((()=>[H(u,{class:"items-center"},{default:U((()=>[C("img",{class:"w-40px",src:b(r)(b(V).name)},null,8,N),C("div",null,[C("p",{class:T(["font-600 text-18px max-w-290px pb-5px",{"max-w-190px!":O(b(V).name)}]),title:`${b(V).title} ${b(X)}`},M(b(V).title)+" "+M(b(V).title.indexOf("PHP-")>-1?"":b(X)),11,R),5!==b(Q)?(L(),I(u,{key:0,class:"text-font3",size:0},{default:U((()=>[C("span",null,M(e.$t("Update time"))+": "+M(b(n)(b(F),"yyyy/MM/dd")),1),H(a,{vertical:""}),H(i,{type:"primary",text:"",onClick:ae},{default:U((()=>[P(M(e.$t("Update Log")),1)])),_:1})])),_:1})):z("",!0)])])),_:1}),H(u,null,{default:U((()=>[H(c,{class:"w-100px!",value:b(X),"onUpdate:value":[l[0]||(l[0]=e=>B(X)?X.value=e:null),K],options:b(J),"consistent-menu-width":!1},null,8,["value","options"]),O(b(V).name)?(L(),I(i,{key:0,onClick:ee},{default:U((()=>[P(M(e.$t("Home.Install.index_7")),1)])),_:1})):z("",!0),H(i,{type:"primary",onClick:l[1]||(l[1]=e=>Y(1))},{default:U((()=>[P(M(O(b(V).name)?e.$t("Home.Install.index_5"):e.$t("Soft.index_34")),1)])),_:1})])),_:1}),H(a)])),_:1}),C("div",W,M(e.$t("Soft.index_39"))+"：",1),C("span",{class:"py-10px inline-block leading-20px text-font2",innerHTML:b(E)},null,8,Z),H(o,null,{default:U((()=>[C("li",null,M(e.$t("Soft.index_35")),1),C("li",null,M(e.$t("Soft.index_36")),1),C("li",null,M(e.$t("Soft.index_37")),1)])),_:1}),H(p,{show:b(te).show,"onUpdate:show":l[2]||(l[2]=e=>b(te).show=e),title:b(te).title,data:b(te).data,width:480,footer:!0,"confirm-text":e.$t("WP.TableRow.index_13"),component:v},null,8,["show","title","data","confirm-text"]),H(p,{show:b(le).show,"onUpdate:show":l[3]||(l[3]=e=>b(le).show=e),title:b(le).title,data:b(le).data,width:480,component:y},null,8,["show","title","data"])])):z("",!0)}}}))}}}));
