import{_ as P}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{_ as h}from"./index.vue_vue_type_script_setup_true_lang-DG86e1NA.js?v=1773287522785";import"./index-BTglIPU2.js?v=1773287522785";import{u as $}from"./tools-BXr7PjJU.js?v=1773287522785";import{t as g}from"./ftp-SrpKmV1S.js?v=1773287522785";import{b as k}from"./index-DhnhmU-6.js?v=1773287522785";import{k as C,r as R,e as y,$ as B,Z as N,a0 as t,a9 as m,_ as l,S as s,N as U}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as F,b as S}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./index-K4YGya6V.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 T={class:"px-20px pt-24px pb-8px"},V={class:"w-280px"},E={class:"w-280px"},ee=C({__name:"index",props:{data:{}},setup(u,{expose:d}){const f=u,{row:n}=f.data,c=$(),_=R(null),e=y({ftp_username:n.name,new_password:n.password}),w={new_password:k({complex:{length:6}})},b=()=>({id:n.id,...U(e)});return d({onConfirm:async({hide:a})=>{var r;await((r=_.value)==null?void 0:r.validate());const o=b();await g(o),c.setRefresh(!0),a()}}),(a,o)=>{const r=S,i=F,v=h,x=P;return B(),N("div",T,[t(x,{ref_key:"formRef",ref:_,model:s(e),rules:w},{default:m(()=>[t(i,{label:a.$t("Public.Table.Username"),path:"ftp_username"},{default:m(()=>[l("div",V,[t(r,{value:s(e).ftp_username,"onUpdate:value":o[0]||(o[0]=p=>s(e).ftp_username=p),disabled:!0},null,8,["value"])])]),_:1},8,["label"]),t(i,{label:a.$t("Public.Table.Password"),path:"new_password"},{default:m(()=>[l("div",E,[t(v,{value:s(e).new_password,"onUpdate:value":o[1]||(o[1]=p=>s(e).new_password=p),default:!1,"input-props":{name:"password"}},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{ee as default};
