mario-teacher-student-client 2.0.62-release → 2.0.63-release
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.
- package/dist/AddClassReflection-BPXl2UNX.js +268 -0
- package/dist/AddClassReflection-Cr2S6dE9.cjs +1 -0
- package/dist/AddNewClassReflection-DJDvublg.cjs +1 -0
- package/dist/AddNewClassReflection-DfA6HmuH.js +921 -0
- package/dist/BookSession-BdhchPrs.cjs +1 -0
- package/dist/BookSession-fuWTopm8.js +639 -0
- package/dist/BookSessionConferences-1MspWiA1.js +431 -0
- package/dist/BookSessionConferences-Ca5muzK7.cjs +1 -0
- package/dist/BubbleChartCustom-C5xi33F2.js +111 -0
- package/dist/BubbleChartCustom-OnczhGm1.cjs +1 -0
- package/dist/CheckInProgress-BJPMnK0a.js +924 -0
- package/dist/CheckInProgress-Brpu8fHH.cjs +27 -0
- package/dist/CheckInProgress-CPFxcFYS.cjs +27 -0
- package/dist/CheckInProgress-CTmNoGy4.cjs +27 -0
- package/dist/CheckInProgress-D0M5Fjl7.js +923 -0
- package/dist/CheckInProgress-Do1vSsVI.js +923 -0
- package/dist/CheckInProgress-uuJQQbv6.js +923 -0
- package/dist/CheckInProgress-yFdJ-4by.cjs +27 -0
- package/dist/ConferenceRubric-BXqcULb1.js +362 -0
- package/dist/ConferenceRubric-Cca0vCAX.cjs +1 -0
- package/dist/ConferenceRubric-DAbO2XzZ.js +362 -0
- package/dist/ConferenceRubric-DbsZScja.cjs +1 -0
- package/dist/ConferenceRubric-DlTfEuZC.js +362 -0
- package/dist/ConferenceRubric-DmfHhpuW.cjs +1 -0
- package/dist/ConfirmDeleteOneToOne-BHaGaaQ4.js +1145 -0
- package/dist/ConfirmDeleteOneToOne-CidFvZhm.cjs +7 -0
- package/dist/ConfirmDeleteOneToOne-Cw3u3Pgg.cjs +7 -0
- package/dist/ConfirmDeleteOneToOne-DUVmAqSU.cjs +7 -0
- package/dist/ConfirmDeleteOneToOne-Z7OtX-eu.js +1145 -0
- package/dist/ConfirmDeleteOneToOne-tRDiO8PE.js +1145 -0
- package/dist/ConfirmShareModal-Cuasn3gG.js +107 -0
- package/dist/ConfirmShareModal-D8N_wpx2.cjs +1 -0
- package/dist/CreateStudent-Bz1x-_8C.js +1303 -0
- package/dist/CreateStudent-CUVbL50a.cjs +1 -0
- package/dist/CreateSurvey-BnJkSluW.cjs +3 -0
- package/dist/CreateSurvey-CI-vuoVJ.js +3080 -0
- package/dist/CustomFilterComponent-M5v5fTzW.cjs +1 -0
- package/dist/CustomFilterComponent-Y9HMeUx6.js +321 -0
- package/dist/CustomTab-Bgav7sBW.js +227 -0
- package/dist/CustomTab-jNhAP7yU.cjs +1 -0
- package/dist/EduTeacherViewDetail-7VgLyvML.cjs +1 -0
- package/dist/EduTeacherViewDetail-BVmuvDxL.cjs +1 -0
- package/dist/EduTeacherViewDetail-CCBOvElv.js +43 -0
- package/dist/EduTeacherViewDetail-DDq5j4Zb.js +43 -0
- package/dist/ExternalReflection-MCo9h9yd.js +322 -0
- package/dist/ExternalReflection-Wap3OGsR.cjs +1 -0
- package/dist/ExternalSurvey-Bzk9ioG4.cjs +1 -0
- package/dist/ExternalSurvey-Dl5wEdJU.js +589 -0
- package/dist/GenerateChartData-BSEE4vJh.js +401 -0
- package/dist/GenerateChartData-CkBxBLSI.cjs +1 -0
- package/dist/GenerateTrendQuestion-BzhHuiy4.js +1354 -0
- package/dist/GenerateTrendQuestion-wmgZ8WxD.cjs +2 -0
- package/dist/GuideCheckIn-EIeHCwDx.js +226 -0
- package/dist/GuideCheckIn-i9PwS9nc.cjs +1 -0
- package/dist/HeaderComponent-CE1Q_2ZY.js +233 -0
- package/dist/HeaderComponent-DLARMz6R.cjs +25 -0
- package/dist/HeaderUserDetail-BAzKj0jP.cjs +2 -0
- package/dist/HeaderUserDetail-CUoj2FjW.js +599 -0
- package/dist/HomePage-B1SgBROL.cjs +234 -0
- package/dist/HomePage-BPASgXxI.js +3621 -0
- package/dist/InterventionDialog-DlcItR0G.cjs +22 -0
- package/dist/InterventionDialog-yd0CnrG4.js +746 -0
- package/dist/LearningPlan-B3bsPNVV.cjs +7 -0
- package/dist/LearningPlan-B8zKXoAD.js +3374 -0
- package/dist/LearningPlanChip-DJPb1cvv.cjs +1 -0
- package/dist/LearningPlanChip-SvYIPW5b.js +350 -0
- package/dist/LearningStrategyComponent-BDOqj2CY.cjs +1 -0
- package/dist/LearningStrategyComponent-BdO3VKGU.cjs +1 -0
- package/dist/LearningStrategyComponent-CR-4p6DO.js +132 -0
- package/dist/LearningStrategyComponent-Doim-_6H.cjs +1 -0
- package/dist/LearningStrategyComponent-hpVGgjQz.js +132 -0
- package/dist/LearningStrategyComponent-xyJSuc0Y.js +132 -0
- package/dist/ListPersonalInterrest-BEEaak8v.js +1646 -0
- package/dist/ListPersonalInterrest-YH0LeUWS.cjs +2 -0
- package/dist/ListPersonalLearningPlans-CsTiQRPs.cjs +1 -0
- package/dist/ListPersonalLearningPlans-kao52Ife.js +734 -0
- package/dist/ListSurveys-C14Zv13m.js +1762 -0
- package/dist/ListSurveys-DCTCaJUo.cjs +36 -0
- package/dist/ListTransitionPlans-Bh9jd-2y.cjs +1 -0
- package/dist/ListTransitionPlans-VfMyDCXi.js +748 -0
- package/dist/MainLayout-DR1G6bug.js +2315 -0
- package/dist/MainLayout-DkBER6La.cjs +12 -0
- package/dist/MainViewScaffolding-CHkwZsxc.cjs +1 -0
- package/dist/MainViewScaffolding-Cigi6ymX.js +125 -0
- package/dist/MainViewScaffolding-D0xyC_O3.cjs +1 -0
- package/dist/MainViewScaffolding-D8Y3BOpC.cjs +1 -0
- package/dist/MainViewScaffolding-DT8fKWMF.js +125 -0
- package/dist/MainViewScaffolding-Lt_GytR0.js +125 -0
- package/dist/ModelStudentSession-Bk-QgRSK.cjs +1 -0
- package/dist/ModelStudentSession-CPAnPPim.js +136 -0
- package/dist/MyClassReflection-DwlhbTcQ.cjs +5 -0
- package/dist/MyClassReflection-QANMZdqk.js +1021 -0
- package/dist/MyClassSchedule-ClF1WRfI.cjs +1 -0
- package/dist/MyClassSchedule-CnmlI6RS.js +582 -0
- package/dist/MyConferences-DJGe1V10.cjs +2 -0
- package/dist/MyConferences-JOwUokRu.js +2180 -0
- package/dist/MyConversation-CevwmUXl.cjs +1 -0
- package/dist/MyConversation-DIOTccCu.js +2007 -0
- package/dist/MyOneToOne-7_HCN5fy.js +1882 -0
- package/dist/MyOneToOne-C7jMCrO0.cjs +1 -0
- package/dist/MyOneToOne-DCFufsrk.js +1882 -0
- package/dist/MyOneToOne-DV4sMvua.cjs +1 -0
- package/dist/MyOneToOne-DxzM9xI1.cjs +1 -0
- package/dist/MyOneToOne-vqo0elOb.js +1882 -0
- package/dist/MyProfile-CRWoYX0F.cjs +1 -0
- package/dist/MyProfile-Dc-kWqfx.js +564 -0
- package/dist/MyStudent-Bmv8J0ix.js +1397 -0
- package/dist/MyStudent-CRl41WqT.cjs +1 -0
- package/dist/MyTransitionPlan-1f_jcfHh.cjs +1 -0
- package/dist/MyTransitionPlan-Bentwsud.js +150 -0
- package/dist/MyTransitionPlan-DJ3pM_a4.cjs +1 -0
- package/dist/MyTransitionPlan-DWEopYi2.js +150 -0
- package/dist/MyWellBeing-BAuqf-LD.js +582 -0
- package/dist/MyWellBeing-CpvSwrRw.cjs +1 -0
- package/dist/NewLearningPlan-C0-dZG7k.cjs +2 -0
- package/dist/NewLearningPlan-QD7RjlZj.js +2185 -0
- package/dist/NewLearningPlanIEP-Bbt7lbyE.js +559 -0
- package/dist/NewLearningPlanIEP-DLRPb-tZ.cjs +2 -0
- package/dist/Note-Bmxh3tMG.js +1637 -0
- package/dist/Note-CNX9tUnC.cjs +2 -0
- package/dist/NoteDetail-BirS3cOS.js +367 -0
- package/dist/NoteDetail-WcYf22Yk.cjs +1 -0
- package/dist/PersonalLearningGoal-BtSzABFe.js +6308 -0
- package/dist/PersonalLearningGoal-ChbHCHED.cjs +1 -0
- package/dist/PersonalLearningGoal-DXd_Z0T0.cjs +1 -0
- package/dist/PersonalLearningGoal-Drsieg2Z.js +6308 -0
- package/dist/PlpPage-B3TRkquD.js +4332 -0
- package/dist/PlpPage-BIpNtbsN.js +4327 -0
- package/dist/PlpPage-CfSNeDTD.cjs +12 -0
- package/dist/PlpPage-Cuadm22P.cjs +12 -0
- package/dist/PreviewSurvey-C_eyTXjT.cjs +3 -0
- package/dist/PreviewSurvey-ngxWN1yy.js +689 -0
- package/dist/ProfileCurrentStudent-B9vxJCUj.cjs +1 -0
- package/dist/ProfileCurrentStudent-BP2aQaOC.js +1833 -0
- package/dist/QuestionSurveyComponent-BAP-CGc9.cjs +2 -0
- package/dist/QuestionSurveyComponent-D-EtvUIT.js +427 -0
- package/dist/RatingQuestion-B2KhFr6p.cjs +17 -0
- package/dist/RatingQuestion-BipiS-zR.js +286 -0
- package/dist/ResultConferenceRubric-BZn0mC1Q.cjs +1 -0
- package/dist/ResultConferenceRubric-C9u-3Rg8.cjs +1 -0
- package/dist/ResultConferenceRubric-Ca-spnx1.js +253 -0
- package/dist/ResultConferenceRubric-CdCRy6XS.cjs +1 -0
- package/dist/ResultConferenceRubric-Dj1_lX6e.js +252 -0
- package/dist/ResultConferenceRubric-QujftUor.js +253 -0
- package/dist/ResultReflection-B6rF24AZ.js +177 -0
- package/dist/ResultReflection-DzJVg5oL.cjs +1 -0
- package/dist/ScaffoldingFloatTab-BZ9_TBFk.cjs +1 -0
- package/dist/ScaffoldingFloatTab-Bc-wt5ka.cjs +1 -0
- package/dist/ScaffoldingFloatTab-BhDEhaX-.cjs +1 -0
- package/dist/ScaffoldingFloatTab-Bk_r83mU.js +1345 -0
- package/dist/ScaffoldingFloatTab-BzbtiN_s.js +1345 -0
- package/dist/ScaffoldingFloatTab-nwTEu51G.js +1340 -0
- package/dist/SessionResultComponent-91R5-Ccr.js +260 -0
- package/dist/SessionResultComponent-BLFAlDeE.cjs +1 -0
- package/dist/SessionResultComponent-DIwa_QYE.js +260 -0
- package/dist/SessionResultComponent-DZCYu63Y.js +260 -0
- package/dist/SessionResultComponent-DziobTqu.cjs +1 -0
- package/dist/SessionResultComponent-HjJzqSOe.cjs +1 -0
- package/dist/SingleChoiceComponent-C1JGu2e4.cjs +1 -0
- package/dist/SingleChoiceComponent-DYZ9YX1o.js +88 -0
- package/dist/SortBySelector-CvmOWboE.cjs +1 -0
- package/dist/SortBySelector-D5u5sN4p.js +157 -0
- package/dist/StartReflection-CZ625fst.cjs +1 -0
- package/dist/StartReflection-jDPjpa0g.js +321 -0
- package/dist/StudentDetail-2zeY80YD.js +2762 -0
- package/dist/StudentDetail-CM88qP-W.js +2762 -0
- package/dist/StudentDetail-CdfMTppX.cjs +1 -0
- package/dist/StudentDetail-RS7rsH7w.cjs +1 -0
- package/dist/StudentReflection-BCt7yhW1.js +1463 -0
- package/dist/StudentReflection-D80bWEb5.cjs +1 -0
- package/dist/SummarizeQuestionList-2x_WVA39.cjs +1 -0
- package/dist/SummarizeQuestionList-DUBBx62F.js +672 -0
- package/dist/SurveyDetail-BUWbMPDu.js +1567 -0
- package/dist/SurveyDetail-D8kGEOoF.cjs +1 -0
- package/dist/SurveyIndex-BLUvbjY8.cjs +1 -0
- package/dist/SurveyIndex-BvqlIBII.js +363 -0
- package/dist/SurveyOverview-CTAu_WXY.cjs +12 -0
- package/dist/SurveyOverview-M--t-i4Q.js +714 -0
- package/dist/SurveyResult-DRQuEmCN.cjs +1 -0
- package/dist/SurveyResult-DxHqBin4.js +164 -0
- package/dist/SurveyStudentFlagList--la70In6.cjs +1 -0
- package/dist/SurveyStudentFlagList-fdhhN6Z3.js +316 -0
- package/dist/SurveyStudentList-BvL9bhpr.js +703 -0
- package/dist/SurveyStudentList-q4ZbCoqc.cjs +1 -0
- package/dist/TeacherClassReflection-BF2xdZD2.cjs +1 -0
- package/dist/TeacherClassReflection-lT0D_0Gv.js +2025 -0
- package/dist/UpdateStudentProfile-CjJMViDH.js +1789 -0
- package/dist/UpdateStudentProfile-toOrf7qW.cjs +1 -0
- package/dist/ViewSessionResultComponent-BtoVoYxX.js +242 -0
- package/dist/ViewSessionResultComponent-DMyMFn4v.cjs +1 -0
- package/dist/ViewSessionResultComponent-DVIh4t3o.cjs +1 -0
- package/dist/ViewSessionResultComponent-Dnlw0VIX.js +242 -0
- package/dist/ViewSessionResultComponent-d3Y9b-aa.js +242 -0
- package/dist/ViewSessionResultComponent-zDK3S8DE.cjs +1 -0
- package/dist/WellBeingCompleted-BSnJskai.js +181 -0
- package/dist/WellBeingCompleted-OG_KXzZX.cjs +1 -0
- package/dist/WellBeingDashboard-B5JAPbJ-.cjs +1 -0
- package/dist/WellBeingDashboard-DZREYwYU.js +1339 -0
- package/dist/WellBeingUnfinished-14eIVibH.cjs +1 -0
- package/dist/WellBeingUnfinished-Df97JrJa.js +61 -0
- package/dist/WellbeingAssessment-BASf3kf5.js +689 -0
- package/dist/WellbeingAssessment-Bwj09j4K.cjs +10 -0
- package/dist/constant-CLHsKWNH.js +452 -0
- package/dist/constant-COwlyLQW.cjs +1 -0
- package/dist/constants--uJzT4Vs.js +2508 -0
- package/dist/constants-B1T0T0Km.cjs +1 -0
- package/dist/constants-BEKo9wy8.cjs +1 -0
- package/dist/constants-BdXA7LvA.js +30 -0
- package/dist/constants-CKSpnLpp.js +45 -0
- package/dist/constants-Cmw9IjC0.js +310 -0
- package/dist/constants-CyY_jzim.cjs +1 -0
- package/dist/constants-fDmiho0w.cjs +1 -0
- package/dist/constantsFn-DPGQh9IF.js +74 -0
- package/dist/constantsFn-DRvRuVVf.cjs +1 -0
- package/dist/constantsLearning-BnIW2y99.cjs +1 -0
- package/dist/constantsLearning-NIBFXkaX.js +256 -0
- package/dist/containers/ConductOneToOne/components/ProcessItem.d.ts.map +1 -1
- package/dist/containers/ConductOneToOne/hooks/useConductOne.d.ts.map +1 -1
- package/dist/containers/ConductOneToOne/views/CheckInProgress.d.ts.map +1 -1
- package/dist/containers/ConferenceRubric/hooks/useConferenceRubric.d.ts +1 -0
- package/dist/containers/ConferenceRubric/hooks/useConferenceRubric.d.ts.map +1 -1
- package/dist/containers/ConferenceRubric/views/ConferenceRubric.d.ts.map +1 -1
- package/dist/containers/ConferenceRubric/views/ResultConferenceRubric.d.ts.map +1 -1
- package/dist/containers/Home/components/DashboardV2.d.ts.map +1 -1
- package/dist/containers/PLP/components/PlpPage.d.ts.map +1 -1
- package/dist/containers/PLP/hooks/useExportSessionCsv.d.ts +1 -0
- package/dist/containers/PLP/hooks/useExportSessionCsv.d.ts.map +1 -1
- package/dist/containers/PersonalLearningPlan/hooks/usePersonalLearningGoal.d.ts.map +1 -1
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/hooks/useNotes.d.ts.map +1 -1
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/views/OtherNoteScreen.d.ts.map +1 -1
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/views/ScaffoldingListingNotes.d.ts.map +1 -1
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/views/ScaffoldingQuestionAndAnswer.d.ts +2 -1
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/views/ScaffoldingQuestionAndAnswer.d.ts.map +1 -1
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/ScaffoldingFloatTab.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/mario-teacher-student-client.css +1 -1
- package/dist/types-BY3W50g_.cjs +1 -0
- package/dist/types-DzhzYbBs.js +221 -0
- package/dist/useAddClassReflection-laGlaYEE.cjs +1 -0
- package/dist/useAddClassReflection-pQsVRF_k.js +304 -0
- package/dist/useConductOne-7GsD3ZrR.js +631 -0
- package/dist/useConductOne-B6SFEJ_W.cjs +1 -0
- package/dist/useConductOne-CbhBKYWP.js +631 -0
- package/dist/useConductOne-DRrj4-Ig.cjs +1 -0
- package/dist/useConductOne-LeACYJHz.js +631 -0
- package/dist/useConductOne-cBHlQV_O.cjs +1 -0
- package/dist/useConferenceRubric-3T4cMYHx.js +768 -0
- package/dist/useConferenceRubric-BgkZWdnI.js +768 -0
- package/dist/useConferenceRubric-BlcL1j7X.cjs +1 -0
- package/dist/useConferenceRubric-CdSAUAhJ.cjs +1 -0
- package/dist/useConferenceRubric-Cs6BqhWG.js +768 -0
- package/dist/useConferenceRubric-MmUv3R21.cjs +1 -0
- package/dist/useFontStyles-BHaYiksj.cjs +1 -0
- package/dist/useFontStyles-DKz8Ht7G.js +23 -0
- package/dist/useProfileDialog-CMWOJuLv.cjs +2 -0
- package/dist/useProfileDialog-DCHYe2fQ.cjs +2 -0
- package/dist/useProfileDialog-DOb17oAC.js +1191 -0
- package/dist/useProfileDialog-Dqq6Eqfc.js +1191 -0
- package/dist/useProfileDialog-UOwq5fyb.js +1191 -0
- package/dist/useProfileDialog-cFiW1ToK.cjs +2 -0
- package/dist/useTransitionPlanTab-BKmSpF-g.js +3226 -0
- package/dist/useTransitionPlanTab-BXB5uAME.cjs +11 -0
- package/dist/useTransitionPlanTab-DJ-VRf3n.cjs +11 -0
- package/dist/useTransitionPlanTab-DTUz68JA.js +3226 -0
- package/dist/useUpComing-BsAq29Ea.cjs +1 -0
- package/dist/useUpComing-CJuNl3i-.js +299 -0
- package/dist/useWeeklyQuest-Bzi4r-yp.js +108 -0
- package/dist/useWeeklyQuest-Qw_upFWw.cjs +1 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { useNavigate as L } from "react-router-dom";
|
|
3
|
+
import { useTranslation as P } from "mario-core";
|
|
4
|
+
import { B as E } from "./index-eCANrnow.js";
|
|
5
|
+
import { Grid as p, Typography as M, TableContainer as O, Paper as $, TableHead as F, TableRow as y, TableBody as H, FormControl as v, TextField as m, Checkbox as N, Table as Y, TableCell as z, tableCellClasses as T, Autocomplete as W } from "@mui/material";
|
|
6
|
+
import { AddCircle as j, RemoveCircle as q, ArrowDropDown as _ } from "@mui/icons-material";
|
|
7
|
+
import V from "moment";
|
|
8
|
+
import { A as G } from "./AddButton-DsKhGglE.js";
|
|
9
|
+
import { u as U } from "./useAddClassReflection-pQsVRF_k.js";
|
|
10
|
+
import { C as o } from "./types-BlKuBS6W.js";
|
|
11
|
+
import { s as l } from "./styles.module-Dhz1vFNl.js";
|
|
12
|
+
import { s as h } from "./styled-UOFRP3cN.js";
|
|
13
|
+
import { L as J } from "./useMobilePicker-BfT405Qk.js";
|
|
14
|
+
import { A as K } from "./AdapterMoment-CeMS9jLD.js";
|
|
15
|
+
import { D as Q } from "./DateTimePicker-BGPd44D0.js";
|
|
16
|
+
const i = h(z)(({ theme: n }) => ({
|
|
17
|
+
[`&.${T.head}`]: {
|
|
18
|
+
backgroundColor: "#336DDA",
|
|
19
|
+
color: n.palette.common.white,
|
|
20
|
+
padding: "16px 0px"
|
|
21
|
+
},
|
|
22
|
+
[`&.${T.body}`]: {
|
|
23
|
+
fontSize: 14
|
|
24
|
+
}
|
|
25
|
+
})), X = h(y)(({ theme: n }) => ({
|
|
26
|
+
"&:nth-of-type(odd)": {
|
|
27
|
+
backgroundColor: n.palette.action.hover
|
|
28
|
+
}
|
|
29
|
+
})), Z = h(Y)(() => ({
|
|
30
|
+
minWidth: 700,
|
|
31
|
+
"& .MuiTableCell-root": {
|
|
32
|
+
paddingLeft: "4px",
|
|
33
|
+
paddingRight: "4px"
|
|
34
|
+
}
|
|
35
|
+
})), u = h(W)(() => ({
|
|
36
|
+
"& .MuiFormControl-marginNormal": {
|
|
37
|
+
marginTop: 0,
|
|
38
|
+
marginBottom: 0
|
|
39
|
+
}
|
|
40
|
+
})), ue = () => {
|
|
41
|
+
const { t: n } = P(), g = L(), {
|
|
42
|
+
rowClassReflection: b,
|
|
43
|
+
addRowClassReflection: S,
|
|
44
|
+
removeRowClassReflection: k,
|
|
45
|
+
handleInputChange: s,
|
|
46
|
+
listStudent: x,
|
|
47
|
+
onSaveClassReflection: A,
|
|
48
|
+
checkStudent: C,
|
|
49
|
+
listBandScore: R,
|
|
50
|
+
checkBandScore: D,
|
|
51
|
+
isTeacher: d,
|
|
52
|
+
listClassType: I
|
|
53
|
+
} = U(), B = () => {
|
|
54
|
+
A(() => {
|
|
55
|
+
g(-1);
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
return /* @__PURE__ */ e("div", { className: l["page-add"], children: /* @__PURE__ */ c(p, { children: [
|
|
59
|
+
/* @__PURE__ */ c(p, { className: `${l["header-box"]}`, children: [
|
|
60
|
+
/* @__PURE__ */ c(M, { className: `${l["header-box-title"]}`, children: [
|
|
61
|
+
/* @__PURE__ */ e(E, { onClick: () => g(-1) }),
|
|
62
|
+
" ",
|
|
63
|
+
n("reflections")
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ e("div", { className: l["btn-action"], children: /* @__PURE__ */ e(G, { handleClickOpen: B, label: n("add_reflection") }) })
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ e(p, { className: l["body-table"], children: /* @__PURE__ */ e(O, { component: $, children: /* @__PURE__ */ c(Z, { "aria-label": "customized table", children: [
|
|
68
|
+
/* @__PURE__ */ e(F, { children: /* @__PURE__ */ c(y, { children: [
|
|
69
|
+
/* @__PURE__ */ e(i, { align: "center", className: l["add-class-reflection"], children: /* @__PURE__ */ e(j, { onClick: S }) }),
|
|
70
|
+
d && /* @__PURE__ */ c(i, { align: "center", className: l["header-title"], style: { width: "16%" }, children: [
|
|
71
|
+
n("student_name"),
|
|
72
|
+
" ",
|
|
73
|
+
/* @__PURE__ */ e("span", { children: "*" })
|
|
74
|
+
] }),
|
|
75
|
+
/* @__PURE__ */ c(i, { align: "center", className: l["header-title"], children: [
|
|
76
|
+
n("class_type"),
|
|
77
|
+
" ",
|
|
78
|
+
/* @__PURE__ */ e("span", { children: "*" }),
|
|
79
|
+
" "
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ c(i, { align: "center", className: l["header-title"], children: [
|
|
82
|
+
" ",
|
|
83
|
+
n("class_date"),
|
|
84
|
+
" ",
|
|
85
|
+
/* @__PURE__ */ e("span", { children: "*" })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ c(i, { align: "center", className: l["header-title"], children: [
|
|
88
|
+
n("teacher_email"),
|
|
89
|
+
" ",
|
|
90
|
+
/* @__PURE__ */ e("span", { children: "*" })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ c(i, { align: "center", className: l["header-title"], children: [
|
|
93
|
+
n("teacher_name"),
|
|
94
|
+
" ",
|
|
95
|
+
/* @__PURE__ */ e("span", { children: "*" })
|
|
96
|
+
] }),
|
|
97
|
+
d && /* @__PURE__ */ e(i, { align: "center", className: l["header-title"], children: n("teacher_image") }),
|
|
98
|
+
/* @__PURE__ */ e(i, { align: "center", className: l["header-title"], children: n("current_grade") }),
|
|
99
|
+
d && /* @__PURE__ */ e(i, { align: "center", className: l["header-title"], children: n("send_to_teacher") }),
|
|
100
|
+
d && /* @__PURE__ */ e(i, { align: "center", className: l["header-title"], children: n("send_now") })
|
|
101
|
+
] }) }),
|
|
102
|
+
/* @__PURE__ */ e(H, { children: b.map((t) => /* @__PURE__ */ c(X, { children: [
|
|
103
|
+
/* @__PURE__ */ e(i, { component: "th", scope: "row", className: l["remove-class-reflection"], children: b.length > 1 && /* @__PURE__ */ e(q, { onClick: () => k(t.id) }) }),
|
|
104
|
+
d && /* @__PURE__ */ e(i, { align: "center", children: /* @__PURE__ */ e(v, { fullWidth: !0, children: /* @__PURE__ */ e(
|
|
105
|
+
u,
|
|
106
|
+
{
|
|
107
|
+
id: "free-solo-2-demo",
|
|
108
|
+
options: x,
|
|
109
|
+
className: `${l["label-class"]}`,
|
|
110
|
+
getOptionLabel: (a) => a.fullName ? a.fullName : "",
|
|
111
|
+
onChange: (a, r) => {
|
|
112
|
+
s(t.id, r?.email || "", o.StudentEmail);
|
|
113
|
+
},
|
|
114
|
+
popupIcon: /* @__PURE__ */ e(_, {}),
|
|
115
|
+
isOptionEqualToValue: (a, r) => a.id == r.id,
|
|
116
|
+
value: C(t.studentEmail),
|
|
117
|
+
renderInput: (a) => /* @__PURE__ */ e(
|
|
118
|
+
m,
|
|
119
|
+
{
|
|
120
|
+
...a,
|
|
121
|
+
label: n("student"),
|
|
122
|
+
margin: "normal",
|
|
123
|
+
variant: "outlined",
|
|
124
|
+
onChange: (r) => {
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
) }) }),
|
|
130
|
+
/* @__PURE__ */ e(i, { align: "center", children: /* @__PURE__ */ e(
|
|
131
|
+
u,
|
|
132
|
+
{
|
|
133
|
+
id: "country-select-demo",
|
|
134
|
+
className: `${l["label-class"]}`,
|
|
135
|
+
style: { width: "100%", margin: "25px 0px" },
|
|
136
|
+
options: I,
|
|
137
|
+
freeSolo: !0,
|
|
138
|
+
autoHighlight: !0,
|
|
139
|
+
forcePopupIcon: !0,
|
|
140
|
+
value: C(t.classType),
|
|
141
|
+
getOptionLabel: (a) => a,
|
|
142
|
+
renderOption: (a, r) => /* @__PURE__ */ e("li", { ...a, children: r }),
|
|
143
|
+
onInputChange: (a, r) => {
|
|
144
|
+
s(t.id, r, o.ClassType);
|
|
145
|
+
},
|
|
146
|
+
renderInput: (a) => /* @__PURE__ */ e(
|
|
147
|
+
m,
|
|
148
|
+
{
|
|
149
|
+
...a,
|
|
150
|
+
label: n("class_type"),
|
|
151
|
+
variant: "outlined",
|
|
152
|
+
inputProps: {
|
|
153
|
+
...a.inputProps
|
|
154
|
+
},
|
|
155
|
+
onChange: (r) => {
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
}
|
|
160
|
+
) }),
|
|
161
|
+
/* @__PURE__ */ e(i, { align: "center", children: /* @__PURE__ */ e(J, { dateAdapter: K, children: /* @__PURE__ */ e(
|
|
162
|
+
Q,
|
|
163
|
+
{
|
|
164
|
+
className: l["label-class"],
|
|
165
|
+
format: "Do MMM YYYY HH:mm",
|
|
166
|
+
label: n("class_date"),
|
|
167
|
+
value: t.classDateTime ? V(t.classDateTime) : null,
|
|
168
|
+
onChange: (a) => s(t.id, a, o.ClassDate),
|
|
169
|
+
slotProps: {
|
|
170
|
+
textField: {
|
|
171
|
+
variant: "outlined",
|
|
172
|
+
margin: "normal",
|
|
173
|
+
className: l["label-class"],
|
|
174
|
+
sx: {
|
|
175
|
+
"& .MuiFormControl-marginNormal": {
|
|
176
|
+
// mimic classes.root
|
|
177
|
+
marginTop: 0,
|
|
178
|
+
marginBottom: 0
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
) }) }),
|
|
185
|
+
/* @__PURE__ */ e(i, { align: "center", children: /* @__PURE__ */ e(
|
|
186
|
+
m,
|
|
187
|
+
{
|
|
188
|
+
id: "outlined-basic-1",
|
|
189
|
+
label: n("teacher_email"),
|
|
190
|
+
variant: "outlined",
|
|
191
|
+
value: t.teacherEmail,
|
|
192
|
+
className: l["label-class"],
|
|
193
|
+
onChange: (a) => s(t.id, a.target.value, o.TeacherEmail)
|
|
194
|
+
}
|
|
195
|
+
) }),
|
|
196
|
+
/* @__PURE__ */ e(i, { align: "center", children: /* @__PURE__ */ e(
|
|
197
|
+
m,
|
|
198
|
+
{
|
|
199
|
+
id: "outlined-basic-2",
|
|
200
|
+
label: n("teacher_name"),
|
|
201
|
+
variant: "outlined",
|
|
202
|
+
value: t.teacherName,
|
|
203
|
+
className: l["label-class"],
|
|
204
|
+
onChange: (a) => s(t.id, a.target.value, o.TeacherName)
|
|
205
|
+
}
|
|
206
|
+
) }),
|
|
207
|
+
d && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(i, { align: "center", children: /* @__PURE__ */ e(
|
|
208
|
+
m,
|
|
209
|
+
{
|
|
210
|
+
id: "outlined-basic-3",
|
|
211
|
+
label: n("teacher_image"),
|
|
212
|
+
variant: "outlined",
|
|
213
|
+
value: t.TeacherImage,
|
|
214
|
+
className: l["label-class"],
|
|
215
|
+
onChange: (a) => s(t.id, a.target.value, o.TeacherImage)
|
|
216
|
+
}
|
|
217
|
+
) }) }),
|
|
218
|
+
/* @__PURE__ */ e(i, { align: "center", children: /* @__PURE__ */ e(v, { fullWidth: !0, children: /* @__PURE__ */ e(
|
|
219
|
+
u,
|
|
220
|
+
{
|
|
221
|
+
className: `${l["label-class"]}`,
|
|
222
|
+
id: "free-solo-4-demo",
|
|
223
|
+
options: R,
|
|
224
|
+
getOptionLabel: (a) => a.label ? a.label : "",
|
|
225
|
+
onChange: (a, r) => {
|
|
226
|
+
s(t.id, r?.label || "", o.BandScore);
|
|
227
|
+
},
|
|
228
|
+
popupIcon: /* @__PURE__ */ e(_, {}),
|
|
229
|
+
isOptionEqualToValue: (a, r) => a.id == r.id || a.label == t.bandScore,
|
|
230
|
+
value: D(t.bandScore) || null,
|
|
231
|
+
renderInput: (a) => /* @__PURE__ */ e(
|
|
232
|
+
m,
|
|
233
|
+
{
|
|
234
|
+
...a,
|
|
235
|
+
label: n("current_grade"),
|
|
236
|
+
margin: "normal",
|
|
237
|
+
variant: "outlined",
|
|
238
|
+
onChange: (r) => {
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
}
|
|
243
|
+
) }) }),
|
|
244
|
+
d && /* @__PURE__ */ c(f, { children: [
|
|
245
|
+
/* @__PURE__ */ e(i, { align: "center", children: /* @__PURE__ */ e(
|
|
246
|
+
N,
|
|
247
|
+
{
|
|
248
|
+
checked: t.isExternalLink,
|
|
249
|
+
inputProps: { "aria-labelledby": "" },
|
|
250
|
+
onChange: (a) => s(t.id, a.target.checked, o.IsExternalLink)
|
|
251
|
+
}
|
|
252
|
+
) }),
|
|
253
|
+
/* @__PURE__ */ e(i, { align: "center", children: /* @__PURE__ */ e(
|
|
254
|
+
N,
|
|
255
|
+
{
|
|
256
|
+
checked: t.isSendNow,
|
|
257
|
+
inputProps: { "aria-labelledby": "" },
|
|
258
|
+
onChange: (a) => s(t.id, a.target.checked, o.SendNow)
|
|
259
|
+
}
|
|
260
|
+
) })
|
|
261
|
+
] })
|
|
262
|
+
] }, t.id)) })
|
|
263
|
+
] }) }) })
|
|
264
|
+
] }) });
|
|
265
|
+
};
|
|
266
|
+
export {
|
|
267
|
+
ue as default
|
|
268
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),_=require("react-router-dom"),f=require("mario-core"),A=require("./index-B8qDnyYp.cjs"),a=require("@mui/material"),h=require("@mui/icons-material"),k=require("moment"),M=require("./AddButton-eoO57SmK.cjs"),q=require("./useAddClassReflection-laGlaYEE.cjs"),d=require("./types-DUv1CRJR.cjs"),s=require("./styles.module-cVLPGJIs.cjs"),u=require("./styled-lvsUm6Nd.cjs"),O=require("./useMobilePicker-Brs_CiL1.cjs"),R=require("./AdapterMoment-B-q0UCj0.cjs"),L=require("./DateTimePicker-BXTbaAqR.cjs"),i=u.styled(a.TableCell)(({theme:t})=>({[`&.${a.tableCellClasses.head}`]:{backgroundColor:"#336DDA",color:t.palette.common.white,padding:"16px 0px"},[`&.${a.tableCellClasses.body}`]:{fontSize:14}})),D=u.styled(a.TableRow)(({theme:t})=>({"&:nth-of-type(odd)":{backgroundColor:t.palette.action.hover}})),F=u.styled(a.Table)(()=>({minWidth:700,"& .MuiTableCell-root":{paddingLeft:"4px",paddingRight:"4px"}})),m=u.styled(a.Autocomplete)(()=>({"& .MuiFormControl-marginNormal":{marginTop:0,marginBottom:0}})),P=()=>{const{t}=f.useTranslation(),x=_.useNavigate(),{rowClassReflection:g,addRowClassReflection:C,removeRowClassReflection:j,handleInputChange:c,listStudent:b,onSaveClassReflection:y,checkStudent:p,listBandScore:N,checkBandScore:S,isTeacher:o,listClassType:T}=q.useAddClassReflection(),v=()=>{y(()=>{x(-1)})};return e.jsx("div",{className:s.styles["page-add"],children:e.jsxs(a.Grid,{children:[e.jsxs(a.Grid,{className:`${s.styles["header-box"]}`,children:[e.jsxs(a.Typography,{className:`${s.styles["header-box-title"]}`,children:[e.jsx(A.BiArrowBack,{onClick:()=>x(-1)})," ",t("reflections")]}),e.jsx("div",{className:s.styles["btn-action"],children:e.jsx(M.AddButton,{handleClickOpen:v,label:t("add_reflection")})})]}),e.jsx(a.Grid,{className:s.styles["body-table"],children:e.jsx(a.TableContainer,{component:a.Paper,children:e.jsxs(F,{"aria-label":"customized table",children:[e.jsx(a.TableHead,{children:e.jsxs(a.TableRow,{children:[e.jsx(i,{align:"center",className:s.styles["add-class-reflection"],children:e.jsx(h.AddCircle,{onClick:C})}),o&&e.jsxs(i,{align:"center",className:s.styles["header-title"],style:{width:"16%"},children:[t("student_name")," ",e.jsx("span",{children:"*"})]}),e.jsxs(i,{align:"center",className:s.styles["header-title"],children:[t("class_type")," ",e.jsx("span",{children:"*"})," "]}),e.jsxs(i,{align:"center",className:s.styles["header-title"],children:[" ",t("class_date")," ",e.jsx("span",{children:"*"})]}),e.jsxs(i,{align:"center",className:s.styles["header-title"],children:[t("teacher_email")," ",e.jsx("span",{children:"*"})]}),e.jsxs(i,{align:"center",className:s.styles["header-title"],children:[t("teacher_name")," ",e.jsx("span",{children:"*"})]}),o&&e.jsx(i,{align:"center",className:s.styles["header-title"],children:t("teacher_image")}),e.jsx(i,{align:"center",className:s.styles["header-title"],children:t("current_grade")}),o&&e.jsx(i,{align:"center",className:s.styles["header-title"],children:t("send_to_teacher")}),o&&e.jsx(i,{align:"center",className:s.styles["header-title"],children:t("send_now")})]})}),e.jsx(a.TableBody,{children:g.map(n=>e.jsxs(D,{children:[e.jsx(i,{component:"th",scope:"row",className:s.styles["remove-class-reflection"],children:g.length>1&&e.jsx(h.RemoveCircle,{onClick:()=>j(n.id)})}),o&&e.jsx(i,{align:"center",children:e.jsx(a.FormControl,{fullWidth:!0,children:e.jsx(m,{id:"free-solo-2-demo",options:b,className:`${s.styles["label-class"]}`,getOptionLabel:l=>l.fullName?l.fullName:"",onChange:(l,r)=>{c(n.id,r?.email||"",d.COLUMN_ClASS.StudentEmail)},popupIcon:e.jsx(h.ArrowDropDown,{}),isOptionEqualToValue:(l,r)=>l.id==r.id,value:p(n.studentEmail),renderInput:l=>e.jsx(a.TextField,{...l,label:t("student"),margin:"normal",variant:"outlined",onChange:r=>{}})})})}),e.jsx(i,{align:"center",children:e.jsx(m,{id:"country-select-demo",className:`${s.styles["label-class"]}`,style:{width:"100%",margin:"25px 0px"},options:T,freeSolo:!0,autoHighlight:!0,forcePopupIcon:!0,value:p(n.classType),getOptionLabel:l=>l,renderOption:(l,r)=>e.jsx("li",{...l,children:r}),onInputChange:(l,r)=>{c(n.id,r,d.COLUMN_ClASS.ClassType)},renderInput:l=>e.jsx(a.TextField,{...l,label:t("class_type"),variant:"outlined",inputProps:{...l.inputProps},onChange:r=>{}})})}),e.jsx(i,{align:"center",children:e.jsx(O.LocalizationProvider,{dateAdapter:R.AdapterMoment,children:e.jsx(L.DateTimePicker,{className:s.styles["label-class"],format:"Do MMM YYYY HH:mm",label:t("class_date"),value:n.classDateTime?k(n.classDateTime):null,onChange:l=>c(n.id,l,d.COLUMN_ClASS.ClassDate),slotProps:{textField:{variant:"outlined",margin:"normal",className:s.styles["label-class"],sx:{"& .MuiFormControl-marginNormal":{marginTop:0,marginBottom:0}}}}})})}),e.jsx(i,{align:"center",children:e.jsx(a.TextField,{id:"outlined-basic-1",label:t("teacher_email"),variant:"outlined",value:n.teacherEmail,className:s.styles["label-class"],onChange:l=>c(n.id,l.target.value,d.COLUMN_ClASS.TeacherEmail)})}),e.jsx(i,{align:"center",children:e.jsx(a.TextField,{id:"outlined-basic-2",label:t("teacher_name"),variant:"outlined",value:n.teacherName,className:s.styles["label-class"],onChange:l=>c(n.id,l.target.value,d.COLUMN_ClASS.TeacherName)})}),o&&e.jsx(e.Fragment,{children:e.jsx(i,{align:"center",children:e.jsx(a.TextField,{id:"outlined-basic-3",label:t("teacher_image"),variant:"outlined",value:n.TeacherImage,className:s.styles["label-class"],onChange:l=>c(n.id,l.target.value,d.COLUMN_ClASS.TeacherImage)})})}),e.jsx(i,{align:"center",children:e.jsx(a.FormControl,{fullWidth:!0,children:e.jsx(m,{className:`${s.styles["label-class"]}`,id:"free-solo-4-demo",options:N,getOptionLabel:l=>l.label?l.label:"",onChange:(l,r)=>{c(n.id,r?.label||"",d.COLUMN_ClASS.BandScore)},popupIcon:e.jsx(h.ArrowDropDown,{}),isOptionEqualToValue:(l,r)=>l.id==r.id||l.label==n.bandScore,value:S(n.bandScore)||null,renderInput:l=>e.jsx(a.TextField,{...l,label:t("current_grade"),margin:"normal",variant:"outlined",onChange:r=>{}})})})}),o&&e.jsxs(e.Fragment,{children:[e.jsx(i,{align:"center",children:e.jsx(a.Checkbox,{checked:n.isExternalLink,inputProps:{"aria-labelledby":""},onChange:l=>c(n.id,l.target.checked,d.COLUMN_ClASS.IsExternalLink)})}),e.jsx(i,{align:"center",children:e.jsx(a.Checkbox,{checked:n.isSendNow,inputProps:{"aria-labelledby":""},onChange:l=>c(n.id,l.target.checked,d.COLUMN_ClASS.SendNow)})})]})]},n.id))})]})})})]})})};exports.default=P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),S=require("@mui/x-date-pickers"),E=require("moment"),s=require("@mui/material"),t=require("./dashboardReflection.module-BtltcAOZ.cjs"),j=require("mario-core"),v=require("./ArrowDropDown-D-53OauZ.cjs"),U=require("./createSvgIcon-B0q--prM.cjs"),x=require("./HeaderUserDetail-BAzKj0jP.cjs"),T=require("./contants-CLGBKhk2.cjs"),I=require("./Close-l_LSwIM6.cjs"),z=require("./index-B8qDnyYp.cjs"),Y=require("react-router-dom"),V=require("./Send-B-J3btn4.cjs"),H=require("./useAddClassReflection-laGlaYEE.cjs"),W=require("./AddBox-DoHfpYXh.cjs"),q=require("./types-DUv1CRJR.cjs"),_=require("./constants-CyY_jzim.cjs"),J=require("./RouterPrompt-CqEWFyJP.cjs"),K=require("./AdapterMoment-B-q0UCj0.cjs"),X=U.createSvgIcon(e.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune"),Z=({model:l,onCLose:p,questionList:o,checkStudent:k,onSelectQuestion:g,onInputChange:h,onCheckSelectQuestion:u,onSelectGroupQuestion:y,questionChangeIds:d,onSaveChangeQuestion:f,currentName:m,isStudent:N})=>{const i=k(l?.studentEmail||""),{t:$}=j.useTranslation();return e.jsx(s.Dialog,{open:!!l,onClose:()=>p(null),maxWidth:"xl",className:`${t.styles["dialog-customize"]}`,disableEnforceFocus:!0,disableRestoreFocus:!0,children:e.jsxs(s.Grid,{className:`${t.styles["block-customize"]}`,children:[e.jsx(s.Grid,{className:`${t.styles["close-icon"]}`,children:e.jsx(I.CloseIcon,{className:`${t.styles.icon}`,onClick:()=>p(null)})}),e.jsx(x.HeaderUserDetail,{id:l?.id,studentName:N?m:i?.fullName||"",grade:i?.gradeLevel||"",classType:l?.classType||"",date:j.utcToLocalTime(new Date(l?.classDate||0).toString(),"Do MMM YYYY"),avatar:i?.profileImageFileName,optionTimes:T.optionTimes,timOfDay:l?.startOfDay,onInputChange:h}),e.jsxs(s.Typography,{className:`${t.styles.describe}`,children:[$("include_section_you_want_to_appear"),":"]}),e.jsxs(s.Grid,{children:[e.jsxs(s.Grid,{hidden:o?.questionBlock1?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{className:`${t.styles["checkbox-style"]}`,checked:u(o?.questionBlock1,l?.id),onChange:()=>y(o?.questionBlock1,l?.id),name:"checkedB"}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:o?.questionBlock1?.map(n=>e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:n.text,valueText:"",questionTypeId:n.questionType,questionId:n.id,isBeforeSession:!1,minText:n.fromLabel,maxText:n.toLabel,questionAnswer:n.answers,emotionTypeList:n.emotionalQuestionAnswers})},n.id))})]}),e.jsxs(s.Grid,{hidden:o?.questionBlock2?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock2,l?.id),onChange:()=>y(o?.questionBlock2,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:o?.questionBlock2?.map(n=>e.jsx("div",{className:`${t.styles["border-question"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:n.text,valueText:"",questionTypeId:n.questionType,questionId:n.id,isBeforeSession:!1,minText:n.fromLabel,maxText:n.toLabel,questionAnswer:n.answers,emotionTypeList:n.emotionalQuestionAnswers})},n.id))})})]}),o?.questionBlock3?.map(n=>e.jsxs(s.Grid,{className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:d.includes(n.id),onChange:()=>g(n.id,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:n.text,valueText:"",questionTypeId:n.questionType,questionId:n.id,isBeforeSession:!1,minText:n.fromLabel,maxText:n.toLabel,questionAnswer:n.answers,emotionTypeList:n.emotionalQuestionAnswers})})})]},n.id)),e.jsxs(s.Grid,{hidden:o?.questionBlock4?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock4,l?.id),onChange:()=>y(o?.questionBlock4,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:o?.questionBlock4?.map(n=>e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:n.text,valueText:"",questionTypeId:n.questionType,questionId:n.id,isBeforeSession:!1,minText:n.fromLabel,maxText:n.toLabel,questionAnswer:n.answers,emotionTypeList:n.emotionalQuestionAnswers})},n.id))})]}),e.jsxs(s.Grid,{hidden:o?.questionBlock5?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock5,l?.id),onChange:()=>y(o?.questionBlock5,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:o?.questionBlock5?.map(n=>e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:n.text,valueText:"",questionTypeId:n.questionType,questionId:n.id,isBeforeSession:!1,minText:n.fromLabel,maxText:n.toLabel,questionAnswer:n.answers,emotionTypeList:n.emotionalQuestionAnswers})},n.id))})]})]}),e.jsx(s.Button,{fullWidth:!0,className:`${t.styles["save-button"]}`,onClick:()=>f(l?.id),children:$("save")})]})})},ee=({model:l,onCLose:p,questionList:o,checkStudent:k,onSelectQuestion:g,onInputChange:h,onCheckSelectQuestion:u,onSelectGroupQuestion:y,questionChangeIds:d,onSaveChangeQuestion:f})=>{const m=k(l?.studentEmail||""),{t:N}=j.useTranslation();return e.jsx(s.Dialog,{open:!!l,onClose:()=>p(null),maxWidth:"xl",className:`${t.styles["dialog-customize"]}`,disableEnforceFocus:!0,disableRestoreFocus:!0,children:e.jsxs(s.Grid,{className:`${t.styles["block-customize"]}`,children:[e.jsx(s.Grid,{className:`${t.styles["close-icon"]}`,children:e.jsx(I.CloseIcon,{className:`${t.styles.icon}`,onClick:()=>p(null)})}),e.jsx(x.HeaderUserDetail,{id:l?.id,studentName:m?.fullName||"",grade:m?.gradeLevel||"",date:j.utcToLocalTime(new Date(l?.classDate||0).toString(),"Do MMM YYYY"),avatar:m?.profileImageFileName,optionTimes:T.optionTimes,timOfDay:l?.startOfDay,classType:l?.classType,onInputChange:h}),e.jsxs(s.Typography,{className:`${t.styles.describe}`,children:[N("include_section_you_want_to_appear"),":"]}),e.jsxs(s.Grid,{children:[o?.questionBlock1?.map(i=>e.jsxs(s.Grid,{className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:d.includes(i.id),onChange:()=>g(i.id,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:i.text,valueText:"",questionTypeId:i.questionType,questionId:i.id,isBeforeSession:!1,minText:i.fromLabel,maxText:i.toLabel,questionAnswer:i.answers,emotionTypeList:i.emotionalQuestionAnswers})})})]},i.id)),e.jsxs(s.Grid,{hidden:o?.questionBlock2?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock2,l?.id),onChange:()=>y(o?.questionBlock2,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:o?.questionBlock2?.map(i=>e.jsx("div",{className:`${t.styles["border-question"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:i.text,valueText:"",questionTypeId:i.questionType,questionId:i.id,isBeforeSession:!1,minText:i.fromLabel,maxText:i.toLabel,questionAnswer:i.answers,emotionTypeList:i.emotionalQuestionAnswers})},i.id))})})]}),e.jsxs(s.Grid,{hidden:o?.questionBlock3?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock3,l?.id),onChange:()=>y(o?.questionBlock3,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:o?.questionBlock3?.map(i=>e.jsx("div",{className:`${t.styles["border-question"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:i.text,valueText:"",questionTypeId:i.questionType,questionId:i.id,isBeforeSession:!1,minText:i.fromLabel,maxText:i.toLabel,questionAnswer:i.answers,emotionTypeList:i.emotionalQuestionAnswers})},i.id))})})]}),e.jsxs(s.Grid,{hidden:o?.questionBlock4?.length==0,className:`${t.styles["block-select-question"]}`,children:[e.jsx(s.Checkbox,{checked:u(o?.questionBlock4,l?.id),onChange:()=>y(o?.questionBlock4,l?.id),name:"checkedB",className:`${t.styles["checkbox-style"]}`}),e.jsx(s.Grid,{className:`${t.styles["box-questions"]}`,children:e.jsx(s.Grid,{className:`${t.styles["question-item"]}`,children:o?.questionBlock4?.map(i=>e.jsx("div",{className:`${t.styles["border-question"]}`,children:e.jsx(x.GenerateQuestion,{isPageResult:!0,questionItemName:i.text,valueText:"",questionTypeId:i.questionType,questionId:i.id,isBeforeSession:!1,minText:i.fromLabel,maxText:i.toLabel,questionAnswer:i.answers,emotionTypeList:i.emotionalQuestionAnswers})},i.id))})})]})]}),e.jsx(s.Button,{fullWidth:!0,className:`${t.styles["save-button"]}`,onClick:()=>f(l?.id),children:N("save")})]})})},se=()=>{const{t:l}=j.useTranslation(),p=Y.useNavigate(),{onSaveClassReflection:o,questionList:k,rowClassReflection:g,openModelCustom:h,setOpenModelCustom:u,addRowClassReflection:y,handleInputChange:d,listClassType:f,checkStudent:m,listStudent:N,listBandScore:i,checkBandScore:$,handleSelectQuestion:n,handleSelectGroupQuestion:B,handleCheckSelectQuestion:A,error:b,removeRowClassReflection:D,questionTeacherList:F,isStudent:C,setQuestionChangeIds:R,questionChangeIds:G,handleSaveChangeQuestion:w,handleBackPage:M,currentName:P,removeQuestLink:Q}=H.useAddClassReflection(),L=()=>{o(()=>{M()})};return e.jsxs(s.Grid,{children:[e.jsxs(s.Grid,{className:`${t.styles["header-box"]}`,children:[e.jsxs(s.Typography,{className:`${t.styles["header-box-title"]}`,children:[e.jsx(z.BiArrowBack,{onClick:()=>p(-1)}),l("reflections")]}),e.jsxs(s.Grid,{className:`${t.styles["header-box-right"]}`,children:[e.jsxs(s.Button,{onClick:()=>y(),className:`${t.styles["btn-add"]}`,children:[e.jsx(s.Typography,{className:`${t.styles["btn-add-title"]}`,children:l("add_new")}),e.jsx(W.AddBoxIcon,{className:`${t.styles["btn-add-icon"]}`})]}),e.jsxs(s.Button,{onClick:()=>L(),className:`${t.styles["btn-send"]}`,children:[e.jsx(s.Typography,{className:`${t.styles["btn-send-title"]}`,children:l(C?"start_reflection":"send_request")}),e.jsx(V.SendIcon,{className:`${t.styles["btn-send-icon"]}`})]})]})]}),e.jsx(s.Grid,{className:`${t.styles["create-reflection-box"]}`,children:g?.map((c,O)=>e.jsxs(s.Grid,{className:`${t.styles["create-item"]}`,children:[e.jsxs(s.Grid,{className:`${t.styles["create-item-header"]}`,children:[e.jsxs(s.Typography,{className:`${t.styles["req-number-item"]}`,children:[l("request_number"),": ",O+1]}),e.jsx(I.CloseIcon,{className:`${t.styles["remove-icon"]}`,onClick:()=>D(c.id)})]}),e.jsx(s.Autocomplete,{hidden:C,id:"free-solo-2-demo",fullWidth:!0,options:N,getOptionLabel:a=>a.fullName?a.fullName:"",renderOption:(a,r)=>e.jsxs("li",{...a,children:[e.jsx(s.Avatar,{className:`${t.styles["user-avatar"]}`,src:r?.profileImageFileName?.trim()?j.getFileUrl(r?.profileImageFileName):_.DEFAULT_USER_AVATAR}),r.fullName]}),onChange:(a,r)=>d(c.id,r?.email||"",q.COLUMN_ClASS.StudentEmail),popupIcon:e.jsx(v.ArrowDropDownIcon,{}),isOptionEqualToValue:(a,r)=>a.id==r.id,value:m(c.studentEmail),renderInput:a=>e.jsx(s.TextField,{...a,label:l("student"),margin:"normal",variant:"outlined",required:!0,error:!!b&&!c.studentEmail?.trim(),InputProps:{...a.InputProps,startAdornment:e.jsx(s.InputAdornment,{position:"start",children:e.jsx(s.Avatar,{src:m(c?.studentEmail)?.profileImageFileName?.trim()?j.getFileUrl(m(c?.studentEmail)?.profileImageFileName||""):_.DEFAULT_USER_AVATAR,alt:""})})}})}),e.jsxs(s.Grid,{className:`${t.styles["box-class-date-type"]}`,children:[e.jsx(s.Grid,{className:`${t.styles["select-form"]}`,children:e.jsx(S.LocalizationProvider,{dateAdapter:K.AdapterMoment,children:e.jsx(S.DateTimePicker,{className:"w-100",format:"Do MMM YYYY HH:mm",label:l("class_date"),value:c.classDateTime?E(c.classDateTime):null,onChange:a=>d(c.id,a||"",q.COLUMN_ClASS.ClassDate),slotProps:{textField:{required:!0,error:!!b&&!c.classDateTime,variant:"outlined",margin:"normal",id:"date-picker-inline"}}})})}),e.jsx(s.Autocomplete,{id:"country-select-demo",options:f,freeSolo:!0,autoHighlight:!0,forcePopupIcon:!0,className:`${t.styles["select-form"]}`,value:m(c.classType),getOptionLabel:a=>a,renderOption:(a,r)=>e.jsx("li",{...a,children:r}),onInputChange:(a,r)=>{d(c.id,r,q.COLUMN_ClASS.ClassType)},renderInput:a=>e.jsx(s.TextField,{...a,label:l("class_type"),variant:"outlined",placeholder:l("select_or_input_class_type"),inputProps:{...a.inputProps},required:!0,error:!!b&&!c.classType?.trim(),onChange:r=>{}})})]}),c.requestForm==T.requestForm[0]&&e.jsx(s.TextField,{fullWidth:!0,required:!0,id:"outlined-basic-2",label:l("teacher_email"),variant:"outlined",value:c.teacherEmail,className:`${t.styles["mb-10"]}`,error:!!b&&!c.teacherEmail?.trim(),onChange:a=>d(c.id,a.target.value,q.COLUMN_ClASS.TeacherEmail)}),e.jsx(s.TextField,{fullWidth:!0,required:!0,id:"outlined-basic-2",label:l("teacher_name"),variant:"outlined",value:c.teacherName,error:!!b&&!c.teacherName?.trim(),onChange:a=>d(c.id,a.target.value,q.COLUMN_ClASS.TeacherName)}),e.jsxs(s.Grid,{className:`${t.styles["box-class-date-type"]}`,children:[e.jsx(s.Autocomplete,{id:"free-solo-2-demo",className:`${t.styles["select-form"]}`,options:i,getOptionLabel:a=>a.label?a.label:"",onChange:(a,r)=>d(c.id,r?.label||"",q.COLUMN_ClASS.BandScore),popupIcon:e.jsx(v.ArrowDropDownIcon,{}),isOptionEqualToValue:(a,r)=>a.id==r.id||a.label==c.bandScore,value:$(c.bandScore)||null,renderInput:a=>e.jsx(s.TextField,{...a,label:l("current_grade"),margin:"normal",variant:"outlined"})}),e.jsx(s.Autocomplete,{id:"free-solo-2-demo",hidden:!!C,className:`${t.styles["select-form"]}`,options:T.requestForm,onChange:(a,r)=>{d(c.id,r||"",q.COLUMN_ClASS.RequestForm)},popupIcon:e.jsx(v.ArrowDropDownIcon,{}),value:c.requestForm,renderInput:a=>e.jsx(s.TextField,{...a,required:!0,error:!!b&&!c.requestForm?.trim(),label:l("request_from"),margin:"normal",variant:"outlined"})})]}),e.jsxs(s.Grid,{hidden:C,className:`${t.styles["custom-reflection"]}`,onClick:()=>{u(c),R(c.questionIds)},children:[e.jsx(s.Typography,{className:`${t.styles["custom-reflection-text"]}`,children:l("customize_reflection")}),e.jsx(X,{className:`${t.styles["custom-reflection-icon"]}`})]})]},c.id))}),!!h&&h?.requestForm!=T.requestForm[0]&&e.jsx(Z,{model:h,questionList:k,onCLose:u,checkStudent:m,onSelectQuestion:n,onInputChange:d,onSelectGroupQuestion:B,onCheckSelectQuestion:A,questionChangeIds:G,onSaveChangeQuestion:w,isStudent:C,currentName:P}),!!h&&h?.requestForm!=T.requestForm[1]&&e.jsx(ee,{model:h,questionList:F,onCLose:u,checkStudent:m,onSelectQuestion:n,onInputChange:d,onSelectGroupQuestion:B,onCheckSelectQuestion:A,questionChangeIds:G,onSaveChangeQuestion:w}),e.jsx(J.RouterPrompt,{content:"",skip:"start-reflection",action:Q})]})};exports.default=se;
|