mario-education 2.0.76-stage → 2.0.77-stage

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),Y=require("reactstrap"),i=require("mario-core"),G=require("./constants-DfnEgLPg.cjs"),d=require("react"),Q=require("formik"),ge=require("yup"),y=require("@mui/material"),J=require("@mui/x-date-pickers"),ve=require("moment"),p=require("./OutlinedInput-BFRF_8Pa.cjs"),W=require("./constants-B61zxVTr.cjs"),ee=require("./DoneCheckInIcon-7Q31KvHI.cjs"),q=require("react-redux"),K=require("./userService-DsbgpY7L.cjs"),we=require("./styles.module-CHKJJ8Zm.cjs"),xe=require("./AdapterMoment-B-q0UCj0.cjs"),M=require("./Visibility-DpU9rbKV.cjs"),B=require("./IconButton-BvzLjcwg.cjs"),se=require("react-router-dom"),je=require("date-fns");function Ne(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const h in r)if(h!=="default"){const x=Object.getOwnPropertyDescriptor(r,h);Object.defineProperty(n,h,x.get?x:{enumerable:!0,get:()=>r[h]})}}return n.default=r,Object.freeze(n)}const A=Ne(ge),be="_name_1koi9_205",ye="_role_1koi9_217",Se="_item_1koi9_230",Ce="_gender_1koi9_323",Pe="_gender__item_1koi9_328",s={"profile-value":"_profile-value_1koi9_77","input-error":"_input-error_1koi9_94","user-profile-container-admin":"_user-profile-container-admin_1koi9_122","user-profile-container-admin__left":"_user-profile-container-admin__left_1koi9_135","user-profile-container-admin__left--information":"_user-profile-container-admin__left--information_1koi9_146","image-user-container":"_image-user-container_1koi9_154","image-user-container__image":"_image-user-container__image_1koi9_169","image-user-container__edit-btn":"_image-user-container__edit-btn_1koi9_176","image-user-container__delete-btn":"_image-user-container__delete-btn_1koi9_190","name-role-container":"_name-role-container_1koi9_205",name:be,role:ye,"user-profile-container-admin__left--btn-control":"_user-profile-container-admin__left--btn-control_1koi9_224",item:Se,"item-active":"_item-active_1koi9_246","user-profile-container-admin__right":"_user-profile-container-admin__right_1koi9_274","edit-profile-container":"_edit-profile-container_1koi9_285","edit-profile-container__title":"_edit-profile-container__title_1koi9_290","edit-profile-container__form":"_edit-profile-container__form_1koi9_297","edit-profile-container__form--row":"_edit-profile-container__form--row_1koi9_302","edit-profile-container__form--field":"_edit-profile-container__form--field_1koi9_307",gender:Ce,gender__item:Pe,"edit-profile-container__form--width-50":"_edit-profile-container__form--width-50_1koi9_334","edit-profile-container__form--width-30":"_edit-profile-container__form--width-30_1koi9_337","edit-profile-container__form--width-70":"_edit-profile-container__form--width-70_1koi9_340","edit-profile-container__form--btn-group":"_edit-profile-container__form--btn-group_1koi9_343","btn-save":"_btn-save_1koi9_349","btn-cancel":"_btn-cancel_1koi9_371"};var F=(r=>(r.Info="info",r.ForgotPassword="forgotPassword",r.DownloadUserData="downloadUserData",r.ChangePassword="changePassword",r))(F||{});const O=[{value:"info",label:"Personal Information",icon:"/images/user/User.svg",isControl:!0},{value:"changePassword",label:"Change Password",icon:"/images/user/Lock.svg",isControl:!1},{value:"forgotPassword",label:"Send Forgot Password Link",icon:"/images/user/Lock.svg",isControl:!1},{value:"downloadUserData",label:"Download User Data",icon:"/images/user/Log-out.svg",isControl:!1}],ke=["Admin","Assistant","Teacher","Counselor","General ED teacher","SecondaryTeacher","Parent","Student"],R={ADMIN:"Admin",TEACHER:"Teacher",ASSISTANT:"Assistant",EDUTEACHER:"General ED teacher",STUDENT:"Student",PARENT:"Parent"},De=[{value:!0,label:"Active"},{value:!1,label:"Inactive"}],Ie=["K","G","1","2","3","4","5","6","7","8","9","10","11","12",...G.isMalvernCollege?["12/13"]:[],"13",...G.isSaisSchool?["PCS"]:[]],X=["Student"],Ae=A.object({firstName:A.string().required("First name is required"),lastName:A.string().required("Last name is required"),email:A.string().email("Email is invalid").required("Email is required"),roles:A.array().of(A.string()).min(1,"Role is required")}),Te={currentPage:1,pageSize:100},Ue=(r,n)=>{const[h,x]=d.useState([]),[l,_]=d.useState(!1),[S,o]=d.useState(Te),[C,g]=d.useState(),f=q.useDispatch(),U=d.useCallback(async()=>{_(!0);try{const v=(await K.getRosterUsersApi(S)).data?.items||[];x(b(v))}catch{f(i.setAlert({type:"error",message:"Cannot get roster users"}))}_(!1)},[JSON.stringify(S)]),u=d.useCallback(async()=>{if(!n)return;const j=h.find(v=>v.value===n);if(j){g(j);return}_(!0);try{const a=(await K.getRosterUserBySourcedIdApi(n)).data;g({label:E(a),value:a.sourcedId})}catch(v){console.log("err:",v)}_(!1)},[n]),b=j=>j.map(v=>({label:E(v),value:v.sourcedId})),E=j=>{const v=[],{givenName:a,middleName:c,familyName:w,email:D,role:m}=j,$=[];return a&&$.push(a),c&&$.push(c),w&&$.push(w),$.length&&v.push($.join(" ")),D&&v.push(D),`${v.join(" - ")}${m?` (${m})`:""}`},P=j=>{o(v=>({...v,searchString:j}))},T=d.useCallback(j=>{o({...S,...j})},[JSON.stringify(S)]);return d.useEffect(()=>{S.roles?.length&&U()},[JSON.stringify(S)]),d.useEffect(()=>{T({roles:r})},[JSON.stringify(r)]),d.useEffect(()=>{u()},[n]),{users:h,isLoading:l,user:C,handleInputChange:P}},$e=({value:r,roles:n,onChange:h})=>{const{users:x,isLoading:l,user:_,handleInputChange:S}=Ue(n,r);return e.jsx(y.Select,{label:"Select user",value:_?.value||"",onChange:o=>{h(o.target.value)},onOpen:()=>S(""),disabled:l,className:`${we.styles["profile-value"]}`,variant:"outlined",children:l?e.jsx(y.MenuItem,{disabled:!0,children:e.jsx(y.CircularProgress,{size:20})}):x.length>0?x.map(o=>e.jsx(y.MenuItem,{value:o.value,children:`${o.label}`},o.value)):e.jsx(y.MenuItem,{disabled:!0,children:"No users found"})})},Ee=({userDetail:r,confirmData:n,goBack:h,teacherOptions:x,id:l,checkHasTeacher:_,setCheckHasTeacher:S,userHasData:o,currentRoles:C})=>{const{t:g}=i.useTranslation(),f=d.useRef(null);return e.jsxs("div",{className:s["edit-profile-container"],children:[e.jsx("div",{className:s["edit-profile-container__title"],children:`${l?"Edit User Profile":"Create User"}`}),e.jsx(Q.Formik,{initialValues:r,enableReinitialize:!0,onSubmit:U=>{n(U)},validationSchema:Ae,children:U=>{const{values:u,setFieldValue:b,handleSubmit:E,errors:P,touched:T}=U,j=Object.keys(P);j.length&&document.querySelector(`input[name=${j[0]}]`)?.scrollIntoView({behavior:"smooth",block:"center"});const v=a=>{const c=a.target.value,w=f.current;if(l&&(o.isHasTeacherData&&w==="Teacher"||o.isHasAssistantData&&w==="Assistant"||o.isHasCounselorData&&w==="Counselor"||o.isHasSecondaryTeacherData&&w==="SecondaryTeacher"||w==="Student"&&(o.isHasAssistantData||o.isHasCounselorData||o.isHasSecondaryTeacherData||o.isHasTeacherData)))alert("Please switch data before removing the role");else{if(c.some(m=>X.includes(m)))if(w&&!u.roles.includes(w))b("roles",[w]);else{const m=c.find($=>X.includes($));b("roles",m?[m]:[])}else b("roles",c);f.current=null}};return e.jsxs("div",{className:s["edit-profile-container__form"],children:[e.jsxs("div",{className:s["edit-profile-container__form--row"],children:[e.jsxs("div",{className:`${s["edit-profile-container__form--field"]} ${s["edit-profile-container__form--width-50"]}`,children:[e.jsxs("p",{children:[g("first_name")," ",e.jsx("sup",{children:"*"})]}),e.jsx(y.TextField,{name:"firstName",variant:"outlined",value:u?.firstName||"",onChange:a=>b("firstName",a.target.value)}),P.firstName&&T.firstName?e.jsx("div",{className:`${s["input-error"]}`,children:P.firstName}):null]}),e.jsxs("div",{className:`${s["edit-profile-container__form--field"]} ${s["edit-profile-container__form--width-50"]}`,children:[e.jsxs("p",{children:[g("last_name")," ",e.jsx("sup",{children:"*"})]}),e.jsx(y.TextField,{name:"lastName",variant:"outlined",className:`${s["profile-value"]}`,value:u?.lastName||"",onChange:a=>b("lastName",a.target.value)}),P.lastName&&T.lastName?e.jsx("div",{className:`${s["input-error"]}`,children:P.lastName}):null]})]}),e.jsxs("div",{className:s["edit-profile-container__form--row"],children:[e.jsxs("div",{className:`${s["edit-profile-container__form--field"]} ${s["edit-profile-container__form--width-30"]}`,children:[e.jsxs("p",{children:[" ",g("date_of_birth")]}),e.jsx(J.LocalizationProvider,{dateAdapter:xe.AdapterMoment,children:e.jsx(J.DatePicker,{format:"Do MMM YYYY",value:u?.dateOfBirth&&!W.DATE_MIN_VALUE.includes(u?.dateOfBirth)?ve(u?.dateOfBirth):null,onChange:a=>{if(a){const c=a.format("YYYY-MM-DD");b("dateOfBirth",c)}else b("dateOfBirth",null)},slotProps:{textField:{variant:"outlined",id:"time-picker",className:`${s["profile-value"]}`},openPickerButton:{"aria-label":"change date"}}})})]}),e.jsxs("div",{className:`${s["edit-profile-container__form--field"]} ${s["edit-profile-container__form--width-70"]}`,children:[e.jsxs("p",{children:[" ",g("role")," ",e.jsx("sup",{children:"*"})]}),e.jsx(y.Select,{variant:"outlined",multiple:!0,name:"roles",value:u?.roles||[],renderValue:a=>a.map(c=>c).join(", "),onChange:v,className:`${s["profile-value"]}`,children:ke?.map(a=>e.jsxs(y.MenuItem,{value:a,disabled:l?(C||[]).some(c=>["Student","Parent","General ED teacher"].includes(c))||["Parent"].includes(a):["Parent"].includes(a),onClick:()=>{f.current=a},children:[e.jsx(y.Checkbox,{checked:u?.roles.includes(a)}),e.jsx(y.ListItemText,{primary:a==="SecondaryTeacher"?"Support Teacher":a})]},a))}),P.roles&&T.roles?e.jsx("div",{className:`${s["input-error"]}`,children:P.roles}):null]})]}),e.jsxs("div",{className:s["edit-profile-container__form--row"],children:[e.jsxs("div",{className:`${s["edit-profile-container__form--field"]} ${s["edit-profile-container__form--width-50"]}`,children:[e.jsxs("p",{children:[g("email")," ",e.jsx("sup",{children:"*"})]}),e.jsx(y.TextField,{name:"email",variant:"outlined",className:`${s["profile-value"]}`,value:u?.email||"",onChange:a=>b("email",a.target.value)}),P.email&&T.email?e.jsx("div",{className:`${s["input-error"]}`,children:P.email}):null]}),e.jsxs("div",{className:`${s["edit-profile-container__form--field"]} ${s["edit-profile-container__form--width-50"]}`,children:[e.jsx("p",{children:g("status")}),e.jsx("div",{className:`${s.gender}`,children:De.map(a=>e.jsxs("div",{className:`${s.gender__item}`,children:[e.jsx(y.Radio,{color:"primary",value:a.value,checked:u?.isActive===a.value,onChange:()=>b("isActive",a.value),disabled:!!l&&!!u?.isImportedFromIntegration}),a.label]},a.label))})]})]}),u.roles.includes(R.STUDENT)&&!l&&!!x&&e.jsx("div",{className:s["edit-profile-container__form--row"],children:e.jsxs("div",{className:`${s["edit-profile-container__form--field"]}`,children:[e.jsxs("p",{children:["Assign Teacher ",e.jsx("sup",{children:"*"})]}),e.jsx(y.Select,{multiple:!0,variant:"outlined",name:"teacherUserId",value:u?.teacherUserId||[],renderValue:a=>x.filter(c=>a.includes(c.value)).map(c=>c.label).join(", "),onChange:a=>{const c=a.target.value;b("teacherUserId",c),S(!!c.length)},className:`${s["profile-value"]}`,children:x?.map(a=>e.jsx(y.MenuItem,{value:a.value,children:a.label},a.value))}),!_&&e.jsx("div",{className:`${s["input-error"]}`,children:"Teacher is required"})]})}),u.roles.includes(R.STUDENT)&&e.jsx("div",{className:s["edit-profile-container__form--row"],children:e.jsxs("div",{className:`${s["edit-profile-container__form--field"]} ${s["edit-profile-container__form--width-50"]}`,children:[e.jsxs("p",{children:[" ",g("grade_level")]}),e.jsx(y.Select,{variant:"outlined",value:!!u?.gradeLevel&&u?.gradeLevel,onChange:a=>b("gradeLevel",a.target.value),className:`${s["profile-value"]}`,children:Ie.map(a=>e.jsx(y.MenuItem,{value:a,children:a},a))})]})}),(!u.roles.includes("Admin")||u.roles.length>1)&&!!u.roles.length&&!!l&&e.jsx("div",{className:s["edit-profile-container__form--row"],children:e.jsxs("div",{className:`${s["edit-profile-container__form--field"]} ${s["edit-profile-container__form--width-50"]}`,children:[e.jsx("p",{children:g("Map from Roster")}),e.jsx($e,{roles:u.roles,value:u.sourcedId,onChange:a=>b("sourcedId",a)})]})}),e.jsxs("div",{className:s["edit-profile-container__form--btn-group"],children:[e.jsx("button",{type:"button",className:s["btn-cancel"],onClick:()=>h(),children:g("cancel")}),e.jsxs("button",{type:"button",className:s["btn-save"],onClick:()=>E(),children:[e.jsx(ee.DoneCheckInIcon,{color:"#fff"}),g("save_changes")]})]})]})}})]})},k={"input-error":"_input-error_gmvmh_1","change-password-container":"_change-password-container_gmvmh_6","change-password-container__title":"_change-password-container__title_gmvmh_11","change-password-container__form":"_change-password-container__form_gmvmh_19","change-password-container__form--field":"_change-password-container__form--field_gmvmh_24","change-password-container__form--description":"_change-password-container__form--description_gmvmh_38","change-password-container__form--btn-group":"_change-password-container__form--btn-group_gmvmh_54","btn-save":"_btn-save_gmvmh_60","btn-cancel":"_btn-cancel_gmvmh_82"},Fe=A.object({oldPassword:A.string().required("Old password is required"),newPassword:A.string().required("New password is required"),confirmedNewPassword:A.string().oneOf([A.ref("newPassword"),void 0],"New password must match").required("Confirm your new password")}),Re=({confirmChangePassword:r,goBack:n})=>{const{t:h}=i.useTranslation();return e.jsxs("div",{className:k["change-password-container"],children:[e.jsx("div",{className:k["change-password-container__title"],children:h("change_password")}),e.jsx(Q.Formik,{initialValues:{oldPassword:"",newPassword:"",confirmedNewPassword:"",showOldPassword:!1,showNewPassword:!1,showConfirmNewPassword:!1},enableReinitialize:!0,onSubmit:x=>{r(x)},validateOnChange:!1,validateOnBlur:!1,validationSchema:Fe,children:x=>{const{values:l,setFieldValue:_,handleSubmit:S,errors:o,touched:C}=x,g=Object.keys(o);return g.length&&document.querySelector(`input[name=${g[0]}]`)?.scrollIntoView({behavior:"smooth",block:"center"}),e.jsxs("div",{className:k["change-password-container__form"],children:[e.jsxs("div",{className:`${k["change-password-container__form--field"]}`,children:[e.jsx("p",{children:h("old_password")}),e.jsx(p.FormControl,{variant:"outlined",className:`${k["input-field"]}`,children:e.jsx(p.OutlinedInput,{type:l.showOldPassword?"text":"password",value:l?.oldPassword,onChange:f=>_("oldPassword",f.target.value.trim()),endAdornment:e.jsx(p.InputAdornment,{position:"end",children:e.jsx(B.IconButton,{"aria-label":"toggle password visibility",onClick:()=>_("showOldPassword",!l.showOldPassword),onMouseDown:f=>f.preventDefault(),children:l.showOldPassword?e.jsx(M.Visibility,{color:"primary"}):e.jsx(p.VisibilityOff,{color:"primary"})})})})}),o.oldPassword&&C.oldPassword&&e.jsx("div",{className:`${k["input-error"]}`,children:o.oldPassword})]}),e.jsxs("div",{className:`${k["change-password-container__form--field"]}`,children:[e.jsx("p",{children:h("new_password")}),e.jsx(p.FormControl,{variant:"outlined",className:`${k["input-field"]}`,children:e.jsx(p.OutlinedInput,{type:l.showNewPassword?"text":"password",value:l?.newPassword,onChange:f=>_("newPassword",f.target.value.trim()),endAdornment:e.jsx(p.InputAdornment,{position:"end",children:e.jsx(B.IconButton,{"aria-label":"toggle password visibility",onClick:()=>_("showNewPassword",!l.showNewPassword),onMouseDown:f=>f.preventDefault(),children:l.showNewPassword?e.jsx(M.Visibility,{color:"primary"}):e.jsx(p.VisibilityOff,{color:"primary"})})})})}),o.newPassword&&C.newPassword&&e.jsx("div",{className:`${k["input-error"]}`,children:o.newPassword}),e.jsxs("div",{className:`${k["change-password-container__form--description"]}`,children:["Password must contain at least: 1 uppercase letter, 1 lowercase letter,",e.jsx("br",{})," 1 number, and 1 special character"]})]}),e.jsxs("div",{className:`${k["change-password-container__form--field"]}`,children:[e.jsx("p",{children:h("confirm_new_password")}),e.jsx(p.FormControl,{variant:"outlined",className:`${k["input-field"]}`,children:e.jsx(p.OutlinedInput,{type:l.showConfirmNewPassword?"text":"password",value:l?.confirmedNewPassword,onChange:f=>_("confirmedNewPassword",f.target.value.trim()),endAdornment:e.jsx(p.InputAdornment,{position:"end",children:e.jsx(B.IconButton,{"aria-label":"toggle password visibility",onClick:()=>_("showConfirmNewPassword",!l.showConfirmNewPassword),onMouseDown:f=>f.preventDefault(),children:l.showConfirmNewPassword?e.jsx(M.Visibility,{color:"primary"}):e.jsx(p.VisibilityOff,{color:"primary"})})})})}),o.confirmedNewPassword&&C.confirmedNewPassword&&e.jsx("div",{className:`${k["input-error"]}`,children:o.confirmedNewPassword})]}),e.jsxs("div",{className:k["change-password-container__form--btn-group"],children:[e.jsx("button",{type:"button",className:k["btn-cancel"],onClick:()=>{n()},children:h("cancel")}),e.jsxs("button",{type:"button",className:k["btn-save"],onClick:()=>S(),children:[e.jsx(ee.DoneCheckInIcon,{color:"#fff"}),h("save_new_password")]})]})]})}})]})},Le={id:"",firstName:"",lastName:"",email:"",dateOfBirth:W.DATE_MIN_VALUE,roles:[],isActive:!0,profileImageFileName:"",teacherUserId:[],gradeLevel:"",currentGradeLevel:"",isImportedFromIntegration:!1},Z="/admin/users/user-list",Oe="User detail",qe=12,Me=20,Be=r=>{const n=q.useDispatch(),h=se.useNavigate(),x=q.useSelector(t=>t.common.user),l=q.useSelector(t=>t.common?.defaultFontSize),[_,S]=d.useState(Le),[o,C]=d.useState(null),[g,f]=d.useState(!1),[U,u]=d.useState([]),[b,E]=d.useState([]),[P,T]=d.useState(!1),[j,v]=d.useState(F.Info),[a,c]=d.useState(!0),[w,D]=d.useState({isHasAssistantData:!1,isHasCounselorData:!1,isHasEduTeacherData:!1,isHasSecondaryTeacherData:!1,isHasTeacherData:!1}),m=async()=>{localStorage.setItem(window.location.href,"true"),f(!0)},$=()=>{T(!P)},ae=d.useMemo(()=>l==Me?"font-large":l==qe?"font-small":"",[l]);d.useEffect(()=>{document.title=Oe,f(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},[]),d.useEffect(()=>{r&&(te(),re()),!r&&ce()},[r]);const te=d.useCallback(async()=>{n(i.setLoading(!0));try{const t=await p.getByIdUser(r);S({...t.data,dateOfBirth:je.format(new Date(t.data.dateOfBirth),i.DATE_FORMAT),roles:t.data.roles.includes("EduTeacher")?[...t.data.roles.filter(N=>N!=="EduTeacher"),R.EDUTEACHER]:t.data.roles,currentGradeLevel:t.data.gradeLevel}),u(t?.data?.roles??[]),document.title=t.data?.fullName}catch(t){n(i.setAlert({type:"danger",message:t.response?.data?.title||t.message}))}n(i.setLoading(!1))},[r]),re=d.useCallback(async()=>{n(i.setLoading(!0));try{const t=await p.userRoleHasDataApi(r);D(t.data)}catch(t){n(i.setAlert({type:"danger",message:t.response?.data?.title||t.message}))}n(i.setLoading(!1))},[r]),V=d.useCallback(t=>{h(t&&typeof t=="string"?Z+`?query=${t}`:Z)},[]),ne=t=>["Student","Parent","EduTeacher"].includes(t),ie=d.useCallback(async t=>{if(t.roles.includes(R.STUDENT)&&!r&&!t.teacherUserId){c(!1);return}n(i.setLoading(!0));try{const N=r?p.update:p.create;!r&&delete t.id,t.teacherUserId=t.roles.includes(R.STUDENT)?t.teacherUserId:[],t.roles.includes(R.EDUTEACHER)&&(t.roles=t.roles.filter(L=>L!==R.EDUTEACHER),t.roles.push("EduTeacher")),r||(t.profileImageFileName=o||"");const I=await N(t);I&&p.getById(I.data.id).then(L=>{V(L.data.fullName)}),r||alert("Password of "+I.data.email+` is "${I.data.password}"`),n(i.setAlert({type:"success",message:`${r?"Update":"Create"} user successfully`}))}catch(N){n(i.setAlert({type:"danger",message:N.response?.data?.title||N.message}))}n(i.setLoading(!1))},[r,o]),oe=async t=>{n(i.setLoading(!0));try{await p.changePassword(t),n(i.setAlert({type:"success",message:"Change password successfully"}))}catch(N){n(i.setAlert({type:"danger",message:N.response?.data?.title||N.message}))}n(i.setLoading(!1))},le=d.useCallback(async t=>{n(i.setLoading(!0));try{await p.forgotChangePassword(t),n(i.setAlert({type:"success",message:"Send forgot password link successfully"}))}catch(N){n(i.setAlert({type:"danger",message:N.response?.data?.title||N.message||"Error occured"}))}n(i.setLoading(!1))},[]),ce=async()=>{try{const t=await p.getTeachers({sortBy:"Email"});t.data&&E(t.data.map?.(N=>({label:N.email,value:N.id}))||[])}catch(t){n(i.setAlert({type:"danger",message:t.response?.data?.title||t.message}))}},de=20097152,[ue,H]=d.useState(""),me=t=>{t.preventDefault();let N=new FileReader,I=t.target.files[0];if(I.size>de){n(i.setAlert({type:"danger",message:"File can't be larger than 2MB"}));return}N.onloadend=async()=>{if(H(N.result),I){const L=new FormData,{name:pe}=I;L.append("file",I,pe);const z=(await p.systemProfileUpload(L))?.data?.key;r?await p.updateAvatarByAdminApi(_.id||"",z):C(z)}},I&&N.readAsDataURL(I)},fe=async()=>{await p.updateAvatarByAdminApi(_.id||"",""),H("")},he=ue||i.getFileUrl(_?.profileImageFileName),_e=_?.profileImageFileName||"";return{userDetail:_,backToList:V,confirmData:ie,file:o,setFile:C,edited:g,currentRoles:U,setEdited:f,setEditedTrue:m,confirmChangePassword:oe,forgotPasswordRequest:le,handleDisableRoles:ne,classFontSize:ae,teacherOptions:b,handleToggleModel:$,openModel:P,user:x,activeTab:j,setActiveTab:v,imageSrc:he,imageUse:_e,handleImageChange:me,handleDeleteAvatar:fe,getFile:()=>{var t=window.location.origin+"/api/ExportDataUser/"+r;window.open(t)},checkHasTeacher:a,setCheckHasTeacher:c,userHasData:w}},Ve="/images/image-default.png",He=()=>{const{id:r}=se.useParams(),{userDetail:n,backToList:h,confirmData:x,confirmChangePassword:l,forgotPasswordRequest:_,teacherOptions:S,user:o,activeTab:C,setActiveTab:g,imageSrc:f,handleImageChange:U,handleDeleteAvatar:u,getFile:b,currentRoles:E,handleDisableRoles:P,checkHasTeacher:T,setCheckHasTeacher:j,userHasData:v}=Be(r),a=[{value:F.Info,component:e.jsx(Ee,{id:r,goBack:h,userDetail:n,confirmData:x,teacherOptions:S,currentRoles:E,handleDisableRoles:P,checkHasTeacher:T,setCheckHasTeacher:j,userHasData:v})},{value:F.ChangePassword,component:e.jsx(Re,{confirmChangePassword:l,goBack:h})}],c=O.find(m=>m.value===F.ForgotPassword),w=O.find(m=>m.value===F.DownloadUserData),D=O.find(m=>m.value===F.ChangePassword);return e.jsxs("div",{className:s["user-profile-container-admin"],children:[e.jsxs("div",{className:s["user-profile-container-admin__left"],children:[e.jsxs("div",{className:s["user-profile-container-admin__left--information"],children:[e.jsxs("div",{className:s["image-user-container"],children:[e.jsx(Y.Input,{className:"d-none",type:"file",id:"uploadFile",onChange:U,accept:"image/*"}),e.jsx("img",{src:f||i.getStaticFileUrl(Ve),alt:"avatar",className:`${s["image-user-container__image"]}`}),e.jsx(Y.Label,{htmlFor:"uploadFile",role:"button",tabIndex:0,children:e.jsx("div",{className:s["image-user-container__edit-btn"],children:e.jsx("img",{src:i.getStaticFileUrl("/images/user/Edit.svg"),alt:"edit-avatar"})})}),r&&e.jsx("button",{type:"button",onClick:()=>u(),className:s["image-user-container__delete-btn"],children:e.jsx("img",{src:i.getStaticFileUrl("/images/user/DeleteAvatar.svg"),alt:"delete-avatar"})})]}),e.jsxs("div",{className:s["name-role-container"],children:[e.jsx("div",{className:s.name,children:`${n?.firstName||""} ${n?.lastName||""}`}),e.jsx("div",{className:s.role,children:n?.roles?.toString()||""})]})]}),e.jsxs("div",{className:s["user-profile-container-admin__left--btn-control"],children:[O.filter(m=>m.isControl).map(m=>e.jsxs("button",{type:"button",className:`${s.item} ${C===m.value?s["item-active"]:""}`,onClick:()=>g(m.value),children:[e.jsx("img",{src:i.getStaticFileUrl(m.icon),alt:m.icon}),m.label]},m.value)),!!r&&!!D&&o?.id===r&&e.jsxs("button",{type:"button",className:`${s.item} ${C===D.value?s["item-active"]:""}`,onClick:()=>g(D.value),children:[e.jsx("img",{src:i.getStaticFileUrl(D.icon),alt:D.icon}),D.label]},D.value),r&&c&&e.jsxs("button",{type:"button",className:`${s.item} ${C===c.value?s["item-active"]:""}`,onClick:()=>_({email:n?.email||""}),children:[e.jsx("img",{src:i.getStaticFileUrl(c.icon),alt:c.icon}),c.label]},c.value),r&&w&&e.jsxs("button",{type:"button",className:`${s.item} ${C===w.value?s["item-active"]:""}`,onClick:()=>b(),children:[e.jsx("img",{src:i.getStaticFileUrl(w.icon),alt:w.icon}),w.label]},w.value)]})]}),e.jsx("div",{className:s["user-profile-container-admin__right"],children:a.find(m=>m.value===C)?.component})]})};exports.default=He;
@@ -0,0 +1,1013 @@
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import { Input as ke, Label as De } from "reactstrap";
3
+ import { setAlert as T, useTranslation as ie, setLoading as A, DATE_FORMAT as Se, getFileUrl as $e, getStaticFileUrl as O } from "mario-core";
4
+ import { i as Te, c as Ie } from "./constants-DH_6jWvS.js";
5
+ import { useState as D, useCallback as L, useEffect as V, useRef as Ue, useMemo as Ae } from "react";
6
+ import { Formik as ne } from "formik";
7
+ import * as I from "yup";
8
+ import { Select as j, MenuItem as q, CircularProgress as Ee, TextField as z, Checkbox as Fe, ListItemText as Re, Radio as Le } from "@mui/material";
9
+ import { LocalizationProvider as Oe, DatePicker as Me } from "@mui/x-date-pickers";
10
+ import Be from "moment";
11
+ import { F as Y, O as G, I as J, V as K, g as He, b as qe, d as Ve, e as xe, f as je, h as ze, i as Ye, j as ae, s as Ge, k as Je } from "./OutlinedInput-D9JDy-v1.js";
12
+ import { y as oe } from "./constants-VNj3-R1m.js";
13
+ import { D as le } from "./DoneCheckInIcon-3Yg4kjqY.js";
14
+ import { useDispatch as ce, useSelector as re } from "react-redux";
15
+ import { g as Ke, a as Xe } from "./userService-C7yjwsZq.js";
16
+ import { s as Ze } from "./styles.module-BJ4dhumc.js";
17
+ import { A as Qe } from "./AdapterMoment-CeMS9jLD.js";
18
+ import { V as X } from "./Visibility-YvCWM7h-.js";
19
+ import { I as Z } from "./IconButton-wmT-sJgm.js";
20
+ import { useNavigate as We, useParams as ea } from "react-router-dom";
21
+ import { format as aa } from "date-fns";
22
+ const ra = "_name_1koi9_205", ta = "_role_1koi9_217", sa = "_item_1koi9_230", ia = "_gender_1koi9_323", na = "_gender__item_1koi9_328", a = {
23
+ "profile-value": "_profile-value_1koi9_77",
24
+ "input-error": "_input-error_1koi9_94",
25
+ "user-profile-container-admin": "_user-profile-container-admin_1koi9_122",
26
+ "user-profile-container-admin__left": "_user-profile-container-admin__left_1koi9_135",
27
+ "user-profile-container-admin__left--information": "_user-profile-container-admin__left--information_1koi9_146",
28
+ "image-user-container": "_image-user-container_1koi9_154",
29
+ "image-user-container__image": "_image-user-container__image_1koi9_169",
30
+ "image-user-container__edit-btn": "_image-user-container__edit-btn_1koi9_176",
31
+ "image-user-container__delete-btn": "_image-user-container__delete-btn_1koi9_190",
32
+ "name-role-container": "_name-role-container_1koi9_205",
33
+ name: ra,
34
+ role: ta,
35
+ "user-profile-container-admin__left--btn-control": "_user-profile-container-admin__left--btn-control_1koi9_224",
36
+ item: sa,
37
+ "item-active": "_item-active_1koi9_246",
38
+ "user-profile-container-admin__right": "_user-profile-container-admin__right_1koi9_274",
39
+ "edit-profile-container": "_edit-profile-container_1koi9_285",
40
+ "edit-profile-container__title": "_edit-profile-container__title_1koi9_290",
41
+ "edit-profile-container__form": "_edit-profile-container__form_1koi9_297",
42
+ "edit-profile-container__form--row": "_edit-profile-container__form--row_1koi9_302",
43
+ "edit-profile-container__form--field": "_edit-profile-container__form--field_1koi9_307",
44
+ gender: ia,
45
+ gender__item: na,
46
+ "edit-profile-container__form--width-50": "_edit-profile-container__form--width-50_1koi9_334",
47
+ "edit-profile-container__form--width-30": "_edit-profile-container__form--width-30_1koi9_337",
48
+ "edit-profile-container__form--width-70": "_edit-profile-container__form--width-70_1koi9_340",
49
+ "edit-profile-container__form--btn-group": "_edit-profile-container__form--btn-group_1koi9_343",
50
+ "btn-save": "_btn-save_1koi9_349",
51
+ "btn-cancel": "_btn-cancel_1koi9_371"
52
+ };
53
+ var M = /* @__PURE__ */ ((i) => (i.Info = "info", i.ForgotPassword = "forgotPassword", i.DownloadUserData = "downloadUserData", i.ChangePassword = "changePassword", i))(M || {});
54
+ const x = [
55
+ {
56
+ value: "info",
57
+ label: "Personal Information",
58
+ icon: "/images/user/User.svg",
59
+ isControl: !0
60
+ },
61
+ {
62
+ value: "changePassword",
63
+ label: "Change Password",
64
+ icon: "/images/user/Lock.svg",
65
+ isControl: !1
66
+ },
67
+ {
68
+ value: "forgotPassword",
69
+ label: "Send Forgot Password Link",
70
+ icon: "/images/user/Lock.svg",
71
+ isControl: !1
72
+ },
73
+ {
74
+ value: "downloadUserData",
75
+ label: "Download User Data",
76
+ icon: "/images/user/Log-out.svg",
77
+ isControl: !1
78
+ }
79
+ ], oa = ["Admin", "Assistant", "Teacher", "Counselor", "General ED teacher", "SecondaryTeacher", "Parent", "Student"], B = {
80
+ ADMIN: "Admin",
81
+ TEACHER: "Teacher",
82
+ ASSISTANT: "Assistant",
83
+ EDUTEACHER: "General ED teacher",
84
+ STUDENT: "Student",
85
+ PARENT: "Parent"
86
+ }, la = [
87
+ {
88
+ value: !0,
89
+ label: "Active"
90
+ },
91
+ {
92
+ value: !1,
93
+ label: "Inactive"
94
+ }
95
+ ], ca = [
96
+ "K",
97
+ "G",
98
+ "1",
99
+ "2",
100
+ "3",
101
+ "4",
102
+ "5",
103
+ "6",
104
+ "7",
105
+ "8",
106
+ "9",
107
+ "10",
108
+ "11",
109
+ "12",
110
+ ...Te ? ["12/13"] : [],
111
+ "13",
112
+ ...Ie ? ["PCS"] : []
113
+ ], te = ["Student"], da = I.object({
114
+ firstName: I.string().required("First name is required"),
115
+ lastName: I.string().required("Last name is required"),
116
+ email: I.string().email("Email is invalid").required("Email is required"),
117
+ roles: I.array().of(I.string()).min(1, "Role is required")
118
+ }), ma = {
119
+ currentPage: 1,
120
+ pageSize: 100
121
+ }, ua = (i, n) => {
122
+ const [g, b] = D([]), [l, f] = D(!1), [y, o] = D(ma), [P, h] = D(), u = ce(), E = L(async () => {
123
+ f(!0);
124
+ try {
125
+ const _ = (await Ke(y)).data?.items || [];
126
+ b(N(_));
127
+ } catch {
128
+ u(T({
129
+ type: "error",
130
+ message: "Cannot get roster users"
131
+ }));
132
+ }
133
+ f(!1);
134
+ }, [JSON.stringify(y)]), d = L(async () => {
135
+ if (!n) return;
136
+ const v = g.find((_) => _.value === n);
137
+ if (v) {
138
+ h(v);
139
+ return;
140
+ }
141
+ f(!0);
142
+ try {
143
+ const r = (await Xe(n)).data;
144
+ h({
145
+ label: R(r),
146
+ value: r.sourcedId
147
+ });
148
+ } catch (_) {
149
+ console.log("err:", _);
150
+ }
151
+ f(!1);
152
+ }, [n]), N = (v) => v.map((_) => ({
153
+ label: R(_),
154
+ value: _.sourcedId
155
+ })), R = (v) => {
156
+ const _ = [], { givenName: r, middleName: c, familyName: p, email: S, role: m } = v, F = [];
157
+ return r && F.push(r), c && F.push(c), p && F.push(p), F.length && _.push(F.join(" ")), S && _.push(S), `${_.join(" - ")}${m ? ` (${m})` : ""}`;
158
+ }, C = (v) => {
159
+ o((_) => ({ ..._, searchString: v }));
160
+ }, U = L((v) => {
161
+ o({
162
+ ...y,
163
+ ...v
164
+ });
165
+ }, [JSON.stringify(y)]);
166
+ return V(() => {
167
+ y.roles?.length && E();
168
+ }, [JSON.stringify(y)]), V(() => {
169
+ U({
170
+ roles: i
171
+ });
172
+ }, [JSON.stringify(i)]), V(() => {
173
+ d();
174
+ }, [n]), {
175
+ users: g,
176
+ isLoading: l,
177
+ user: P,
178
+ handleInputChange: C
179
+ };
180
+ }, fa = ({ value: i, roles: n, onChange: g }) => {
181
+ const {
182
+ users: b,
183
+ isLoading: l,
184
+ user: f,
185
+ handleInputChange: y
186
+ } = ua(n, i);
187
+ return /* @__PURE__ */ e(
188
+ j,
189
+ {
190
+ label: "Select user",
191
+ value: f?.value || "",
192
+ onChange: (o) => {
193
+ g(o.target.value);
194
+ },
195
+ onOpen: () => y(""),
196
+ disabled: l,
197
+ className: `${Ze["profile-value"]}`,
198
+ variant: "outlined",
199
+ children: l ? /* @__PURE__ */ e(q, { disabled: !0, children: /* @__PURE__ */ e(Ee, { size: 20 }) }) : b.length > 0 ? b.map((o) => /* @__PURE__ */ e(q, { value: o.value, children: `${o.label}` }, o.value)) : /* @__PURE__ */ e(q, { disabled: !0, children: "No users found" })
200
+ }
201
+ );
202
+ }, ha = ({
203
+ userDetail: i,
204
+ confirmData: n,
205
+ goBack: g,
206
+ teacherOptions: b,
207
+ id: l,
208
+ checkHasTeacher: f,
209
+ setCheckHasTeacher: y,
210
+ userHasData: o,
211
+ currentRoles: P
212
+ }) => {
213
+ const { t: h } = ie(), u = Ue(null);
214
+ return /* @__PURE__ */ s("div", { className: a["edit-profile-container"], children: [
215
+ /* @__PURE__ */ e("div", { className: a["edit-profile-container__title"], children: `${l ? "Edit User Profile" : "Create User"}` }),
216
+ /* @__PURE__ */ e(
217
+ ne,
218
+ {
219
+ initialValues: i,
220
+ enableReinitialize: !0,
221
+ onSubmit: (E) => {
222
+ n(E);
223
+ },
224
+ validationSchema: da,
225
+ children: (E) => {
226
+ const { values: d, setFieldValue: N, handleSubmit: R, errors: C, touched: U } = E, v = Object.keys(C);
227
+ v.length && document.querySelector(`input[name=${v[0]}]`)?.scrollIntoView({
228
+ behavior: "smooth",
229
+ block: "center"
230
+ });
231
+ const _ = (r) => {
232
+ const c = r.target.value, p = u.current;
233
+ if (l && (o.isHasTeacherData && p === "Teacher" || o.isHasAssistantData && p === "Assistant" || o.isHasCounselorData && p === "Counselor" || o.isHasSecondaryTeacherData && p === "SecondaryTeacher" || p === "Student" && (o.isHasAssistantData || o.isHasCounselorData || o.isHasSecondaryTeacherData || o.isHasTeacherData)))
234
+ alert("Please switch data before removing the role");
235
+ else {
236
+ if (c.some((m) => te.includes(m)))
237
+ if (p && !d.roles.includes(p))
238
+ N("roles", [p]);
239
+ else {
240
+ const m = c.find((F) => te.includes(F));
241
+ N("roles", m ? [m] : []);
242
+ }
243
+ else
244
+ N("roles", c);
245
+ u.current = null;
246
+ }
247
+ };
248
+ return /* @__PURE__ */ s("div", { className: a["edit-profile-container__form"], children: [
249
+ /* @__PURE__ */ s("div", { className: a["edit-profile-container__form--row"], children: [
250
+ /* @__PURE__ */ s("div", { className: `${a["edit-profile-container__form--field"]} ${a["edit-profile-container__form--width-50"]}`, children: [
251
+ /* @__PURE__ */ s("p", { children: [
252
+ h("first_name"),
253
+ " ",
254
+ /* @__PURE__ */ e("sup", { children: "*" })
255
+ ] }),
256
+ /* @__PURE__ */ e(
257
+ z,
258
+ {
259
+ name: "firstName",
260
+ variant: "outlined",
261
+ value: d?.firstName || "",
262
+ onChange: (r) => N("firstName", r.target.value)
263
+ }
264
+ ),
265
+ C.firstName && U.firstName ? /* @__PURE__ */ e("div", { className: `${a["input-error"]}`, children: C.firstName }) : null
266
+ ] }),
267
+ /* @__PURE__ */ s("div", { className: `${a["edit-profile-container__form--field"]} ${a["edit-profile-container__form--width-50"]}`, children: [
268
+ /* @__PURE__ */ s("p", { children: [
269
+ h("last_name"),
270
+ " ",
271
+ /* @__PURE__ */ e("sup", { children: "*" })
272
+ ] }),
273
+ /* @__PURE__ */ e(
274
+ z,
275
+ {
276
+ name: "lastName",
277
+ variant: "outlined",
278
+ className: `${a["profile-value"]}`,
279
+ value: d?.lastName || "",
280
+ onChange: (r) => N("lastName", r.target.value)
281
+ }
282
+ ),
283
+ C.lastName && U.lastName ? /* @__PURE__ */ e("div", { className: `${a["input-error"]}`, children: C.lastName }) : null
284
+ ] })
285
+ ] }),
286
+ /* @__PURE__ */ s("div", { className: a["edit-profile-container__form--row"], children: [
287
+ /* @__PURE__ */ s("div", { className: `${a["edit-profile-container__form--field"]} ${a["edit-profile-container__form--width-30"]}`, children: [
288
+ /* @__PURE__ */ s("p", { children: [
289
+ " ",
290
+ h("date_of_birth")
291
+ ] }),
292
+ /* @__PURE__ */ e(Oe, { dateAdapter: Qe, children: /* @__PURE__ */ e(
293
+ Me,
294
+ {
295
+ format: "Do MMM YYYY",
296
+ value: d?.dateOfBirth && !oe.includes(d?.dateOfBirth) ? Be(d?.dateOfBirth) : null,
297
+ onChange: (r) => {
298
+ if (r) {
299
+ const c = r.format("YYYY-MM-DD");
300
+ N("dateOfBirth", c);
301
+ } else
302
+ N("dateOfBirth", null);
303
+ },
304
+ slotProps: {
305
+ textField: {
306
+ variant: "outlined",
307
+ id: "time-picker",
308
+ className: `${a["profile-value"]}`
309
+ },
310
+ openPickerButton: {
311
+ "aria-label": "change date"
312
+ }
313
+ }
314
+ }
315
+ ) })
316
+ ] }),
317
+ /* @__PURE__ */ s("div", { className: `${a["edit-profile-container__form--field"]} ${a["edit-profile-container__form--width-70"]}`, children: [
318
+ /* @__PURE__ */ s("p", { children: [
319
+ " ",
320
+ h("role"),
321
+ " ",
322
+ /* @__PURE__ */ e("sup", { children: "*" })
323
+ ] }),
324
+ /* @__PURE__ */ e(
325
+ j,
326
+ {
327
+ variant: "outlined",
328
+ multiple: !0,
329
+ name: "roles",
330
+ value: d?.roles || [],
331
+ renderValue: (r) => r.map((c) => c).join(", "),
332
+ onChange: _,
333
+ className: `${a["profile-value"]}`,
334
+ children: oa?.map((r) => /* @__PURE__ */ s(
335
+ q,
336
+ {
337
+ value: r,
338
+ disabled: l ? (P || []).some((c) => ["Student", "Parent", "General ED teacher"].includes(c)) || ["Parent"].includes(r) : ["Parent"].includes(r),
339
+ onClick: () => {
340
+ u.current = r;
341
+ },
342
+ children: [
343
+ /* @__PURE__ */ e(
344
+ Fe,
345
+ {
346
+ checked: d?.roles.includes(r)
347
+ }
348
+ ),
349
+ /* @__PURE__ */ e(Re, { primary: r === "SecondaryTeacher" ? "Support Teacher" : r })
350
+ ]
351
+ },
352
+ r
353
+ ))
354
+ }
355
+ ),
356
+ C.roles && U.roles ? /* @__PURE__ */ e("div", { className: `${a["input-error"]}`, children: C.roles }) : null
357
+ ] })
358
+ ] }),
359
+ /* @__PURE__ */ s("div", { className: a["edit-profile-container__form--row"], children: [
360
+ /* @__PURE__ */ s("div", { className: `${a["edit-profile-container__form--field"]} ${a["edit-profile-container__form--width-50"]}`, children: [
361
+ /* @__PURE__ */ s("p", { children: [
362
+ h("email"),
363
+ " ",
364
+ /* @__PURE__ */ e("sup", { children: "*" })
365
+ ] }),
366
+ /* @__PURE__ */ e(
367
+ z,
368
+ {
369
+ name: "email",
370
+ variant: "outlined",
371
+ className: `${a["profile-value"]}`,
372
+ value: d?.email || "",
373
+ onChange: (r) => N("email", r.target.value)
374
+ }
375
+ ),
376
+ C.email && U.email ? /* @__PURE__ */ e("div", { className: `${a["input-error"]}`, children: C.email }) : null
377
+ ] }),
378
+ /* @__PURE__ */ s("div", { className: `${a["edit-profile-container__form--field"]} ${a["edit-profile-container__form--width-50"]}`, children: [
379
+ /* @__PURE__ */ e("p", { children: h("status") }),
380
+ /* @__PURE__ */ e("div", { className: `${a.gender}`, children: la.map((r) => /* @__PURE__ */ s("div", { className: `${a.gender__item}`, children: [
381
+ /* @__PURE__ */ e(
382
+ Le,
383
+ {
384
+ color: "primary",
385
+ value: r.value,
386
+ checked: d?.isActive === r.value,
387
+ onChange: () => N("isActive", r.value),
388
+ disabled: !!l && !!d?.isImportedFromIntegration
389
+ }
390
+ ),
391
+ r.label
392
+ ] }, r.label)) })
393
+ ] })
394
+ ] }),
395
+ d.roles.includes(B.STUDENT) && !l && !!b && /* @__PURE__ */ e("div", { className: a["edit-profile-container__form--row"], children: /* @__PURE__ */ s("div", { className: `${a["edit-profile-container__form--field"]}`, children: [
396
+ /* @__PURE__ */ s("p", { children: [
397
+ "Assign Teacher ",
398
+ /* @__PURE__ */ e("sup", { children: "*" })
399
+ ] }),
400
+ /* @__PURE__ */ e(
401
+ j,
402
+ {
403
+ multiple: !0,
404
+ variant: "outlined",
405
+ name: "teacherUserId",
406
+ value: d?.teacherUserId || [],
407
+ renderValue: (r) => b.filter((c) => r.includes(c.value)).map((c) => c.label).join(", "),
408
+ onChange: (r) => {
409
+ const c = r.target.value;
410
+ N("teacherUserId", c), y(!!c.length);
411
+ },
412
+ className: `${a["profile-value"]}`,
413
+ children: b?.map((r) => /* @__PURE__ */ e(q, { value: r.value, children: r.label }, r.value))
414
+ }
415
+ ),
416
+ !f && /* @__PURE__ */ e("div", { className: `${a["input-error"]}`, children: "Teacher is required" })
417
+ ] }) }),
418
+ d.roles.includes(B.STUDENT) && /* @__PURE__ */ e("div", { className: a["edit-profile-container__form--row"], children: /* @__PURE__ */ s("div", { className: `${a["edit-profile-container__form--field"]} ${a["edit-profile-container__form--width-50"]}`, children: [
419
+ /* @__PURE__ */ s("p", { children: [
420
+ " ",
421
+ h("grade_level")
422
+ ] }),
423
+ /* @__PURE__ */ e(
424
+ j,
425
+ {
426
+ variant: "outlined",
427
+ value: !!d?.gradeLevel && d?.gradeLevel,
428
+ onChange: (r) => N("gradeLevel", r.target.value),
429
+ className: `${a["profile-value"]}`,
430
+ children: ca.map((r) => /* @__PURE__ */ e(q, { value: r, children: r }, r))
431
+ }
432
+ )
433
+ ] }) }),
434
+ (!d.roles.includes("Admin") || d.roles.length > 1) && !!d.roles.length && !!l && /* @__PURE__ */ e("div", { className: a["edit-profile-container__form--row"], children: /* @__PURE__ */ s("div", { className: `${a["edit-profile-container__form--field"]} ${a["edit-profile-container__form--width-50"]}`, children: [
435
+ /* @__PURE__ */ e("p", { children: h("Map from Roster") }),
436
+ /* @__PURE__ */ e(
437
+ fa,
438
+ {
439
+ roles: d.roles,
440
+ value: d.sourcedId,
441
+ onChange: (r) => N("sourcedId", r)
442
+ }
443
+ )
444
+ ] }) }),
445
+ /* @__PURE__ */ s("div", { className: a["edit-profile-container__form--btn-group"], children: [
446
+ /* @__PURE__ */ e(
447
+ "button",
448
+ {
449
+ type: "button",
450
+ className: a["btn-cancel"],
451
+ onClick: () => g(),
452
+ children: h("cancel")
453
+ }
454
+ ),
455
+ /* @__PURE__ */ s(
456
+ "button",
457
+ {
458
+ type: "button",
459
+ className: a["btn-save"],
460
+ onClick: () => R(),
461
+ children: [
462
+ /* @__PURE__ */ e(le, { color: "#fff" }),
463
+ h("save_changes")
464
+ ]
465
+ }
466
+ )
467
+ ] })
468
+ ] });
469
+ }
470
+ }
471
+ )
472
+ ] });
473
+ }, k = {
474
+ "input-error": "_input-error_gmvmh_1",
475
+ "change-password-container": "_change-password-container_gmvmh_6",
476
+ "change-password-container__title": "_change-password-container__title_gmvmh_11",
477
+ "change-password-container__form": "_change-password-container__form_gmvmh_19",
478
+ "change-password-container__form--field": "_change-password-container__form--field_gmvmh_24",
479
+ "change-password-container__form--description": "_change-password-container__form--description_gmvmh_38",
480
+ "change-password-container__form--btn-group": "_change-password-container__form--btn-group_gmvmh_54",
481
+ "btn-save": "_btn-save_gmvmh_60",
482
+ "btn-cancel": "_btn-cancel_gmvmh_82"
483
+ }, _a = I.object({
484
+ oldPassword: I.string().required("Old password is required"),
485
+ newPassword: I.string().required("New password is required"),
486
+ confirmedNewPassword: I.string().oneOf([I.ref("newPassword"), void 0], "New password must match").required("Confirm your new password")
487
+ }), pa = ({ confirmChangePassword: i, goBack: n }) => {
488
+ const { t: g } = ie();
489
+ return /* @__PURE__ */ s("div", { className: k["change-password-container"], children: [
490
+ /* @__PURE__ */ e("div", { className: k["change-password-container__title"], children: g("change_password") }),
491
+ /* @__PURE__ */ e(
492
+ ne,
493
+ {
494
+ initialValues: {
495
+ oldPassword: "",
496
+ newPassword: "",
497
+ confirmedNewPassword: "",
498
+ showOldPassword: !1,
499
+ showNewPassword: !1,
500
+ showConfirmNewPassword: !1
501
+ },
502
+ enableReinitialize: !0,
503
+ onSubmit: (b) => {
504
+ i(b);
505
+ },
506
+ validateOnChange: !1,
507
+ validateOnBlur: !1,
508
+ validationSchema: _a,
509
+ children: (b) => {
510
+ const { values: l, setFieldValue: f, handleSubmit: y, errors: o, touched: P } = b, h = Object.keys(o);
511
+ return h.length && document.querySelector(
512
+ `input[name=${h[0]}]`
513
+ )?.scrollIntoView({
514
+ behavior: "smooth",
515
+ block: "center"
516
+ }), /* @__PURE__ */ s("div", { className: k["change-password-container__form"], children: [
517
+ /* @__PURE__ */ s("div", { className: `${k["change-password-container__form--field"]}`, children: [
518
+ /* @__PURE__ */ e("p", { children: g("old_password") }),
519
+ /* @__PURE__ */ e(
520
+ Y,
521
+ {
522
+ variant: "outlined",
523
+ className: `${k["input-field"]}`,
524
+ children: /* @__PURE__ */ e(
525
+ G,
526
+ {
527
+ type: l.showOldPassword ? "text" : "password",
528
+ value: l?.oldPassword,
529
+ onChange: (u) => f(
530
+ "oldPassword",
531
+ u.target.value.trim()
532
+ ),
533
+ endAdornment: /* @__PURE__ */ e(J, { position: "end", children: /* @__PURE__ */ e(
534
+ Z,
535
+ {
536
+ "aria-label": "toggle password visibility",
537
+ onClick: () => f(
538
+ "showOldPassword",
539
+ !l.showOldPassword
540
+ ),
541
+ onMouseDown: (u) => u.preventDefault(),
542
+ children: l.showOldPassword ? /* @__PURE__ */ e(X, { color: "primary" }) : /* @__PURE__ */ e(K, { color: "primary" })
543
+ }
544
+ ) })
545
+ }
546
+ )
547
+ }
548
+ ),
549
+ o.oldPassword && P.oldPassword && /* @__PURE__ */ e("div", { className: `${k["input-error"]}`, children: o.oldPassword })
550
+ ] }),
551
+ /* @__PURE__ */ s("div", { className: `${k["change-password-container__form--field"]}`, children: [
552
+ /* @__PURE__ */ e("p", { children: g("new_password") }),
553
+ /* @__PURE__ */ e(
554
+ Y,
555
+ {
556
+ variant: "outlined",
557
+ className: `${k["input-field"]}`,
558
+ children: /* @__PURE__ */ e(
559
+ G,
560
+ {
561
+ type: l.showNewPassword ? "text" : "password",
562
+ value: l?.newPassword,
563
+ onChange: (u) => f(
564
+ "newPassword",
565
+ u.target.value.trim()
566
+ ),
567
+ endAdornment: /* @__PURE__ */ e(J, { position: "end", children: /* @__PURE__ */ e(
568
+ Z,
569
+ {
570
+ "aria-label": "toggle password visibility",
571
+ onClick: () => f(
572
+ "showNewPassword",
573
+ !l.showNewPassword
574
+ ),
575
+ onMouseDown: (u) => u.preventDefault(),
576
+ children: l.showNewPassword ? /* @__PURE__ */ e(X, { color: "primary" }) : /* @__PURE__ */ e(K, { color: "primary" })
577
+ }
578
+ ) })
579
+ }
580
+ )
581
+ }
582
+ ),
583
+ o.newPassword && P.newPassword && /* @__PURE__ */ e("div", { className: `${k["input-error"]}`, children: o.newPassword }),
584
+ /* @__PURE__ */ s("div", { className: `${k["change-password-container__form--description"]}`, children: [
585
+ "Password must contain at least: 1 uppercase letter, 1 lowercase letter,",
586
+ /* @__PURE__ */ e("br", {}),
587
+ " 1 number, and 1 special character"
588
+ ] })
589
+ ] }),
590
+ /* @__PURE__ */ s("div", { className: `${k["change-password-container__form--field"]}`, children: [
591
+ /* @__PURE__ */ e("p", { children: g("confirm_new_password") }),
592
+ /* @__PURE__ */ e(
593
+ Y,
594
+ {
595
+ variant: "outlined",
596
+ className: `${k["input-field"]}`,
597
+ children: /* @__PURE__ */ e(
598
+ G,
599
+ {
600
+ type: l.showConfirmNewPassword ? "text" : "password",
601
+ value: l?.confirmedNewPassword,
602
+ onChange: (u) => f(
603
+ "confirmedNewPassword",
604
+ u.target.value.trim()
605
+ ),
606
+ endAdornment: /* @__PURE__ */ e(J, { position: "end", children: /* @__PURE__ */ e(
607
+ Z,
608
+ {
609
+ "aria-label": "toggle password visibility",
610
+ onClick: () => f(
611
+ "showConfirmNewPassword",
612
+ !l.showConfirmNewPassword
613
+ ),
614
+ onMouseDown: (u) => u.preventDefault(),
615
+ children: l.showConfirmNewPassword ? /* @__PURE__ */ e(X, { color: "primary" }) : /* @__PURE__ */ e(K, { color: "primary" })
616
+ }
617
+ ) })
618
+ }
619
+ )
620
+ }
621
+ ),
622
+ o.confirmedNewPassword && P.confirmedNewPassword && /* @__PURE__ */ e("div", { className: `${k["input-error"]}`, children: o.confirmedNewPassword })
623
+ ] }),
624
+ /* @__PURE__ */ s("div", { className: k["change-password-container__form--btn-group"], children: [
625
+ /* @__PURE__ */ e(
626
+ "button",
627
+ {
628
+ type: "button",
629
+ className: k["btn-cancel"],
630
+ onClick: () => {
631
+ n();
632
+ },
633
+ children: g("cancel")
634
+ }
635
+ ),
636
+ /* @__PURE__ */ s(
637
+ "button",
638
+ {
639
+ type: "button",
640
+ className: k["btn-save"],
641
+ onClick: () => y(),
642
+ children: [
643
+ /* @__PURE__ */ e(le, { color: "#fff" }),
644
+ g("save_new_password")
645
+ ]
646
+ }
647
+ )
648
+ ] })
649
+ ] });
650
+ }
651
+ }
652
+ )
653
+ ] });
654
+ }, ga = {
655
+ id: "",
656
+ firstName: "",
657
+ lastName: "",
658
+ email: "",
659
+ dateOfBirth: oe,
660
+ roles: [],
661
+ isActive: !0,
662
+ profileImageFileName: "",
663
+ teacherUserId: [],
664
+ gradeLevel: "",
665
+ currentGradeLevel: "",
666
+ isImportedFromIntegration: !1
667
+ }, se = "/admin/users/user-list", va = "User detail", wa = 12, Na = 20, ba = (i) => {
668
+ const n = ce(), g = We(), b = re((t) => t.common.user), l = re((t) => t.common?.defaultFontSize), [f, y] = D(ga), [o, P] = D(null), [h, u] = D(!1), [E, d] = D([]), [N, R] = D([]), [C, U] = D(!1), [v, _] = D(M.Info), [r, c] = D(!0), [p, S] = D({
669
+ isHasAssistantData: !1,
670
+ isHasCounselorData: !1,
671
+ isHasEduTeacherData: !1,
672
+ isHasSecondaryTeacherData: !1,
673
+ isHasTeacherData: !1
674
+ }), m = async () => {
675
+ localStorage.setItem(window.location.href, "true"), u(!0);
676
+ }, F = () => {
677
+ U(!C);
678
+ }, de = Ae(() => l == Na ? "font-large" : l == wa ? "font-small" : "", [l]);
679
+ V(() => {
680
+ document.title = va, u(!1), localStorage.getItem(window.location.href) && localStorage.removeItem(window.location.href);
681
+ }, []), V(() => {
682
+ i && (me(), ue()), !i && ge();
683
+ }, [i]);
684
+ const me = L(async () => {
685
+ n(A(!0));
686
+ try {
687
+ const t = await He(i);
688
+ y({
689
+ ...t.data,
690
+ dateOfBirth: aa(new Date(t.data.dateOfBirth), Se),
691
+ roles: t.data.roles.includes("EduTeacher") ? [...t.data.roles.filter((w) => w !== "EduTeacher"), B.EDUTEACHER] : t.data.roles,
692
+ currentGradeLevel: t.data.gradeLevel
693
+ }), d(t?.data?.roles ?? []), document.title = t.data?.fullName;
694
+ } catch (t) {
695
+ n(
696
+ T({
697
+ type: "danger",
698
+ message: t.response?.data?.title || t.message
699
+ })
700
+ );
701
+ }
702
+ n(A(!1));
703
+ }, [i]), ue = L(async () => {
704
+ n(A(!0));
705
+ try {
706
+ const t = await qe(i);
707
+ S(t.data);
708
+ } catch (t) {
709
+ n(
710
+ T({
711
+ type: "danger",
712
+ message: t.response?.data?.title || t.message
713
+ })
714
+ );
715
+ }
716
+ n(A(!1));
717
+ }, [i]), Q = L((t) => {
718
+ g(t && typeof t == "string" ? se + `?query=${t}` : se);
719
+ }, []), fe = (t) => ["Student", "Parent", "EduTeacher"].includes(t), he = L(
720
+ async (t) => {
721
+ if (t.roles.includes(B.STUDENT) && !i && !t.teacherUserId) {
722
+ c(!1);
723
+ return;
724
+ }
725
+ n(A(!0));
726
+ try {
727
+ const w = i ? Ve : xe;
728
+ !i && delete t.id, t.teacherUserId = t.roles.includes(B.STUDENT) ? t.teacherUserId : [], t.roles.includes(B.EDUTEACHER) && (t.roles = t.roles.filter((H) => H !== B.EDUTEACHER), t.roles.push("EduTeacher")), i || (t.profileImageFileName = o || "");
729
+ const $ = await w(t);
730
+ $ && je($.data.id).then((H) => {
731
+ Q(H.data.fullName);
732
+ }), i || alert("Password of " + $.data.email + ` is "${$.data.password}"`), n(
733
+ T({
734
+ type: "success",
735
+ message: `${i ? "Update" : "Create"} user successfully`
736
+ })
737
+ );
738
+ } catch (w) {
739
+ n(
740
+ T({
741
+ type: "danger",
742
+ message: w.response?.data?.title || w.message
743
+ })
744
+ );
745
+ }
746
+ n(A(!1));
747
+ },
748
+ [i, o]
749
+ ), _e = async (t) => {
750
+ n(A(!0));
751
+ try {
752
+ await Je(t), n(
753
+ T({
754
+ type: "success",
755
+ message: "Change password successfully"
756
+ })
757
+ );
758
+ } catch (w) {
759
+ n(
760
+ T({
761
+ type: "danger",
762
+ message: w.response?.data?.title || w.message
763
+ })
764
+ );
765
+ }
766
+ n(A(!1));
767
+ }, pe = L(async (t) => {
768
+ n(A(!0));
769
+ try {
770
+ await ze(t), n(
771
+ T({
772
+ type: "success",
773
+ message: "Send forgot password link successfully"
774
+ })
775
+ );
776
+ } catch (w) {
777
+ n(
778
+ T({
779
+ type: "danger",
780
+ message: w.response?.data?.title || w.message || "Error occured"
781
+ })
782
+ );
783
+ }
784
+ n(A(!1));
785
+ }, []), ge = async () => {
786
+ try {
787
+ const t = await Ye({
788
+ sortBy: "Email"
789
+ });
790
+ t.data && R(t.data.map?.((w) => ({
791
+ label: w.email,
792
+ value: w.id
793
+ })) || []);
794
+ } catch (t) {
795
+ n(
796
+ T({
797
+ type: "danger",
798
+ message: t.response?.data?.title || t.message
799
+ })
800
+ );
801
+ }
802
+ }, ve = 20097152, [we, W] = D(""), Ne = (t) => {
803
+ t.preventDefault();
804
+ let w = new FileReader(), $ = t.target.files[0];
805
+ if ($.size > ve) {
806
+ n(
807
+ T({
808
+ type: "danger",
809
+ message: "File can't be larger than 2MB"
810
+ })
811
+ );
812
+ return;
813
+ }
814
+ w.onloadend = async () => {
815
+ if (W(w.result), $) {
816
+ const H = new FormData(), { name: Ce } = $;
817
+ H.append("file", $, Ce);
818
+ const ee = (await Ge(H))?.data?.key;
819
+ i ? await ae(f.id || "", ee) : P(ee);
820
+ }
821
+ }, $ && w.readAsDataURL($);
822
+ }, be = async () => {
823
+ await ae(f.id || "", ""), W("");
824
+ }, ye = we || $e(f?.profileImageFileName), Pe = f?.profileImageFileName || "";
825
+ return {
826
+ userDetail: f,
827
+ backToList: Q,
828
+ confirmData: he,
829
+ file: o,
830
+ setFile: P,
831
+ edited: h,
832
+ currentRoles: E,
833
+ setEdited: u,
834
+ setEditedTrue: m,
835
+ confirmChangePassword: _e,
836
+ forgotPasswordRequest: pe,
837
+ handleDisableRoles: fe,
838
+ classFontSize: de,
839
+ teacherOptions: N,
840
+ handleToggleModel: F,
841
+ openModel: C,
842
+ user: b,
843
+ activeTab: v,
844
+ setActiveTab: _,
845
+ imageSrc: ye,
846
+ imageUse: Pe,
847
+ handleImageChange: Ne,
848
+ handleDeleteAvatar: be,
849
+ getFile: () => {
850
+ var t = window.location.origin + "/api/ExportDataUser/" + i;
851
+ window.open(t);
852
+ },
853
+ checkHasTeacher: r,
854
+ setCheckHasTeacher: c,
855
+ userHasData: p
856
+ };
857
+ }, ya = "/images/image-default.png", za = () => {
858
+ const { id: i } = ea(), {
859
+ userDetail: n,
860
+ backToList: g,
861
+ confirmData: b,
862
+ confirmChangePassword: l,
863
+ forgotPasswordRequest: f,
864
+ teacherOptions: y,
865
+ user: o,
866
+ activeTab: P,
867
+ setActiveTab: h,
868
+ imageSrc: u,
869
+ handleImageChange: E,
870
+ handleDeleteAvatar: d,
871
+ getFile: N,
872
+ currentRoles: R,
873
+ handleDisableRoles: C,
874
+ checkHasTeacher: U,
875
+ setCheckHasTeacher: v,
876
+ userHasData: _
877
+ } = ba(i), r = [
878
+ {
879
+ value: M.Info,
880
+ component: /* @__PURE__ */ e(
881
+ ha,
882
+ {
883
+ id: i,
884
+ goBack: g,
885
+ userDetail: n,
886
+ confirmData: b,
887
+ teacherOptions: y,
888
+ currentRoles: R,
889
+ handleDisableRoles: C,
890
+ checkHasTeacher: U,
891
+ setCheckHasTeacher: v,
892
+ userHasData: _
893
+ }
894
+ )
895
+ },
896
+ {
897
+ value: M.ChangePassword,
898
+ component: /* @__PURE__ */ e(
899
+ pa,
900
+ {
901
+ confirmChangePassword: l,
902
+ goBack: g
903
+ }
904
+ )
905
+ }
906
+ ], c = x.find((m) => m.value === M.ForgotPassword), p = x.find((m) => m.value === M.DownloadUserData), S = x.find((m) => m.value === M.ChangePassword);
907
+ return /* @__PURE__ */ s("div", { className: a["user-profile-container-admin"], children: [
908
+ /* @__PURE__ */ s("div", { className: a["user-profile-container-admin__left"], children: [
909
+ /* @__PURE__ */ s("div", { className: a["user-profile-container-admin__left--information"], children: [
910
+ /* @__PURE__ */ s("div", { className: a["image-user-container"], children: [
911
+ /* @__PURE__ */ e(
912
+ ke,
913
+ {
914
+ className: "d-none",
915
+ type: "file",
916
+ id: "uploadFile",
917
+ onChange: E,
918
+ accept: "image/*"
919
+ }
920
+ ),
921
+ /* @__PURE__ */ e(
922
+ "img",
923
+ {
924
+ src: u || O(ya),
925
+ alt: "avatar",
926
+ className: `${a["image-user-container__image"]}`
927
+ }
928
+ ),
929
+ /* @__PURE__ */ e(
930
+ De,
931
+ {
932
+ htmlFor: "uploadFile",
933
+ role: "button",
934
+ tabIndex: 0,
935
+ children: /* @__PURE__ */ e("div", { className: a["image-user-container__edit-btn"], children: /* @__PURE__ */ e("img", { src: O("/images/user/Edit.svg"), alt: "edit-avatar" }) })
936
+ }
937
+ ),
938
+ i && /* @__PURE__ */ e(
939
+ "button",
940
+ {
941
+ type: "button",
942
+ onClick: () => d(),
943
+ className: a["image-user-container__delete-btn"],
944
+ children: /* @__PURE__ */ e("img", { src: O("/images/user/DeleteAvatar.svg"), alt: "delete-avatar" })
945
+ }
946
+ )
947
+ ] }),
948
+ /* @__PURE__ */ s("div", { className: a["name-role-container"], children: [
949
+ /* @__PURE__ */ e("div", { className: a.name, children: `${n?.firstName || ""} ${n?.lastName || ""}` }),
950
+ /* @__PURE__ */ e("div", { className: a.role, children: n?.roles?.toString() || "" })
951
+ ] })
952
+ ] }),
953
+ /* @__PURE__ */ s("div", { className: a["user-profile-container-admin__left--btn-control"], children: [
954
+ x.filter((m) => m.isControl).map((m) => /* @__PURE__ */ s(
955
+ "button",
956
+ {
957
+ type: "button",
958
+ className: `${a.item} ${P === m.value ? a["item-active"] : ""}`,
959
+ onClick: () => h(m.value),
960
+ children: [
961
+ /* @__PURE__ */ e("img", { src: O(m.icon), alt: m.icon }),
962
+ m.label
963
+ ]
964
+ },
965
+ m.value
966
+ )),
967
+ !!i && !!S && o?.id === i && /* @__PURE__ */ s(
968
+ "button",
969
+ {
970
+ type: "button",
971
+ className: `${a.item} ${P === S.value ? a["item-active"] : ""}`,
972
+ onClick: () => h(S.value),
973
+ children: [
974
+ /* @__PURE__ */ e("img", { src: O(S.icon), alt: S.icon }),
975
+ S.label
976
+ ]
977
+ },
978
+ S.value
979
+ ),
980
+ i && c && /* @__PURE__ */ s(
981
+ "button",
982
+ {
983
+ type: "button",
984
+ className: `${a.item} ${P === c.value ? a["item-active"] : ""}`,
985
+ onClick: () => f({ email: n?.email || "" }),
986
+ children: [
987
+ /* @__PURE__ */ e("img", { src: O(c.icon), alt: c.icon }),
988
+ c.label
989
+ ]
990
+ },
991
+ c.value
992
+ ),
993
+ i && p && /* @__PURE__ */ s(
994
+ "button",
995
+ {
996
+ type: "button",
997
+ className: `${a.item} ${P === p.value ? a["item-active"] : ""}`,
998
+ onClick: () => N(),
999
+ children: [
1000
+ /* @__PURE__ */ e("img", { src: O(p.icon), alt: p.icon }),
1001
+ p.label
1002
+ ]
1003
+ },
1004
+ p.value
1005
+ )
1006
+ ] })
1007
+ ] }),
1008
+ /* @__PURE__ */ e("div", { className: a["user-profile-container-admin__right"], children: r.find((m) => m.value === P)?.component })
1009
+ ] });
1010
+ };
1011
+ export {
1012
+ za as default
1013
+ };
@@ -11,6 +11,7 @@ type UserDetail = {
11
11
  teacherUserId: string[];
12
12
  gradeLevel?: string;
13
13
  currentGradeLevel?: string;
14
+ isImportedFromIntegration?: boolean;
14
15
  };
15
16
  declare const useUserDetail: (id?: string) => {
16
17
  userDetail: UserDetail;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("mario-core"),t=require("@ag-grid-enterprise/core"),e=require("react"),n=e.lazy(()=>Promise.resolve().then(()=>require("./ConferenceRubricList-CASLPVnE.cjs"))),i=e.lazy(()=>Promise.resolve().then(()=>require("./ConferenceRubricDetail-BcKMyu7H.cjs"))),s=e.lazy(()=>Promise.resolve().then(()=>require("./LearningStrategyList-c9ut_ZBs.cjs"))),a=e.lazy(()=>Promise.resolve().then(()=>require("./SetupContainer-BVWf3J0s.cjs"))),l=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionBankList-B110CvP1.cjs"))),u=e.lazy(()=>Promise.resolve().then(()=>require("./ReflectionContainer-T8k3ipxn.cjs"))),m=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionDetail-qOOl31Ce.cjs"))),y=e.lazy(()=>Promise.resolve().then(()=>require("./SubjectList-DBvEGKQs.cjs"))),v=e.lazy(()=>Promise.resolve().then(()=>require("./LearningSupportCategoryList-BpCRx0CF.cjs"))),c=e.lazy(()=>Promise.resolve().then(()=>require("./BadgeList-DHs-Rsvu.cjs"))),P=e.lazy(()=>Promise.resolve().then(()=>require("./GoalExampleList-DdkEu4hA.cjs"))),h=e.lazy(()=>Promise.resolve().then(()=>require("./TutorialScreenContainer-Cc7pBhl5.cjs"))),q=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionBankContainer-BcLJ35Uj.cjs"))),z=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyQuestionContainer-Cz4l_V9F.cjs"))),S=e.lazy(()=>Promise.resolve().then(()=>require("./SessionTemplateDetail-B9-wcCpc.cjs"))),d=e.lazy(()=>Promise.resolve().then(()=>require("./CustomAlertList-Xzp3UMJR.cjs"))),C=e.lazy(()=>Promise.resolve().then(()=>require("./AssetLog-Bexcnjvn.cjs"))),g=e.lazy(()=>Promise.resolve().then(()=>require("./Dashboard-iyff4IIg.cjs"))),A=e.lazy(()=>Promise.resolve().then(()=>require("./AdminTraining-CFhKwWEu.cjs"))),L=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateContainer-wVMb1knJ.cjs"))),p=e.lazy(()=>Promise.resolve().then(()=>require("./OneRosterContainer-BsWxtfSQ.cjs"))),Q=e.lazy(()=>Promise.resolve().then(()=>require("./SandboxContainer-2xT8qr0Z.cjs"))),D=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateBuilderPage-RtTtRDYv.cjs"))),b=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateStartBuild-L-GJIKx5.cjs"))),T=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyDashboardContainer-BlKz0TTa.cjs"))),f=e.lazy(()=>Promise.resolve().then(()=>require("./RevertUser-BQszWVGK.cjs"))),R=e.lazy(()=>Promise.resolve().then(()=>require("./CustomQuestionAlert-CxG1sL2e.cjs"))),B=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyDetailAdmin-DpTxho1j.cjs"))),M=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyStudentFlagListAdmin-BTaM7mE2.cjs"))),W=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyResultAdmin-D7F9kc0w.cjs"))),k=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyIndexAdmin-FQL9d6AW.cjs"))),x=e.lazy(()=>Promise.resolve().then(()=>require("./CreateSurveyAdmin-C58F7S-l.cjs"))),E=e.lazy(()=>Promise.resolve().then(()=>require("./PreviewSurveyAdmin-cxZtaTqX.cjs"))),F=e.lazy(()=>Promise.resolve().then(()=>require("./ExternalApi-C9QAZfYm.cjs"))),I=e.lazy(()=>Promise.resolve().then(()=>require("./WeeklyQuest-BkGxXWW6.cjs"))),G=e.lazy(()=>Promise.resolve().then(()=>require("./SettingWeeklyQuest-CDi1sio0.cjs"))),O=e.lazy(()=>Promise.resolve().then(()=>require("./HomePage-CwP7R_2t.cjs"))),w=e.lazy(()=>Promise.resolve().then(()=>require("./MainLayoutAdmin-1IKr0vPa.cjs"))),H=e.lazy(()=>Promise.resolve().then(()=>require("./SyncData-C2Shc7Al.cjs"))),U=e.lazy(()=>Promise.resolve().then(()=>require("./SummarizeQuestion-BGLyofJB.cjs"))),j=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyQuestion-CvX38eWN.cjs"))),V=e.lazy(()=>Promise.resolve().then(()=>require("./MarioAi-BGo_TUpN.cjs"))),K=e.lazy(()=>Promise.resolve().then(()=>require("./AIMario-DP2HBmgn.cjs"))),N=e.lazy(()=>Promise.resolve().then(()=>require("./ChatWithAI-D05nPwmZ.cjs"))),_=e.lazy(()=>Promise.resolve().then(()=>require("./ViewHistoryPrompt-BVko_mzN.cjs"))),$=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyPortal-BbaKp-r2.cjs"))),J=e.lazy(()=>Promise.resolve().then(()=>require("./ConversationGoal-wEThTv0C.cjs"))),X=e.lazy(()=>Promise.resolve().then(()=>require("./FrequencyAndSetup-CdoUkIkQ.cjs"))),Y=e.lazy(()=>Promise.resolve().then(()=>require("./DesignatedStaff-C7KVBBAN.cjs"))),Z=e.lazy(()=>Promise.resolve().then(()=>require("./WellBeingDashboard-C3ulS4UW.cjs"))),ee=e.lazy(()=>Promise.resolve().then(()=>require("./OpenFieldWellbeingQuestion-_r_sFisf.cjs"))),re=e.lazy(()=>Promise.resolve().then(()=>require("./MyProfile-CG450eWE.cjs"))),oe=e.lazy(()=>Promise.resolve().then(()=>require("./UserProfileManagement-B3IqIELk.cjs"))),te=e.lazy(()=>Promise.resolve().then(()=>require("./EditFlagCard-CDHWffHh.cjs"))),ne=e.lazy(()=>Promise.resolve().then(()=>require("./ConversationTarget-D1uUvQtT.cjs"))),ie=e.lazy(()=>Promise.resolve().then(()=>require("./TeacherConversations-D1PpxCRe.cjs")).then(r=>r.TeacherConversations$1));t.LicenseManager.setLicenseKey(o.LICENSE_AGGRID);exports.AIMario=K;exports.AdminTraining=A;exports.AssetLog=C;exports.BadgeList=c;exports.ChatWithAI=N;exports.ConferenceRubricDetail=i;exports.ConferenceRubricList=n;exports.ConversationGoal=J;exports.ConversationTarget=ne;exports.CreateSurveyAdmin=x;exports.CustomAlertList=d;exports.CustomQuestionAlert=R;exports.Dashboard=g;exports.DesignatedStaff=Y;exports.EditFlagCard=te;exports.ExternalApi=F;exports.FrequencyAndSetup=X;exports.GoalExampleList=P;exports.HomePage=O;exports.LearningStrategyList=s;exports.LearningSupportCategoryList=v;exports.MainLayoutAdmin=w;exports.MarioAi=V;exports.MyProfile=re;exports.OneRosterContainer=p;exports.OpenFieldWellbeingQuestion=ee;exports.PreviewSurveyAdmin=E;exports.QuestionBankContainer=q;exports.QuestionBankList=l;exports.QuestionDetail=m;exports.ReflectionContainer=u;exports.RevertUser=f;exports.SandboxContainer=Q;exports.SessionTemplateDetail=S;exports.SettingWeeklyQuest=G;exports.SetupContainer=a;exports.SubjectList=y;exports.SummarizeQuestion=U;exports.SurveyDashboardContainer=T;exports.SurveyDetailAdmin=B;exports.SurveyIndexAdmin=k;exports.SurveyPortal=$;exports.SurveyQuestion=j;exports.SurveyQuestionContainer=z;exports.SurveyResultAdmin=W;exports.SurveyStudentFlagListAdmin=M;exports.SyncData=H;exports.TeacherConversations=ie;exports.TemplateBuilderPage=D;exports.TemplateContainer=L;exports.TemplateStartBuild=b;exports.TutorialScreenContainer=h;exports.UserProfileManagement=oe;exports.ViewHistoryPrompt=_;exports.WeeklyQuest=I;exports.WellBeingDashboard=Z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("mario-core"),t=require("@ag-grid-enterprise/core"),e=require("react"),n=e.lazy(()=>Promise.resolve().then(()=>require("./ConferenceRubricList-CASLPVnE.cjs"))),i=e.lazy(()=>Promise.resolve().then(()=>require("./ConferenceRubricDetail-BcKMyu7H.cjs"))),s=e.lazy(()=>Promise.resolve().then(()=>require("./LearningStrategyList-c9ut_ZBs.cjs"))),a=e.lazy(()=>Promise.resolve().then(()=>require("./SetupContainer-BVWf3J0s.cjs"))),l=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionBankList-B110CvP1.cjs"))),u=e.lazy(()=>Promise.resolve().then(()=>require("./ReflectionContainer-T8k3ipxn.cjs"))),m=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionDetail-qOOl31Ce.cjs"))),y=e.lazy(()=>Promise.resolve().then(()=>require("./SubjectList-DBvEGKQs.cjs"))),v=e.lazy(()=>Promise.resolve().then(()=>require("./LearningSupportCategoryList-BpCRx0CF.cjs"))),c=e.lazy(()=>Promise.resolve().then(()=>require("./BadgeList-DHs-Rsvu.cjs"))),P=e.lazy(()=>Promise.resolve().then(()=>require("./GoalExampleList-DdkEu4hA.cjs"))),h=e.lazy(()=>Promise.resolve().then(()=>require("./TutorialScreenContainer-Cc7pBhl5.cjs"))),q=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionBankContainer-BcLJ35Uj.cjs"))),z=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyQuestionContainer-Cz4l_V9F.cjs"))),S=e.lazy(()=>Promise.resolve().then(()=>require("./SessionTemplateDetail-B9-wcCpc.cjs"))),d=e.lazy(()=>Promise.resolve().then(()=>require("./CustomAlertList-Xzp3UMJR.cjs"))),C=e.lazy(()=>Promise.resolve().then(()=>require("./AssetLog-Bexcnjvn.cjs"))),g=e.lazy(()=>Promise.resolve().then(()=>require("./Dashboard-iyff4IIg.cjs"))),A=e.lazy(()=>Promise.resolve().then(()=>require("./AdminTraining-CFhKwWEu.cjs"))),L=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateContainer-wVMb1knJ.cjs"))),p=e.lazy(()=>Promise.resolve().then(()=>require("./OneRosterContainer-BsWxtfSQ.cjs"))),Q=e.lazy(()=>Promise.resolve().then(()=>require("./SandboxContainer-2xT8qr0Z.cjs"))),D=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateBuilderPage-RtTtRDYv.cjs"))),b=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateStartBuild-L-GJIKx5.cjs"))),T=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyDashboardContainer-BlKz0TTa.cjs"))),f=e.lazy(()=>Promise.resolve().then(()=>require("./RevertUser-BQszWVGK.cjs"))),R=e.lazy(()=>Promise.resolve().then(()=>require("./CustomQuestionAlert-CxG1sL2e.cjs"))),B=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyDetailAdmin-DpTxho1j.cjs"))),M=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyStudentFlagListAdmin-BTaM7mE2.cjs"))),W=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyResultAdmin-D7F9kc0w.cjs"))),k=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyIndexAdmin-FQL9d6AW.cjs"))),x=e.lazy(()=>Promise.resolve().then(()=>require("./CreateSurveyAdmin-C58F7S-l.cjs"))),E=e.lazy(()=>Promise.resolve().then(()=>require("./PreviewSurveyAdmin-cxZtaTqX.cjs"))),F=e.lazy(()=>Promise.resolve().then(()=>require("./ExternalApi-C9QAZfYm.cjs"))),I=e.lazy(()=>Promise.resolve().then(()=>require("./WeeklyQuest-BkGxXWW6.cjs"))),G=e.lazy(()=>Promise.resolve().then(()=>require("./SettingWeeklyQuest-CDi1sio0.cjs"))),O=e.lazy(()=>Promise.resolve().then(()=>require("./HomePage-CwP7R_2t.cjs"))),w=e.lazy(()=>Promise.resolve().then(()=>require("./MainLayoutAdmin-1IKr0vPa.cjs"))),H=e.lazy(()=>Promise.resolve().then(()=>require("./SyncData-C2Shc7Al.cjs"))),U=e.lazy(()=>Promise.resolve().then(()=>require("./SummarizeQuestion-BGLyofJB.cjs"))),j=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyQuestion-CvX38eWN.cjs"))),V=e.lazy(()=>Promise.resolve().then(()=>require("./MarioAi-BGo_TUpN.cjs"))),K=e.lazy(()=>Promise.resolve().then(()=>require("./AIMario-DP2HBmgn.cjs"))),N=e.lazy(()=>Promise.resolve().then(()=>require("./ChatWithAI-D05nPwmZ.cjs"))),_=e.lazy(()=>Promise.resolve().then(()=>require("./ViewHistoryPrompt-BVko_mzN.cjs"))),$=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyPortal-BbaKp-r2.cjs"))),J=e.lazy(()=>Promise.resolve().then(()=>require("./ConversationGoal-wEThTv0C.cjs"))),X=e.lazy(()=>Promise.resolve().then(()=>require("./FrequencyAndSetup-CdoUkIkQ.cjs"))),Y=e.lazy(()=>Promise.resolve().then(()=>require("./DesignatedStaff-C7KVBBAN.cjs"))),Z=e.lazy(()=>Promise.resolve().then(()=>require("./WellBeingDashboard-C3ulS4UW.cjs"))),ee=e.lazy(()=>Promise.resolve().then(()=>require("./OpenFieldWellbeingQuestion-_r_sFisf.cjs"))),re=e.lazy(()=>Promise.resolve().then(()=>require("./MyProfile-CG450eWE.cjs"))),oe=e.lazy(()=>Promise.resolve().then(()=>require("./UserProfileManagement-CRWV2Hpl.cjs"))),te=e.lazy(()=>Promise.resolve().then(()=>require("./EditFlagCard-CDHWffHh.cjs"))),ne=e.lazy(()=>Promise.resolve().then(()=>require("./ConversationTarget-D1uUvQtT.cjs"))),ie=e.lazy(()=>Promise.resolve().then(()=>require("./TeacherConversations-D1PpxCRe.cjs")).then(r=>r.TeacherConversations$1));t.LicenseManager.setLicenseKey(o.LICENSE_AGGRID);exports.AIMario=K;exports.AdminTraining=A;exports.AssetLog=C;exports.BadgeList=c;exports.ChatWithAI=N;exports.ConferenceRubricDetail=i;exports.ConferenceRubricList=n;exports.ConversationGoal=J;exports.ConversationTarget=ne;exports.CreateSurveyAdmin=x;exports.CustomAlertList=d;exports.CustomQuestionAlert=R;exports.Dashboard=g;exports.DesignatedStaff=Y;exports.EditFlagCard=te;exports.ExternalApi=F;exports.FrequencyAndSetup=X;exports.GoalExampleList=P;exports.HomePage=O;exports.LearningStrategyList=s;exports.LearningSupportCategoryList=v;exports.MainLayoutAdmin=w;exports.MarioAi=V;exports.MyProfile=re;exports.OneRosterContainer=p;exports.OpenFieldWellbeingQuestion=ee;exports.PreviewSurveyAdmin=E;exports.QuestionBankContainer=q;exports.QuestionBankList=l;exports.QuestionDetail=m;exports.ReflectionContainer=u;exports.RevertUser=f;exports.SandboxContainer=Q;exports.SessionTemplateDetail=S;exports.SettingWeeklyQuest=G;exports.SetupContainer=a;exports.SubjectList=y;exports.SummarizeQuestion=U;exports.SurveyDashboardContainer=T;exports.SurveyDetailAdmin=B;exports.SurveyIndexAdmin=k;exports.SurveyPortal=$;exports.SurveyQuestion=j;exports.SurveyQuestionContainer=z;exports.SurveyResultAdmin=W;exports.SurveyStudentFlagListAdmin=M;exports.SyncData=H;exports.TeacherConversations=ie;exports.TemplateBuilderPage=D;exports.TemplateContainer=L;exports.TemplateStartBuild=b;exports.TutorialScreenContainer=h;exports.UserProfileManagement=oe;exports.ViewHistoryPrompt=_;exports.WeeklyQuest=I;exports.WellBeingDashboard=Z;
@@ -1,7 +1,7 @@
1
1
  import { LICENSE_AGGRID as i } from "mario-core";
2
2
  import { LicenseManager as n } from "@ag-grid-enterprise/core";
3
3
  import { lazy as t } from "react";
4
- const m = t(() => import("./ConferenceRubricList-BMS__Zhg.js")), p = t(() => import("./ConferenceRubricDetail-Dkw4IAmz.js")), c = t(() => import("./LearningStrategyList-CXDUExaq.js")), a = t(() => import("./SetupContainer-C0T0AuD_.js")), u = t(() => import("./QuestionBankList-CYOTd3zO.js")), l = t(() => import("./ReflectionContainer-DYumB3DG.js")), S = t(() => import("./QuestionDetail-DBqKhna4.js")), d = t(() => import("./SubjectList-ewa6hXBk.js")), y = t(() => import("./LearningSupportCategoryList-BmFj6dul.js")), C = t(() => import("./BadgeList-DUEUMpRP.js")), g = t(() => import("./GoalExampleList-DwoJ0Zn_.js")), A = t(() => import("./TutorialScreenContainer-BIhGp5Xb.js")), L = t(() => import("./QuestionBankContainer-MwUCM9rI.js")), v = t(() => import("./SurveyQuestionContainer-CyZs4YbB.js")), f = t(() => import("./SessionTemplateDetail-Y0ShCfW-.js")), D = t(() => import("./CustomAlertList-ByDBzBsS.js")), Q = t(() => import("./AssetLog-9i4_srMc.js")), b = t(() => import("./Dashboard-B7wF81Ny.js")), T = t(() => import("./AdminTraining-BS64lsyg.js")), h = t(() => import("./TemplateContainer-CPK7IVP1.js")), P = t(() => import("./OneRosterContainer-B77ZZCHp.js")), R = t(() => import("./SandboxContainer-DmPlQa8l.js")), B = t(() => import("./TemplateBuilderPage-DzJLw-Su.js")), M = t(() => import("./TemplateStartBuild-naD1Xn49.js")), x = t(() => import("./SurveyDashboardContainer-DwohN7jl.js")), E = t(() => import("./RevertUser-bHci1c1Z.js")), I = t(() => import("./CustomQuestionAlert-Cw7DnLNn.js")), W = t(() => import("./SurveyDetailAdmin-BTqEze6x.js")), k = t(() => import("./SurveyStudentFlagListAdmin-Dudt3b56.js")), F = t(() => import("./SurveyResultAdmin-DRe5Yby8.js")), G = t(() => import("./SurveyIndexAdmin-B9nQuUi2.js")), w = t(() => import("./CreateSurveyAdmin-BKSgBSKc.js")), z = t(() => import("./PreviewSurveyAdmin-2WjJEwSJ.js")), H = t(() => import("./ExternalApi-CFsQM9Kw.js")), O = t(() => import("./WeeklyQuest-DXUieqhS.js")), U = t(() => import("./SettingWeeklyQuest-D61948jR.js")), j = t(() => import("./HomePage-B20bsO6n.js")), q = t(() => import("./MainLayoutAdmin-syqlqpf8.js")), K = t(() => import("./SyncData-BTSEX_ZA.js")), N = t(() => import("./SummarizeQuestion-B8A9YrXe.js")), V = t(() => import("./SurveyQuestion-D-JHKXI1.js")), _ = t(() => import("./MarioAi-rsnP5BHX.js")), J = t(() => import("./AIMario-Bk_MPYou.js")), X = t(() => import("./ChatWithAI-D6OhXDrm.js")), Y = t(() => import("./ViewHistoryPrompt-BBzluk-m.js")), Z = t(() => import("./SurveyPortal-BEY_IXN5.js")), $ = t(() => import("./ConversationGoal-sZwbz3LI.js")), tt = t(() => import("./FrequencyAndSetup-BzRROiSe.js")), ot = t(() => import("./DesignatedStaff-B3X_Bwgs.js")), it = t(() => import("./WellBeingDashboard-U12LxSCe.js")), nt = t(() => import("./OpenFieldWellbeingQuestion-7WKGtwvL.js")), rt = t(() => import("./MyProfile-CJ2DQRKK.js")), et = t(() => import("./UserProfileManagement-C2zAFPzy.js")), st = t(() => import("./EditFlagCard-CmrxdNyn.js")), mt = t(() => import("./ConversationTarget-BRzJt-bs.js")), pt = t(() => import("./TeacherConversations-Cb_49CVr.js").then((o) => o.b));
4
+ const m = t(() => import("./ConferenceRubricList-BMS__Zhg.js")), p = t(() => import("./ConferenceRubricDetail-Dkw4IAmz.js")), c = t(() => import("./LearningStrategyList-CXDUExaq.js")), a = t(() => import("./SetupContainer-C0T0AuD_.js")), u = t(() => import("./QuestionBankList-CYOTd3zO.js")), l = t(() => import("./ReflectionContainer-DYumB3DG.js")), S = t(() => import("./QuestionDetail-DBqKhna4.js")), d = t(() => import("./SubjectList-ewa6hXBk.js")), y = t(() => import("./LearningSupportCategoryList-BmFj6dul.js")), C = t(() => import("./BadgeList-DUEUMpRP.js")), g = t(() => import("./GoalExampleList-DwoJ0Zn_.js")), A = t(() => import("./TutorialScreenContainer-BIhGp5Xb.js")), L = t(() => import("./QuestionBankContainer-MwUCM9rI.js")), v = t(() => import("./SurveyQuestionContainer-CyZs4YbB.js")), f = t(() => import("./SessionTemplateDetail-Y0ShCfW-.js")), D = t(() => import("./CustomAlertList-ByDBzBsS.js")), Q = t(() => import("./AssetLog-9i4_srMc.js")), b = t(() => import("./Dashboard-B7wF81Ny.js")), T = t(() => import("./AdminTraining-BS64lsyg.js")), h = t(() => import("./TemplateContainer-CPK7IVP1.js")), P = t(() => import("./OneRosterContainer-B77ZZCHp.js")), R = t(() => import("./SandboxContainer-DmPlQa8l.js")), B = t(() => import("./TemplateBuilderPage-DzJLw-Su.js")), M = t(() => import("./TemplateStartBuild-naD1Xn49.js")), x = t(() => import("./SurveyDashboardContainer-DwohN7jl.js")), E = t(() => import("./RevertUser-bHci1c1Z.js")), I = t(() => import("./CustomQuestionAlert-Cw7DnLNn.js")), W = t(() => import("./SurveyDetailAdmin-BTqEze6x.js")), k = t(() => import("./SurveyStudentFlagListAdmin-Dudt3b56.js")), F = t(() => import("./SurveyResultAdmin-DRe5Yby8.js")), G = t(() => import("./SurveyIndexAdmin-B9nQuUi2.js")), w = t(() => import("./CreateSurveyAdmin-BKSgBSKc.js")), z = t(() => import("./PreviewSurveyAdmin-2WjJEwSJ.js")), H = t(() => import("./ExternalApi-CFsQM9Kw.js")), O = t(() => import("./WeeklyQuest-DXUieqhS.js")), U = t(() => import("./SettingWeeklyQuest-D61948jR.js")), j = t(() => import("./HomePage-B20bsO6n.js")), q = t(() => import("./MainLayoutAdmin-syqlqpf8.js")), K = t(() => import("./SyncData-BTSEX_ZA.js")), N = t(() => import("./SummarizeQuestion-B8A9YrXe.js")), V = t(() => import("./SurveyQuestion-D-JHKXI1.js")), _ = t(() => import("./MarioAi-rsnP5BHX.js")), J = t(() => import("./AIMario-Bk_MPYou.js")), X = t(() => import("./ChatWithAI-D6OhXDrm.js")), Y = t(() => import("./ViewHistoryPrompt-BBzluk-m.js")), Z = t(() => import("./SurveyPortal-BEY_IXN5.js")), $ = t(() => import("./ConversationGoal-sZwbz3LI.js")), tt = t(() => import("./FrequencyAndSetup-BzRROiSe.js")), ot = t(() => import("./DesignatedStaff-B3X_Bwgs.js")), it = t(() => import("./WellBeingDashboard-U12LxSCe.js")), nt = t(() => import("./OpenFieldWellbeingQuestion-7WKGtwvL.js")), rt = t(() => import("./MyProfile-CJ2DQRKK.js")), et = t(() => import("./UserProfileManagement-DS1Fuwvk.js")), st = t(() => import("./EditFlagCard-CmrxdNyn.js")), mt = t(() => import("./ConversationTarget-BRzJt-bs.js")), pt = t(() => import("./TeacherConversations-Cb_49CVr.js").then((o) => o.b));
5
5
  n.setLicenseKey(i);
6
6
  export {
7
7
  J as AIMario,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mario-education",
3
- "version": "2.0.76-stage",
3
+ "version": "2.0.77-stage",
4
4
  "description": "Contains education components && functions for BRSS Mario project",
5
5
  "author": "brss",
6
6
  "license": "MIT",