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