import{_ as v}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import"./index-BTglIPU2.js?v=1773287522785";import{u as x}from"./tools-BXr7PjJU.js?v=1773287522785";import{h as b}from"./ftp-SrpKmV1S.js?v=1773287522785";import{v as h}from"./index-DhnhmU-6.js?v=1773287522785";import{k as w,r as m,e as k,o as C,$ as R,Z as g,a0 as r,a9 as i,_ as y,S as n,N as B}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as F,_ as N}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./useTableColumns-DDeyYvje.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";import"./check-CNel7fTH.js?v=1773287522785";const $={class:"px-20px pt-24px pb-8px"},P={class:"w-220px"},O=w({__name:"index",setup(S,{expose:_}){const a=x(),p=m(null),s=m(null),e=k({port:a.port}),f={port:h()};return C(()=>{var o;(o=s.value)==null||o.focus()}),_({onConfirm:async({hide:o})=>{var t;await((t=p.value)==null?void 0:t.validate()),await b(B(e)),a.getConfig(),o()}}),(o,t)=>{const l=N,c=F,u=v;return R(),g("div",$,[r(u,{ref_key:"formRef",ref:p,model:n(e),rules:f},{default:i(()=>[r(c,{label:o.$t("Ftp.Label.index_13"),path:"port"},{default:i(()=>[y("div",P,[r(l,{value:n(e).port,"onUpdate:value":t[0]||(t[0]=d=>n(e).port=d),ref_key:"portRef",ref:s,min:1,max:65535,"show-button":!1,"input-props":{name:"port"},placeholder:""},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{O as default};
