import{ao as e,ck as m,L as l,bU as o}from"./app-k0jcl5PQ.js";import{u as c,F as u}from"./C3DvQ1wU.chunk.js";import{F as p}from"./DV1GpLCe.chunk.js";import{C as d}from"./CcVxCsAm.chunk.js";const x="classrooms.classroomDetailsForm",n=l.encloseNamespace(x);function C(s){const a=c();return e.jsxs(m,{children:[e.jsx(p,{label:n("nameLabel"),type:"text",name:"name",id:"name",maxLength:255,placeholder:n("namePlaceholder"),autoFocus:!0,value:a.values.name}),e.jsxs(o,{children:[e.jsx(o.Cancel,{onClick:s.onClickCancel}),e.jsx(o.Submit,{variant:"dark",isNew:s.isNew})]})]})}function k(s){const{classroom:a,saveClassroom:r,onClickCancel:i}=s,t={id:a==null?void 0:a.id,name:a==null?void 0:a.name};return e.jsx(u,{initialValues:t,validationSchema:d,onSubmit:r,children:e.jsx(C,{isNew:!a,onClickCancel:i})})}export{k as E};
//# sourceMappingURL=5O_OfZVM.chunk.js.map
