import{b3 as o,bk as n,r as l,j as r,B as p,aM as c}from"./index-dP1W1_bd.js";import{s as x}from"./utils-CSV5kSUs.js";const u=()=>{const{register:t,formState:{errors:m},setValue:a}=o(),[s,e]=n({name:["name","modelName"]});return l.useEffect(()=>{!s&&e&&a("name",e==null?void 0:e.replace(/[^a-zA-Z0-9]/g,"")),!e&&s&&a("name","")},[e,a]),r.jsx(p,{sx:m.name?x.errorText:{},children:r.jsx(c,{...t("name"),label:"Name",placeholder:"deployment name"})})};export{u as N};
