mario-education 2.0.91-staging → 2.0.92-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/ArrowUp-BP9l68Zo.js +484 -0
- package/dist/ArrowUp-CF-JSvs7.cjs +1 -0
- package/dist/ArrowUp-DULaoBCR.cjs +1 -0
- package/dist/ArrowUp-iR4XwBT6.js +501 -0
- package/dist/Bookmark-iVubfFnS.cjs +1 -0
- package/dist/Bookmark-udraOCjV.js +8 -0
- package/dist/ConversationTarget-BLJj2UlX.cjs +7 -0
- package/dist/ConversationTarget-Bsl5cnlR.js +1666 -0
- package/dist/ConversationTarget-DAzxJYFM.cjs +7 -0
- package/dist/ConversationTarget-RmnR2Obe.js +1666 -0
- package/dist/CreateSurveyAdmin-BA4YKrqp.cjs +3 -0
- package/dist/CreateSurveyAdmin-DAlojafJ.cjs +3 -0
- package/dist/CreateSurveyAdmin-n-Sng_5S.js +3239 -0
- package/dist/CreateSurveyAdmin-ozGn0NTe.js +3239 -0
- package/dist/CreateSurveyAdminV2-0BlVr-PI.cjs +1 -0
- package/dist/CreateSurveyAdminV2-8ASOm_Vj.cjs +1 -0
- package/dist/CreateSurveyAdminV2-B17sRCQy.js +2024 -0
- package/dist/CreateSurveyAdminV2-B7zeklqj.cjs +1 -0
- package/dist/CreateSurveyAdminV2-B8u1-KZF.cjs +1 -0
- package/dist/CreateSurveyAdminV2-BATd00Qa.js +1125 -0
- package/dist/CreateSurveyAdminV2-BL5-DQBT.cjs +1 -0
- package/dist/CreateSurveyAdminV2-BMKoDrQv.js +2007 -0
- package/dist/CreateSurveyAdminV2-BQfZ7R1A.js +2025 -0
- package/dist/CreateSurveyAdminV2-BRXRyJNK.cjs +1 -0
- package/dist/CreateSurveyAdminV2-BRo1fMUO.cjs +1 -0
- package/dist/CreateSurveyAdminV2-BYhurELG.cjs +1 -0
- package/dist/CreateSurveyAdminV2-BaSZjuXx.js +2062 -0
- package/dist/CreateSurveyAdminV2-BgPNikOC.cjs +1 -0
- package/dist/CreateSurveyAdminV2-BhQttFKi.js +1989 -0
- package/dist/CreateSurveyAdminV2-BhnfNpc1.cjs +1 -0
- package/dist/CreateSurveyAdminV2-BjWCr5q2.js +2062 -0
- package/dist/CreateSurveyAdminV2-Bktma2Y3.js +444 -0
- package/dist/CreateSurveyAdminV2-BsRFvmxP.cjs +1 -0
- package/dist/CreateSurveyAdminV2-C0DC-Lou.cjs +1 -0
- package/dist/CreateSurveyAdminV2-C0ngeKo2.cjs +1 -0
- package/dist/CreateSurveyAdminV2-C5N_kzOf.cjs +1 -0
- package/dist/CreateSurveyAdminV2-C62Vle7h.cjs +1 -0
- package/dist/CreateSurveyAdminV2-C7emj-3f.js +739 -0
- package/dist/CreateSurveyAdminV2-CB8MvAYQ.cjs +1 -0
- package/dist/CreateSurveyAdminV2-CGgC1VJS.cjs +1 -0
- package/dist/CreateSurveyAdminV2-CHbKIV7w.js +753 -0
- package/dist/CreateSurveyAdminV2-CHrrwwTP.js +426 -0
- package/dist/CreateSurveyAdminV2-CJ5mqJM0.js +2069 -0
- package/dist/CreateSurveyAdminV2-CKdTAlYm.cjs +1 -0
- package/dist/CreateSurveyAdminV2-CQJIQn38.js +2025 -0
- package/dist/CreateSurveyAdminV2-CTlGdaEt.cjs +1 -0
- package/dist/CreateSurveyAdminV2-CVg3iW2C.js +833 -0
- package/dist/CreateSurveyAdminV2-CYWc1piG.cjs +1 -0
- package/dist/CreateSurveyAdminV2-C_Zw1SF1.js +2006 -0
- package/dist/CreateSurveyAdminV2-CaQSiSBm.cjs +1 -0
- package/dist/CreateSurveyAdminV2-CcjwykxO.cjs +1 -0
- package/dist/CreateSurveyAdminV2-Cm_a_aQl.js +426 -0
- package/dist/CreateSurveyAdminV2-Cp0M9Klt.js +426 -0
- package/dist/CreateSurveyAdminV2-Cpk6SDYt.js +833 -0
- package/dist/CreateSurveyAdminV2-D6O_Ae2P.js +2026 -0
- package/dist/CreateSurveyAdminV2-DCv4JOim.cjs +1 -0
- package/dist/CreateSurveyAdminV2-DE96dt0b.js +2069 -0
- package/dist/CreateSurveyAdminV2-DFvD8lpY.js +2062 -0
- package/dist/CreateSurveyAdminV2-DI219he6.cjs +1 -0
- package/dist/CreateSurveyAdminV2-DOLZE7bn.js +424 -0
- package/dist/CreateSurveyAdminV2-DVsYdgYj.js +2013 -0
- package/dist/CreateSurveyAdminV2-DXkmOCHq.js +2013 -0
- package/dist/CreateSurveyAdminV2-DaYqIitb.js +1240 -0
- package/dist/CreateSurveyAdminV2-DciCs82s.cjs +1 -0
- package/dist/CreateSurveyAdminV2-DdDWuwtx.js +1674 -0
- package/dist/CreateSurveyAdminV2-DdNFReQa.js +1987 -0
- package/dist/CreateSurveyAdminV2-DfuYEvuB.js +2062 -0
- package/dist/CreateSurveyAdminV2-DiMDw9g0.cjs +1 -0
- package/dist/CreateSurveyAdminV2-Dnhy7WZx.cjs +1 -0
- package/dist/CreateSurveyAdminV2-Do4gpSgu.cjs +1 -0
- package/dist/CreateSurveyAdminV2-Dv2_Zrs-.cjs +1 -0
- package/dist/CreateSurveyAdminV2-DvSjpZ8Y.cjs +1 -0
- package/dist/CreateSurveyAdminV2-DwSWFk-L.js +2058 -0
- package/dist/CreateSurveyAdminV2-Dx6o9LCd.js +426 -0
- package/dist/CreateSurveyAdminV2-Dxpa0bbG.js +827 -0
- package/dist/CreateSurveyAdminV2-K9Z0lB7F.cjs +1 -0
- package/dist/CreateSurveyAdminV2-LfTV-M48.cjs +1 -0
- package/dist/CreateSurveyAdminV2-MKvIE8L6.cjs +1 -0
- package/dist/CreateSurveyAdminV2-OC7wpn9G.js +835 -0
- package/dist/CreateSurveyAdminV2-QIlnOCKv.js +2057 -0
- package/dist/CreateSurveyAdminV2-VO79HBs5.cjs +1 -0
- package/dist/CreateSurveyAdminV2-ZvqWDGjb.cjs +1 -0
- package/dist/CreateSurveyAdminV2-f5d0iQ2L.js +2062 -0
- package/dist/CreateSurveyAdminV2-hXV4mr4L.cjs +1 -0
- package/dist/CreateSurveyAdminV2-o5Bn4it_.js +1139 -0
- package/dist/CreateSurveyAdminV2-zpxqxy41.js +2062 -0
- package/dist/Dashboard-BXz03tw1.js +8924 -0
- package/dist/Dashboard-DkH1bdPo.js +8924 -0
- package/dist/Dashboard-DvhpxL9t.cjs +50 -0
- package/dist/Dashboard-DxpV6S2f.cjs +50 -0
- package/dist/DesignatedStaff-BhiGw0vU.js +432 -0
- package/dist/DesignatedStaff-D2FSKFg1.js +432 -0
- package/dist/DesignatedStaff-DDCCl8MU.cjs +1 -0
- package/dist/DesignatedStaff-Dq8vuo8R.cjs +1 -0
- package/dist/EditFlagCard-BOgyQJqH.js +722 -0
- package/dist/EditFlagCard-DlaD35wK.cjs +3 -0
- package/dist/FrequencyAndSetup-B0WBaj0-.js +1008 -0
- package/dist/FrequencyAndSetup-C20LkHbV.cjs +9 -0
- package/dist/FrequencyAndSetup-CQFQVjY5.js +1008 -0
- package/dist/FrequencyAndSetup-Df_kkGDb.cjs +9 -0
- package/dist/FrequencyAndSetupV2-BaTCYoNJ.js +2609 -0
- package/dist/FrequencyAndSetupV2-CVjJk23M.js +2812 -0
- package/dist/FrequencyAndSetupV2-CyRXeE2W.cjs +1 -0
- package/dist/FrequencyAndSetupV2-w3YY8usH.cjs +1 -0
- package/dist/InterventionDialog-BTpKfVO0.cjs +22 -0
- package/dist/InterventionDialog-C22DuC4o.js +870 -0
- package/dist/InterventionDialog-Cm2Ob6dX.js +870 -0
- package/dist/InterventionDialog-DjGh5Uq0.cjs +22 -0
- package/dist/InterventionDialog-DmeNpOF3.cjs +22 -0
- package/dist/InterventionDialog-hZprJjSm.js +870 -0
- package/dist/LineChart-CPfsrs6h.js +1296 -0
- package/dist/LineChart-D9Z00KAU.cjs +10 -0
- package/dist/LineChart-LcusQTbX.js +1296 -0
- package/dist/LineChart-SPN9tugP.cjs +10 -0
- package/dist/MainLayoutAdmin-B7sJCOUs.cjs +6 -0
- package/dist/MainLayoutAdmin-BU4ZRSZJ.cjs +6 -0
- package/dist/MainLayoutAdmin-BaZrYRb3.cjs +6 -0
- package/dist/MainLayoutAdmin-BnbZse6L.cjs +6 -0
- package/dist/MainLayoutAdmin-BxpipknT.js +1799 -0
- package/dist/MainLayoutAdmin-CAoUvIWv.cjs +6 -0
- package/dist/MainLayoutAdmin-CEOJxyX8.cjs +6 -0
- package/dist/MainLayoutAdmin-CJbLOkTL.js +1812 -0
- package/dist/MainLayoutAdmin-CPRUrUDN.cjs +6 -0
- package/dist/MainLayoutAdmin-CRxRjlTH.cjs +6 -0
- package/dist/MainLayoutAdmin-CbxRUkOn.js +1799 -0
- package/dist/MainLayoutAdmin-Cs43onbr.js +1812 -0
- package/dist/MainLayoutAdmin-Cvc9mALx.js +1812 -0
- package/dist/MainLayoutAdmin-DHlYJXkJ.js +1812 -0
- package/dist/MainLayoutAdmin-GBGE8Ci9.js +1812 -0
- package/dist/MainLayoutAdmin-XfMpTs7R.js +1799 -0
- package/dist/MainLayoutAdmin-p-AtMFbE.js +1816 -0
- package/dist/MainLayoutAdmin-q8CYoDuH.cjs +6 -0
- package/dist/MarioAi-BbsGO3rP.cjs +14 -0
- package/dist/MarioAi-ChMlmmc2.js +142 -0
- package/dist/MyProfile-BkmMLmdD.cjs +1 -0
- package/dist/MyProfile-DSl7kYQ6.js +716 -0
- package/dist/OneRosterContainer-B1c1TFmD.js +1276 -0
- package/dist/OneRosterContainer-BgyueWxS.js +1276 -0
- package/dist/OneRosterContainer-Bpf_nb04.cjs +1 -0
- package/dist/OneRosterContainer-C64Bk-En.cjs +1 -0
- package/dist/OneRosterContainer-D7nyx7qX.js +1267 -0
- package/dist/OneRosterContainer-DOXVhgNU.cjs +1 -0
- package/dist/OpenFieldWellbeingQuestion-BaqEYciQ.js +145 -0
- package/dist/OpenFieldWellbeingQuestion-BklQ_Ppl.cjs +1 -0
- package/dist/OpenFieldWellbeingQuestion-D1uEKW8m.js +145 -0
- package/dist/OpenFieldWellbeingQuestion-D5p_BU_f.cjs +1 -0
- package/dist/OutlinedInput-BZO6vjyn.js +1758 -0
- package/dist/OutlinedInput-DQEM2Wtc.cjs +4 -0
- package/dist/PreviewSurveyAdmin-BZovaBIf.js +905 -0
- package/dist/PreviewSurveyAdmin-BbF0qgMM.js +905 -0
- package/dist/PreviewSurveyAdmin-CSuLdd1T.js +905 -0
- package/dist/PreviewSurveyAdmin-DSnGqTsO.cjs +27 -0
- package/dist/PreviewSurveyAdmin-DouhtUQk.cjs +27 -0
- package/dist/PreviewSurveyAdmin-Wvy95m2v.cjs +27 -0
- package/dist/QuestionDetail-DzctsPLm.js +718 -0
- package/dist/QuestionDetail-qXxqzg__.cjs +1 -0
- package/dist/SummarizeQuestion-BHqKB_f_.cjs +1 -0
- package/dist/SummarizeQuestion-BScP6QS5.js +1097 -0
- package/dist/SummarizeQuestion-Dzgs_Y6Z.js +1097 -0
- package/dist/SummarizeQuestion-WMSKIQWD.cjs +1 -0
- package/dist/SurveyDashboardContainer--BZ1LC8l.cjs +10 -0
- package/dist/SurveyDashboardContainer-45HnlSNk.js +2318 -0
- package/dist/SurveyDashboardContainer-B0jTVQZT.cjs +10 -0
- package/dist/SurveyDashboardContainer-CRUlckBn.cjs +10 -0
- package/dist/SurveyDashboardContainer-CWpt_4Ra.js +2318 -0
- package/dist/SurveyDashboardContainer-CqDPHTcV.js +2318 -0
- package/dist/SurveyDashboardContainer-DIYVmzd6.cjs +10 -0
- package/dist/SurveyDashboardContainer-DdNk6eA4.js +2318 -0
- package/dist/SurveyIndexAdmin-C38iHOla.cjs +1 -0
- package/dist/SurveyIndexAdmin-D1iYuvJo.cjs +1 -0
- package/dist/SurveyIndexAdmin-DrUR66sm.js +304 -0
- package/dist/SurveyIndexAdmin-DtwQCIkQ.js +304 -0
- package/dist/SurveyIndexAdmin-IeAI_0Hf.js +304 -0
- package/dist/SurveyIndexAdmin-U2TjfiRC.cjs +1 -0
- package/dist/SurveyQuestion-DMoYwTqm.js +662 -0
- package/dist/SurveyQuestion-DZvIDjD7.cjs +1 -0
- package/dist/SurveyResultAdmin-23SWfhiG.cjs +1 -0
- package/dist/SurveyResultAdmin-B0OTvNd5.js +163 -0
- package/dist/SurveyResultAdmin-CPL9rmb6.js +163 -0
- package/dist/SurveyResultAdmin-CQTxOaya.cjs +1 -0
- package/dist/SurveyResultAdmin-CtgJisbi.cjs +1 -0
- package/dist/SurveyResultAdmin-D2mDK065.js +163 -0
- package/dist/TeacherConversations-4rBpjkW-.cjs +1 -0
- package/dist/TeacherConversations-C9pb0URa.cjs +1 -0
- package/dist/TeacherConversations-Cadkd51b.js +525 -0
- package/dist/TeacherConversations-v3pZh8fs.js +525 -0
- package/dist/UserProfileManagement-7x_FM8qD.js +1127 -0
- package/dist/UserProfileManagement-BA6xtRIh.cjs +1 -0
- package/dist/UserProfileManagement-CaTBAlbV.cjs +1 -0
- package/dist/UserProfileManagement-CnWB9Xw3.cjs +1 -0
- package/dist/UserProfileManagement-CsznyzNi.js +1127 -0
- package/dist/UserProfileManagement-D8wyxgu1.js +1127 -0
- package/dist/UserProfileManagement-DQY3vNVb.cjs +1 -0
- package/dist/UserProfileManagement-r63yvlnd.js +1127 -0
- package/dist/WellBeingDashboard-B1POqcDS.js +2259 -0
- package/dist/WellBeingDashboard-C1lr5TaA.cjs +1 -0
- package/dist/WellBeingDashboard-CWK9Wd0T.cjs +5 -0
- package/dist/WellBeingDashboard-Cb3gf6e0.js +2259 -0
- package/dist/WellBeingDashboard-D-KRLalz.js +2259 -0
- package/dist/WellBeingDashboard-DAA3vQUp.cjs +5 -0
- package/dist/WellBeingDashboard-nYsIYC5V.cjs +5 -0
- package/dist/WellBeingDashboard-oXLJHw8m.js +2265 -0
- package/dist/constant-Cd3TbNLU.js +1481 -0
- package/dist/constant-DTZn4O9t.cjs +2 -0
- package/dist/constants-9UnXcqo8.cjs +1 -0
- package/dist/constants-AmXlyc2R.cjs +1 -0
- package/dist/constants-B823Sm_9.js +232 -0
- package/dist/constants-BRDnBHbq.js +36 -0
- package/dist/containers/FrequencyAndSetupV2/components/ComprehensiveTabContent.d.ts +12 -0
- package/dist/containers/FrequencyAndSetupV2/components/DeleteQuestionModal.d.ts +8 -0
- package/dist/containers/FrequencyAndSetupV2/components/EmailPreviewBox.d.ts +9 -0
- package/dist/containers/FrequencyAndSetupV2/components/LaunchModal.d.ts +8 -0
- package/dist/containers/FrequencyAndSetupV2/components/ModeTabs.d.ts +7 -0
- package/dist/containers/FrequencyAndSetupV2/components/OneOffTabContent.d.ts +17 -0
- package/dist/containers/FrequencyAndSetupV2/components/QuestionRow.d.ts +13 -0
- package/dist/containers/FrequencyAndSetupV2/components/QuestionSectionCard.d.ts +24 -0
- package/dist/containers/FrequencyAndSetupV2/components/RestoreDefaultsModal.d.ts +9 -0
- package/dist/containers/FrequencyAndSetupV2/components/ReviewQuestionsV2.d.ts +13 -0
- package/dist/containers/FrequencyAndSetupV2/components/RoutineTabContent.d.ts +12 -0
- package/dist/containers/FrequencyAndSetupV2/components/SavedView.d.ts +15 -0
- package/dist/containers/FrequencyAndSetupV2/components/SendItAgainModal.d.ts +10 -0
- package/dist/containers/FrequencyAndSetupV2/components/SortableClusterCard.d.ts +21 -0
- package/dist/containers/FrequencyAndSetupV2/components/ViewOneOffModal.d.ts +10 -0
- package/dist/containers/FrequencyAndSetupV2/components/WellbeingSnackbar.d.ts +5 -0
- package/dist/containers/FrequencyAndSetupV2/constants.d.ts +28 -0
- package/dist/containers/FrequencyAndSetupV2/hooks/useFrequencyAndSetupV2.d.ts +57 -0
- package/dist/containers/FrequencyAndSetupV2/icons/index.d.ts +8 -0
- package/dist/containers/FrequencyAndSetupV2/index.d.ts +5 -0
- package/dist/containers/FrequencyAndSetupV2/types.d.ts +94 -0
- package/dist/containers/FrequencyAndSetupV2/views/FrequencyAndSetupV2.d.ts +3 -0
- package/dist/containers/Overview/api/index.d.ts +1 -0
- package/dist/containers/Overview/components/StaffWellBeing.d.ts +11 -0
- package/dist/containers/Overview/config/type.d.ts +2 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/CategoryFilterPills.d.ts +9 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/CheckDetailsStep.d.ts +20 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/ChooseTemplateStep.d.ts +18 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/CreateSurveyStep.d.ts +13 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/EditTemplateView.d.ts +9 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/QuestionTypeBadge.d.ts +7 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/QuestionsTable.d.ts +9 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/ReviewAndPublishStep.d.ts +16 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/SelectStudentsStep.d.ts +31 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/StartFromScratchBanner.d.ts +6 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/StudentFlagIcon.d.ts +8 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/SurveyPreviewModal.d.ts +12 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/SurveyStepperHeader.d.ts +9 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/SurveyWizardFooter.d.ts +13 -0
- package/dist/containers/SurveyDashboard/components/CreateSurveyV2/TemplateCardItem.d.ts +10 -0
- package/dist/containers/SurveyDashboard/hooks/useCheckDetailsStep.d.ts +14 -0
- package/dist/containers/SurveyDashboard/hooks/useChooseTemplateStep.d.ts +24 -0
- package/dist/containers/SurveyDashboard/hooks/useCreateSurveyStep.d.ts +10 -0
- package/dist/containers/SurveyDashboard/hooks/useEditTemplate.d.ts +19 -0
- package/dist/containers/SurveyDashboard/hooks/useSelectStudentsStep.d.ts +30 -0
- package/dist/containers/SurveyDashboard/types/createSurveyV2.types.d.ts +67 -0
- package/dist/containers/SurveyDashboard/views/CreateSurveyAdminV2.d.ts +3 -0
- package/dist/containers/WellBeingDashboard/components/SendCheckInReminderModal.d.ts +9 -0
- package/dist/index-2bHN814N.cjs +1 -0
- package/dist/index-5D_qVz5G.js +2438 -0
- package/dist/index-BCFfLcPg.js +2296 -0
- package/dist/index-BFbPU-JB.js +2473 -0
- package/dist/index-BGT_Z3ko.js +95 -0
- package/dist/index-BqmjwJGC.js +31 -0
- package/dist/index-ByPfoE3x.cjs +1 -0
- package/dist/index-CEcAp8-x.cjs +1 -0
- package/dist/index-CISkn_bq.cjs +1 -0
- package/dist/index-CKD70ECS.cjs +1 -0
- package/dist/index-C_on_woZ.cjs +1 -0
- package/dist/index-CbXqJKkN.js +2474 -0
- package/dist/index-CfoJB0-Z.js +2310 -0
- package/dist/index-CtAOriKA.js +2326 -0
- package/dist/index-D7ZMk8b_.js +127 -0
- package/dist/index-DGS8Fjkd.cjs +1 -0
- package/dist/index-DSgSD90D.cjs +1 -0
- package/dist/index-DtAFFFdn.js +2476 -0
- package/dist/index-I5aAFQd1.cjs +1 -0
- package/dist/index-cPRlZIiA.cjs +1 -0
- package/dist/index-ixYj8nOj.js +2282 -0
- package/dist/index-xxh_RC7A.cjs +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/dist/index.modern.js +9 -10
- package/dist/mario-education.css +1 -1
- package/dist/plp.module-BElMo3qj.js +241 -0
- package/dist/plp.module-BMy_AJUh.cjs +1 -0
- package/dist/services/oneRosterService.d.ts +4 -0
- package/dist/utils-34i4WFQQ.js +579 -0
- package/dist/utils-CeXUFMko.cjs +2 -0
- package/dist/wellbeingService-BiQK74Rh.cjs +1 -0
- package/dist/wellbeingService-BlHKtcgg.cjs +1 -0
- package/dist/wellbeingService-DgkKQSzb.js +29 -0
- package/dist/wellbeingService-DqKYLXnr.js +28 -0
- package/package.json +2 -2
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Grid as c, Typography as y } from "@mui/material";
|
|
3
|
+
import { s as M } from "./styles.module-BJ4dhumc.js";
|
|
4
|
+
import { useState as s1, memo as x, useMemo as k, Fragment as X } from "react";
|
|
5
|
+
import { s as r } from "./plp.module-BLG7ZR0v.js";
|
|
6
|
+
import { useSelector as b1 } from "react-redux";
|
|
7
|
+
import { useTranslation as G } from "mario-core";
|
|
8
|
+
import { A as S1, O as w1 } from "./OverallDonutChart-DBxqB0q_.js";
|
|
9
|
+
import { r as F, E as V, y as S, Q as e1, q, t as w, v as j, R as _1 } from "./constants-B823Sm_9.js";
|
|
10
|
+
import { u as t1, a as T1, M as v1, L as O1, B as q1 } from "./LineChart-LcusQTbX.js";
|
|
11
|
+
import { h as J1, c as G1 } from "./constantsFn-gH1I6RO1.js";
|
|
12
|
+
import { E as I1 } from "./Error-C-bMPkNj.js";
|
|
13
|
+
import { C as P1 } from "./CheckCircle-CDaCNayJ.js";
|
|
14
|
+
import { i as r1 } from "./utils-34i4WFQQ.js";
|
|
15
|
+
import { C as W1 } from "./CheckboxCustom-CRZWuCKp.js";
|
|
16
|
+
import { L as J } from "./Loading-9Xhwui4j.js";
|
|
17
|
+
import { A as A1 } from "./ArrowRightIcon-Sq9hCEbe.js";
|
|
18
|
+
const h2 = ({ options: s, value: a, onChange: o, disabled: d = !1, customClassName: t }) => /* @__PURE__ */ i(c, { className: `${M["calendar-select"]} ${M[t || ""]}`, children: [
|
|
19
|
+
/* @__PURE__ */ e(y, { className: M["calendar-label"], children: "Filter by date" }),
|
|
20
|
+
/* @__PURE__ */ e(c, { className: M["calendar-options"], children: s.map((l) => /* @__PURE__ */ e(
|
|
21
|
+
y,
|
|
22
|
+
{
|
|
23
|
+
onClick: () => !d && o?.(l),
|
|
24
|
+
className: `${M["option-item"]} ${a == l.value ? M.selected : M["no-selected"]}`,
|
|
25
|
+
children: l.label
|
|
26
|
+
},
|
|
27
|
+
l.value
|
|
28
|
+
)) })
|
|
29
|
+
] }), R1 = (s) => s.replace(
|
|
30
|
+
/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,
|
|
31
|
+
(a, o, d, t) => `rgba(${o}, ${d}, ${t}, 0.6)`
|
|
32
|
+
), Q1 = (s, a = !1) => {
|
|
33
|
+
const o = [
|
|
34
|
+
"rgba(196, 65, 64, 0.24)",
|
|
35
|
+
"rgba(255, 176, 79, 0.24)",
|
|
36
|
+
"rgba(255, 208, 40, 0.24)",
|
|
37
|
+
"rgba(169, 214, 96, 0.24)",
|
|
38
|
+
"rgba(15, 150, 85, 0.24)"
|
|
39
|
+
];
|
|
40
|
+
if (a) {
|
|
41
|
+
if (s <= -60 || s >= 60)
|
|
42
|
+
return o[0];
|
|
43
|
+
if (s >= -60 && s < -20)
|
|
44
|
+
return o[3];
|
|
45
|
+
if (s >= -20 && s < 20)
|
|
46
|
+
return o[4];
|
|
47
|
+
if (s >= 20 && s < 60)
|
|
48
|
+
return o[2];
|
|
49
|
+
}
|
|
50
|
+
const d = Math.max(0, Math.min(100, s)), t = 100 / o.length;
|
|
51
|
+
let l = Math.floor(d / t);
|
|
52
|
+
return l = Math.min(l, o.length - 1), o[l];
|
|
53
|
+
}, a1 = ({
|
|
54
|
+
value: s,
|
|
55
|
+
label: a,
|
|
56
|
+
isStress: o,
|
|
57
|
+
timeOfDay: d,
|
|
58
|
+
valueData: t,
|
|
59
|
+
loadingComplete: l = !0
|
|
60
|
+
}) => {
|
|
61
|
+
const u = R1(Q1(t || 0, o)), f = a ? `${a} |` : "";
|
|
62
|
+
return /* @__PURE__ */ i(c, { className: `${r["graph-trend"]}`, children: [
|
|
63
|
+
l ? /* @__PURE__ */ e(
|
|
64
|
+
y,
|
|
65
|
+
{
|
|
66
|
+
style: { backgroundColor: u },
|
|
67
|
+
className: `${r["graph-label"]}`,
|
|
68
|
+
children: `${f} ${(t || 0)?.toFixed(2)}%`
|
|
69
|
+
}
|
|
70
|
+
) : /* @__PURE__ */ e(J, {}),
|
|
71
|
+
d && /* @__PURE__ */ e(
|
|
72
|
+
"img",
|
|
73
|
+
{
|
|
74
|
+
src: `/images/${s < 0 ? "trend-down.png" : "trend-up.png"}`,
|
|
75
|
+
alt: "Graph Trend Icon"
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] });
|
|
79
|
+
}, F1 = ({
|
|
80
|
+
percent: s,
|
|
81
|
+
lowMetricStudents: a = [],
|
|
82
|
+
isPrint: o = !1,
|
|
83
|
+
onBeforeViewCheckIn: d
|
|
84
|
+
}) => {
|
|
85
|
+
const { t } = G(), [l, u] = s1(!1), f = () => {
|
|
86
|
+
u(!l);
|
|
87
|
+
}, b = t1(
|
|
88
|
+
a?.filter((m) => m.matchedGroupNames.includes("Not Ready to Learn"))?.map((m) => m.studentName)
|
|
89
|
+
).length || 0, h = t1(
|
|
90
|
+
a?.filter((m) => m.matchedGroupNames.includes("Success") || m.matchedGroupNames.includes("Readiness"))?.map((m) => m.studentName)
|
|
91
|
+
).length || 0;
|
|
92
|
+
return /* @__PURE__ */ i(c, { className: `${r["static-metric"]} ${r[a?.length === 0 ? "green-background" : "red-background"]}`, children: [
|
|
93
|
+
a?.length === 0 ? /* @__PURE__ */ e(P1, { className: `${r["check-icon"]}` }) : /* @__PURE__ */ e(I1, { className: `${r["warning-icon"]}` }),
|
|
94
|
+
a?.length === 0 ? /* @__PURE__ */ e("div", { children: t("all_students_have_good_metrics") }) : /* @__PURE__ */ i("div", { className: r["static-metric__container"], children: [
|
|
95
|
+
/* @__PURE__ */ i("div", { children: [
|
|
96
|
+
/* @__PURE__ */ e("b", { children: `${s.toFixed(2)}%` }),
|
|
97
|
+
" ",
|
|
98
|
+
t("of_students_have_concerned_metrics"),
|
|
99
|
+
" ",
|
|
100
|
+
!o && /* @__PURE__ */ i("b", { className: `${r.link}`, onClick: () => f(), children: [
|
|
101
|
+
"(",
|
|
102
|
+
t("see_them"),
|
|
103
|
+
")"
|
|
104
|
+
] })
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ i("div", { children: [
|
|
107
|
+
/* @__PURE__ */ e("b", { children: `${b} ${t("students")}` }),
|
|
108
|
+
" ",
|
|
109
|
+
t("are_not_ready_to_learn"),
|
|
110
|
+
",",
|
|
111
|
+
" ",
|
|
112
|
+
/* @__PURE__ */ e("b", { children: `${h} ${t("students")}` }),
|
|
113
|
+
" ",
|
|
114
|
+
t("have_metrics_40")
|
|
115
|
+
] })
|
|
116
|
+
] }),
|
|
117
|
+
!o && /* @__PURE__ */ e(T1, { lowMetricStudents: a, handleToggleModel: f, openModel: l, onBeforeViewCheckIn: d })
|
|
118
|
+
] });
|
|
119
|
+
}, V1 = () => /* @__PURE__ */ i("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
120
|
+
/* @__PURE__ */ e("circle", { cx: "24.9521", cy: "25.943", r: "12.2047", fill: "white", stroke: "#242424", strokeWidth: "1.6" }),
|
|
121
|
+
/* @__PURE__ */ e("path", { d: "M32.1831 16.1109C30.1591 14.6197 27.658 13.7385 24.9512 13.7385C20.4316 13.7385 16.4858 16.1951 14.3762 19.846C13.3396 21.64 12.7464 23.7223 12.7464 25.9432C16.174 26.6908 24.8599 25.7709 32.1831 16.1109Z", fill: "#C44140" }),
|
|
122
|
+
/* @__PURE__ */ e("path", { d: "M12.7464 25.9432C16.174 26.6908 24.8599 25.7709 32.1831 16.1109C30.1591 14.6197 27.658 13.7385 24.9512 13.7385C20.4316 13.7385 16.4858 16.1951 14.3762 19.846C13.3396 21.64 12.7464 23.7223 12.7464 25.9432ZM12.7464 25.9432L13.7157 31.0541", stroke: "#242424", strokeWidth: "1.6" }),
|
|
123
|
+
/* @__PURE__ */ e("path", { d: "M35.0033 32.457C33.9026 31.3239 30.3194 29.4838 27.1494 31.0636", stroke: "#242424", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
124
|
+
/* @__PURE__ */ e("path", { d: "M2.84277 14.5371L6.56435 17.4966C6.79541 17.6803 7.13909 17.559 7.20364 17.2709L7.88551 14.2275C7.95006 13.9394 8.29374 13.8181 8.5248 14.0018L12.5278 17.1851", stroke: "#242424", strokeWidth: "1.6" }),
|
|
125
|
+
/* @__PURE__ */ e("path", { d: "M11.6611 4.42773L13.3372 8.87738C13.4412 9.15364 13.7985 9.22586 14.0017 9.0117L16.1485 6.74917C16.3517 6.53501 16.7089 6.60722 16.8129 6.88349L18.6158 11.6697", stroke: "#242424", strokeWidth: "1.6" }),
|
|
126
|
+
/* @__PURE__ */ e("path", { d: "M24.3058 1.85364L23.8326 6.59318C23.8034 6.8849 24.0876 7.10781 24.364 7.01001L27.4233 5.92739C27.6997 5.82959 27.9839 6.05249 27.9548 6.34421L27.4459 11.4416", stroke: "#242424", strokeWidth: "1.6" })
|
|
127
|
+
] }), j1 = () => /* @__PURE__ */ i("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
128
|
+
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_14971_6395)", children: [
|
|
129
|
+
/* @__PURE__ */ e("path", { d: "M37.7857 8.62683L36.3306 10.8095L37.7857 12.9921M37.7857 8.62683V12.9921M37.7857 8.62683L39.2408 10.8095L37.7857 12.9921", stroke: "#242424", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
130
|
+
/* @__PURE__ */ e("path", { d: "M1.98141 26.75L0.759216 28.5833L1.98141 30.4166M1.98141 26.75V30.4166M1.98141 26.75L3.20361 28.5833L1.98141 30.4166", stroke: "#242424", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
131
|
+
/* @__PURE__ */ e("path", { d: "M31.9033 3.48816L30.6811 5.32146L31.9033 7.15476M31.9033 3.48816V7.15476M31.9033 3.48816L33.1255 5.32146L31.9033 7.15476", stroke: "#242424", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
132
|
+
/* @__PURE__ */ e("path", { d: "M8.43676 18.6139C8.43676 17.7971 8.42098 16.9786 8.43676 16.1547C8.45418 15.8087 8.50763 15.4655 8.59627 15.1306C8.68743 14.7512 8.85225 14.637 9.23617 14.6036C10.0163 14.5404 10.7999 14.5035 11.5765 14.4087C12.0909 14.33 12.6006 14.2233 13.1034 14.089C13.3944 14.0205 13.6749 13.894 13.9677 13.8501C14.4778 13.771 14.9091 13.4988 15.3701 13.3003C16.4538 12.81 17.4434 12.1335 18.2943 11.3013C18.4542 11.1587 18.6308 11.036 18.8202 10.9359C18.941 10.853 19.084 10.8086 19.2304 10.8086C19.3768 10.8086 19.5198 10.853 19.6406 10.9359C19.8593 11.0708 20.0653 11.2254 20.2559 11.3979C20.9967 12.0849 21.8214 12.6751 22.7102 13.1545C23.2682 13.4441 23.856 13.6721 24.4633 13.8343C25.1347 14.0433 25.8184 14.2154 26.5074 14.3612C26.91 14.4195 27.3156 14.4546 27.7223 14.4666C28.271 14.5141 28.8179 14.5738 29.3649 14.623C29.4655 14.6306 29.5616 14.6681 29.6409 14.7307C29.7202 14.7932 29.7791 14.8781 29.8101 14.9743C29.9278 15.2706 29.9988 15.5835 30.0205 15.9018C30.0509 17.3176 30.0597 18.7334 30.0468 20.1492C30.0441 21.5198 29.9215 22.8876 29.6804 24.2367C29.6608 24.367 29.6508 24.4985 29.6506 24.6302C29.614 25.2189 29.4996 25.8001 29.3105 26.3587C29.1352 26.9208 29.0283 27.5022 28.8214 28.0503C28.597 28.651 28.328 29.2341 28.0168 29.7946C27.3467 30.9887 26.4963 32.0719 25.4959 33.0056C24.389 34.0306 23.1306 34.8779 21.7653 35.5175C21.0326 35.8689 20.284 36.1921 19.5249 36.4784C19.3251 36.5539 19.0428 36.4784 18.8237 36.4099C18.3611 36.2612 17.9065 36.0888 17.4615 35.8935C17.0018 35.6971 16.5535 35.4748 16.1187 35.2277C15.3719 34.7886 14.6216 34.3494 13.9186 33.847C13.4424 33.4838 12.9983 33.0801 12.5915 32.6403C11.8769 31.9517 11.2594 31.1686 10.7561 30.3128C10.4163 29.7343 10.1113 29.136 9.84272 28.5211C9.5745 27.8606 9.40621 27.1615 9.18181 26.4817C8.97193 25.8103 8.84247 25.1162 8.79615 24.4142C8.72252 23.5007 8.57875 22.5926 8.47006 21.6827C8.44937 21.5236 8.43826 21.3635 8.43676 21.2031C8.43676 20.3407 8.43676 19.4799 8.43676 18.6192V18.6139Z", fill: "white", stroke: "#242424", strokeWidth: "1.6" }),
|
|
133
|
+
/* @__PURE__ */ e("path", { d: "M19.6304 10.9359C19.5096 10.853 19.3666 10.8086 19.2202 10.8086V36.5043C19.3259 36.5155 19.428 36.5111 19.5147 36.4784C20.2738 36.1921 21.0223 35.8689 21.7551 35.5175C23.1204 34.8779 24.3788 34.0306 25.4856 33.0056C26.4861 32.0719 27.3364 30.9887 28.0065 29.7946C28.3178 29.2341 28.5868 28.651 28.8112 28.0503C29.0181 27.5022 29.125 26.9208 29.3003 26.3587C29.4894 25.8001 29.6037 25.2189 29.6404 24.6302C29.6406 24.4985 29.6505 24.367 29.6702 24.2367C29.9113 22.8876 30.0339 21.5198 30.0366 20.1492C30.0494 18.7334 30.0406 17.3176 30.0103 15.9018C29.9886 15.5835 29.9176 15.2706 29.7999 14.9743C29.7689 14.8781 29.71 14.7932 29.6307 14.7307C29.5514 14.6681 29.4553 14.6306 29.3546 14.623C28.8077 14.5738 28.2607 14.5141 27.712 14.4666C27.3054 14.4546 26.8998 14.4195 26.4972 14.3612C25.8082 14.2154 25.1245 14.0433 24.453 13.8343C23.8458 13.6721 23.258 13.4441 22.7 13.1545C21.8111 12.6751 20.9865 12.0849 20.2457 11.3979C20.0551 11.2254 19.8491 11.0708 19.6304 10.9359Z", fill: "#0F9655" }),
|
|
134
|
+
/* @__PURE__ */ e("path", { d: "M18.8099 10.9359C18.9307 10.853 19.0737 10.8086 19.2202 10.8086M19.2202 10.8086C19.3666 10.8086 19.5096 10.853 19.6304 10.9359C19.8491 11.0708 20.0551 11.2254 20.2457 11.3979C20.9865 12.0849 21.8111 12.6751 22.7 13.1545C23.258 13.4441 23.8458 13.6721 24.453 13.8343C25.1245 14.0433 25.8082 14.2154 26.4972 14.3612C26.8998 14.4195 27.3054 14.4546 27.712 14.4666C28.2607 14.5141 28.8077 14.5738 29.3546 14.623C29.4553 14.6306 29.5514 14.6681 29.6307 14.7307C29.71 14.7932 29.7689 14.8781 29.7999 14.9743C29.9176 15.2706 29.9886 15.5835 30.0103 15.9018C30.0406 17.3176 30.0494 18.7334 30.0366 20.1492C30.0339 21.5198 29.9113 22.8876 29.6702 24.2367C29.6505 24.367 29.6406 24.4985 29.6404 24.6302C29.6037 25.2189 29.4894 25.8001 29.3003 26.3587C29.125 26.9208 29.0181 27.5022 28.8112 28.0503C28.5868 28.651 28.3178 29.2341 28.0065 29.7946C27.3364 30.9887 26.4861 32.0719 25.4856 33.0056C24.3788 34.0306 23.1204 34.8779 21.7551 35.5175C21.0223 35.8689 20.2738 36.1921 19.5147 36.4784C19.428 36.5111 19.3259 36.5155 19.2202 36.5043M19.2202 10.8086V36.5043M18.8134 36.4099C18.9376 36.4487 19.082 36.4898 19.2202 36.5043", stroke: "#242424", strokeWidth: "1.6" })
|
|
135
|
+
] }),
|
|
136
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_14971_6395", children: /* @__PURE__ */ e("rect", { width: "40", height: "40", fill: "white" }) }) })
|
|
137
|
+
] }), x1 = ({
|
|
138
|
+
typeChart: s,
|
|
139
|
+
activeColumn: a,
|
|
140
|
+
series: o,
|
|
141
|
+
months: d,
|
|
142
|
+
name: t,
|
|
143
|
+
dayOfWeek: l = [],
|
|
144
|
+
colors: u,
|
|
145
|
+
textColors: f,
|
|
146
|
+
avgQuestionLastMonth: b,
|
|
147
|
+
studentCount: h,
|
|
148
|
+
studentPercentage: m,
|
|
149
|
+
responseStudent: L,
|
|
150
|
+
classFontSize: _,
|
|
151
|
+
avgContent: T,
|
|
152
|
+
print: $,
|
|
153
|
+
width: n1,
|
|
154
|
+
height: i1,
|
|
155
|
+
titleClassFontSize: o1,
|
|
156
|
+
min: D,
|
|
157
|
+
hiddenKpi: l1,
|
|
158
|
+
timeOfDay: c1,
|
|
159
|
+
weeklySeries: I,
|
|
160
|
+
weeks: Z = [],
|
|
161
|
+
description: E,
|
|
162
|
+
skillClass: U,
|
|
163
|
+
kpiClassName: d1,
|
|
164
|
+
lowMetricStudents: B = [],
|
|
165
|
+
studentMetricPercent: h1,
|
|
166
|
+
noGradient: m1,
|
|
167
|
+
setOptionDate: u1,
|
|
168
|
+
stressValue: H,
|
|
169
|
+
noAvgTotal: C1,
|
|
170
|
+
onActiveColumn: z,
|
|
171
|
+
loadingComplete: v = !0,
|
|
172
|
+
optionDate: O,
|
|
173
|
+
onBeforeViewCheckIn: P,
|
|
174
|
+
interventionLogs: g1
|
|
175
|
+
}) => {
|
|
176
|
+
const { t: g } = G(), [p, N1] = s1("Monthly"), $1 = b1((n) => n?.common?.user).roles.includes("Student"), C = k(() => p != "Monthly" || $ && O != "Monthly" ? I || [] : o, [o, I, p, O, $]), W = k(() => p != "Monthly" || $ && O != "Monthly" ? Z : d, [p, d, Z, O, $]), f1 = k(() => C.map((n) => {
|
|
177
|
+
const N = b.find(
|
|
178
|
+
(Q) => Q.questionText.toLowerCase().includes(n.name.toLowerCase())
|
|
179
|
+
);
|
|
180
|
+
if (N)
|
|
181
|
+
return N.avgQuestionResponse - N.avgQuestionResponseLastMonth;
|
|
182
|
+
const R = n?.data.reduce((Q, y1) => Q + y1, 0);
|
|
183
|
+
return n?.data?.length > 0 ? R / n.data.length : 0;
|
|
184
|
+
}), [C, b]), A = k(() => C.filter((n, N) => a[N]).map((n) => ({
|
|
185
|
+
data: n.data,
|
|
186
|
+
name: n.questionTranslation || n.name,
|
|
187
|
+
questionTranslation: n.questionTranslation ?? ""
|
|
188
|
+
})), [C, a]), Y = k(() => C.map((n) => n.data[0] || 0), [C]), p1 = k(
|
|
189
|
+
() => C.map((n) => n.name.charAt(0).toUpperCase() + n.name.slice(1)),
|
|
190
|
+
[C]
|
|
191
|
+
), L1 = (t === g(F) || t === g(V) || t === g(S)) && 6, M1 = t === g(F) && 6 || (t === g(V) || t === g(e1)) && 4 || t === g(S) && 12, k1 = (t === g(F) || t === g(V) || t === g(S) || t === g(e1)) && "auto", K = (n) => n.length === 0 ? 0 : n.reduce((N, R) => N + R) / n.length;
|
|
192
|
+
return /* @__PURE__ */ i(c, { className: `${r["generate-chart"]} ${r[_]}`, children: [
|
|
193
|
+
(q === t || w === t) && /* @__PURE__ */ i("div", { className: r["icon-safety-and-stress"], children: [
|
|
194
|
+
q === t && /* @__PURE__ */ e(j1, {}),
|
|
195
|
+
w === t && /* @__PURE__ */ e(V1, {})
|
|
196
|
+
] }),
|
|
197
|
+
!$ && /* @__PURE__ */ i(c, { className: `${r["header-chart-generate"]}`, children: [
|
|
198
|
+
/* @__PURE__ */ e(y, { className: `${o1 || r["title-chart"]}`, children: g(t) }),
|
|
199
|
+
!C1 && C?.[0]?.description?.length > 0 && t !== j && (v ? /* @__PURE__ */ e(
|
|
200
|
+
a1,
|
|
201
|
+
{
|
|
202
|
+
label: r1(
|
|
203
|
+
(w === t || q === t ? K(H ?? []) : C[0].data[0]) || 0,
|
|
204
|
+
C[0].description,
|
|
205
|
+
t === w
|
|
206
|
+
),
|
|
207
|
+
valueData: (w === t || q === t ? K(H ?? []) : C[0].data[0]) || 0,
|
|
208
|
+
value: f1[0] || 0,
|
|
209
|
+
isStress: t == w,
|
|
210
|
+
timeOfDay: c1,
|
|
211
|
+
loadingComplete: v
|
|
212
|
+
}
|
|
213
|
+
) : /* @__PURE__ */ e(J, {}))
|
|
214
|
+
] }),
|
|
215
|
+
!$ && E && /* @__PURE__ */ e(y, { className: `${r["header-chart-description"]}`, children: g(E) }),
|
|
216
|
+
!v && /* @__PURE__ */ e("div", { style: { width: "100%", height: 400, display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(J, {}) }),
|
|
217
|
+
v && /* @__PURE__ */ i(X, { children: [
|
|
218
|
+
/* @__PURE__ */ i(c, { className: `${r["kpi-module"]} ${r[d1 ?? ""]}`, children: [
|
|
219
|
+
!$ && /* @__PURE__ */ e(
|
|
220
|
+
c,
|
|
221
|
+
{
|
|
222
|
+
className: `${r["box-model-student-skill"]} ${r[U ?? ""]}`,
|
|
223
|
+
hidden: !h && h != 0 || $1 || C.length == 0 || t === j,
|
|
224
|
+
children: /* @__PURE__ */ e(
|
|
225
|
+
v1,
|
|
226
|
+
{
|
|
227
|
+
studentCount: h,
|
|
228
|
+
studentPercentage: m,
|
|
229
|
+
name: t,
|
|
230
|
+
responseStudent: L,
|
|
231
|
+
onBeforeViewCheckIn: P
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
}
|
|
235
|
+
),
|
|
236
|
+
/* @__PURE__ */ e(
|
|
237
|
+
c,
|
|
238
|
+
{
|
|
239
|
+
className: `${r["box-model-student-skill"]} ${r[U ?? ""]}`,
|
|
240
|
+
hidden: t !== j,
|
|
241
|
+
children: /* @__PURE__ */ e(
|
|
242
|
+
F1,
|
|
243
|
+
{
|
|
244
|
+
lowMetricStudents: B,
|
|
245
|
+
percent: h1 || 0,
|
|
246
|
+
isPrint: $,
|
|
247
|
+
onBeforeViewCheckIn: P
|
|
248
|
+
}
|
|
249
|
+
)
|
|
250
|
+
}
|
|
251
|
+
),
|
|
252
|
+
!l1 && /* @__PURE__ */ e(c, { className: `${r.listItem} ${r["ml-10"]}`, children: C.map((n, N) => $ && !a[N] ? null : /* @__PURE__ */ i(
|
|
253
|
+
c,
|
|
254
|
+
{
|
|
255
|
+
item: !0,
|
|
256
|
+
xs: L1,
|
|
257
|
+
sm: M1,
|
|
258
|
+
lg: k1,
|
|
259
|
+
hidden: !n.name,
|
|
260
|
+
className: `${r["item-checkbox"]}`,
|
|
261
|
+
children: [
|
|
262
|
+
!!z && /* @__PURE__ */ e("div", { className: `${r["box-checkbox"]}`, children: /* @__PURE__ */ e(
|
|
263
|
+
W1,
|
|
264
|
+
{
|
|
265
|
+
isActive: !!a[N],
|
|
266
|
+
onClick: () => z?.(N, t)
|
|
267
|
+
}
|
|
268
|
+
) }),
|
|
269
|
+
/* @__PURE__ */ i(c, { className: `${r["item-detail"]}`, children: [
|
|
270
|
+
/* @__PURE__ */ i(c, { className: `${r.question}`, children: [
|
|
271
|
+
/* @__PURE__ */ e(
|
|
272
|
+
c,
|
|
273
|
+
{
|
|
274
|
+
className: `${r["point-custom"]}`,
|
|
275
|
+
style: { backgroundColor: u[N] }
|
|
276
|
+
}
|
|
277
|
+
),
|
|
278
|
+
/* @__PURE__ */ e("label", { className: `${r["label-chart"]}`, children: n.questionTranslation || n.name })
|
|
279
|
+
] }),
|
|
280
|
+
/* @__PURE__ */ e(y, { className: `${r["avr-question"]}`, children: J1(n.data, D == -100, T) ?? 0 })
|
|
281
|
+
] })
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
N
|
|
285
|
+
)) }),
|
|
286
|
+
!!I && !$ && /* @__PURE__ */ e(c, { className: `${r["label-options"]}`, children: _1.map((n) => /* @__PURE__ */ e(
|
|
287
|
+
y,
|
|
288
|
+
{
|
|
289
|
+
onClick: () => {
|
|
290
|
+
N1?.(n), u1?.(n);
|
|
291
|
+
},
|
|
292
|
+
className: `${r["option-item"]} ${p == n ? r.selected : r["no-selected"]}`,
|
|
293
|
+
children: n
|
|
294
|
+
},
|
|
295
|
+
n
|
|
296
|
+
)) })
|
|
297
|
+
] }),
|
|
298
|
+
/* @__PURE__ */ i(
|
|
299
|
+
c,
|
|
300
|
+
{
|
|
301
|
+
className: `${$ ? `w-100 d-flex justify-content-center ${s == "donut" ? "" : r["print-chart"]}` : ""}`,
|
|
302
|
+
style: { position: "relative" },
|
|
303
|
+
children: [
|
|
304
|
+
s == "area" && /* @__PURE__ */ e(
|
|
305
|
+
S1,
|
|
306
|
+
{
|
|
307
|
+
isCountSeries: !!T,
|
|
308
|
+
months: W,
|
|
309
|
+
activeColumn: a,
|
|
310
|
+
series: A,
|
|
311
|
+
dayOfWeek: l,
|
|
312
|
+
colors: u,
|
|
313
|
+
min: D,
|
|
314
|
+
noGradient: m1,
|
|
315
|
+
interventionLogs: g1
|
|
316
|
+
},
|
|
317
|
+
p
|
|
318
|
+
),
|
|
319
|
+
s == "line" && /* @__PURE__ */ e(
|
|
320
|
+
O1,
|
|
321
|
+
{
|
|
322
|
+
months: W,
|
|
323
|
+
activeColumn: a,
|
|
324
|
+
series: A,
|
|
325
|
+
dayOfWeek: l,
|
|
326
|
+
colors: u
|
|
327
|
+
},
|
|
328
|
+
p
|
|
329
|
+
),
|
|
330
|
+
s == "donut" && /* @__PURE__ */ i(X, { children: [
|
|
331
|
+
/* @__PURE__ */ e(
|
|
332
|
+
w1,
|
|
333
|
+
{
|
|
334
|
+
isCountSeries: !!T,
|
|
335
|
+
series: Y,
|
|
336
|
+
colors: t === S ? u.reverse() : u,
|
|
337
|
+
textColors: f,
|
|
338
|
+
label: p1,
|
|
339
|
+
width: n1,
|
|
340
|
+
height: i1,
|
|
341
|
+
hasTooltip: t !== S
|
|
342
|
+
},
|
|
343
|
+
p
|
|
344
|
+
),
|
|
345
|
+
t === S && /* @__PURE__ */ i("div", { className: r["data-overall-readline-value-yes"], children: [
|
|
346
|
+
/* @__PURE__ */ i("p", { children: [
|
|
347
|
+
"Yes: ",
|
|
348
|
+
(Y?.[0] || 0).toFixed(1),
|
|
349
|
+
"%"
|
|
350
|
+
] }),
|
|
351
|
+
/* @__PURE__ */ e("span", { children: "of student" })
|
|
352
|
+
] })
|
|
353
|
+
] }),
|
|
354
|
+
s == "bar" && /* @__PURE__ */ e(
|
|
355
|
+
q1,
|
|
356
|
+
{
|
|
357
|
+
series: A,
|
|
358
|
+
activeColumn: a,
|
|
359
|
+
dayOfWeek: l,
|
|
360
|
+
months: W,
|
|
361
|
+
colors: u,
|
|
362
|
+
print: $,
|
|
363
|
+
isCountSeries: !0,
|
|
364
|
+
lowMetricStudents: B,
|
|
365
|
+
labelDate: p,
|
|
366
|
+
onBeforeViewCheckIn: P
|
|
367
|
+
},
|
|
368
|
+
p
|
|
369
|
+
)
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
)
|
|
373
|
+
] })
|
|
374
|
+
] }, t);
|
|
375
|
+
};
|
|
376
|
+
function D1(s, a) {
|
|
377
|
+
return s.name === a.name && s.typeChart === a.typeChart && s.print === a.print && JSON.stringify(s.dayOfWeek) === JSON.stringify(a.dayOfWeek) && s.lowMetricStudents === a.lowMetricStudents && s.studentMetricPercent === a.studentMetricPercent && JSON.stringify(s.series) === JSON.stringify(a.series) && JSON.stringify(s.weeklySeries) === JSON.stringify(a.weeklySeries) && JSON.stringify(s.activeColumn) === JSON.stringify(a.activeColumn) && JSON.stringify(s.avgQuestionLastMonth) === JSON.stringify(a.avgQuestionLastMonth) && JSON.stringify(s.lowMetricStudents) === JSON.stringify(a.lowMetricStudents) && s.studentCount === a.studentCount && s.studentPercentage === a.studentPercentage && JSON.stringify(s.responseStudent) === JSON.stringify(a.responseStudent) && s.timeOfDay === a.timeOfDay && s.stressValue === a.stressValue && s.loadingComplete === a.loadingComplete && s.interventionLogs === a.interventionLogs;
|
|
378
|
+
}
|
|
379
|
+
const m2 = x(x1, D1), Z1 = ({
|
|
380
|
+
iconSrc: s,
|
|
381
|
+
label: a,
|
|
382
|
+
value: o,
|
|
383
|
+
loadingComplete: d = !0,
|
|
384
|
+
customClassName: t,
|
|
385
|
+
handleOpenModal: l,
|
|
386
|
+
customClassNameBootStrap: u
|
|
387
|
+
}) => {
|
|
388
|
+
const { t: f } = G();
|
|
389
|
+
return /* @__PURE__ */ i(c, { className: `${r["total-item"]} ${r[t || ""]} ${u || ""}`, children: [
|
|
390
|
+
/* @__PURE__ */ i(c, { className: `${r["total-item-content"]}`, children: [
|
|
391
|
+
/* @__PURE__ */ e(
|
|
392
|
+
"div",
|
|
393
|
+
{
|
|
394
|
+
className: `${r["total-item-name"]}`,
|
|
395
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
396
|
+
}
|
|
397
|
+
),
|
|
398
|
+
d ? /* @__PURE__ */ i("div", { className: `${r["total-item-value"]}`, children: [
|
|
399
|
+
o,
|
|
400
|
+
!!l && Number(o) > 0 && /* @__PURE__ */ i(
|
|
401
|
+
"button",
|
|
402
|
+
{
|
|
403
|
+
type: "button",
|
|
404
|
+
className: `${r["total-item-btn"]}`,
|
|
405
|
+
onClick: () => l?.(),
|
|
406
|
+
children: [
|
|
407
|
+
f("see_them"),
|
|
408
|
+
/* @__PURE__ */ e(A1, {})
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
)
|
|
412
|
+
] }) : /* @__PURE__ */ e(J, { size: 24 })
|
|
413
|
+
] }),
|
|
414
|
+
s && /* @__PURE__ */ e(
|
|
415
|
+
"img",
|
|
416
|
+
{
|
|
417
|
+
className: `${r["total-item-icon"]}`,
|
|
418
|
+
src: `/images/${s}`,
|
|
419
|
+
alt: ""
|
|
420
|
+
}
|
|
421
|
+
)
|
|
422
|
+
] });
|
|
423
|
+
}, u2 = x(Z1), E1 = ({
|
|
424
|
+
series: s,
|
|
425
|
+
avgQuestionLastMonth: a,
|
|
426
|
+
icons: o,
|
|
427
|
+
className: d,
|
|
428
|
+
noAvgText: t,
|
|
429
|
+
timeOfDay: l,
|
|
430
|
+
loadingComplete: u
|
|
431
|
+
}) => {
|
|
432
|
+
const { t: f } = G(), b = k(() => s.map((h) => {
|
|
433
|
+
const m = h?.data.reduce((L, _) => L + _, 0);
|
|
434
|
+
return h.data.length > 0 ? m / h.data.length : 0;
|
|
435
|
+
}), [s]);
|
|
436
|
+
return /* @__PURE__ */ e(c, { className: `${r["trend-question-list"]}`, children: s.map((h, m) => {
|
|
437
|
+
const L = a.find(
|
|
438
|
+
(T) => T.questionText?.toLowerCase()?.includes(h.name?.toLowerCase())
|
|
439
|
+
), _ = L ? L.avgQuestionResponse - L.avgQuestionResponseLastMonth : 0;
|
|
440
|
+
return /* @__PURE__ */ i(
|
|
441
|
+
c,
|
|
442
|
+
{
|
|
443
|
+
className: `${r["trend-question-item"]}`,
|
|
444
|
+
children: [
|
|
445
|
+
/* @__PURE__ */ i(c, { className: `${r["trend-item-header"]}`, children: [
|
|
446
|
+
/* @__PURE__ */ e(
|
|
447
|
+
"div",
|
|
448
|
+
{
|
|
449
|
+
className: `${r["trend-item-title"]}`,
|
|
450
|
+
dangerouslySetInnerHTML: { __html: `${t ? "" : f("average")} ${h.questionTranslation || h.name}` }
|
|
451
|
+
}
|
|
452
|
+
),
|
|
453
|
+
/* @__PURE__ */ e(
|
|
454
|
+
"img",
|
|
455
|
+
{
|
|
456
|
+
className: `${r["trend-item-icon"]} ${r[d || ""]}`,
|
|
457
|
+
src: `/images/${o[m]}`,
|
|
458
|
+
alt: "icon"
|
|
459
|
+
}
|
|
460
|
+
)
|
|
461
|
+
] }),
|
|
462
|
+
/* @__PURE__ */ e(
|
|
463
|
+
a1,
|
|
464
|
+
{
|
|
465
|
+
label: G1(r1(h?.data?.[0] || 0, h.description) || ""),
|
|
466
|
+
value: _ || 0,
|
|
467
|
+
valueData: b[m] || 0,
|
|
468
|
+
timeOfDay: l,
|
|
469
|
+
loadingComplete: u
|
|
470
|
+
}
|
|
471
|
+
)
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
h.name
|
|
475
|
+
);
|
|
476
|
+
}) });
|
|
477
|
+
}, C2 = x(E1), g2 = ({ opacity: s = 1, color: a = "#242424" }) => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("path", { opacity: s, d: "M8 10L3.5 6H12.5L8 10Z", fill: a }) });
|
|
478
|
+
export {
|
|
479
|
+
g2 as A,
|
|
480
|
+
h2 as C,
|
|
481
|
+
m2 as G,
|
|
482
|
+
u2 as T,
|
|
483
|
+
C2 as a
|
|
484
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("@mui/material"),p=require("./styles.module-CHKJJ8Zm.cjs"),g=require("react"),a=require("./plp.module-BMy_AJUh.cjs"),ge=require("react-redux"),v=require("mario-core"),Z=require("./OverallDonutChart-H9IRH4Ez.cjs"),i=require("./constants-AmXlyc2R.cjs"),k=require("./LineChart-D9Z00KAU.cjs"),B=require("./constantsFn-DMEZ5_K5.cjs"),ye=require("./Error-DBu0pm35.cjs"),xe=require("./CheckCircle-DSTZHLj-.cjs"),E=require("./utils-CeXUFMko.cjs"),je=require("./CheckboxCustom-ZjvBGVzS.cjs"),T=require("./Loading-CHowA_dQ.cjs"),Ne=require("./ArrowRightIcon-D2CQJfsL.cjs"),Le=({options:t,value:r,onChange:o,disabled:d=!1,customClassName:s})=>e.jsxs(l.Grid,{className:`${p.styles["calendar-select"]} ${p.styles[s||""]}`,children:[e.jsx(l.Typography,{className:p.styles["calendar-label"],children:"Filter by date"}),e.jsx(l.Grid,{className:p.styles["calendar-options"],children:t.map(c=>e.jsx(l.Typography,{onClick:()=>!d&&o?.(c),className:`${p.styles["option-item"]} ${r==c.value?p.styles.selected:p.styles["no-selected"]}`,children:c.label},c.value))})]}),$e=t=>t.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,(r,o,d,s)=>`rgba(${o}, ${d}, ${s}, 0.6)`),pe=(t,r=!1)=>{const o=["rgba(196, 65, 64, 0.24)","rgba(255, 176, 79, 0.24)","rgba(255, 208, 40, 0.24)","rgba(169, 214, 96, 0.24)","rgba(15, 150, 85, 0.24)"];if(r){if(t<=-60||t>=60)return o[0];if(t>=-60&&t<-20)return o[3];if(t>=-20&&t<20)return o[4];if(t>=20&&t<60)return o[2]}const d=Math.max(0,Math.min(100,t)),s=100/o.length;let c=Math.floor(d/s);return c=Math.min(c,o.length-1),o[c]},H=({value:t,label:r,isStress:o,timeOfDay:d,valueData:s,loadingComplete:c=!0})=>{const m=$e(pe(s||0,o)),N=r?`${r} |`:"";return e.jsxs(l.Grid,{className:`${a.styles["graph-trend"]}`,children:[c?e.jsx(l.Typography,{style:{backgroundColor:m},className:`${a.styles["graph-label"]}`,children:`${N} ${(s||0)?.toFixed(2)}%`}):e.jsx(T.Loading,{}),d&&e.jsx("img",{src:`/images/${t<0?"trend-down.png":"trend-up.png"}`,alt:"Graph Trend Icon"})]})},fe=({percent:t,lowMetricStudents:r=[],isPrint:o=!1,onBeforeViewCheckIn:d})=>{const{t:s}=v.useTranslation(),[c,m]=g.useState(!1),N=()=>{m(!c)},f=k.uniq(r?.filter(u=>u.matchedGroupNames.includes("Not Ready to Learn"))?.map(u=>u.studentName)).length||0,h=k.uniq(r?.filter(u=>u.matchedGroupNames.includes("Success")||u.matchedGroupNames.includes("Readiness"))?.map(u=>u.studentName)).length||0;return e.jsxs(l.Grid,{className:`${a.styles["static-metric"]} ${a.styles[r?.length===0?"green-background":"red-background"]}`,children:[r?.length===0?e.jsx(xe.CheckCircleIcon,{className:`${a.styles["check-icon"]}`}):e.jsx(ye.ErrorIcon,{className:`${a.styles["warning-icon"]}`}),r?.length===0?e.jsx("div",{children:s("all_students_have_good_metrics")}):e.jsxs("div",{className:a.styles["static-metric__container"],children:[e.jsxs("div",{children:[e.jsx("b",{children:`${t.toFixed(2)}%`})," ",s("of_students_have_concerned_metrics")," ",!o&&e.jsxs("b",{className:`${a.styles.link}`,onClick:()=>N(),children:["(",s("see_them"),")"]})]}),e.jsxs("div",{children:[e.jsx("b",{children:`${f} ${s("students")}`})," ",s("are_not_ready_to_learn"),","," ",e.jsx("b",{children:`${h} ${s("students")}`})," ",s("have_metrics_40")]})]}),!o&&e.jsx(k.MetricModelStudent,{lowMetricStudents:r,handleToggleModel:N,openModel:c,onBeforeViewCheckIn:d})]})},ke=()=>e.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"24.9521",cy:"25.943",r:"12.2047",fill:"white",stroke:"#242424",strokeWidth:"1.6"}),e.jsx("path",{d:"M32.1831 16.1109C30.1591 14.6197 27.658 13.7385 24.9512 13.7385C20.4316 13.7385 16.4858 16.1951 14.3762 19.846C13.3396 21.64 12.7464 23.7223 12.7464 25.9432C16.174 26.6908 24.8599 25.7709 32.1831 16.1109Z",fill:"#C44140"}),e.jsx("path",{d:"M12.7464 25.9432C16.174 26.6908 24.8599 25.7709 32.1831 16.1109C30.1591 14.6197 27.658 13.7385 24.9512 13.7385C20.4316 13.7385 16.4858 16.1951 14.3762 19.846C13.3396 21.64 12.7464 23.7223 12.7464 25.9432ZM12.7464 25.9432L13.7157 31.0541",stroke:"#242424",strokeWidth:"1.6"}),e.jsx("path",{d:"M35.0033 32.457C33.9026 31.3239 30.3194 29.4838 27.1494 31.0636",stroke:"#242424",strokeWidth:"1.6",strokeLinecap:"round"}),e.jsx("path",{d:"M2.84277 14.5371L6.56435 17.4966C6.79541 17.6803 7.13909 17.559 7.20364 17.2709L7.88551 14.2275C7.95006 13.9394 8.29374 13.8181 8.5248 14.0018L12.5278 17.1851",stroke:"#242424",strokeWidth:"1.6"}),e.jsx("path",{d:"M11.6611 4.42773L13.3372 8.87738C13.4412 9.15364 13.7985 9.22586 14.0017 9.0117L16.1485 6.74917C16.3517 6.53501 16.7089 6.60722 16.8129 6.88349L18.6158 11.6697",stroke:"#242424",strokeWidth:"1.6"}),e.jsx("path",{d:"M24.3058 1.85364L23.8326 6.59318C23.8034 6.8849 24.0876 7.10781 24.364 7.01001L27.4233 5.92739C27.6997 5.82959 27.9839 6.05249 27.9548 6.34421L27.4459 11.4416",stroke:"#242424",strokeWidth:"1.6"})]}),Me=()=>e.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("g",{clipPath:"url(#clip0_14971_6395)",children:[e.jsx("path",{d:"M37.7857 8.62683L36.3306 10.8095L37.7857 12.9921M37.7857 8.62683V12.9921M37.7857 8.62683L39.2408 10.8095L37.7857 12.9921",stroke:"#242424",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M1.98141 26.75L0.759216 28.5833L1.98141 30.4166M1.98141 26.75V30.4166M1.98141 26.75L3.20361 28.5833L1.98141 30.4166",stroke:"#242424",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M31.9033 3.48816L30.6811 5.32146L31.9033 7.15476M31.9033 3.48816V7.15476M31.9033 3.48816L33.1255 5.32146L31.9033 7.15476",stroke:"#242424",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8.43676 18.6139C8.43676 17.7971 8.42098 16.9786 8.43676 16.1547C8.45418 15.8087 8.50763 15.4655 8.59627 15.1306C8.68743 14.7512 8.85225 14.637 9.23617 14.6036C10.0163 14.5404 10.7999 14.5035 11.5765 14.4087C12.0909 14.33 12.6006 14.2233 13.1034 14.089C13.3944 14.0205 13.6749 13.894 13.9677 13.8501C14.4778 13.771 14.9091 13.4988 15.3701 13.3003C16.4538 12.81 17.4434 12.1335 18.2943 11.3013C18.4542 11.1587 18.6308 11.036 18.8202 10.9359C18.941 10.853 19.084 10.8086 19.2304 10.8086C19.3768 10.8086 19.5198 10.853 19.6406 10.9359C19.8593 11.0708 20.0653 11.2254 20.2559 11.3979C20.9967 12.0849 21.8214 12.6751 22.7102 13.1545C23.2682 13.4441 23.856 13.6721 24.4633 13.8343C25.1347 14.0433 25.8184 14.2154 26.5074 14.3612C26.91 14.4195 27.3156 14.4546 27.7223 14.4666C28.271 14.5141 28.8179 14.5738 29.3649 14.623C29.4655 14.6306 29.5616 14.6681 29.6409 14.7307C29.7202 14.7932 29.7791 14.8781 29.8101 14.9743C29.9278 15.2706 29.9988 15.5835 30.0205 15.9018C30.0509 17.3176 30.0597 18.7334 30.0468 20.1492C30.0441 21.5198 29.9215 22.8876 29.6804 24.2367C29.6608 24.367 29.6508 24.4985 29.6506 24.6302C29.614 25.2189 29.4996 25.8001 29.3105 26.3587C29.1352 26.9208 29.0283 27.5022 28.8214 28.0503C28.597 28.651 28.328 29.2341 28.0168 29.7946C27.3467 30.9887 26.4963 32.0719 25.4959 33.0056C24.389 34.0306 23.1306 34.8779 21.7653 35.5175C21.0326 35.8689 20.284 36.1921 19.5249 36.4784C19.3251 36.5539 19.0428 36.4784 18.8237 36.4099C18.3611 36.2612 17.9065 36.0888 17.4615 35.8935C17.0018 35.6971 16.5535 35.4748 16.1187 35.2277C15.3719 34.7886 14.6216 34.3494 13.9186 33.847C13.4424 33.4838 12.9983 33.0801 12.5915 32.6403C11.8769 31.9517 11.2594 31.1686 10.7561 30.3128C10.4163 29.7343 10.1113 29.136 9.84272 28.5211C9.5745 27.8606 9.40621 27.1615 9.18181 26.4817C8.97193 25.8103 8.84247 25.1162 8.79615 24.4142C8.72252 23.5007 8.57875 22.5926 8.47006 21.6827C8.44937 21.5236 8.43826 21.3635 8.43676 21.2031C8.43676 20.3407 8.43676 19.4799 8.43676 18.6192V18.6139Z",fill:"white",stroke:"#242424",strokeWidth:"1.6"}),e.jsx("path",{d:"M19.6304 10.9359C19.5096 10.853 19.3666 10.8086 19.2202 10.8086V36.5043C19.3259 36.5155 19.428 36.5111 19.5147 36.4784C20.2738 36.1921 21.0223 35.8689 21.7551 35.5175C23.1204 34.8779 24.3788 34.0306 25.4856 33.0056C26.4861 32.0719 27.3364 30.9887 28.0065 29.7946C28.3178 29.2341 28.5868 28.651 28.8112 28.0503C29.0181 27.5022 29.125 26.9208 29.3003 26.3587C29.4894 25.8001 29.6037 25.2189 29.6404 24.6302C29.6406 24.4985 29.6505 24.367 29.6702 24.2367C29.9113 22.8876 30.0339 21.5198 30.0366 20.1492C30.0494 18.7334 30.0406 17.3176 30.0103 15.9018C29.9886 15.5835 29.9176 15.2706 29.7999 14.9743C29.7689 14.8781 29.71 14.7932 29.6307 14.7307C29.5514 14.6681 29.4553 14.6306 29.3546 14.623C28.8077 14.5738 28.2607 14.5141 27.712 14.4666C27.3054 14.4546 26.8998 14.4195 26.4972 14.3612C25.8082 14.2154 25.1245 14.0433 24.453 13.8343C23.8458 13.6721 23.258 13.4441 22.7 13.1545C21.8111 12.6751 20.9865 12.0849 20.2457 11.3979C20.0551 11.2254 19.8491 11.0708 19.6304 10.9359Z",fill:"#0F9655"}),e.jsx("path",{d:"M18.8099 10.9359C18.9307 10.853 19.0737 10.8086 19.2202 10.8086M19.2202 10.8086C19.3666 10.8086 19.5096 10.853 19.6304 10.9359C19.8491 11.0708 20.0551 11.2254 20.2457 11.3979C20.9865 12.0849 21.8111 12.6751 22.7 13.1545C23.258 13.4441 23.8458 13.6721 24.453 13.8343C25.1245 14.0433 25.8082 14.2154 26.4972 14.3612C26.8998 14.4195 27.3054 14.4546 27.712 14.4666C28.2607 14.5141 28.8077 14.5738 29.3546 14.623C29.4553 14.6306 29.5514 14.6681 29.6307 14.7307C29.71 14.7932 29.7689 14.8781 29.7999 14.9743C29.9176 15.2706 29.9886 15.5835 30.0103 15.9018C30.0406 17.3176 30.0494 18.7334 30.0366 20.1492C30.0339 21.5198 29.9113 22.8876 29.6702 24.2367C29.6505 24.367 29.6406 24.4985 29.6404 24.6302C29.6037 25.2189 29.4894 25.8001 29.3003 26.3587C29.125 26.9208 29.0181 27.5022 28.8112 28.0503C28.5868 28.651 28.3178 29.2341 28.0065 29.7946C27.3364 30.9887 26.4861 32.0719 25.4856 33.0056C24.3788 34.0306 23.1204 34.8779 21.7551 35.5175C21.0223 35.8689 20.2738 36.1921 19.5147 36.4784C19.428 36.5111 19.3259 36.5155 19.2202 36.5043M19.2202 10.8086V36.5043M18.8134 36.4099C18.9376 36.4487 19.082 36.4898 19.2202 36.5043",stroke:"#242424",strokeWidth:"1.6"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_14971_6395",children:e.jsx("rect",{width:"40",height:"40",fill:"white"})})})]}),we=({typeChart:t,activeColumn:r,series:o,months:d,name:s,dayOfWeek:c=[],colors:m,textColors:N,avgQuestionLastMonth:f,studentCount:h,studentPercentage:u,responseStudent:$,classFontSize:M,avgContent:w,print:j,width:z,height:Y,titleClassFontSize:K,min:J,hiddenKpi:X,timeOfDay:ee,weeklySeries:G,weeks:P=[],description:F,skillClass:W,kpiClassName:se,lowMetricStudents:A=[],studentMetricPercent:te,noGradient:re,setOptionDate:ae,stressValue:Q,noAvgTotal:ne,onActiveColumn:D,loadingComplete:S=!0,optionDate:b,onBeforeViewCheckIn:q,interventionLogs:ie})=>{const{t:y}=v.useTranslation(),[L,le]=g.useState("Monthly"),oe=ge.useSelector(n=>n?.common?.user).roles.includes("Student"),C=g.useMemo(()=>L!="Monthly"||j&&b!="Monthly"?G||[]:o,[o,G,L,b,j]),_=g.useMemo(()=>L!="Monthly"||j&&b!="Monthly"?P:d,[L,d,P,b,j]),ce=g.useMemo(()=>C.map(n=>{const x=f.find(I=>I.questionText.toLowerCase().includes(n.name.toLowerCase()));if(x)return x.avgQuestionResponse-x.avgQuestionResponseLastMonth;const R=n?.data.reduce((I,Ce)=>I+Ce,0);return n?.data?.length>0?R/n.data.length:0}),[C,f]),O=g.useMemo(()=>C.filter((n,x)=>r[x]).map(n=>({data:n.data,name:n.questionTranslation||n.name,questionTranslation:n.questionTranslation??""})),[C,r]),V=g.useMemo(()=>C.map(n=>n.data[0]||0),[C]),de=g.useMemo(()=>C.map(n=>n.name.charAt(0).toUpperCase()+n.name.slice(1)),[C]),he=(s===y(i.readinessTrendName)||s===y(i.successIndicatorsName)||s===y(i.overallReadinessToLearnName))&&6,ue=s===y(i.readinessTrendName)&&6||(s===y(i.successIndicatorsName)||s===y(i.learningProcessName))&&4||s===y(i.overallReadinessToLearnName)&&12,me=(s===y(i.readinessTrendName)||s===y(i.successIndicatorsName)||s===y(i.overallReadinessToLearnName)||s===y(i.learningProcessName))&&"auto",U=n=>n.length===0?0:n.reduce((x,R)=>x+R)/n.length;return e.jsxs(l.Grid,{className:`${a.styles["generate-chart"]} ${a.styles[M]}`,children:[(i.averageSafetyName===s||i.averageStressName===s)&&e.jsxs("div",{className:a.styles["icon-safety-and-stress"],children:[i.averageSafetyName===s&&e.jsx(Me,{}),i.averageStressName===s&&e.jsx(ke,{})]}),!j&&e.jsxs(l.Grid,{className:`${a.styles["header-chart-generate"]}`,children:[e.jsx(l.Typography,{className:`${K||a.styles["title-chart"]}`,children:y(s)}),!ne&&C?.[0]?.description?.length>0&&s!==i.lowMetricName&&(S?e.jsx(H,{label:E.getDescriptionFromPercent((i.averageStressName===s||i.averageSafetyName===s?U(Q??[]):C[0].data[0])||0,C[0].description,s===i.averageStressName),valueData:(i.averageStressName===s||i.averageSafetyName===s?U(Q??[]):C[0].data[0])||0,value:ce[0]||0,isStress:s==i.averageStressName,timeOfDay:ee,loadingComplete:S}):e.jsx(T.Loading,{}))]}),!j&&F&&e.jsx(l.Typography,{className:`${a.styles["header-chart-description"]}`,children:y(F)}),!S&&e.jsx("div",{style:{width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(T.Loading,{})}),S&&e.jsxs(g.Fragment,{children:[e.jsxs(l.Grid,{className:`${a.styles["kpi-module"]} ${a.styles[se??""]}`,children:[!j&&e.jsx(l.Grid,{className:`${a.styles["box-model-student-skill"]} ${a.styles[W??""]}`,hidden:!h&&h!=0||oe||C.length==0||s===i.lowMetricName,children:e.jsx(k.ModelSkillStudent,{studentCount:h,studentPercentage:u,name:s,responseStudent:$,onBeforeViewCheckIn:q})}),e.jsx(l.Grid,{className:`${a.styles["box-model-student-skill"]} ${a.styles[W??""]}`,hidden:s!==i.lowMetricName,children:e.jsx(fe,{lowMetricStudents:A,percent:te||0,isPrint:j,onBeforeViewCheckIn:q})}),!X&&e.jsx(l.Grid,{className:`${a.styles.listItem} ${a.styles["ml-10"]}`,children:C.map((n,x)=>j&&!r[x]?null:e.jsxs(l.Grid,{item:!0,xs:he,sm:ue,lg:me,hidden:!n.name,className:`${a.styles["item-checkbox"]}`,children:[!!D&&e.jsx("div",{className:`${a.styles["box-checkbox"]}`,children:e.jsx(je.CheckboxCustom,{isActive:!!r[x],onClick:()=>D?.(x,s)})}),e.jsxs(l.Grid,{className:`${a.styles["item-detail"]}`,children:[e.jsxs(l.Grid,{className:`${a.styles.question}`,children:[e.jsx(l.Grid,{className:`${a.styles["point-custom"]}`,style:{backgroundColor:m[x]}}),e.jsx("label",{className:`${a.styles["label-chart"]}`,children:n.questionTranslation||n.name})]}),e.jsx(l.Typography,{className:`${a.styles["avr-question"]}`,children:B.handleGenerateAvgQuestion(n.data,J==-100,w)??0})]})]},x))}),!!G&&!j&&e.jsx(l.Grid,{className:`${a.styles["label-options"]}`,children:i.optionLabelDate.map(n=>e.jsx(l.Typography,{onClick:()=>{le?.(n),ae?.(n)},className:`${a.styles["option-item"]} ${L==n?a.styles.selected:a.styles["no-selected"]}`,children:n},n))})]}),e.jsxs(l.Grid,{className:`${j?`w-100 d-flex justify-content-center ${t=="donut"?"":a.styles["print-chart"]}`:""}`,style:{position:"relative"},children:[t=="area"&&e.jsx(Z.AreaChart,{isCountSeries:!!w,months:_,activeColumn:r,series:O,dayOfWeek:c,colors:m,min:J,noGradient:re,interventionLogs:ie},L),t=="line"&&e.jsx(k.LineChart,{months:_,activeColumn:r,series:O,dayOfWeek:c,colors:m},L),t=="donut"&&e.jsxs(g.Fragment,{children:[e.jsx(Z.OverallDonutChart,{isCountSeries:!!w,series:V,colors:s===i.overallReadinessToLearnName?m.reverse():m,textColors:N,label:de,width:z,height:Y,hasTooltip:s!==i.overallReadinessToLearnName},L),s===i.overallReadinessToLearnName&&e.jsxs("div",{className:a.styles["data-overall-readline-value-yes"],children:[e.jsxs("p",{children:["Yes: ",(V?.[0]||0).toFixed(1),"%"]}),e.jsx("span",{children:"of student"})]})]}),t=="bar"&&e.jsx(k.BarChart,{series:O,activeColumn:r,dayOfWeek:c,months:_,colors:m,print:j,isCountSeries:!0,lowMetricStudents:A,labelDate:L,onBeforeViewCheckIn:q},L)]})]})]},s)};function Se(t,r){return t.name===r.name&&t.typeChart===r.typeChart&&t.print===r.print&&JSON.stringify(t.dayOfWeek)===JSON.stringify(r.dayOfWeek)&&t.lowMetricStudents===r.lowMetricStudents&&t.studentMetricPercent===r.studentMetricPercent&&JSON.stringify(t.series)===JSON.stringify(r.series)&&JSON.stringify(t.weeklySeries)===JSON.stringify(r.weeklySeries)&&JSON.stringify(t.activeColumn)===JSON.stringify(r.activeColumn)&&JSON.stringify(t.avgQuestionLastMonth)===JSON.stringify(r.avgQuestionLastMonth)&&JSON.stringify(t.lowMetricStudents)===JSON.stringify(r.lowMetricStudents)&&t.studentCount===r.studentCount&&t.studentPercentage===r.studentPercentage&&JSON.stringify(t.responseStudent)===JSON.stringify(r.responseStudent)&&t.timeOfDay===r.timeOfDay&&t.stressValue===r.stressValue&&t.loadingComplete===r.loadingComplete&&t.interventionLogs===r.interventionLogs}const be=g.memo(we,Se),Te=({iconSrc:t,label:r,value:o,loadingComplete:d=!0,customClassName:s,handleOpenModal:c,customClassNameBootStrap:m})=>{const{t:N}=v.useTranslation();return e.jsxs(l.Grid,{className:`${a.styles["total-item"]} ${a.styles[s||""]} ${m||""}`,children:[e.jsxs(l.Grid,{className:`${a.styles["total-item-content"]}`,children:[e.jsx("div",{className:`${a.styles["total-item-name"]}`,dangerouslySetInnerHTML:{__html:r}}),d?e.jsxs("div",{children:[e.jsxs("div",{className:`${a.styles["total-item-value"]}`,children:[o,!!c&&Number(o)>0&&r.toLocaleLowerCase().indexOf("check-ins")<0&&e.jsxs("button",{type:"button",className:`${a.styles["total-item-btn"]}`,onClick:()=>c?.(),children:[N("see_them"),e.jsx(Ne.ArrowRightIcon,{})]})]}),!!c&&Number(o)>0&&r.toLocaleLowerCase().indexOf("check-ins")>=0&&e.jsxs("button",{type:"button",className:`${a.styles["total-item-btn"]}`,onClick:()=>c?.(),children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[e.jsx("rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}),e.jsx("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]}),N("send_reminder")]})]}):e.jsx(T.Loading,{size:24})]}),t&&e.jsx("img",{className:`${a.styles["total-item-icon"]}`,src:`/images/${t}`,alt:""})]})},ve=g.memo(Te),Ge=({series:t,avgQuestionLastMonth:r,icons:o,className:d,noAvgText:s,timeOfDay:c,loadingComplete:m})=>{const{t:N}=v.useTranslation(),f=g.useMemo(()=>t.map(h=>{const u=h?.data.reduce(($,M)=>$+M,0);return h.data.length>0?u/h.data.length:0}),[t]);return e.jsx(l.Grid,{className:`${a.styles["trend-question-list"]}`,children:t.map((h,u)=>{const $=r.find(w=>w.questionText?.toLowerCase()?.includes(h.name?.toLowerCase())),M=$?$.avgQuestionResponse-$.avgQuestionResponseLastMonth:0;return e.jsxs(l.Grid,{className:`${a.styles["trend-question-item"]}`,children:[e.jsxs(l.Grid,{className:`${a.styles["trend-item-header"]}`,children:[e.jsx("div",{className:`${a.styles["trend-item-title"]}`,dangerouslySetInnerHTML:{__html:`${s?"":N("average")} ${h.questionTranslation||h.name}`}}),e.jsx("img",{className:`${a.styles["trend-item-icon"]} ${a.styles[d||""]}`,src:`/images/${o[u]}`,alt:"icon"})]}),e.jsx(H,{label:B.capitalizeFirstLetter(E.getDescriptionFromPercent(h?.data?.[0]||0,h.description)||""),value:M||0,valueData:f[u]||0,timeOfDay:c,loadingComplete:m})]},h.name)})})},qe=g.memo(Ge),_e=({opacity:t=1,color:r="#242424"})=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{opacity:t,d:"M8 10L3.5 6H12.5L8 10Z",fill:r})});exports.ArrowUp=_e;exports.CalendarSelect=Le;exports.GeneratePlpChart=be;exports.GenerateTrendQuestion=qe;exports.TotalCard=ve;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),i=require("@mui/material"),p=require("./styles.module-CHKJJ8Zm.cjs"),g=require("react"),r=require("./plp.module-D7sSVhej.cjs"),ge=require("react-redux"),v=require("mario-core"),Z=require("./OverallDonutChart-H9IRH4Ez.cjs"),l=require("./constants-AmXlyc2R.cjs"),M=require("./LineChart-SPN9tugP.cjs"),E=require("./constantsFn-DMEZ5_K5.cjs"),ye=require("./Error-DBu0pm35.cjs"),je=require("./CheckCircle-DSTZHLj-.cjs"),H=require("./utils-CeXUFMko.cjs"),xe=require("./CheckboxCustom-ZjvBGVzS.cjs"),w=require("./Loading-CHowA_dQ.cjs"),Ne=require("./ArrowRightIcon-D2CQJfsL.cjs"),$e=({options:t,value:a,onChange:o,disabled:d=!1,customClassName:s})=>e.jsxs(i.Grid,{className:`${p.styles["calendar-select"]} ${p.styles[s||""]}`,children:[e.jsx(i.Typography,{className:p.styles["calendar-label"],children:"Filter by date"}),e.jsx(i.Grid,{className:p.styles["calendar-options"],children:t.map(c=>e.jsx(i.Typography,{onClick:()=>!d&&o?.(c),className:`${p.styles["option-item"]} ${a==c.value?p.styles.selected:p.styles["no-selected"]}`,children:c.label},c.value))})]}),Le=t=>t.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,(a,o,d,s)=>`rgba(${o}, ${d}, ${s}, 0.6)`),pe=(t,a=!1)=>{const o=["rgba(196, 65, 64, 0.24)","rgba(255, 176, 79, 0.24)","rgba(255, 208, 40, 0.24)","rgba(169, 214, 96, 0.24)","rgba(15, 150, 85, 0.24)"];if(a){if(t<=-60||t>=60)return o[0];if(t>=-60&&t<-20)return o[3];if(t>=-20&&t<20)return o[4];if(t>=20&&t<60)return o[2]}const d=Math.max(0,Math.min(100,t)),s=100/o.length;let c=Math.floor(d/s);return c=Math.min(c,o.length-1),o[c]},z=({value:t,label:a,isStress:o,timeOfDay:d,valueData:s,loadingComplete:c=!0})=>{const m=Le(pe(s||0,o)),N=a?`${a} |`:"";return e.jsxs(i.Grid,{className:`${r.styles["graph-trend"]}`,children:[c?e.jsx(i.Typography,{style:{backgroundColor:m},className:`${r.styles["graph-label"]}`,children:`${N} ${(s||0)?.toFixed(2)}%`}):e.jsx(w.Loading,{}),d&&e.jsx("img",{src:`/images/${t<0?"trend-down.png":"trend-up.png"}`,alt:"Graph Trend Icon"})]})},fe=({percent:t,lowMetricStudents:a=[],isPrint:o=!1,onBeforeViewCheckIn:d})=>{const{t:s}=v.useTranslation(),[c,m]=g.useState(!1),N=()=>{m(!c)},f=M.uniq(a?.filter(u=>u.matchedGroupNames.includes("Not Ready to Learn"))?.map(u=>u.studentName)).length||0,h=M.uniq(a?.filter(u=>u.matchedGroupNames.includes("Success")||u.matchedGroupNames.includes("Readiness"))?.map(u=>u.studentName)).length||0;return e.jsxs(i.Grid,{className:`${r.styles["static-metric"]} ${r.styles[a?.length===0?"green-background":"red-background"]}`,children:[a?.length===0?e.jsx(je.CheckCircleIcon,{className:`${r.styles["check-icon"]}`}):e.jsx(ye.ErrorIcon,{className:`${r.styles["warning-icon"]}`}),a?.length===0?e.jsx("div",{children:s("all_students_have_good_metrics")}):e.jsxs("div",{className:r.styles["static-metric__container"],children:[e.jsxs("div",{children:[e.jsx("b",{children:`${t.toFixed(2)}%`})," ",s("of_students_have_concerned_metrics")," ",!o&&e.jsxs("b",{className:`${r.styles.link}`,onClick:()=>N(),children:["(",s("see_them"),")"]})]}),e.jsxs("div",{children:[e.jsx("b",{children:`${f} ${s("students")}`})," ",s("are_not_ready_to_learn"),","," ",e.jsx("b",{children:`${h} ${s("students")}`})," ",s("have_metrics_40")]})]}),!o&&e.jsx(M.MetricModelStudent,{lowMetricStudents:a,handleToggleModel:N,openModel:c,onBeforeViewCheckIn:d})]})},Me=()=>e.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"24.9521",cy:"25.943",r:"12.2047",fill:"white",stroke:"#242424",strokeWidth:"1.6"}),e.jsx("path",{d:"M32.1831 16.1109C30.1591 14.6197 27.658 13.7385 24.9512 13.7385C20.4316 13.7385 16.4858 16.1951 14.3762 19.846C13.3396 21.64 12.7464 23.7223 12.7464 25.9432C16.174 26.6908 24.8599 25.7709 32.1831 16.1109Z",fill:"#C44140"}),e.jsx("path",{d:"M12.7464 25.9432C16.174 26.6908 24.8599 25.7709 32.1831 16.1109C30.1591 14.6197 27.658 13.7385 24.9512 13.7385C20.4316 13.7385 16.4858 16.1951 14.3762 19.846C13.3396 21.64 12.7464 23.7223 12.7464 25.9432ZM12.7464 25.9432L13.7157 31.0541",stroke:"#242424",strokeWidth:"1.6"}),e.jsx("path",{d:"M35.0033 32.457C33.9026 31.3239 30.3194 29.4838 27.1494 31.0636",stroke:"#242424",strokeWidth:"1.6",strokeLinecap:"round"}),e.jsx("path",{d:"M2.84277 14.5371L6.56435 17.4966C6.79541 17.6803 7.13909 17.559 7.20364 17.2709L7.88551 14.2275C7.95006 13.9394 8.29374 13.8181 8.5248 14.0018L12.5278 17.1851",stroke:"#242424",strokeWidth:"1.6"}),e.jsx("path",{d:"M11.6611 4.42773L13.3372 8.87738C13.4412 9.15364 13.7985 9.22586 14.0017 9.0117L16.1485 6.74917C16.3517 6.53501 16.7089 6.60722 16.8129 6.88349L18.6158 11.6697",stroke:"#242424",strokeWidth:"1.6"}),e.jsx("path",{d:"M24.3058 1.85364L23.8326 6.59318C23.8034 6.8849 24.0876 7.10781 24.364 7.01001L27.4233 5.92739C27.6997 5.82959 27.9839 6.05249 27.9548 6.34421L27.4459 11.4416",stroke:"#242424",strokeWidth:"1.6"})]}),ke=()=>e.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("g",{clipPath:"url(#clip0_14971_6395)",children:[e.jsx("path",{d:"M37.7857 8.62683L36.3306 10.8095L37.7857 12.9921M37.7857 8.62683V12.9921M37.7857 8.62683L39.2408 10.8095L37.7857 12.9921",stroke:"#242424",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M1.98141 26.75L0.759216 28.5833L1.98141 30.4166M1.98141 26.75V30.4166M1.98141 26.75L3.20361 28.5833L1.98141 30.4166",stroke:"#242424",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M31.9033 3.48816L30.6811 5.32146L31.9033 7.15476M31.9033 3.48816V7.15476M31.9033 3.48816L33.1255 5.32146L31.9033 7.15476",stroke:"#242424",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8.43676 18.6139C8.43676 17.7971 8.42098 16.9786 8.43676 16.1547C8.45418 15.8087 8.50763 15.4655 8.59627 15.1306C8.68743 14.7512 8.85225 14.637 9.23617 14.6036C10.0163 14.5404 10.7999 14.5035 11.5765 14.4087C12.0909 14.33 12.6006 14.2233 13.1034 14.089C13.3944 14.0205 13.6749 13.894 13.9677 13.8501C14.4778 13.771 14.9091 13.4988 15.3701 13.3003C16.4538 12.81 17.4434 12.1335 18.2943 11.3013C18.4542 11.1587 18.6308 11.036 18.8202 10.9359C18.941 10.853 19.084 10.8086 19.2304 10.8086C19.3768 10.8086 19.5198 10.853 19.6406 10.9359C19.8593 11.0708 20.0653 11.2254 20.2559 11.3979C20.9967 12.0849 21.8214 12.6751 22.7102 13.1545C23.2682 13.4441 23.856 13.6721 24.4633 13.8343C25.1347 14.0433 25.8184 14.2154 26.5074 14.3612C26.91 14.4195 27.3156 14.4546 27.7223 14.4666C28.271 14.5141 28.8179 14.5738 29.3649 14.623C29.4655 14.6306 29.5616 14.6681 29.6409 14.7307C29.7202 14.7932 29.7791 14.8781 29.8101 14.9743C29.9278 15.2706 29.9988 15.5835 30.0205 15.9018C30.0509 17.3176 30.0597 18.7334 30.0468 20.1492C30.0441 21.5198 29.9215 22.8876 29.6804 24.2367C29.6608 24.367 29.6508 24.4985 29.6506 24.6302C29.614 25.2189 29.4996 25.8001 29.3105 26.3587C29.1352 26.9208 29.0283 27.5022 28.8214 28.0503C28.597 28.651 28.328 29.2341 28.0168 29.7946C27.3467 30.9887 26.4963 32.0719 25.4959 33.0056C24.389 34.0306 23.1306 34.8779 21.7653 35.5175C21.0326 35.8689 20.284 36.1921 19.5249 36.4784C19.3251 36.5539 19.0428 36.4784 18.8237 36.4099C18.3611 36.2612 17.9065 36.0888 17.4615 35.8935C17.0018 35.6971 16.5535 35.4748 16.1187 35.2277C15.3719 34.7886 14.6216 34.3494 13.9186 33.847C13.4424 33.4838 12.9983 33.0801 12.5915 32.6403C11.8769 31.9517 11.2594 31.1686 10.7561 30.3128C10.4163 29.7343 10.1113 29.136 9.84272 28.5211C9.5745 27.8606 9.40621 27.1615 9.18181 26.4817C8.97193 25.8103 8.84247 25.1162 8.79615 24.4142C8.72252 23.5007 8.57875 22.5926 8.47006 21.6827C8.44937 21.5236 8.43826 21.3635 8.43676 21.2031C8.43676 20.3407 8.43676 19.4799 8.43676 18.6192V18.6139Z",fill:"white",stroke:"#242424",strokeWidth:"1.6"}),e.jsx("path",{d:"M19.6304 10.9359C19.5096 10.853 19.3666 10.8086 19.2202 10.8086V36.5043C19.3259 36.5155 19.428 36.5111 19.5147 36.4784C20.2738 36.1921 21.0223 35.8689 21.7551 35.5175C23.1204 34.8779 24.3788 34.0306 25.4856 33.0056C26.4861 32.0719 27.3364 30.9887 28.0065 29.7946C28.3178 29.2341 28.5868 28.651 28.8112 28.0503C29.0181 27.5022 29.125 26.9208 29.3003 26.3587C29.4894 25.8001 29.6037 25.2189 29.6404 24.6302C29.6406 24.4985 29.6505 24.367 29.6702 24.2367C29.9113 22.8876 30.0339 21.5198 30.0366 20.1492C30.0494 18.7334 30.0406 17.3176 30.0103 15.9018C29.9886 15.5835 29.9176 15.2706 29.7999 14.9743C29.7689 14.8781 29.71 14.7932 29.6307 14.7307C29.5514 14.6681 29.4553 14.6306 29.3546 14.623C28.8077 14.5738 28.2607 14.5141 27.712 14.4666C27.3054 14.4546 26.8998 14.4195 26.4972 14.3612C25.8082 14.2154 25.1245 14.0433 24.453 13.8343C23.8458 13.6721 23.258 13.4441 22.7 13.1545C21.8111 12.6751 20.9865 12.0849 20.2457 11.3979C20.0551 11.2254 19.8491 11.0708 19.6304 10.9359Z",fill:"#0F9655"}),e.jsx("path",{d:"M18.8099 10.9359C18.9307 10.853 19.0737 10.8086 19.2202 10.8086M19.2202 10.8086C19.3666 10.8086 19.5096 10.853 19.6304 10.9359C19.8491 11.0708 20.0551 11.2254 20.2457 11.3979C20.9865 12.0849 21.8111 12.6751 22.7 13.1545C23.258 13.4441 23.8458 13.6721 24.453 13.8343C25.1245 14.0433 25.8082 14.2154 26.4972 14.3612C26.8998 14.4195 27.3054 14.4546 27.712 14.4666C28.2607 14.5141 28.8077 14.5738 29.3546 14.623C29.4553 14.6306 29.5514 14.6681 29.6307 14.7307C29.71 14.7932 29.7689 14.8781 29.7999 14.9743C29.9176 15.2706 29.9886 15.5835 30.0103 15.9018C30.0406 17.3176 30.0494 18.7334 30.0366 20.1492C30.0339 21.5198 29.9113 22.8876 29.6702 24.2367C29.6505 24.367 29.6406 24.4985 29.6404 24.6302C29.6037 25.2189 29.4894 25.8001 29.3003 26.3587C29.125 26.9208 29.0181 27.5022 28.8112 28.0503C28.5868 28.651 28.3178 29.2341 28.0065 29.7946C27.3364 30.9887 26.4861 32.0719 25.4856 33.0056C24.3788 34.0306 23.1204 34.8779 21.7551 35.5175C21.0223 35.8689 20.2738 36.1921 19.5147 36.4784C19.428 36.5111 19.3259 36.5155 19.2202 36.5043M19.2202 10.8086V36.5043M18.8134 36.4099C18.9376 36.4487 19.082 36.4898 19.2202 36.5043",stroke:"#242424",strokeWidth:"1.6"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_14971_6395",children:e.jsx("rect",{width:"40",height:"40",fill:"white"})})})]}),Se=({typeChart:t,activeColumn:a,series:o,months:d,name:s,dayOfWeek:c=[],colors:m,textColors:N,avgQuestionLastMonth:f,studentCount:h,studentPercentage:u,responseStudent:L,classFontSize:k,avgContent:S,print:x,width:B,height:Y,titleClassFontSize:K,min:J,hiddenKpi:X,timeOfDay:ee,weeklySeries:G,weeks:P=[],description:F,skillClass:W,kpiClassName:se,lowMetricStudents:A=[],studentMetricPercent:te,noGradient:re,setOptionDate:ae,stressValue:Q,noAvgTotal:ne,onActiveColumn:D,loadingComplete:b=!0,optionDate:T,onBeforeViewCheckIn:q,interventionLogs:le})=>{const{t:y}=v.useTranslation(),[$,ie]=g.useState("Monthly"),oe=ge.useSelector(n=>n?.common?.user).roles.includes("Student"),C=g.useMemo(()=>$!="Monthly"||x&&T!="Monthly"?G||[]:o,[o,G,$,T,x]),_=g.useMemo(()=>$!="Monthly"||x&&T!="Monthly"?P:d,[$,d,P,T,x]),ce=g.useMemo(()=>C.map(n=>{const j=f.find(I=>I.questionText.toLowerCase().includes(n.name.toLowerCase()));if(j)return j.avgQuestionResponse-j.avgQuestionResponseLastMonth;const R=n?.data.reduce((I,Ce)=>I+Ce,0);return n?.data?.length>0?R/n.data.length:0}),[C,f]),O=g.useMemo(()=>C.filter((n,j)=>a[j]).map(n=>({data:n.data,name:n.questionTranslation||n.name,questionTranslation:n.questionTranslation??""})),[C,a]),V=g.useMemo(()=>C.map(n=>n.data[0]||0),[C]),de=g.useMemo(()=>C.map(n=>n.name.charAt(0).toUpperCase()+n.name.slice(1)),[C]),he=(s===y(l.readinessTrendName)||s===y(l.successIndicatorsName)||s===y(l.overallReadinessToLearnName))&&6,ue=s===y(l.readinessTrendName)&&6||(s===y(l.successIndicatorsName)||s===y(l.learningProcessName))&&4||s===y(l.overallReadinessToLearnName)&&12,me=(s===y(l.readinessTrendName)||s===y(l.successIndicatorsName)||s===y(l.overallReadinessToLearnName)||s===y(l.learningProcessName))&&"auto",U=n=>n.length===0?0:n.reduce((j,R)=>j+R)/n.length;return e.jsxs(i.Grid,{className:`${r.styles["generate-chart"]} ${r.styles[k]}`,children:[(l.averageSafetyName===s||l.averageStressName===s)&&e.jsxs("div",{className:r.styles["icon-safety-and-stress"],children:[l.averageSafetyName===s&&e.jsx(ke,{}),l.averageStressName===s&&e.jsx(Me,{})]}),!x&&e.jsxs(i.Grid,{className:`${r.styles["header-chart-generate"]}`,children:[e.jsx(i.Typography,{className:`${K||r.styles["title-chart"]}`,children:y(s)}),!ne&&C?.[0]?.description?.length>0&&s!==l.lowMetricName&&(b?e.jsx(z,{label:H.getDescriptionFromPercent((l.averageStressName===s||l.averageSafetyName===s?U(Q??[]):C[0].data[0])||0,C[0].description,s===l.averageStressName),valueData:(l.averageStressName===s||l.averageSafetyName===s?U(Q??[]):C[0].data[0])||0,value:ce[0]||0,isStress:s==l.averageStressName,timeOfDay:ee,loadingComplete:b}):e.jsx(w.Loading,{}))]}),!x&&F&&e.jsx(i.Typography,{className:`${r.styles["header-chart-description"]}`,children:y(F)}),!b&&e.jsx("div",{style:{width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(w.Loading,{})}),b&&e.jsxs(g.Fragment,{children:[e.jsxs(i.Grid,{className:`${r.styles["kpi-module"]} ${r.styles[se??""]}`,children:[!x&&e.jsx(i.Grid,{className:`${r.styles["box-model-student-skill"]} ${r.styles[W??""]}`,hidden:!h&&h!=0||oe||C.length==0||s===l.lowMetricName,children:e.jsx(M.ModelSkillStudent,{studentCount:h,studentPercentage:u,name:s,responseStudent:L,onBeforeViewCheckIn:q})}),e.jsx(i.Grid,{className:`${r.styles["box-model-student-skill"]} ${r.styles[W??""]}`,hidden:s!==l.lowMetricName,children:e.jsx(fe,{lowMetricStudents:A,percent:te||0,isPrint:x,onBeforeViewCheckIn:q})}),!X&&e.jsx(i.Grid,{className:`${r.styles.listItem} ${r.styles["ml-10"]}`,children:C.map((n,j)=>x&&!a[j]?null:e.jsxs(i.Grid,{item:!0,xs:he,sm:ue,lg:me,hidden:!n.name,className:`${r.styles["item-checkbox"]}`,children:[!!D&&e.jsx("div",{className:`${r.styles["box-checkbox"]}`,children:e.jsx(xe.CheckboxCustom,{isActive:!!a[j],onClick:()=>D?.(j,s)})}),e.jsxs(i.Grid,{className:`${r.styles["item-detail"]}`,children:[e.jsxs(i.Grid,{className:`${r.styles.question}`,children:[e.jsx(i.Grid,{className:`${r.styles["point-custom"]}`,style:{backgroundColor:m[j]}}),e.jsx("label",{className:`${r.styles["label-chart"]}`,children:n.questionTranslation||n.name})]}),e.jsx(i.Typography,{className:`${r.styles["avr-question"]}`,children:E.handleGenerateAvgQuestion(n.data,J==-100,S)??0})]})]},j))}),!!G&&!x&&e.jsx(i.Grid,{className:`${r.styles["label-options"]}`,children:l.optionLabelDate.map(n=>e.jsx(i.Typography,{onClick:()=>{ie?.(n),ae?.(n)},className:`${r.styles["option-item"]} ${$==n?r.styles.selected:r.styles["no-selected"]}`,children:n},n))})]}),e.jsxs(i.Grid,{className:`${x?`w-100 d-flex justify-content-center ${t=="donut"?"":r.styles["print-chart"]}`:""}`,style:{position:"relative"},children:[t=="area"&&e.jsx(Z.AreaChart,{isCountSeries:!!S,months:_,activeColumn:a,series:O,dayOfWeek:c,colors:m,min:J,noGradient:re,interventionLogs:le},$),t=="line"&&e.jsx(M.LineChart,{months:_,activeColumn:a,series:O,dayOfWeek:c,colors:m},$),t=="donut"&&e.jsxs(g.Fragment,{children:[e.jsx(Z.OverallDonutChart,{isCountSeries:!!S,series:V,colors:s===l.overallReadinessToLearnName?m.reverse():m,textColors:N,label:de,width:B,height:Y,hasTooltip:s!==l.overallReadinessToLearnName},$),s===l.overallReadinessToLearnName&&e.jsxs("div",{className:r.styles["data-overall-readline-value-yes"],children:[e.jsxs("p",{children:["Yes: ",(V?.[0]||0).toFixed(1),"%"]}),e.jsx("span",{children:"of student"})]})]}),t=="bar"&&e.jsx(M.BarChart,{series:O,activeColumn:a,dayOfWeek:c,months:_,colors:m,print:x,isCountSeries:!0,lowMetricStudents:A,labelDate:$,onBeforeViewCheckIn:q},$)]})]})]},s)};function be(t,a){return t.name===a.name&&t.typeChart===a.typeChart&&t.print===a.print&&JSON.stringify(t.dayOfWeek)===JSON.stringify(a.dayOfWeek)&&t.lowMetricStudents===a.lowMetricStudents&&t.studentMetricPercent===a.studentMetricPercent&&JSON.stringify(t.series)===JSON.stringify(a.series)&&JSON.stringify(t.weeklySeries)===JSON.stringify(a.weeklySeries)&&JSON.stringify(t.activeColumn)===JSON.stringify(a.activeColumn)&&JSON.stringify(t.avgQuestionLastMonth)===JSON.stringify(a.avgQuestionLastMonth)&&JSON.stringify(t.lowMetricStudents)===JSON.stringify(a.lowMetricStudents)&&t.studentCount===a.studentCount&&t.studentPercentage===a.studentPercentage&&JSON.stringify(t.responseStudent)===JSON.stringify(a.responseStudent)&&t.timeOfDay===a.timeOfDay&&t.stressValue===a.stressValue&&t.loadingComplete===a.loadingComplete&&t.interventionLogs===a.interventionLogs}const Te=g.memo(Se,be),we=({iconSrc:t,label:a,value:o,loadingComplete:d=!0,customClassName:s,handleOpenModal:c,customClassNameBootStrap:m})=>{const{t:N}=v.useTranslation();return e.jsxs(i.Grid,{className:`${r.styles["total-item"]} ${r.styles[s||""]} ${m||""}`,children:[e.jsxs(i.Grid,{className:`${r.styles["total-item-content"]}`,children:[e.jsx("div",{className:`${r.styles["total-item-name"]}`,dangerouslySetInnerHTML:{__html:a}}),d?e.jsxs("div",{className:`${r.styles["total-item-value"]}`,children:[o,!!c&&Number(o)>0&&e.jsxs("button",{type:"button",className:`${r.styles["total-item-btn"]}`,onClick:()=>c?.(),children:[N("see_them"),e.jsx(Ne.ArrowRightIcon,{})]})]}):e.jsx(w.Loading,{size:24})]}),t&&e.jsx("img",{className:`${r.styles["total-item-icon"]}`,src:`/images/${t}`,alt:""})]})},ve=g.memo(we),Ge=({series:t,avgQuestionLastMonth:a,icons:o,className:d,noAvgText:s,timeOfDay:c,loadingComplete:m})=>{const{t:N}=v.useTranslation(),f=g.useMemo(()=>t.map(h=>{const u=h?.data.reduce((L,k)=>L+k,0);return h.data.length>0?u/h.data.length:0}),[t]);return e.jsx(i.Grid,{className:`${r.styles["trend-question-list"]}`,children:t.map((h,u)=>{const L=a.find(S=>S.questionText?.toLowerCase()?.includes(h.name?.toLowerCase())),k=L?L.avgQuestionResponse-L.avgQuestionResponseLastMonth:0;return e.jsxs(i.Grid,{className:`${r.styles["trend-question-item"]}`,children:[e.jsxs(i.Grid,{className:`${r.styles["trend-item-header"]}`,children:[e.jsx("div",{className:`${r.styles["trend-item-title"]}`,dangerouslySetInnerHTML:{__html:`${s?"":N("average")} ${h.questionTranslation||h.name}`}}),e.jsx("img",{className:`${r.styles["trend-item-icon"]} ${r.styles[d||""]}`,src:`/images/${o[u]}`,alt:"icon"})]}),e.jsx(z,{label:E.capitalizeFirstLetter(H.getDescriptionFromPercent(h?.data?.[0]||0,h.description)||""),value:k||0,valueData:f[u]||0,timeOfDay:c,loadingComplete:m})]},h.name)})})},qe=g.memo(Ge),_e=({opacity:t=1,color:a="#242424"})=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{opacity:t,d:"M8 10L3.5 6H12.5L8 10Z",fill:a})});exports.ArrowUp=_e;exports.CalendarSelect=$e;exports.GeneratePlpChart=Te;exports.GenerateTrendQuestion=qe;exports.TotalCard=ve;
|