System.register(["./page_layout-legacy.js?v=1763625242172","./soft-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172"],(function(e,a){"use strict";var n,t,l,s,i,u,r,o,v,p,c,m,d,g,y,_,f,x,j,P,b,C,S,$,k;return{setters:[e=>{n=e.u,t=e.m,l=e.eM,s=e.c,i=e.X,u=e.b},e=>{r=e.p},e=>{o=e.d,v=e.a},e=>{p=e.k,c=e.P,m=e.a0,d=e.r,g=e.R,y=e.a2,_=e.a3,f=e.U,x=e.a4,j=e.X,P=e.V,b=e.aj,C=e.j},e=>{S=e.dV,$=e.aC,k=e.d9}],execute:function(){e("_",p({__name:"index",setup(e,{expose:a}){const{t:p}=c(),{multiService:w}=m(n()),F=d(),N=d(),U=d([]),V=()=>{N.value!==F.value?v({title:p("Public.Btn.Install"),content:p("Plugin.Ftp.index_12",[r.title,F.value]),onConfirm:()=>{X()}}):t.error(p("Plugin.Ftp.index_11"))},X=async(e=1)=>{const{message:a}=await l({sName:r.name,version:F.value,type:e,id:50,Skip:!!w.value||null});s(a)&&a.result&&i()},{loading:h,setLoading:B}=o(),I=async()=>{try{B(!0);const{message:e}=await u({sName:"pure-ftpd"===r.name?"pureftpd":r.name});s(e)&&(U.value=e.versions.map((a=>(1==a.m_version.length?F.value=e.version.split(".")[0]:F.value=e.version.split(".")[0]+"."+e.version.split(".")[1],N.value=F.value,{label:`${e.name} ${a.m_version}`,value:a.m_version}))))}finally{B(!1)}};return I(),a({init:I}),(e,a)=>{const n=S,t=$,l=k;return g(),y(l,{class:"items-center"},{default:_((()=>[f("span",null,x(e.$t("Plugin.Ftp.index_9")),1),j(n,{class:"w-200px",loading:P(h),value:P(F),"onUpdate:value":a[0]||(a[0]=e=>b(F)?F.value=e:null),options:P(U)},null,8,["loading","value","options"]),j(t,{type:"primary",onClick:V},{default:_((()=>[C(x(e.$t("Site.Cert.index_61")),1)])),_:1})])),_:1})}}}))}}}));
