import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{bm as b,gL as x}from"./index-BTglIPU2.js?v=1773287522785";import{k as C,R as h,t as g,r as R,e as D,$,Z as B,a0 as o,a9 as m,_ as y,S as a}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as E,b as N}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const S={class:"p-20px"},V={class:"w-200px"},z=C({__name:"index",props:{row:{}},setup(i,{expose:l}){const c=i,{t:_}=h(),t=g(c,"row"),p=b(),r=R(null),e=D({name:t.value.name}),u={name:{trigger:["blur","input"],validator:()=>e.name.trim()===""?new Error(_("Docker.Container.rename.index_3")):!0}};return l({onConfirm:async()=>{var n;await((n=r.value)==null?void 0:n.validate()),await x({id:t.value.id,name:e.name}),p.setRefresh(!0)}}),(n,s)=>{const f=N,d=E,v=k;return $(),B("div",S,[o(v,{ref_key:"formRef",ref:r,model:a(e),rules:u,"label-width":"150"},{default:m(()=>[o(d,{label:n.$t("Docker.Container.rename.index_1"),"show-feedback":!1},{default:m(()=>[y("div",V,[o(f,{value:a(e).name,"onUpdate:value":s[0]||(s[0]=w=>a(e).name=w),placeholder:n.$t("Docker.Container.rename.index_2")},null,8,["value","placeholder"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{z as default};
