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