import{bc as p,c4 as u,az as c,aj as d,ao as i,aF as C,L as h,m as x,o as P}from"./app-k0jcl5PQ.js";import{E as g}from"./5O_OfZVM.chunk.js";import{C as n}from"./_XP6hjk3.chunk.js";import"./C3DvQ1wU.chunk.js";import"./DV1GpLCe.chunk.js";import"./Di9d6zcy.chunk.js";import"./CKctgafI.chunk.js";import"./CcVxCsAm.chunk.js";import"./DLmnDxSd.chunk.js";import"./CW7x8M-z.chunk.js";const f="classrooms.editClassroom",o=h.encloseNamespace(f);function D(s){const t=p(),m=u(),r=c(d.currentUser()),e=c(r.data&&n.getClassroom(s.id,r.data.id)),l=a=>{x(m,n.editClassroom(a,()=>{P.logUserAction(a,s.analyticsOptions),t.success(o("success",{name:a.name,escapeText:!0})),s.closePopup()},()=>{t.error(o("error",{name:e.data.name,escapeText:!0})),s.closePopup()}))};return i.jsx(C,{title:o("title"),closePopup:s.closePopup,showLoadingSpinner:!e.data,children:e.data&&i.jsx(g,{classroom:e.data,saveClassroom:l,onClickCancel:s.closePopup})})}export{D as EditClassroomView};
//# sourceMappingURL=CHEKJXOU.chunk.js.map
