import{r as n,j as o}from"./vendor-react-wBh_31cN.js";import{a as f,b as i}from"./index.esm-CAGtek53.js";import{I as p}from"./input-H6_qmzms.js";const x=()=>{var m;const{register:s,formState:{errors:r},setValue:a}=f(),[t,e]=i({name:["name","modelName"]});return n.useEffect(()=>{!t&&e&&a("name",e==null?void 0:e.replace(/[^a-zA-Z0-9]/g,"")),!e&&t&&a("name","")},[e,a]),o.jsx(p,{...s("name"),label:"Name",placeholder:"deployment name",intent:r.name?"error":"default",info:(m=r.name)==null?void 0:m.message})};export{x as N};
