System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BtujQJPk.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BSBh0Le2.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./tools-legacy-CHYnbAi9.js?v=1773287522785","./index-legacy-DRbbI6UR.js?v=1773287522785","./ftp-legacy-Dk70RiS_.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index-legacy-DGWsVoxN.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785","./check-legacy-DG4HeWug.js?v=1773287522785"],(function(e,a){"use strict";var l,t,s,p,n,u,r,d,_,c,o,i,g,f,v,y,x,h,m,j,w;return{setters:[e=>{l=e._},e=>{t=e._},e=>{s=e._},null,e=>{p=e.u},e=>{n=e.a,u=e.b},e=>{r=e.i},e=>{d=e.k,_=e.R,c=e.r,o=e.e,i=e.o,g=e.$,f=e.a8,v=e.a9,y=e.a0,x=e._,h=e.S,m=e.N},e=>{j=e.a1,w=e.b},null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"w-330px"},b={class:"w-330px"},P={class:"w-330px"};e("default",d({__name:"index",props:{data:{}},setup(e,{expose:d}){const $=e,{t:A}=_(),I=p(),k=c(null),F=c(null),R=o({ftp_username:"",ftp_password:"",path:I.addPath,ps:""}),U={path:n(),ftp_password:u({complex:{length:6}}),ftp_username:{trigger:["blur","change"],validator:(e,a)=>0===a.length?new Error(A("Ftp.Add.Index_2")):/^[a-zA-Z0-9_]+$/g.test(a)?!(a.length<3)||new Error(A("Ftp.Add.Index_4")):new Error(A("Ftp.Add.Index_3"))}},E=()=>{const e=R.ftp_username;R.ps=e,e.length>0?R.path=I.addPath+"/"+e:R.path=I.addPath};return i((()=>{F.value?.focus()})),d({onConfirm:async()=>{await(k.value?.validate()),await r(m(R)),$.data?.getList?.(),I.setRefresh(!0)}}),(e,p)=>{const n=w,u=j,r=s,d=t,_=l;return g(),f(_,{ref_key:"formRef",ref:k,model:h(R),rules:U,class:"w-530px px-20px pt-24px pb-12px"},{default:v((()=>[y(u,{label:e.$t("Public.Table.Username"),path:"ftp_username"},{default:v((()=>[x("div",a,[y(n,{value:h(R).ftp_username,"onUpdate:value":p[0]||(p[0]=e=>h(R).ftp_username=e),ref_key:"usernameRef",ref:F,placeholder:"","input-props":{name:"username"},onInput:E},null,8,["value"])])])),_:1},8,["label"]),y(u,{label:e.$t("Public.Table.Password"),path:"ftp_password"},{default:v((()=>[x("div",b,[y(r,{value:h(R).ftp_password,"onUpdate:value":p[1]||(p[1]=e=>h(R).ftp_password=e),placeholder:"","input-props":{name:"password"}},null,8,["value"])])])),_:1},8,["label"]),y(u,{label:e.$t("Ftp.Add.Index_1"),path:"path"},{default:v((()=>[x("div",P,[y(d,{value:h(R).path,"onUpdate:value":p[2]||(p[2]=e=>h(R).path=e),placeholder:"","input-props":{name:"path"}},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])}}}))}}}));
