import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang2.js?v=1753954525509";import{c7 as s}from"./page_layout.js?v=1753954525509";import"./public.js?v=1753954525509";import{t}from"./ftp2.js?v=1753954525509";import{b as p}from"./index255.js?v=1753954525509";import{k as r,r as o,e as l,U as n,V as u,Q as i,a2 as m,W as d,X as _,N as f}from"./vue.js?v=1753954525509";import{aq as v,cA as c}from"./naive.js?v=1753954525509";import"./index96.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const w={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(),U=o(null),P=l({ftp_username:y.name,new_password:y.password}),k={new_password:p({complex:{length:6}})};return j({onConfirm:async({hide:e})=>{var a;await(null==(a=U.value)?void 0:a.validate());const s={id:y.id,...f(P)};await t(s),g.setRefresh(!0),e()}}),(s,t)=>{const p=v,r=c,o=a,l=e;return n(),u("div",w,[i(l,{ref_key:"formRef",ref:U,model:_(P),rules:k},{default:m((()=>[i(r,{label:s.$t("Public.Table.Username"),path:"ftp_username"},{default:m((()=>[d("div",x,[i(p,{value:_(P).ftp_username,"onUpdate:value":t[0]||(t[0]=e=>_(P).ftp_username=e),disabled:!0},null,8,["value"])])])),_:1},8,["label"]),i(r,{label:s.$t("Public.Table.Password"),path:"new_password"},{default:m((()=>[d("div",b,[i(o,{value:_(P).new_password,"onUpdate:value":t[1]||(t[1]=e=>_(P).new_password=e),default:!1,"input-props":{name:"password"}},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}});export{j as default};
