System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy10.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy2.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./index-legacy263.js?v=1763625242172","./ftp-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./index-legacy98.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,a){"use strict";var t,l,p,s,n,u,r,d,_,o,c,i,f,g,v,h,m,x,y,w,b;return{setters:[e=>{t=e._},e=>{l=e._},e=>{p=e._},e=>{s=e.cv},null,e=>{n=e.a,u=e.b},e=>{r=e.i},e=>{d=e.k,_=e.P,o=e.r,c=e.e,i=e.o,f=e.R,g=e.a2,v=e.a3,h=e.X,m=e.U,x=e.V,y=e.N},e=>{w=e.au,b=e.dP},null,null,null],execute:function(){const a={class:"w-330px"},j={class:"w-330px"},P={class:"w-330px"};e("default",d({__name:"index",props:{data:{}},setup(e,{expose:d}){const A=e,{t:I}=_(),U=s(),F=o(null),R=o(null),$=c({ftp_username:"",ftp_password:"",path:U.addPath,ps:""}),k={path:n(),ftp_password:u({complex:{length:6}}),ftp_username:{trigger:["blur","change"],validator:(e,a)=>0===a.length?new Error(I("Ftp.Add.Index_2")):/^[a-zA-Z0-9_]+$/g.test(a)?!(a.length<3)||new Error(I("Ftp.Add.Index_4")):new Error(I("Ftp.Add.Index_3"))}},E=()=>{const e=$.ftp_username;$.ps=e,e.length>0?$.path=U.addPath+"/"+e:$.path=U.addPath};return i((()=>{R.value?.focus()})),d({onConfirm:async()=>{await(F.value?.validate()),await r(y($)),A.data?.getList?.(),U.setRefresh(!0)}}),(e,s)=>{const n=w,u=b,r=p,d=l,_=t;return f(),g(_,{ref_key:"formRef",ref:F,model:x($),rules:k,class:"w-530px px-20px pt-24px pb-12px"},{default:v((()=>[h(u,{label:e.$t("Public.Table.Username"),path:"ftp_username"},{default:v((()=>[m("div",a,[h(n,{value:x($).ftp_username,"onUpdate:value":s[0]||(s[0]=e=>x($).ftp_username=e),ref_key:"usernameRef",ref:R,placeholder:"","input-props":{name:"username"},onInput:E},null,8,["value"])])])),_:1},8,["label"]),h(u,{label:e.$t("Public.Table.Password"),path:"ftp_password"},{default:v((()=>[m("div",j,[h(r,{value:x($).ftp_password,"onUpdate:value":s[1]||(s[1]=e=>x($).ftp_password=e),placeholder:"","input-props":{name:"password"}},null,8,["value"])])])),_:1},8,["label"]),h(u,{label:e.$t("Ftp.Add.Index_1"),path:"path"},{default:v((()=>[m("div",P,[h(d,{value:x($).path,"onUpdate:value":s[2]||(s[2]=e=>x($).path=e),placeholder:"","input-props":{name:"path"}},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])}}}))}}}));
