System.register(["./index-legacy.js?v=1764233927359","./public-legacy.js?v=1764233927359","./page_layout-legacy.js?v=1764233927359","./soft-legacy.js?v=1764233927359","./soft-legacy2.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1764233927359","./naive-legacy.js?v=1764233927359","./vue-legacy.js?v=1764233927359","./common-legacy.js?v=1764233927359","./__commonjsHelpers__-legacy.js?v=1764233927359","./site-legacy.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764233927359","./index-legacy100.js?v=1764233927359","./theme-monokai-legacy.js?v=1764233927359","./file-legacy.js?v=1764233927359"],function(e,t){"use strict";var l,a,n,s,i,u,o,c,p,r,d,_,m,v,g,x,y,f,h,j,b,w,k,$,H,S,C,I,P,W,T,U,q,L;return{setters:[e=>{l=e._},e=>{a=e.e,n=e._},e=>{s=e.u,i=e.q,u=e.W,o=e.d,c=e.m,p=e.X,r=e.c,d=e.p},e=>{_=e.u},e=>{m=e.g},e=>{v=e._},e=>{g=e.da,x=e.dV,y=e.aC,f=e.dh},e=>{h=e.k,j=e.P,b=e.r,w=e.R,k=e.an,$=e.U,H=e.V,S=e.W,C=e.S,I=e.a3,P=e.H,W=e.a4,T=e.a2,U=e.ak,q=e.j,L=e.m},null,null,null,null,null,null,null,null,null],execute:function(){var t=document.createElement("style");t.textContent=".item[data-v-1fde51e5]{--un-bg-opacity:1;background-color:rgb(245 246 250 / var(--un-bg-opacity));padding:20px;font-size:14px;color:var(--color-text-2)}.item p[data-v-1fde51e5]{word-break:break-all;line-height:25px}\n/*$vite$:1*/",document.head.appendChild(t);const M={key:0,class:"p-30px"},N=["src"],R=["title"],V={class:"font-600 mt-30px"},z=["innerHTML"];e("default",d(h({__name:"index",props:{name:{},callback:{},hide:{}},setup(e){const{t:t}=j(),d=s(),h=e,E=["nginx","apache","mysql","php"],O=e=>E.includes(e)||e.startsWith("php-"),X=b(),A=b(""),B=b(),D=(e,t)=>{A.value=t.ps},F=e=>L(f,{trigger:"hover",placement:"top-start"},{trigger:()=>L("span",e.label),default:()=>L("span",e.label)}),G=b(),J=async(e=1)=>{if(G.value){const{message:l}=await u({sName:G.value.name,version:X.value,type:e});if(o(l)){if(l.result)return c.success(l.result),d.taskCount+=1,h.callback?.(),h.hide(),void p();await _({name:l.name,tmp_path:l.tmp_path,title:t("Soft.index_21")},()=>{h.callback?.()})}h.hide()}},K=()=>{Q.show=!0},Q=a(t("Home.Install.index_7"),{name:h.name,callback:()=>{J(0)}});return(async()=>{const{message:e}=await r({sName:h.name},!0);o(e)&&(G.value=e,B.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}}),X.value=B.value[0].value,A.value=B.value[0].ps)})(),(e,t)=>{const a=g,s=x,u=y,o=i,c=n,p=l;return $(G)?(H(),w("div",M,[S(a,{class:"justify-between! items-center"},{default:I(()=>[S(a,{class:"items-center"},{default:I(()=>[C("img",{class:"w-40px",src:$(m)($(G).name)},null,8,N),C("div",null,[C("p",{class:P(["font-600 text-18px max-w-290px",{"max-w-190px!":O($(G).name)}]),title:`${$(G).title} ${$(X)}`},W($(G).title)+" "+W($(G).title.indexOf("PHP-")>-1?"":$(X)),11,R)])]),_:1}),S(a,null,{default:I(()=>[S(s,{class:"w-100px!",value:$(X),"onUpdate:value":[t[0]||(t[0]=e=>U(X)?X.value=e:null),D],options:$(B),"consistent-menu-width":!1,"render-label":F},null,8,["value","options"]),O($(G).name)?(H(),T(u,{key:0,onClick:K},{default:I(()=>[q(W(e.$t("Home.Install.index_7")),1)]),_:1})):k("",!0),S(u,{type:"primary",onClick:t[1]||(t[1]=e=>J(1))},{default:I(()=>[q(W(O($(G).name)?e.$t("Home.Install.index_5"):e.$t("Soft.index_34")),1)]),_:1})]),_:1}),S(o)]),_:1}),C("div",V,W(e.$t("Soft.index_39"))+"：",1),C("span",{class:"py-10px inline-block leading-20px text-font2",innerHTML:$(A)},null,8,z),S(c,null,{default:I(()=>[C("li",null,W(e.$t("Soft.index_35")),1),C("li",null,W(e.$t("Soft.index_36")),1),C("li",null,W(e.$t("Soft.index_37")),1)]),_:1}),S(p,{show:$(Q).show,"onUpdate:show":t[2]||(t[2]=e=>$(Q).show=e),title:$(Q).title,data:$(Q).data,width:480,footer:!0,"confirm-text":e.$t("WP.TableRow.index_13"),component:v},null,8,["show","title","data","confirm-text"])])):k("",!0)}}}),[["__scopeId","data-v-1fde51e5"]]))}}});
