import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{bU as a,g4 as r}from"./page_layout.js?v=1763625242172";import"./public.js?v=1763625242172";import{k as s,P as o,t as n,r as t,e as l,R as i,S as m,X as u,a3 as p,U as d,V as _}from"./vue.js?v=1763625242172";import{au as c,dP as v}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";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"),g=a(),h=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=h.value)?void 0:e.validate()),await r({id:k.value.id,name:y.name}),g.setRefresh(!0)}}),(a,r)=>{const s=c,o=v,n=e;return i(),m("div",f,[u(n,{ref_key:"formRef",ref:h,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};
