import{aI as p,aP as i,L as d,ao as C,f as c,v as n,e as S}from"./app-k0jcl5PQ.js";import{C as m}from"./He_KJRxT.chunk.js";const A="classrooms.addStudentsChoices",t=d.encloseNamespace(A);function h(e){const[o,a]=p.useState(null),s={application:S.CLASSROOMS,action:c.Classrooms.CONTACT_SCHOOL_ADMIN,args:[e.classroomId]};function u(){n.trigger(s),e.closePopup()}function l(){if(o.id==="has-students"){s.action=c.Classrooms.ADD_STUDENTS_CHOICES_METHOD,n.trigger(s),e.closePopup();return}n.trigger(s),e.closePopup()}const r=[{id:"has-students",title:t("hasStudentsTitle"),description:t("hasStudentsDescription"),imageUrl:i.AddStudents.AccountOptions.ACCOUNT},{id:"no-students",title:t("noStudentsTitle"),description:t("noStudentsDescription"),imageUrl:i.AddStudents.AccountOptions.NO_ACCOUNT}];return C.jsx(m,{title:t("title"),question:t("popupQuestion"),closePopup:e.closePopup,selectOption:a,selection:o,options:r,cancelButtonProps:{onClick:u,text:t("notSure"),variant:"link"},submitButtonProps:{onClick:l,text:t("next"),variant:"dark",disabled:!o}})}export{h as AddStudentsChoicesView};
//# sourceMappingURL=Cw4biAw4.chunk.js.map
