import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang2.js?v=1763625242172";import{cv as s}from"./page_layout.js?v=1763625242172";import"./public.js?v=1763625242172";import{t}from"./ftp.js?v=1763625242172";import{b as p}from"./index263.js?v=1763625242172";import{k as r,r as o,e as l,R as n,S as u,X as d,a3 as i,U as m,V as _,N as f}from"./vue.js?v=1763625242172";import{au as v,dP as w}from"./naive.js?v=1763625242172";import"./index98.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const c={class:"px-20px pt-24px pb-8px"},x={class:"w-280px"},b={class:"w-280px"},j=r({__name:"index",props:{data:{}},setup(r,{expose:j}){const h=r,{row:y}=h.data,g=s(),P=o(null),U=l({ftp_username:y.name,new_password:y.password}),R={new_password:p({complex:{length:6}})};return j({onConfirm:async({hide:e})=>{var a;await(null==(a=P.value)?void 0:a.validate());const s={id:y.id,...f(U)};await t(s),g.setRefresh(!0),e()}}),(s,t)=>{const p=v,r=w,o=a,l=e;return n(),u("div",c,[d(l,{ref_key:"formRef",ref:P,model:_(U),rules:R},{default:i((()=>[d(r,{label:s.$t("Public.Table.Username"),path:"ftp_username"},{default:i((()=>[m("div",x,[d(p,{value:_(U).ftp_username,"onUpdate:value":t[0]||(t[0]=e=>_(U).ftp_username=e),disabled:!0},null,8,["value"])])])),_:1},8,["label"]),d(r,{label:s.$t("Public.Table.Password"),path:"new_password"},{default:i((()=>[m("div",b,[d(o,{value:_(U).new_password,"onUpdate:value":t[1]||(t[1]=e=>_(U).new_password=e),default:!1,"input-props":{name:"password"}},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}});export{j as default};
