import{_ as y}from"./index-DIKmrNCq.js?v=1773287522785";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-CgKUoL60.js?v=1773287522785";import"./index-BTglIPU2.js?v=1773287522785";import{u as C}from"./tools-BXr7PjJU.js?v=1773287522785";import{r as P}from"./ftp-SrpKmV1S.js?v=1773287522785";import{a as R}from"./index-DhnhmU-6.js?v=1773287522785";import{k as U,r as A,e as B,$ as I,Z as N,a0 as o,a9 as p,_ as l,S as n,aa as _,N as S}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as T,b as V,a8 as D}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.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";import"./check-CNel7fTH.js?v=1773287522785";const E={class:"px-20px py-24px"},Z={class:"w-260px"},j={class:"w-260px"},st=U({__name:"index",props:{data:{}},setup(f,{expose:d}){const c=f,{row:m}=c.data,v=C(),u=A(null),t=B({ftp_username:m.name,path:m.path,migrate:0}),b={path:R()},h=()=>({id:m.id,...S(t)});return d({onConfirm:async({hide:e})=>{var r;await((r=u.value)==null?void 0:r.validate());const a=h();await P(a),v.setRefresh(!0),e()}}),(e,a)=>{const r=V,i=T,x=k,$=D,g=F,w=y;return I(),N("div",E,[o(g,{ref_key:"formRef",ref:u,model:n(t),rules:b},{default:p(()=>[o(i,{label:e.$t("Public.Table.Username"),path:"ftp_username"},{default:p(()=>[l("div",Z,[o(r,{value:n(t).ftp_username,"onUpdate:value":a[0]||(a[0]=s=>n(t).ftp_username=s),disabled:!0},null,8,["value"])])]),_:1},8,["label"]),o(i,{label:e.$t("Ftp.Table.index_1"),path:"path"},{default:p(()=>[l("div",j,[o(x,{value:n(t).path,"onUpdate:value":a[1]||(a[1]=s=>n(t).path=s)},null,8,["value"])])]),_:1},8,["label"]),o(i,{label:e.$t("Ftp.Table.index_7"),"show-feedback":!1},{default:p(()=>[o($,{value:n(t).migrate,"onUpdate:value":a[2]||(a[2]=s=>n(t).migrate=s),"checked-value":1},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model"]),o(w,{class:"mt-16px"},{default:p(()=>[l("li",null,_(e.$t("Ftp.Analysis.Index_33")),1),l("li",null,_(e.$t("Ftp.Analysis.Index_34")),1),l("li",null,_(e.$t("Ftp.Analysis.Index_35")),1)]),_:1})])}}});export{st as default};
