System.register(["./page_layout-legacy.js?v=1764830988434","./soft-legacy.js?v=1764830988434","./public-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434"],function(e,a){"use strict";var n,t,l,s,i,u,r,o,v,p,c,d,m,g,y,_,f,x,j,P,S,k,C,$,b;return{setters:[e=>{n=e.u,t=e.m,l=e.ej,s=e.d,i=e.X,u=e.c},e=>{r=e.p},e=>{o=e.d,v=e.a},e=>{p=e.k,c=e.P,d=e.a0,m=e.r,g=e.a2,y=e.V,_=e.a3,f=e.S,x=e.W,j=e.a4,P=e.U,S=e.ak,k=e.j},e=>{C=e.dV,$=e.aC,b=e.da}],execute:function(){e("_",p({__name:"index",setup(e,{expose:a}){const{t:p}=c(),{multiService:w}=d(n()),F=m(),N=m(),U=m([]),V=()=>{N.value!==F.value?v({title:p("Public.Btn.Install"),content:p("Plugin.Ftp.index_12",[r.title,F.value]),onConfirm:()=>{h()}}):t.error(p("Plugin.Ftp.index_11"))},h=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:B,setLoading:I}=o(),L=async()=>{try{I(!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{I(!1)}};return L(),a({init:L}),(e,a)=>{const n=C,t=$,l=b;return y(),g(l,{class:"items-center"},{default:_(()=>[f("span",null,j(e.$t("Plugin.Ftp.index_9")),1),x(n,{class:"w-200px",loading:P(B),value:P(F),"onUpdate:value":a[0]||(a[0]=e=>S(F)?F.value=e:null),options:P(U)},null,8,["loading","value","options"]),x(t,{type:"primary",onClick:V},{default:_(()=>[k(j(e.$t("Site.Cert.index_61")),1)]),_:1})]),_:1})}}}))}}});
