import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1764830988434";import{bq as a,fZ as r}from"./page_layout.js?v=1764830988434";import"./public.js?v=1764830988434";import{k as s,P as o,t as n,r as t,e as l,R as i,V as m,W as u,a3 as p,S as d,U as _}from"./vue.js?v=1764830988434";import{dR as c,au as v}from"./naive.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";const f={class:"p-20px"},x={class:"w-200px"},j=s({__name:"index",props:{row:{}},setup(s,{expose:j}){const w=s,{t:b}=o(),k=n(w,"row"),h=a(),g=t(null),y=l({name:k.value.name}),C={name:{trigger:["blur","input"],validator:()=>""!==y.name.trim()||new Error(b("Docker.Container.rename.index_3"))}};return j({onConfirm:async()=>{var e;await(null==(e=g.value)?void 0:e.validate()),await r({id:k.value.id,name:y.name}),h.setRefresh(!0)}}),(a,r)=>{const s=v,o=c,n=e;return m(),i("div",f,[u(n,{ref_key:"formRef",ref:g,model:_(y),rules:C,"label-width":"150"},{default:p(()=>[u(o,{label:a.$t("Docker.Container.rename.index_1"),"show-feedback":!1},{default:p(()=>[d("div",x,[u(s,{value:_(y).name,"onUpdate:value":r[0]||(r[0]=e=>_(y).name=e),placeholder:a.$t("Docker.Container.rename.index_2")},null,8,["value","placeholder"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{j as default};
