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