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