mario-teacher-student-client 2.3.6-staging → 2.3.7-staging

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.
Files changed (206) hide show
  1. package/dist/AddClassReflection-Dhk2ufta.js +268 -0
  2. package/dist/AddClassReflection-ZCjpJV5z.cjs +1 -0
  3. package/dist/AddNewClassReflection-E8G4o_wY.js +921 -0
  4. package/dist/AddNewClassReflection-ekdnDX7v.cjs +1 -0
  5. package/dist/BookSession-DuB23jpx.cjs +1 -0
  6. package/dist/BookSession-LS5wVEI7.js +639 -0
  7. package/dist/BookSessionConferences-B7wdKKiB.js +431 -0
  8. package/dist/BookSessionConferences-CocHZF8H.cjs +1 -0
  9. package/dist/BubbleChartCustom-BQFoXBrY.js +111 -0
  10. package/dist/BubbleChartCustom-BtBK64OW.cjs +1 -0
  11. package/dist/CheckInProgress-AnzvkmTs.js +1101 -0
  12. package/dist/CheckInProgress-BjW_bt3Y.cjs +27 -0
  13. package/dist/CircleSlashIcon-BJ-9gBuq.js +154 -0
  14. package/dist/CircleSlashIcon-BV_qZEaz.cjs +1 -0
  15. package/dist/ConferenceRubric-95eXYS4S.js +362 -0
  16. package/dist/ConferenceRubric-CHPK005r.cjs +1 -0
  17. package/dist/ConfirmDeleteOneToOne-BtbecY_e.js +1982 -0
  18. package/dist/ConfirmDeleteOneToOne-DYb0ZZh-.cjs +16 -0
  19. package/dist/CreateStudent-CF2la-RP.cjs +1 -0
  20. package/dist/CreateStudent-hWUgC2EK.js +1301 -0
  21. package/dist/CreateSurvey-BngeNGN3.js +2859 -0
  22. package/dist/CreateSurvey-P7YxsHCJ.cjs +1 -0
  23. package/dist/CustomFilterComponent-Bh_jx_J_.js +321 -0
  24. package/dist/CustomFilterComponent-BhaWP7Uv.cjs +1 -0
  25. package/dist/CustomTab-DktNU_KJ.js +227 -0
  26. package/dist/CustomTab-DvVDsJoo.cjs +1 -0
  27. package/dist/EduTeacherViewDetail-D1-k_NXq.js +43 -0
  28. package/dist/EduTeacherViewDetail-zyOeh2yo.cjs +1 -0
  29. package/dist/ExternalReflection-D3dLJHK-.js +322 -0
  30. package/dist/ExternalReflection-Dd6NdNDZ.cjs +1 -0
  31. package/dist/ExternalSurvey-BCDFTkyV.js +589 -0
  32. package/dist/ExternalSurvey-pacSeo7n.cjs +1 -0
  33. package/dist/FlagOfSession-B3pPUly6.cjs +1 -0
  34. package/dist/FlagOfSession-DdXMLVEN.js +380 -0
  35. package/dist/FlagsHistoryView-BxTsRZXx.js +452 -0
  36. package/dist/FlagsHistoryView-Co7i1gcP.cjs +2 -0
  37. package/dist/GenerateChartData-B5rJYE8e.cjs +1 -0
  38. package/dist/GenerateChartData-DifVOmZM.js +427 -0
  39. package/dist/GenerateTrendQuestion-CJCsppJz.js +1434 -0
  40. package/dist/GenerateTrendQuestion-DWPKAqPq.cjs +2 -0
  41. package/dist/GuideCheckIn-jboR3tuq.js +226 -0
  42. package/dist/GuideCheckIn-m9tKdyxb.cjs +1 -0
  43. package/dist/HeaderComponent-BcxESOhY.cjs +25 -0
  44. package/dist/HeaderComponent-aXSBDSvT.js +233 -0
  45. package/dist/HeaderUserDetail-BYgRUpJt.cjs +2 -0
  46. package/dist/HeaderUserDetail-Bf-IGr7W.js +600 -0
  47. package/dist/HomePage-D8yIhRNe.cjs +236 -0
  48. package/dist/HomePage-DF9NS26e.js +5838 -0
  49. package/dist/InterventionDialog-CH5sv2MF.cjs +22 -0
  50. package/dist/InterventionDialog-zyJIRUUp.js +742 -0
  51. package/dist/JourneyInsightsPage-BCP6m_x4.js +647 -0
  52. package/dist/JourneyInsightsPage-Cql8CQAT.cjs +1 -0
  53. package/dist/LearningPlan-Bwp1SDzI.cjs +7 -0
  54. package/dist/LearningPlan-Dip3PJtu.js +3374 -0
  55. package/dist/LearningPlanChip-FW0y67DM.js +379 -0
  56. package/dist/LearningPlanChip-b-2lcxcV.cjs +1 -0
  57. package/dist/LearningStrategyComponent-B2dYoJZS.js +132 -0
  58. package/dist/LearningStrategyComponent-BK7MHzLD.cjs +1 -0
  59. package/dist/ListPersonalInterrest-6JJbqPH5.js +1646 -0
  60. package/dist/ListPersonalInterrest-Be6uB7nW.cjs +2 -0
  61. package/dist/ListPersonalLearningPlans-BpsjOPH4.cjs +1 -0
  62. package/dist/ListPersonalLearningPlans-BrLjYAJG.js +745 -0
  63. package/dist/ListSurveys-DAXjNZzf.js +1762 -0
  64. package/dist/ListSurveys-TXdzMxzc.cjs +36 -0
  65. package/dist/ListTransitionPlans-CK4ClBBS.js +748 -0
  66. package/dist/ListTransitionPlans-Dz-psNvE.cjs +1 -0
  67. package/dist/LockIcon-B58mibxt.cjs +1 -0
  68. package/dist/LockIcon-D0sLoLkv.js +107 -0
  69. package/dist/MainLayout-9XKZYpCM.js +2735 -0
  70. package/dist/MainLayout-Dnv8UrP4.cjs +12 -0
  71. package/dist/MainViewScaffolding-B6Raw7Th.cjs +1 -0
  72. package/dist/MainViewScaffolding-Cj7aUbSl.js +125 -0
  73. package/dist/MyClassReflection-B6aEvPSE.js +1021 -0
  74. package/dist/MyClassReflection-CBiWISNt.cjs +5 -0
  75. package/dist/MyClassSchedule-2-3wsh-S.cjs +1 -0
  76. package/dist/MyClassSchedule-2O42eUUy.js +582 -0
  77. package/dist/MyConferences-BAfCwBiU.js +2180 -0
  78. package/dist/MyConferences-GjONSWb1.cjs +2 -0
  79. package/dist/MyConversation-C3Qh40CE.js +2007 -0
  80. package/dist/MyConversation-ClR0Ml52.cjs +1 -0
  81. package/dist/MyOneToOne-Cd2fZUiY.js +2377 -0
  82. package/dist/MyOneToOne-UsEHi-HQ.cjs +1 -0
  83. package/dist/MyProfile-B5-HJuRd.cjs +1 -0
  84. package/dist/MyProfile-CL7qEBN2.js +564 -0
  85. package/dist/MyStudent-DdAL-i1L.cjs +1 -0
  86. package/dist/MyStudent-DyICZG-J.js +1497 -0
  87. package/dist/MyTransitionPlan-5VeOFDqO.js +153 -0
  88. package/dist/MyTransitionPlan-DI4GXKS2.cjs +1 -0
  89. package/dist/MyWellBeing-CgNby4rd.js +609 -0
  90. package/dist/MyWellBeing-Cz_oaUEq.cjs +1 -0
  91. package/dist/NewLearningPlan-B1RFEHrZ.cjs +2 -0
  92. package/dist/NewLearningPlan-jOSaMt0Q.js +2185 -0
  93. package/dist/NewLearningPlanIEP-BHpipp4l.cjs +2 -0
  94. package/dist/NewLearningPlanIEP-Dr7beHvr.js +559 -0
  95. package/dist/Note-Bmhko0vT.js +1661 -0
  96. package/dist/Note-zPyU9-Kt.cjs +2 -0
  97. package/dist/NoteDetail-Ef25Jkb5.js +367 -0
  98. package/dist/NoteDetail-IE99UL3b.cjs +1 -0
  99. package/dist/PersonalLearningGoal-BWFViW7O.js +6311 -0
  100. package/dist/PersonalLearningGoal-CtlX1OEr.cjs +1 -0
  101. package/dist/PlpPage-AxUvVrdk.js +4896 -0
  102. package/dist/PlpPage-BMuS4vtj.cjs +12 -0
  103. package/dist/PreviewSurvey-KnM0Jghj.js +689 -0
  104. package/dist/PreviewSurvey-TmyczqaZ.cjs +3 -0
  105. package/dist/ProfileCurrentStudent-DECMEfa4.js +1835 -0
  106. package/dist/ProfileCurrentStudent-DQJZ1YSv.cjs +1 -0
  107. package/dist/QuestionSurveyComponent-BVfQeRtn.js +253 -0
  108. package/dist/QuestionSurveyComponent-B_DkItsx.cjs +2 -0
  109. package/dist/RatingQuestion-DSNYnDtP.cjs +17 -0
  110. package/dist/RatingQuestion-DY_OuGSE.js +289 -0
  111. package/dist/ResultConferenceRubric-DMKYGbHW.js +253 -0
  112. package/dist/ResultConferenceRubric-Dfm6826X.cjs +1 -0
  113. package/dist/ResultReflection-B_H1rOFj.js +177 -0
  114. package/dist/ResultReflection-DudPDaop.cjs +1 -0
  115. package/dist/ScaffoldingFloatTab-5IfKvVRc.js +1366 -0
  116. package/dist/ScaffoldingFloatTab-KLjCy57n.cjs +1 -0
  117. package/dist/SessionResultComponent-BtZmm4Va.cjs +1 -0
  118. package/dist/SessionResultComponent-DxpCKhzC.js +279 -0
  119. package/dist/SingleChoiceComponent-CID4KL59.cjs +1 -0
  120. package/dist/SingleChoiceComponent-CovqOzLH.js +99 -0
  121. package/dist/SortBySelector-C4HDqVfM.js +157 -0
  122. package/dist/SortBySelector-mCN20OLj.cjs +1 -0
  123. package/dist/StartReflection-Bnr7GWj5.cjs +1 -0
  124. package/dist/StartReflection-DL9uaaEP.js +321 -0
  125. package/dist/StudentDetail-Cb40BhX5.cjs +1 -0
  126. package/dist/StudentDetail-pn-r-3EY.js +2762 -0
  127. package/dist/StudentReflection-B4QNgRAS.cjs +1 -0
  128. package/dist/StudentReflection-CJYlsntF.js +1463 -0
  129. package/dist/SummarizeQuestionList-CNODsC_C.js +670 -0
  130. package/dist/SummarizeQuestionList-nNHSbAS-.cjs +1 -0
  131. package/dist/SurveyDetail-BeZ9rWnm.cjs +1 -0
  132. package/dist/SurveyDetail-Cj50hdrR.js +1585 -0
  133. package/dist/SurveyIndex-498_6JgF.cjs +1 -0
  134. package/dist/SurveyIndex-CcUOlyFw.js +363 -0
  135. package/dist/SurveyOverview-BKczvabs.cjs +12 -0
  136. package/dist/SurveyOverview-ClpfXfI_.js +716 -0
  137. package/dist/SurveyResult-C05l56O9.cjs +1 -0
  138. package/dist/SurveyResult-KTaRewAK.js +164 -0
  139. package/dist/SurveyStudentFlagList-D_6ZfZwQ.cjs +1 -0
  140. package/dist/SurveyStudentFlagList-DggjQlmF.js +403 -0
  141. package/dist/SurveyStudentList-CTiOMZwg.cjs +1 -0
  142. package/dist/SurveyStudentList-DWk7YeXA.js +703 -0
  143. package/dist/TeacherClassReflection-CEuZDvbV.cjs +1 -0
  144. package/dist/TeacherClassReflection-GqvsUMHQ.js +2025 -0
  145. package/dist/UpdateStudentProfile-AlZWuJcr.cjs +1 -0
  146. package/dist/UpdateStudentProfile-Ci-qXPfF.js +1787 -0
  147. package/dist/ViewSessionResultComponent-7HwNxUkr.cjs +1 -0
  148. package/dist/ViewSessionResultComponent-juTVcClC.js +261 -0
  149. package/dist/WellBeingCompleted-D11pS2SR.js +214 -0
  150. package/dist/WellBeingCompleted-H_jLl-uC.cjs +1 -0
  151. package/dist/WellBeingDashboard-9HXATWtp.cjs +1 -0
  152. package/dist/WellBeingDashboard-BHLe8Tbf.js +1398 -0
  153. package/dist/WellBeingUnfinished-CvWaXUnZ.cjs +1 -0
  154. package/dist/WellBeingUnfinished-DWftRPWl.js +61 -0
  155. package/dist/WellbeingAssessment-DcAd8f0R.js +705 -0
  156. package/dist/WellbeingAssessment-nP6xY9PU.cjs +10 -0
  157. package/dist/constant-Bm9Q3QeQ.js +452 -0
  158. package/dist/constant-BvXV8qj7.cjs +1 -0
  159. package/dist/constants-B6Te5uSr.cjs +1 -0
  160. package/dist/constants-B6ZEUCnh.js +2492 -0
  161. package/dist/constants-C2lFOalU.js +64 -0
  162. package/dist/constants-D8VEJM_F.js +315 -0
  163. package/dist/constants-DCo1FFtF.cjs +1 -0
  164. package/dist/constants-DW6hH_kc.js +45 -0
  165. package/dist/constants-DiZVHg7h.cjs +1 -0
  166. package/dist/constants-fvq3YcEo.cjs +1 -0
  167. package/dist/constantsFn-BsUpsDOp.cjs +1 -0
  168. package/dist/constantsFn-Dx_Kx2Pz.js +79 -0
  169. package/dist/constantsLearning-C-o2fFCI.cjs +1 -0
  170. package/dist/constantsLearning-ZTZAOfpO.js +235 -0
  171. package/dist/containers/ListPersonalLearningPlans/hooks/useListPersonalLearningPlans.d.ts +1 -0
  172. package/dist/containers/ListPersonalLearningPlans/hooks/useListPersonalLearningPlans.d.ts.map +1 -1
  173. package/dist/containers/ListPersonalLearningPlans/utils/type.d.ts +2 -0
  174. package/dist/containers/ListPersonalLearningPlans/utils/type.d.ts.map +1 -1
  175. package/dist/containers/ListPersonalLearningPlans/views/ListPersonalLearningPlans.d.ts.map +1 -1
  176. package/dist/containers/PersonalLearningPlan/components/PersonalLearningGoal/PersonalLearningGoal.d.ts.map +1 -1
  177. package/dist/containers/PersonalLearningPlan/components/TransitionPlanTab/MyTransitionPlan.d.ts.map +1 -1
  178. package/dist/containers/PersonalLearningPlan/hooks/useMyLearningPlan.d.ts.map +1 -1
  179. package/dist/containers/PersonalLearningPlan/hooks/usePersonalLearningGoal.d.ts +3 -0
  180. package/dist/containers/PersonalLearningPlan/hooks/usePersonalLearningGoal.d.ts.map +1 -1
  181. package/dist/containers/PersonalLearningPlan/hooks/useTransitionPlanTab.d.ts.map +1 -1
  182. package/dist/index.js +1 -1
  183. package/dist/index.modern.js +1 -1
  184. package/dist/types-CqOl2rtQ.cjs +1 -0
  185. package/dist/types-DbGoECrC.js +221 -0
  186. package/dist/useAddClassReflection-BPsfGApJ.js +304 -0
  187. package/dist/useAddClassReflection-Bv77vuhy.cjs +1 -0
  188. package/dist/useConductOne-7VmttNvj.cjs +1 -0
  189. package/dist/useConductOne-DqQSvPu8.js +733 -0
  190. package/dist/useConferenceRubric-BC0dtfzk.cjs +1 -0
  191. package/dist/useConferenceRubric-BsonwAm1.js +1548 -0
  192. package/dist/useFontStyles-B-b9wKu5.cjs +1 -0
  193. package/dist/useFontStyles-CPXWR7jl.js +23 -0
  194. package/dist/useProfileDialog-9B780_8m.cjs +2 -0
  195. package/dist/useProfileDialog-BrpGUiKW.js +1195 -0
  196. package/dist/useTransitionPlanTab-8iYVymqe.cjs +11 -0
  197. package/dist/useTransitionPlanTab-DK8eGj1Y.js +3275 -0
  198. package/dist/useUpComing-BdlFtjVG.cjs +1 -0
  199. package/dist/useUpComing-R-jzficV.js +299 -0
  200. package/dist/useWeeklyQuest-_tysHdP1.js +108 -0
  201. package/dist/useWeeklyQuest-zPNIXRGx.cjs +1 -0
  202. package/dist/utils/constants.d.ts +2 -1
  203. package/dist/utils/constants.d.ts.map +1 -1
  204. package/dist/utils-CGvMP4VT.cjs +1 -0
  205. package/dist/utils-Cxr5YYBt.js +743 -0
  206. 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-BnjAzhP1.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-2WR_7v5i.js";
9
+ import { u as U } from "./useAddClassReflection-BPsfGApJ.js";
10
+ import { C as o } from "./types-BlKuBS6W.js";
11
+ import { s as l } from "./styles.module-Dhz1vFNl.js";
12
+ import { L as J } from "./useMobilePicker-C6FOpdP8.js";
13
+ import { A as K } from "./AdapterMoment-CeMS9jLD.js";
14
+ import { D as Q } from "./DateTimePicker-Dxusvxt6.js";
15
+ import { s as h } from "./styled--C_kxAAX.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-B5frMu5o.cjs"),a=require("@mui/material"),h=require("@mui/icons-material"),k=require("moment"),M=require("./AddButton-5SpZ937H.cjs"),q=require("./useAddClassReflection-Bv77vuhy.cjs"),d=require("./types-DUv1CRJR.cjs"),s=require("./styles.module-cVLPGJIs.cjs"),O=require("./useMobilePicker-BeBsccVJ.cjs"),R=require("./AdapterMoment-B-q0UCj0.cjs"),L=require("./DateTimePicker-lTDWUOLl.cjs"),u=require("./styled-CO8R0Q-5.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;