@cuemath/leap 3.5.31 → 3.5.32-as11
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/assets/illustrations/illustrations.js +38 -0
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/images/images.js +0 -12
- package/dist/assets/images/images.js.map +1 -1
- package/dist/assets/line-icons/icons/carat-right.js +26 -0
- package/dist/assets/line-icons/icons/carat-right.js.map +1 -0
- package/dist/features/analytics-events/whitelist-events.js +10 -8
- package/dist/features/analytics-events/whitelist-events.js.map +1 -1
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js +3 -3
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js.map +1 -1
- package/dist/features/journey/tracking-id/tracking-id-teacher.js +5 -0
- package/dist/features/journey/tracking-id/tracking-id-teacher.js.map +1 -0
- package/dist/features/journey/tracking-id/tracking-ids.js +5 -3
- package/dist/features/journey/tracking-id/tracking-ids.js.map +1 -1
- package/dist/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal-constants.js +17 -0
- package/dist/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal-constants.js.map +1 -0
- package/dist/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal.js +54 -0
- package/dist/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal.js.map +1 -0
- package/dist/features/timeline/{api → daily-timeline/api}/use-daily-timeline-get.js +2 -2
- package/dist/features/timeline/daily-timeline/api/use-daily-timeline-get.js.map +1 -0
- package/dist/features/timeline/{comps → daily-timeline/comps}/accordion-item/accordion-item.js +6 -6
- package/dist/features/timeline/daily-timeline/comps/accordion-item/accordion-item.js.map +1 -0
- package/dist/features/timeline/daily-timeline/comps/constants.js +22 -0
- package/dist/features/timeline/daily-timeline/comps/constants.js.map +1 -0
- package/dist/features/timeline/{comps → daily-timeline/comps}/daily-timeline-items/daily-timeline-items-styled.js +1 -1
- package/dist/features/timeline/daily-timeline/comps/daily-timeline-items/daily-timeline-items-styled.js.map +1 -0
- package/dist/features/timeline/{comps → daily-timeline/comps}/daily-timeline-items/daily-timeline-items.js +18 -18
- package/dist/features/timeline/daily-timeline/comps/daily-timeline-items/daily-timeline-items.js.map +1 -0
- package/dist/features/timeline/{comps → daily-timeline/comps}/month-break/month-break-styled.js +1 -1
- package/dist/features/timeline/daily-timeline/comps/month-break/month-break-styled.js.map +1 -0
- package/dist/features/timeline/daily-timeline/comps/month-break/month-break.js.map +1 -0
- package/dist/features/timeline/{comps → daily-timeline/comps}/no-activity.js +4 -4
- package/dist/features/timeline/daily-timeline/comps/no-activity.js.map +1 -0
- package/dist/features/timeline/{comps → daily-timeline/comps}/utils.js +5 -5
- package/dist/features/timeline/daily-timeline/comps/utils.js.map +1 -0
- package/dist/features/timeline/{comps → daily-timeline/comps}/year-break/year-break-styled.js +1 -1
- package/dist/features/timeline/daily-timeline/comps/year-break/year-break-styled.js.map +1 -0
- package/dist/features/timeline/{comps → daily-timeline/comps}/year-break/year-break.js +2 -2
- package/dist/features/timeline/daily-timeline/comps/year-break/year-break.js.map +1 -0
- package/dist/features/timeline/{daily-timeline-events.js → daily-timeline/daily-timeline-events.js} +1 -1
- package/dist/features/timeline/daily-timeline/daily-timeline-events.js.map +1 -0
- package/dist/features/timeline/daily-timeline/daily-timeline-styled.js +25 -0
- package/dist/features/timeline/daily-timeline/daily-timeline-styled.js.map +1 -0
- package/dist/features/timeline/daily-timeline/daily-timeline-types.js +7 -0
- package/dist/features/timeline/daily-timeline/daily-timeline-types.js.map +1 -0
- package/dist/features/timeline/{daily-timeline-view.js → daily-timeline/daily-timeline-view.js} +24 -25
- package/dist/features/timeline/daily-timeline/daily-timeline-view.js.map +1 -0
- package/dist/features/timeline/{daily-timeline.js → daily-timeline/daily-timeline.js} +23 -23
- package/dist/features/timeline/daily-timeline/daily-timeline.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js +10 -0
- package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js +87 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js +9 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/constants.js +40 -0
- package/dist/features/timeline/monthly-timeline/constants.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/api/use-monthly-report-api.js +13 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/api/use-monthly-report-api.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/achievements/achievements.js +59 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/achievements/achievements.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/achievements/achievements.styled.js +15 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/achievements/achievements.styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/achievements/constant.js +16 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/achievements/constant.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card/activities-card.js +128 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card/activities-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js +53 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js +75 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js +58 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card-puzzles/activity-puzzle-card.js +66 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card-puzzles/activity-puzzle-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities.js +27 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/constants.js +102 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/constants.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/utils.js +9 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/utils.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendance-constants.js +29 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendance-constants.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendance-utils.js +123 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendance-utils.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendance.js +49 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendance.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendance.styled.js +48 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendance.styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendence-view.js +56 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendence-view.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/feedback/feedback-styled.js +9 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/feedback/feedback-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/feedback/feedback.js +85 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/feedback/feedback.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js +48 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js +28 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-card/goals-card.js +118 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-card/goals-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-constants.js +30 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-constants.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals.js +22 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-events.js +11 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-events.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-styled.js +14 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.js +5 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report.js +79 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js +13 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js +6 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js +28 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline.js +65 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/api/use-ptm-report-get.js +9 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/api/use-ptm-report-get.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/key-need/key-need-styled.js +9 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/key-need/key-need-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/key-need/key-need.js +35 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/key-need/key-need.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/parent-support/parent-support.js +53 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/parent-support/parent-support.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js +19 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/real-world-projects/real-world-projects.js +50 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/real-world-projects/real-world-projects.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/report-card/report-card-styled.js +9 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/report-card/report-card-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/report-card/report-card.js +22 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/report-card/report-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/school-support/school-support-styled.js +9 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/school-support/school-support-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/school-support/school-support.js +84 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/school-support/school-support.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategies/strategies-constant.js +11 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategies/strategies-constant.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategies/strategies.js +36 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategies/strategies.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategy-card/strategy-card-styled.js +55 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategy-card/strategy-card-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategy-card/strategy-card.js +35 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategy-card/strategy-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/student-info/student-info-styled.js +21 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/student-info/student-info-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/student-info/student-info.js +21 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/student-info/student-info.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card-styled.js +9 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card.js +30 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js +9 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/teacher-observations/teacher-observations.js +56 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/teacher-observations/teacher-observations.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js +15 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report-constants.js +16 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report-constants.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report-helpers.js +8 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report-helpers.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report-styled.js +11 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report-types.js +5 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report-types.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report.js +113 -0
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/constants.js +17 -0
- package/dist/features/timeline/timeline-tabs/constants.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js +5 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.js +28 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js +37 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js.map +1 -0
- package/dist/index.d.ts +169 -15
- package/dist/index.js +327 -313
- package/dist/index.js.map +1 -1
- package/dist/static/2021.2a1a2ec9.svg +1 -0
- package/dist/static/2022.2091553a.svg +1 -0
- package/dist/static/2023.ed718b4e.svg +1 -0
- package/dist/static/2024.aa60edc5.svg +1 -0
- package/dist/static/2025.014a8ad3.svg +1 -0
- package/dist/static/2026.95d70f27.svg +1 -0
- package/dist/static/2027.fe83a41c.svg +1 -0
- package/dist/static/2028.b1c253ef.svg +1 -0
- package/dist/static/apr.cd56f13d.svg +1 -0
- package/dist/static/aug.3ceade02.svg +1 -0
- package/dist/static/calendar_purple_2.6e8249ef.svg +1 -0
- package/dist/static/clock_purple.c774c9bf.svg +1 -0
- package/dist/static/coding-report-icon.91a1e900.svg +1 -0
- package/dist/static/dec.90729a5e.svg +1 -0
- package/dist/static/elp-icon.d45b457d.svg +1 -0
- package/dist/static/empty-reports.fe92faad.svg +1 -0
- package/dist/static/english-icon.50c2e005.svg +1 -0
- package/dist/static/feb.a9ecd320.svg +1 -0
- package/dist/static/full-report.00112c74.svg +1 -0
- package/dist/static/jan.f8fb9c39.svg +1 -0
- package/dist/static/jul.04a98cf0.svg +1 -0
- package/dist/static/jun.9b6ab6bf.svg +1 -0
- package/dist/static/mar.f8b372ef.svg +1 -0
- package/dist/static/math-fit-grey.c32f37b3.svg +1 -0
- package/dist/static/may.23adae48.svg +1 -0
- package/dist/static/no-report.4158fad3.svg +1 -0
- package/dist/static/node-learn-large-bg.faa03631.svg +1 -0
- package/dist/static/node-puzzle-large-bg.ba23382e.svg +1 -0
- package/dist/static/node-test-large-bg.e9120fd1.svg +1 -0
- package/dist/static/nov.c44e4739.svg +1 -0
- package/dist/static/oct.856b3b3f.svg +1 -0
- package/dist/static/progress_bar_purple.2ff4dfe2.svg +1 -0
- package/dist/static/ptm-report-icon.5089218f.svg +1 -0
- package/dist/static/sat-report-icon.4331be86.svg +1 -0
- package/dist/static/science-report-icon.a0014c40.svg +1 -0
- package/dist/static/sep.2d547b31.svg +1 -0
- package/dist/static/thumps-down.a1192a62.svg +1 -0
- package/dist/static/thumps-up.caa35a98.svg +1 -0
- package/package.json +1 -1
- package/dist/features/timeline/api/use-daily-timeline-get.js.map +0 -1
- package/dist/features/timeline/comps/accordion-item/accordion-item.js.map +0 -1
- package/dist/features/timeline/comps/constants.js +0 -22
- package/dist/features/timeline/comps/constants.js.map +0 -1
- package/dist/features/timeline/comps/daily-timeline-items/daily-timeline-items-styled.js.map +0 -1
- package/dist/features/timeline/comps/daily-timeline-items/daily-timeline-items.js.map +0 -1
- package/dist/features/timeline/comps/month-break/month-break-styled.js.map +0 -1
- package/dist/features/timeline/comps/month-break/month-break.js.map +0 -1
- package/dist/features/timeline/comps/no-activity.js.map +0 -1
- package/dist/features/timeline/comps/utils.js.map +0 -1
- package/dist/features/timeline/comps/year-break/year-break-styled.js.map +0 -1
- package/dist/features/timeline/comps/year-break/year-break.js.map +0 -1
- package/dist/features/timeline/daily-timeline-events.js.map +0 -1
- package/dist/features/timeline/daily-timeline-styled.js +0 -21
- package/dist/features/timeline/daily-timeline-styled.js.map +0 -1
- package/dist/features/timeline/daily-timeline-types.js +0 -7
- package/dist/features/timeline/daily-timeline-types.js.map +0 -1
- package/dist/features/timeline/daily-timeline-view.js.map +0 -1
- package/dist/features/timeline/daily-timeline.js.map +0 -1
- package/dist/static/apr.09a50ff7.png +0 -0
- package/dist/static/aug.7179d37e.png +0 -0
- package/dist/static/dec.09f7e315.png +0 -0
- package/dist/static/feb.9e72504d.png +0 -0
- package/dist/static/jan.da91944a.png +0 -0
- package/dist/static/jul.5a1c4932.png +0 -0
- package/dist/static/jun.62639c2f.png +0 -0
- package/dist/static/mar.f51bcfa6.png +0 -0
- package/dist/static/may.7c542020.png +0 -0
- package/dist/static/nov.058343e7.png +0 -0
- package/dist/static/oct.573ee19d.png +0 -0
- package/dist/static/sep.3ccb6468.png +0 -0
- /package/dist/features/timeline/{comps → daily-timeline/comps}/month-break/month-break.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"school-support.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/school-support/school-support.tsx"],"sourcesContent":["import { memo, useMemo, type FC } from 'react';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport Separator from '../../../../../ui/separator/separator';\nimport Text from '../../../../../ui/text/text';\nimport ReportCard from '../report-card/report-card';\nimport * as Styled from './school-support-styled';\nimport type { ISchoolSupportProps } from './school-support-types';\nimport type { ISchoolSupportArea } from '../../ptm-report-types';\nimport { replaceTokens } from '../../ptm-report-helpers';\n\nconst SchoolSupport: FC<ISchoolSupportProps> = ({\n homeworkHelpReport,\n homeworkHelpConfig,\n testHelpReport,\n testHelpConfig,\n studentName,\n isOnDemandPTM,\n}) => {\n const {\n is_hw_help_provided: isHWHelpProvided,\n selected: selectedHomeWork = [],\n topics,\n } = homeworkHelpReport ?? {};\n const {\n selected: selectedTest = [],\n performance,\n previous_performance: previousPerformance,\n } = testHelpReport ?? {};\n\n const statementHwHelp = useMemo(() => {\n const hwConfigAreas: ISchoolSupportArea[] = homeworkHelpConfig?.areas ?? [];\n\n if (!hwConfigAreas.length) return '';\n\n const tokens = { first_name: studentName, topics };\n\n if (isHWHelpProvided === 1 && typeof hwConfigAreas[0]?.report_statement === 'string') {\n return replaceTokens(hwConfigAreas[0].report_statement, tokens);\n }\n\n const statements: string[] = [];\n\n if (topics && typeof hwConfigAreas[1]?.report_statement === 'string') {\n statements.push(replaceTokens(hwConfigAreas[1].report_statement, tokens));\n }\n\n selectedHomeWork.forEach((item, idx) => {\n const rStatement = hwConfigAreas[idx + 2]?.report_statement;\n\n if (Array.isArray(rStatement) && rStatement[item]) {\n statements.push(replaceTokens(rStatement[item], tokens));\n } else if (typeof rStatement === 'string') {\n statements.push(replaceTokens(rStatement, tokens));\n }\n });\n\n return statements.join(' ');\n }, [studentName, homeworkHelpConfig, isHWHelpProvided, selectedHomeWork, topics]);\n\n const testHelpContent = useMemo(() => {\n const testConfigAreas: ISchoolSupportArea[] = testHelpConfig?.areas ?? [];\n\n if (!selectedTest.length || !testConfigAreas.length) return null;\n\n const { grade, scored, total } = performance ?? {};\n const { grade: prevGrade, scored: prevScored, total: prevTotal } = previousPerformance ?? {};\n\n return selectedTest.map((selectedTestIndex, idx) => {\n const testHelpArea = testConfigAreas[idx];\n\n if (!testHelpArea) return null;\n\n const {\n report_statement: reportStatement,\n area_label: reportHeading,\n report_statement_with_performance: withPerf = [],\n report_statement_with_previous_performance: withPrevPerf = [],\n } = testHelpArea;\n\n let statement = '';\n\n if (selectedTestIndex !== undefined) {\n if (\n isOnDemandPTM &&\n withPrevPerf[selectedTestIndex] &&\n performance &&\n previousPerformance\n ) {\n statement = replaceTokens(withPrevPerf[selectedTestIndex], {\n first_name: studentName,\n performance: grade ?? `${scored}/${total}`,\n previous_performance: prevGrade ?? `${prevScored}/${prevTotal}`,\n });\n } else if (withPerf[selectedTestIndex] && performance) {\n statement = replaceTokens(withPerf[selectedTestIndex], {\n first_name: studentName,\n performance: grade ?? `${scored}/${total}`,\n });\n } else if (Array.isArray(reportStatement) && reportStatement[selectedTestIndex]) {\n statement = replaceTokens(reportStatement[selectedTestIndex], {\n first_name: studentName,\n });\n } else if (typeof reportStatement === 'string') {\n statement = replaceTokens(reportStatement, { first_name: studentName });\n }\n }\n\n if (!statement) return null;\n\n return (\n <FlexView key={idx}>\n {reportHeading && <Text $renderAs=\"ac3\">{reportHeading}</Text>}\n <Text $renderAs=\"ub2\">{statement}</Text>\n </FlexView>\n );\n });\n }, [performance, previousPerformance, selectedTest, testHelpConfig, isOnDemandPTM, studentName]);\n\n if (!homeworkHelpReport && !testHelpReport) {\n return null;\n }\n\n return (\n <FlexView>\n <Text $renderAs=\"ab1-bold\">School support</Text>\n <Separator heightX={1} />\n\n {statementHwHelp && (\n <FlexView>\n <ReportCard category=\"HOMEWORKS\" bgColor=\"GREEN_1\" description={statementHwHelp} />\n <Separator heightX={0.75} />\n </FlexView>\n )}\n\n {testHelpContent && (\n <Styled.Wrapper $borderRadius={8} $borderColor=\"GREY_2\">\n <FlexView $gutterX={1} $background={'BLUE_1'} $gap={10} $gutter={12}>\n <Text $renderAs=\"ac4\" $align=\"center\">\n TESTS\n </Text>\n </FlexView>\n <FlexView $gutterX={0.75} $gapX={0.75} $flexRowGapX={0.75}>\n {testHelpContent}\n </FlexView>\n </Styled.Wrapper>\n )}\n\n <Separator heightX={2} />\n </FlexView>\n );\n};\n\nexport default memo(SchoolSupport);\n"],"names":["SchoolSupport","homeworkHelpReport","homeworkHelpConfig","testHelpReport","testHelpConfig","studentName","isOnDemandPTM","isHWHelpProvided","selectedHomeWork","topics","selectedTest","performance","previousPerformance","statementHwHelp","useMemo","hwConfigAreas","tokens","_a","replaceTokens","statements","_b","item","idx","rStatement","testHelpContent","testConfigAreas","grade","scored","total","prevGrade","prevScored","prevTotal","selectedTestIndex","testHelpArea","reportStatement","reportHeading","withPerf","withPrevPerf","statement","FlexView","jsx","Text","Separator","ReportCard","Styled.Wrapper","SchoolSupport$1","memo"],"mappings":";;;;;;;;AAWA,MAAMA,IAAyC,CAAC;AAAA,EAC9C,oBAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AACF,MAAM;AACE,QAAA;AAAA,IACJ,qBAAqBC;AAAA,IACrB,UAAUC,IAAmB,CAAC;AAAA,IAC9B,QAAAC;AAAA,EAAA,IACER,KAAsB,CAAA,GACpB;AAAA,IACJ,UAAUS,IAAe,CAAC;AAAA,IAC1B,aAAAC;AAAA,IACA,sBAAsBC;AAAA,EAAA,IACpBT,KAAkB,CAAA,GAEhBU,IAAkBC,EAAQ,MAAM;;AAC9B,UAAAC,KAAsCb,KAAA,gBAAAA,EAAoB,UAAS;AAErE,QAAA,CAACa,EAAc,OAAe,QAAA;AAElC,UAAMC,IAAS,EAAE,YAAYX,GAAa,QAAAI,EAAO;AAEjD,QAAIF,MAAqB,KAAK,SAAOU,IAAAF,EAAc,CAAC,MAAf,gBAAAE,EAAkB,qBAAqB;AAC1E,aAAOC,EAAcH,EAAc,CAAC,EAAE,kBAAkBC,CAAM;AAGhE,UAAMG,IAAuB,CAAA;AAE7B,WAAIV,KAAU,SAAOW,IAAAL,EAAc,CAAC,MAAf,gBAAAK,EAAkB,qBAAqB,YAC1DD,EAAW,KAAKD,EAAcH,EAAc,CAAC,EAAE,kBAAkBC,CAAM,CAAC,GAGzDR,EAAA,QAAQ,CAACa,GAAMC,MAAQ;;AACtC,YAAMC,KAAaN,IAAAF,EAAcO,IAAM,CAAC,MAArB,gBAAAL,EAAwB;AAE3C,MAAI,MAAM,QAAQM,CAAU,KAAKA,EAAWF,CAAI,IAC9CF,EAAW,KAAKD,EAAcK,EAAWF,CAAI,GAAGL,CAAM,CAAC,IAC9C,OAAOO,KAAe,YAC/BJ,EAAW,KAAKD,EAAcK,GAAYP,CAAM,CAAC;AAAA,IACnD,CACD,GAEMG,EAAW,KAAK,GAAG;AAAA,EAAA,GACzB,CAACd,GAAaH,GAAoBK,GAAkBC,GAAkBC,CAAM,CAAC,GAE1Ee,IAAkBV,EAAQ,MAAM;AAC9B,UAAAW,KAAwCrB,KAAA,gBAAAA,EAAgB,UAAS;AAEvE,QAAI,CAACM,EAAa,UAAU,CAACe,EAAgB,OAAe,QAAA;AAE5D,UAAM,EAAE,OAAAC,GAAO,QAAAC,GAAQ,OAAAC,EAAM,IAAIjB,KAAe,CAAA,GAC1C,EAAE,OAAOkB,GAAW,QAAQC,GAAY,OAAOC,EAAA,IAAcnB,KAAuB;AAE1F,WAAOF,EAAa,IAAI,CAACsB,GAAmBV,MAAQ;AAC5C,YAAAW,IAAeR,EAAgBH,CAAG;AAEpC,UAAA,CAACW,EAAqB,QAAA;AAEpB,YAAA;AAAA,QACJ,kBAAkBC;AAAA,QAClB,YAAYC;AAAA,QACZ,mCAAmCC,IAAW,CAAC;AAAA,QAC/C,4CAA4CC,IAAe,CAAC;AAAA,MAC1D,IAAAJ;AAEJ,UAAIK,IAAY;AA4BZ,aA1BAN,MAAsB,WAEtB1B,KACA+B,EAAaL,CAAiB,KAC9BrB,KACAC,IAEY0B,IAAApB,EAAcmB,EAAaL,CAAiB,GAAG;AAAA,QACzD,YAAY3B;AAAA,QACZ,aAAaqB,KAAS,GAAGC,CAAM,IAAIC,CAAK;AAAA,QACxC,sBAAsBC,KAAa,GAAGC,CAAU,IAAIC,CAAS;AAAA,MAAA,CAC9D,IACQK,EAASJ,CAAiB,KAAKrB,IAC5B2B,IAAApB,EAAckB,EAASJ,CAAiB,GAAG;AAAA,QACrD,YAAY3B;AAAA,QACZ,aAAaqB,KAAS,GAAGC,CAAM,IAAIC,CAAK;AAAA,MAAA,CACzC,IACQ,MAAM,QAAQM,CAAe,KAAKA,EAAgBF,CAAiB,IAChEM,IAAApB,EAAcgB,EAAgBF,CAAiB,GAAG;AAAA,QAC5D,YAAY3B;AAAA,MAAA,CACb,IACQ,OAAO6B,KAAoB,aACpCI,IAAYpB,EAAcgB,GAAiB,EAAE,YAAY7B,EAAa,CAAA,KAIrEiC,sBAGFC,GACE,EAAA,UAAA;AAAA,QAAAJ,KAAkB,gBAAAK,EAAAC,GAAA,EAAK,WAAU,OAAO,UAAcN,GAAA;AAAA,QACtD,gBAAAK,EAAAC,GAAA,EAAK,WAAU,OAAO,UAAUH,GAAA;AAAA,MAAA,EAAA,GAFpBhB,CAGf,IANqB;AAAA,IAMrB,CAEH;AAAA,EAAA,GACA,CAACX,GAAaC,GAAqBF,GAAcN,GAAgBE,GAAeD,CAAW,CAAC;AAE3F,SAAA,CAACJ,KAAsB,CAACE,IACnB,yBAINoC,GACC,EAAA,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,YAAW,UAAc,kBAAA;AAAA,IACzC,gBAAAD,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,IAEtB7B,uBACE0B,GACC,EAAA,UAAA;AAAA,MAAA,gBAAAC,EAACG,KAAW,UAAS,aAAY,SAAQ,WAAU,aAAa9B,GAAiB;AAAA,MACjF,gBAAA2B,EAACE,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,IAAA,GAC5B;AAAA,IAGDlB,uBACEoB,GAAA,EAAe,eAAe,GAAG,cAAa,UAC7C,UAAA;AAAA,MAAA,gBAAAJ,EAACD,KAAS,UAAU,GAAG,aAAa,UAAU,MAAM,IAAI,SAAS,IAC/D,UAAA,gBAAAC,EAACC,KAAK,WAAU,OAAM,QAAO,UAAS,kBAEtC,CAAA,GACF;AAAA,MACA,gBAAAD,EAACD,KAAS,UAAU,MAAM,OAAO,MAAM,cAAc,MAClD,UACHf,EAAA,CAAA;AAAA,IAAA,GACF;AAAA,IAGF,gBAAAgB,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACzB,EAAA,CAAA;AAEJ,GAEeG,IAAAC,EAAK9C,CAAa;"}
|
package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategies/strategies-constant.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const E = [
|
|
2
|
+
["PURPLE_1", "PURPLE_2", "PURPLE_5", "PURPLE_4"],
|
|
3
|
+
["GREEN_1", "GREEN_2", "GREEN_5", "GREEN_4"],
|
|
4
|
+
["YELLOW_1", "YELLOW_2", "YELLOW_5", "YELLOW_4"],
|
|
5
|
+
["BLUE_1", "BLUE_2", "BLUE_5", "BLUE_4"],
|
|
6
|
+
["ORANGE_1", "ORANGE_2", "ORANGE_5", "ORANGE_4"]
|
|
7
|
+
];
|
|
8
|
+
export {
|
|
9
|
+
E as STRATEGY_CARD_COLORS
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=strategies-constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strategies-constant.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/strategies/strategies-constant.ts"],"sourcesContent":["import type { TColorNames } from '../../../../../ui/types';\n\nexport const STRATEGY_CARD_COLORS: TColorNames[][] = [\n ['PURPLE_1', 'PURPLE_2', 'PURPLE_5', 'PURPLE_4'],\n ['GREEN_1', 'GREEN_2', 'GREEN_5', 'GREEN_4'],\n ['YELLOW_1', 'YELLOW_2', 'YELLOW_5', 'YELLOW_4'],\n ['BLUE_1', 'BLUE_2', 'BLUE_5', 'BLUE_4'],\n ['ORANGE_1', 'ORANGE_2', 'ORANGE_5', 'ORANGE_4'],\n] as const;\n"],"names":["STRATEGY_CARD_COLORS"],"mappings":"AAEO,MAAMA,IAAwC;AAAA,EACnD,CAAC,YAAY,YAAY,YAAY,UAAU;AAAA,EAC/C,CAAC,WAAW,WAAW,WAAW,SAAS;AAAA,EAC3C,CAAC,YAAY,YAAY,YAAY,UAAU;AAAA,EAC/C,CAAC,UAAU,UAAU,UAAU,QAAQ;AAAA,EACvC,CAAC,YAAY,YAAY,YAAY,UAAU;AACjD;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { memo as u } from "react";
|
|
3
|
+
import l from "../../../../../ui/layout/flex-view.js";
|
|
4
|
+
import m from "../../../../../ui/separator/separator.js";
|
|
5
|
+
import g from "../../../../../ui/text/text.js";
|
|
6
|
+
import S from "../strategy-card/strategy-card.js";
|
|
7
|
+
import { STRATEGY_CARD_COLORS as a } from "./strategies-constant.js";
|
|
8
|
+
const b = ({ report: i, strategyConfig: s }) => {
|
|
9
|
+
if (!i) return null;
|
|
10
|
+
const f = Object.keys(i);
|
|
11
|
+
return /* @__PURE__ */ h(l, { children: [
|
|
12
|
+
/* @__PURE__ */ o(g, { $renderAs: "ab1-bold", children: "Strategies" }),
|
|
13
|
+
/* @__PURE__ */ o(m, { heightX: 1 }),
|
|
14
|
+
/* @__PURE__ */ o(l, { $flexRowGapX: 0.75, children: f.map((e, p) => {
|
|
15
|
+
const t = i[e], r = s[e];
|
|
16
|
+
if (!(r != null && r.options) || (t == null ? void 0 : t.length) === 0) return null;
|
|
17
|
+
const n = r.options.filter(
|
|
18
|
+
(d, c) => t == null ? void 0 : t.includes(c)
|
|
19
|
+
);
|
|
20
|
+
return n.length === 0 ? null : /* @__PURE__ */ o(
|
|
21
|
+
S,
|
|
22
|
+
{
|
|
23
|
+
title: r.category_label,
|
|
24
|
+
colorPalette: a[p % a.length],
|
|
25
|
+
data: n
|
|
26
|
+
},
|
|
27
|
+
e
|
|
28
|
+
);
|
|
29
|
+
}) }),
|
|
30
|
+
/* @__PURE__ */ o(m, { heightX: 2 })
|
|
31
|
+
] });
|
|
32
|
+
}, T = u(b);
|
|
33
|
+
export {
|
|
34
|
+
T as default
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=strategies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strategies.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/strategies/strategies.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport type { IStrategiesProps } from './strategies-types';\nimport Separator from '../../../../../ui/separator/separator';\nimport Text from '../../../../../ui/text/text';\nimport StrategyCard from '../strategy-card/strategy-card';\nimport { STRATEGY_CARD_COLORS } from './strategies-constant';\nimport type { IReportStrategies, IStrategyCategory } from '../../ptm-report-types';\n\nconst Strategies: FC<IStrategiesProps> = ({ report, strategyConfig }) => {\n if (!report) return null;\n\n const reportKeys = Object.keys(report) as (keyof IReportStrategies)[];\n\n return (\n <FlexView>\n <Text $renderAs=\"ab1-bold\">Strategies</Text>\n <Separator heightX={1} />\n <FlexView $flexRowGapX={0.75}>\n {reportKeys.map((key, index) => {\n const selectedIndexes = report[key];\n const category: IStrategyCategory | undefined = strategyConfig[key];\n\n if (!category?.options || selectedIndexes?.length === 0) return null;\n\n const selectedOptions = category.options.filter(\n (_, idx) => selectedIndexes?.includes(idx),\n );\n\n if (selectedOptions.length === 0) return null;\n\n return (\n <StrategyCard\n key={key}\n title={category.category_label}\n colorPalette={STRATEGY_CARD_COLORS[index % STRATEGY_CARD_COLORS.length]!}\n data={selectedOptions}\n />\n );\n })}\n </FlexView>\n <Separator heightX={2} />\n </FlexView>\n );\n};\n\nexport default memo(Strategies);\n"],"names":["Strategies","report","strategyConfig","reportKeys","FlexView","jsx","Text","Separator","key","index","selectedIndexes","category","selectedOptions","_","idx","StrategyCard","STRATEGY_CARD_COLORS","Strategies$1","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAAmC,CAAC,EAAE,QAAAC,GAAQ,gBAAAC,QAAqB;AACnE,MAAA,CAACD,EAAe,QAAA;AAEd,QAAAE,IAAa,OAAO,KAAKF,CAAM;AAErC,2BACGG,GACC,EAAA,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,YAAW,UAAU,cAAA;AAAA,IACrC,gBAAAD,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,IACvB,gBAAAF,EAACD,KAAS,cAAc,MACrB,YAAW,IAAI,CAACI,GAAKC,MAAU;AACxB,YAAAC,IAAkBT,EAAOO,CAAG,GAC5BG,IAA0CT,EAAeM,CAAG;AAElE,UAAI,EAACG,KAAA,QAAAA,EAAU,aAAWD,KAAA,gBAAAA,EAAiB,YAAW,EAAU,QAAA;AAE1D,YAAAE,IAAkBD,EAAS,QAAQ;AAAA,QACvC,CAACE,GAAGC,MAAQJ,KAAA,gBAAAA,EAAiB,SAASI;AAAA,MAAG;AAGvC,aAAAF,EAAgB,WAAW,IAAU,OAGvC,gBAAAP;AAAA,QAACU;AAAA,QAAA;AAAA,UAEC,OAAOJ,EAAS;AAAA,UAChB,cAAcK,EAAqBP,IAAQO,EAAqB,MAAM;AAAA,UACtE,MAAMJ;AAAA,QAAA;AAAA,QAHDJ;AAAA,MAAA;AAAA,IAMV,CAAA,GACH;AAAA,IACA,gBAAAH,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACzB,EAAA,CAAA;AAEJ,GAEeU,IAAAC,EAAKlB,CAAU;"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import r from "styled-components";
|
|
2
|
+
import p from "../../../../../ui/layout/flex-view.js";
|
|
3
|
+
const n = r(p)`
|
|
4
|
+
position: absolute;
|
|
5
|
+
right: 0;
|
|
6
|
+
height: 50px;
|
|
7
|
+
border-left-width: 0;
|
|
8
|
+
border-right-width: 1px;
|
|
9
|
+
border-bottom-width: 1px;
|
|
10
|
+
border-right-color: ${({ theme: o }) => o.colors.WHITE};
|
|
11
|
+
border-bottom-color: ${({ color: o, theme: t }) => t.colors[o]};
|
|
12
|
+
border-bottom-left-radius: 16px;
|
|
13
|
+
width: 50px;
|
|
14
|
+
height: 50px;
|
|
15
|
+
background: ${({ color: o, theme: t }) => ` linear-gradient(to top right,${t.colors[o]} 50%,${t.colors.WHITE} 50%)`};
|
|
16
|
+
border-bottom-left-radius: 16px;
|
|
17
|
+
`, x = r(p)`
|
|
18
|
+
position: relative;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
`, s = r(p)`
|
|
21
|
+
height: 10px;
|
|
22
|
+
width: 10px;
|
|
23
|
+
margin-top: 6px;
|
|
24
|
+
border-radius: 16px;
|
|
25
|
+
border-width: 2px;
|
|
26
|
+
`, l = r(p)`
|
|
27
|
+
width: fit-content;
|
|
28
|
+
border-bottom-right-radius: 16px;
|
|
29
|
+
`, a = r(p)`
|
|
30
|
+
padding: 12px 32px 8px 16px;
|
|
31
|
+
`, b = r(p)`
|
|
32
|
+
padding-bottom: 8px;
|
|
33
|
+
position: relative;
|
|
34
|
+
|
|
35
|
+
${({ $isLast: o, borderColor: t, theme: i }) => !o && `
|
|
36
|
+
&::before {
|
|
37
|
+
content: '';
|
|
38
|
+
position: absolute;
|
|
39
|
+
left: 4px;
|
|
40
|
+
top: 16px;
|
|
41
|
+
bottom: -8px;
|
|
42
|
+
border-left: 1px dashed ${t ? i.colors[t] : i.colors.GREY_3};
|
|
43
|
+
z-index: 0;
|
|
44
|
+
}
|
|
45
|
+
`}
|
|
46
|
+
`;
|
|
47
|
+
export {
|
|
48
|
+
s as Circle,
|
|
49
|
+
n as FoldingWrapper,
|
|
50
|
+
l as HeadingWrapper,
|
|
51
|
+
b as InfoItemWrapper,
|
|
52
|
+
a as InfoWrapper,
|
|
53
|
+
x as Wrapper
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=strategy-card-styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strategy-card-styled.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/strategy-card/strategy-card-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport type { TColorNames } from '../../../../../ui/types';\n\nexport const FoldingWrapper = styled(FlexView)<{ color: TColorNames }>`\n position: absolute;\n right: 0;\n height: 50px;\n border-left-width: 0;\n border-right-width: 1px;\n border-bottom-width: 1px;\n border-right-color: ${({ theme }) => theme.colors.WHITE};\n border-bottom-color: ${({ color, theme }) => theme.colors[color]};\n border-bottom-left-radius: 16px;\n width: 50px;\n height: 50px;\n background: ${({ color, theme }) =>\n ` linear-gradient(to top right,${theme.colors[color]} 50%,${theme.colors.WHITE} 50%)`};\n border-bottom-left-radius: 16px;\n`;\n\nexport const Wrapper = styled(FlexView)`\n position: relative;\n overflow: hidden;\n`;\n\nexport const Circle = styled(FlexView)`\n height: 10px;\n width: 10px;\n margin-top: 6px;\n border-radius: 16px;\n border-width: 2px;\n`;\n\nexport const HeadingWrapper = styled(FlexView)`\n width: fit-content;\n border-bottom-right-radius: 16px;\n`;\n\nexport const InfoWrapper = styled(FlexView)`\n padding: 12px 32px 8px 16px;\n`;\n\nexport const InfoItemWrapper = styled(FlexView)<{ $isLast?: boolean; borderColor?: TColorNames }>`\n padding-bottom: 8px;\n position: relative;\n\n ${({ $isLast, borderColor, theme }) =>\n !$isLast &&\n `\n &::before {\n content: '';\n position: absolute;\n left: 4px;\n top: 16px;\n bottom: -8px;\n border-left: 1px dashed ${borderColor ? theme.colors[borderColor] : theme.colors.GREY_3};\n z-index: 0;\n }\n `}\n`;\n"],"names":["FoldingWrapper","styled","FlexView","theme","color","Wrapper","Circle","HeadingWrapper","InfoWrapper","InfoItemWrapper","$isLast","borderColor"],"mappings":";;AAKa,MAAAA,IAAiBC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAOrB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,yBAChC,CAAC,EAAE,OAAAC,GAAO,OAAAD,EAAA,MAAYA,EAAM,OAAOC,CAAK,CAAC;AAAA;AAAA;AAAA;AAAA,gBAIlD,CAAC,EAAE,OAAAA,GAAO,OAAAD,QACtB,iCAAiCA,EAAM,OAAOC,CAAK,CAAC,QAAQD,EAAM,OAAO,KAAK,OAAO;AAAA;AAAA,GAI5EE,IAAUJ,EAAOC,CAAQ;AAAA;AAAA;AAAA,GAKzBI,IAASL,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQxBK,IAAiBN,EAAOC,CAAQ;AAAA;AAAA;AAAA,GAKhCM,IAAcP,EAAOC,CAAQ;AAAA;AAAA,GAI7BO,IAAkBR,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,IAI1C,CAAC,EAAE,SAAAQ,GAAS,aAAAC,GAAa,OAAAR,EAAM,MAC/B,CAACO,KACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAO4BC,IAAcR,EAAM,OAAOQ,CAAW,IAAIR,EAAM,OAAO,MAAM;AAAA;AAAA;AAAA,GAG1F;AAAA;"}
|
package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategy-card/strategy-card.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as f } from "react";
|
|
3
|
+
import s from "../../../../../ui/layout/flex-view.js";
|
|
4
|
+
import u from "../../../../../ui/separator/separator.js";
|
|
5
|
+
import i from "../../../../../ui/text/text.js";
|
|
6
|
+
import { Wrapper as g, HeadingWrapper as h, InfoWrapper as b, InfoItemWrapper as x, Circle as C, FoldingWrapper as W } from "./strategy-card-styled.js";
|
|
7
|
+
const k = ({ title: c, colorPalette: l, data: t = [] }) => {
|
|
8
|
+
const [o, e, d, a] = l;
|
|
9
|
+
return !l || !o || !e || !d ? null : /* @__PURE__ */ n(g, { $background: o, $borderRadius: 8, children: [
|
|
10
|
+
/* @__PURE__ */ r(h, { $background: e, $gutterX: 0.75, $gap: 6, children: /* @__PURE__ */ r(i, { $renderAs: "ac4", children: c }) }),
|
|
11
|
+
/* @__PURE__ */ r(b, { children: t.map(({ option_info: m, option_label: p }, $) => /* @__PURE__ */ n(
|
|
12
|
+
x,
|
|
13
|
+
{
|
|
14
|
+
$flexDirection: "row",
|
|
15
|
+
$flexColumnGapX: 0.75,
|
|
16
|
+
borderColor: a,
|
|
17
|
+
$isLast: $ === t.length - 1,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ r(C, { $borderColor: d, $background: o }),
|
|
20
|
+
/* @__PURE__ */ n(s, { $flex: 1, children: [
|
|
21
|
+
/* @__PURE__ */ r(i, { $renderAs: "ub2-bold", children: p }),
|
|
22
|
+
/* @__PURE__ */ r(u, { height: 4 }),
|
|
23
|
+
/* @__PURE__ */ r(i, { $renderAs: "ub2", children: m })
|
|
24
|
+
] })
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
p
|
|
28
|
+
)) }),
|
|
29
|
+
/* @__PURE__ */ r(W, { color: e })
|
|
30
|
+
] });
|
|
31
|
+
}, F = f(k);
|
|
32
|
+
export {
|
|
33
|
+
F as default
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=strategy-card.js.map
|
package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategy-card/strategy-card.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strategy-card.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/strategy-card/strategy-card.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport Separator from '../../../../../ui/separator/separator';\nimport Text from '../../../../../ui/text/text';\nimport * as Styled from './strategy-card-styled';\nimport type { IStrategyCardProps } from './strategy-card-types';\n\nconst StrategyCard: FC<IStrategyCardProps> = ({ title, colorPalette, data = [] }) => {\n const [color1, color2, color3, color4] = colorPalette;\n\n if (!colorPalette || !color1 || !color2 || !color3) return null;\n\n return (\n <Styled.Wrapper $background={color1} $borderRadius={8}>\n <Styled.HeadingWrapper $background={color2} $gutterX={0.75} $gap={6}>\n <Text $renderAs=\"ac4\">{title}</Text>\n </Styled.HeadingWrapper>\n <Styled.InfoWrapper>\n {data.map(({ option_info: optionInfo, option_label: optionLabel }, index) => (\n <Styled.InfoItemWrapper\n key={optionLabel}\n $flexDirection=\"row\"\n $flexColumnGapX={0.75}\n borderColor={color4}\n $isLast={index === data.length - 1}\n >\n <Styled.Circle $borderColor={color3} $background={color1} />\n <FlexView $flex={1}>\n <Text $renderAs=\"ub2-bold\">{optionLabel}</Text>\n <Separator height={4} />\n <Text $renderAs=\"ub2\">{optionInfo}</Text>\n </FlexView>\n </Styled.InfoItemWrapper>\n ))}\n </Styled.InfoWrapper>\n <Styled.FoldingWrapper color={color2} />\n </Styled.Wrapper>\n );\n};\n\nexport default memo(StrategyCard);\n"],"names":["StrategyCard","title","colorPalette","data","color1","color2","color3","color4","Styled.Wrapper","jsx","Styled.HeadingWrapper","Text","Styled.InfoWrapper","optionInfo","optionLabel","index","jsxs","Styled.InfoItemWrapper","Styled.Circle","FlexView","Separator","Styled.FoldingWrapper","StrategyCard$1","memo"],"mappings":";;;;;;AAQA,MAAMA,IAAuC,CAAC,EAAE,OAAAC,GAAO,cAAAC,GAAc,MAAAC,IAAO,SAAS;AACnF,QAAM,CAACC,GAAQC,GAAQC,GAAQC,CAAM,IAAIL;AAErC,SAAA,CAACA,KAAgB,CAACE,KAAU,CAACC,KAAU,CAACC,IAAe,yBAGxDE,GAAA,EAAe,aAAaJ,GAAQ,eAAe,GAClD,UAAA;AAAA,IAAA,gBAAAK,EAACC,GAAA,EAAsB,aAAaL,GAAQ,UAAU,MAAM,MAAM,GAChE,UAAC,gBAAAI,EAAAE,GAAA,EAAK,WAAU,OAAO,YAAM,CAAA,GAC/B;AAAA,IACC,gBAAAF,EAAAG,GAAA,EACE,UAAKT,EAAA,IAAI,CAAC,EAAE,aAAaU,GAAY,cAAcC,KAAeC,MACjE,gBAAAC;AAAA,MAACC;AAAAA,MAAA;AAAA,QAEC,gBAAe;AAAA,QACf,iBAAiB;AAAA,QACjB,aAAaV;AAAA,QACb,SAASQ,MAAUZ,EAAK,SAAS;AAAA,QAEjC,UAAA;AAAA,UAAA,gBAAAM,EAACS,GAAA,EAAc,cAAcZ,GAAQ,aAAaF,GAAQ;AAAA,UAC1D,gBAAAY,EAACG,GAAS,EAAA,OAAO,GACf,UAAA;AAAA,YAAC,gBAAAV,EAAAE,GAAA,EAAK,WAAU,YAAY,UAAYG,GAAA;AAAA,YACxC,gBAAAL,EAACW,GAAU,EAAA,QAAQ,EAAG,CAAA;AAAA,YACrB,gBAAAX,EAAAE,GAAA,EAAK,WAAU,OAAO,UAAWE,GAAA;AAAA,UAAA,GACpC;AAAA,QAAA;AAAA,MAAA;AAAA,MAXKC;AAAA,IAaR,CAAA,GACH;AAAA,IACC,gBAAAL,EAAAY,GAAA,EAAsB,OAAOhB,EAAQ,CAAA;AAAA,EACxC,EAAA,CAAA;AAEJ,GAEeiB,IAAAC,EAAKvB,CAAY;"}
|
package/dist/features/timeline/monthly-timeline/ptm-report/comps/student-info/student-info-styled.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import r from "styled-components";
|
|
2
|
+
import { ILLUSTRATIONS as o } from "../../../../../../assets/illustrations/illustrations.js";
|
|
3
|
+
import e from "../../../../../ui/layout/flex-view.js";
|
|
4
|
+
const d = r(e)`
|
|
5
|
+
background: url(${o.PERCENTAGE_PATTERN_YELLOW});
|
|
6
|
+
width: 100%;
|
|
7
|
+
min-height: 210px;
|
|
8
|
+
background-size: cover;
|
|
9
|
+
border-radius: 0 0 12px 12px;
|
|
10
|
+
${({ theme: i }) => i.mediaQueries.minWidthTablet} {
|
|
11
|
+
min-height: 260px;
|
|
12
|
+
}
|
|
13
|
+
`, a = r(e)`
|
|
14
|
+
margin-top: -8px;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
`;
|
|
17
|
+
export {
|
|
18
|
+
a as GradeWrapper,
|
|
19
|
+
d as Wrapper
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=student-info-styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"student-info-styled.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/student-info/student-info-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../../../assets/illustrations/illustrations';\nimport FlexView from '../../../../../ui/layout/flex-view';\n\nexport const Wrapper = styled(FlexView)`\n background: url(${ILLUSTRATIONS.PERCENTAGE_PATTERN_YELLOW});\n width: 100%;\n min-height: 210px;\n background-size: cover;\n border-radius: 0 0 12px 12px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n min-height: 260px;\n }\n`;\n\nexport const GradeWrapper = styled(FlexView)`\n margin-top: -8px;\n z-index: 2;\n`;\n"],"names":["Wrapper","styled","FlexView","ILLUSTRATIONS","theme","GradeWrapper"],"mappings":";;;AAKa,MAAAA,IAAUC,EAAOC,CAAQ;AAAA,oBAClBC,EAAc,yBAAyB;AAAA;AAAA;AAAA;AAAA;AAAA,IAKvD,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA,GAKvCC,IAAeJ,EAAOC,CAAQ;AAAA;AAAA;AAAA;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as m } from "react";
|
|
3
|
+
import n from "../../../../../ui/layout/flex-view.js";
|
|
4
|
+
import { Wrapper as d, GradeWrapper as p } from "./student-info-styled.js";
|
|
5
|
+
import a from "../../../../../ui/separator/separator.js";
|
|
6
|
+
import t from "../../../../../ui/text/text.js";
|
|
7
|
+
import f from "../../../../../ui/image/image.js";
|
|
8
|
+
import { ILLUSTRATIONS as s } from "../../../../../../assets/illustrations/illustrations.js";
|
|
9
|
+
const c = ({ grade: o, name: i }) => /* @__PURE__ */ e(d, { $alignItems: "center", $justifyContent: "center", children: [
|
|
10
|
+
/* @__PURE__ */ r(f, { src: s.ALIEN_1, width: 64, height: 64 }),
|
|
11
|
+
/* @__PURE__ */ r(p, { $background: "YELLOW_4", $gutter: 8, $gap: 4, $borderRadius: 4, children: /* @__PURE__ */ e(t, { $renderAs: "ub2", children: [
|
|
12
|
+
"Grade ",
|
|
13
|
+
o
|
|
14
|
+
] }) }),
|
|
15
|
+
/* @__PURE__ */ r(a, { heightX: 0.5 }),
|
|
16
|
+
/* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(t, { $renderAs: "ab1", children: i }) })
|
|
17
|
+
] }), S = m(c);
|
|
18
|
+
export {
|
|
19
|
+
S as default
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=student-info.js.map
|
package/dist/features/timeline/monthly-timeline/ptm-report/comps/student-info/student-info.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"student-info.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/student-info/student-info.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport * as Styled from './student-info-styled';\nimport Separator from '../../../../../ui/separator/separator';\nimport Text from '../../../../../ui/text/text';\nimport type { IStudentInfoProps } from './student-info-types';\nimport Image from '../../../../../ui/image/image';\nimport { ILLUSTRATIONS } from '../../../../../../assets/illustrations/illustrations';\n\nconst StudentInfo: FC<IStudentInfoProps> = ({ grade, name }) => {\n return (\n <Styled.Wrapper $alignItems=\"center\" $justifyContent=\"center\">\n <Image src={ILLUSTRATIONS.ALIEN_1} width={64} height={64} />\n <Styled.GradeWrapper $background=\"YELLOW_4\" $gutter={8} $gap={4} $borderRadius={4}>\n <Text $renderAs=\"ub2\">Grade {grade}</Text>\n </Styled.GradeWrapper>\n <Separator heightX={0.5} />\n <FlexView>\n <Text $renderAs=\"ab1\">{name}</Text>\n </FlexView>\n </Styled.Wrapper>\n );\n};\n\nexport default memo(StudentInfo);\n"],"names":["StudentInfo","grade","name","Styled.Wrapper","jsx","Image","ILLUSTRATIONS","Styled.GradeWrapper","jsxs","Text","Separator","FlexView","StudentInfo$1","memo"],"mappings":";;;;;;;;AAUA,MAAMA,IAAqC,CAAC,EAAE,OAAAC,GAAO,MAAAC,0BAEhDC,GAAA,EAAe,aAAY,UAAS,iBAAgB,UACnD,UAAA;AAAA,EAAA,gBAAAC,EAACC,KAAM,KAAKC,EAAc,SAAS,OAAO,IAAI,QAAQ,IAAI;AAAA,EACzD,gBAAAF,EAAAG,GAAA,EAAoB,aAAY,YAAW,SAAS,GAAG,MAAM,GAAG,eAAe,GAC9E,UAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,OAAM,UAAA;AAAA,IAAA;AAAA,IAAOR;AAAA,EAAA,EAAA,CAAM,EACrC,CAAA;AAAA,EACA,gBAAAG,EAACM,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,oBACxBC,GACC,EAAA,UAAA,gBAAAP,EAACK,KAAK,WAAU,OAAO,aAAK,EAC9B,CAAA;AACF,EAAA,CAAA,GAIWG,IAAAC,EAAKb,CAAW;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support-card-styled.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\n\nexport const Wrapper = styled(FlexView)`\n overflow: hidden;\n`;\n"],"names":["Wrapper","styled","FlexView"],"mappings":";;AAIa,MAAAA,IAAUC,EAAOC,CAAQ;AAAA;AAAA;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as m } from "react";
|
|
3
|
+
import o from "../../../../../ui/layout/flex-view.js";
|
|
4
|
+
import t from "../../../../../ui/text/text.js";
|
|
5
|
+
import $ from "../../../../../ui/image/image.js";
|
|
6
|
+
import { Wrapper as c } from "./support-card-styled.js";
|
|
7
|
+
const p = ({ title: i, info: d, statement: n, icon: l }) => /* @__PURE__ */ e(c, { $borderColor: "GREY_3", $flexDirection: "column", $borderRadius: 8, children: [
|
|
8
|
+
/* @__PURE__ */ e(
|
|
9
|
+
o,
|
|
10
|
+
{
|
|
11
|
+
$flexDirection: "row",
|
|
12
|
+
$gutterX: 0.5,
|
|
13
|
+
$gapX: 0.75,
|
|
14
|
+
$flexColumnGapX: 0.5,
|
|
15
|
+
$alignItems: "center",
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ r($, { src: l, width: 48, height: 48 }),
|
|
18
|
+
/* @__PURE__ */ e(o, { $flex: 1, children: [
|
|
19
|
+
/* @__PURE__ */ r(t, { $renderAs: "ab2-bold", children: i }),
|
|
20
|
+
/* @__PURE__ */ r(t, { $renderAs: "ub2", $color: "BLACK_T_60", children: d })
|
|
21
|
+
] })
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
/* @__PURE__ */ r(o, { $gutterX: 0.75, $gapX: 0.75, $background: "ORANGE_1", children: /* @__PURE__ */ r(t, { $renderAs: "body2", children: n }) })
|
|
26
|
+
] }), g = m(p);
|
|
27
|
+
export {
|
|
28
|
+
g as default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=support-card.js.map
|
package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support-card.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport Text from '../../../../../ui/text/text';\nimport type { ISupportCardProps } from './support-card-types';\nimport Image from '../../../../../ui/image/image';\nimport * as Styled from './support-card-styled';\n\nconst SupportCard: FC<ISupportCardProps> = ({ title, info, statement, icon }) => {\n return (\n <Styled.Wrapper $borderColor=\"GREY_3\" $flexDirection=\"column\" $borderRadius={8}>\n <FlexView\n $flexDirection=\"row\"\n $gutterX={0.5}\n $gapX={0.75}\n $flexColumnGapX={0.5}\n $alignItems=\"center\"\n >\n <Image src={icon} width={48} height={48} />\n <FlexView $flex={1}>\n <Text $renderAs=\"ab2-bold\">{title}</Text>\n <Text $renderAs=\"ub2\" $color=\"BLACK_T_60\">\n {info}\n </Text>\n </FlexView>\n </FlexView>\n <FlexView $gutterX={0.75} $gapX={0.75} $background=\"ORANGE_1\">\n <Text $renderAs=\"body2\">{statement}</Text>\n </FlexView>\n </Styled.Wrapper>\n );\n};\n\nexport default memo(SupportCard);\n"],"names":["SupportCard","title","info","statement","icon","jsxs","Styled.Wrapper","FlexView","jsx","Image","Text","SupportCard$1","memo"],"mappings":";;;;;;AAQA,MAAMA,IAAqC,CAAC,EAAE,OAAAC,GAAO,MAAAC,GAAM,WAAAC,GAAW,MAAAC,QAElE,gBAAAC,EAACC,GAAA,EAAe,cAAa,UAAS,gBAAe,UAAS,eAAe,GAC3E,UAAA;AAAA,EAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,gBAAe;AAAA,MACf,UAAU;AAAA,MACV,OAAO;AAAA,MACP,iBAAiB;AAAA,MACjB,aAAY;AAAA,MAEZ,UAAA;AAAA,QAAA,gBAAAC,EAACC,KAAM,KAAKL,GAAM,OAAO,IAAI,QAAQ,IAAI;AAAA,QACzC,gBAAAC,EAACE,GAAS,EAAA,OAAO,GACf,UAAA;AAAA,UAAC,gBAAAC,EAAAE,GAAA,EAAK,WAAU,YAAY,UAAMT,GAAA;AAAA,4BACjCS,GAAK,EAAA,WAAU,OAAM,QAAO,cAC1B,UACHR,GAAA;AAAA,QAAA,GACF;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAAA,EACC,gBAAAM,EAAAD,GAAA,EAAS,UAAU,MAAM,OAAO,MAAM,aAAY,YACjD,UAAC,gBAAAC,EAAAE,GAAA,EAAK,WAAU,SAAS,YAAU,CAAA,GACrC;AACF,EAAA,CAAA,GAIWC,IAAAC,EAAKZ,CAAW;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teacher-observations-constant.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.ts"],"sourcesContent":["import type { TColorNames } from '../../../../../ui/types';\n\nexport const REPORT_CARD_BG_COLORS: Record<string, TColorNames> = {\n ['Strength 💪🏻']: 'GREEN_1',\n ['Growth 🚀']: 'BLUE_1',\n ['Focus Area 🎯']: 'ORANGE_1',\n} as const;\n"],"names":["REPORT_CARD_BG_COLORS"],"mappings":"AAEO,MAAMA,IAAqD;AAAA,EAC/D,iBAAkB;AAAA,EAClB,aAAc;AAAA,EACd,iBAAkB;AACrB;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as v } from "react";
|
|
3
|
+
import p from "../../../../../ui/layout/flex-view.js";
|
|
4
|
+
import m from "../../../../../ui/separator/separator.js";
|
|
5
|
+
import E from "../../../../../ui/text/text.js";
|
|
6
|
+
import o from "../report-card/report-card.js";
|
|
7
|
+
import { REPORT_CARD_BG_COLORS as P } from "./teacher-observations-constant.js";
|
|
8
|
+
import { REPORT_CARD_ICON_MAP as d } from "../../ptm-report-constants.js";
|
|
9
|
+
const u = ({
|
|
10
|
+
strengthsReport: _,
|
|
11
|
+
strengthAreas: b,
|
|
12
|
+
focusArea: e,
|
|
13
|
+
focusAreaReportTag: g,
|
|
14
|
+
teacherRemarkTag: R,
|
|
15
|
+
teacherRemarks: t
|
|
16
|
+
}) => /* @__PURE__ */ l(p, { children: [
|
|
17
|
+
/* @__PURE__ */ r(E, { $renderAs: "ab1-bold", children: "Teacher observations" }),
|
|
18
|
+
/* @__PURE__ */ r(m, { heightX: 1 }),
|
|
19
|
+
/* @__PURE__ */ l(p, { $flexRowGapX: 1, children: [
|
|
20
|
+
Object.entries(_).map(([n, i]) => {
|
|
21
|
+
if (i != null) {
|
|
22
|
+
const a = b.find(({ area_key: x }) => x === n);
|
|
23
|
+
if (!a) return null;
|
|
24
|
+
const { area_label: f, icon: O, options: c } = a, h = Array.isArray(c) ? c[i] : void 0, { report_statement: y = "", report_tag: s = "" } = h || {}, C = d[O] ?? void 0, T = P[s] ?? "GREY_1";
|
|
25
|
+
return /* @__PURE__ */ r(
|
|
26
|
+
o,
|
|
27
|
+
{
|
|
28
|
+
icon: C,
|
|
29
|
+
category: s,
|
|
30
|
+
bgColor: T,
|
|
31
|
+
title: f,
|
|
32
|
+
description: y
|
|
33
|
+
},
|
|
34
|
+
n
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}),
|
|
39
|
+
e && /* @__PURE__ */ r(
|
|
40
|
+
o,
|
|
41
|
+
{
|
|
42
|
+
icon: d[e.icon],
|
|
43
|
+
bgColor: "ORANGE_1",
|
|
44
|
+
title: e.area_label,
|
|
45
|
+
category: g,
|
|
46
|
+
description: e.report_statement
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
t && /* @__PURE__ */ r(o, { bgColor: "PURPLE_1", category: R, description: t })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ r(m, { heightX: 2 })
|
|
52
|
+
] }), I = v(u);
|
|
53
|
+
export {
|
|
54
|
+
I as default
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=teacher-observations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teacher-observations.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/teacher-observations/teacher-observations.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport Separator from '../../../../../ui/separator/separator';\nimport Text from '../../../../../ui/text/text';\nimport ReportCard from '../report-card/report-card';\nimport type { ITeacherObservationsProps } from './teacher-observations-types';\nimport { REPORT_CARD_BG_COLORS } from './teacher-observations-constant';\nimport { REPORT_CARD_ICON_MAP } from '../../ptm-report-constants';\n\nconst TeacherObservations: FC<ITeacherObservationsProps> = ({\n strengthsReport,\n strengthAreas,\n focusArea,\n focusAreaReportTag,\n teacherRemarkTag,\n teacherRemarks,\n}) => {\n return (\n <FlexView>\n <Text $renderAs=\"ab1-bold\">Teacher observations</Text>\n <Separator heightX={1} />\n <FlexView $flexRowGapX={1}>\n {Object.entries(strengthsReport).map(([key, value]) => {\n if (value != null) {\n const selectedData = strengthAreas.find(({ area_key: areaKey }) => areaKey === key);\n\n if (!selectedData) return null;\n\n const { area_label: areaLabel, icon, options } = selectedData;\n const selectedOption = Array.isArray(options) ? options[value] : undefined;\n\n const { report_statement: reportStatement = '', report_tag: reportTag = '' } =\n selectedOption || {};\n\n const iconKey = icon as keyof typeof REPORT_CARD_ICON_MAP;\n const resolvedIcon = REPORT_CARD_ICON_MAP[iconKey] ?? undefined;\n\n const bgKey = reportTag as keyof typeof REPORT_CARD_BG_COLORS;\n const bgColor = REPORT_CARD_BG_COLORS[bgKey] ?? 'GREY_1';\n\n return (\n <ReportCard\n key={key}\n icon={resolvedIcon}\n category={reportTag}\n bgColor={bgColor}\n title={areaLabel}\n description={reportStatement}\n />\n );\n }\n\n return null;\n })}\n\n {focusArea && (\n <ReportCard\n icon={REPORT_CARD_ICON_MAP[focusArea.icon as keyof typeof REPORT_CARD_ICON_MAP]}\n bgColor=\"ORANGE_1\"\n title={focusArea.area_label}\n category={focusAreaReportTag}\n description={focusArea.report_statement}\n />\n )}\n\n {teacherRemarks && (\n <ReportCard bgColor=\"PURPLE_1\" category={teacherRemarkTag} description={teacherRemarks} />\n )}\n </FlexView>\n <Separator heightX={2} />\n </FlexView>\n );\n};\n\nexport default memo(TeacherObservations);\n"],"names":["TeacherObservations","strengthsReport","strengthAreas","focusArea","focusAreaReportTag","teacherRemarkTag","teacherRemarks","FlexView","jsx","Text","Separator","jsxs","key","value","selectedData","areaKey","areaLabel","icon","options","selectedOption","reportStatement","reportTag","resolvedIcon","REPORT_CARD_ICON_MAP","bgColor","REPORT_CARD_BG_COLORS","ReportCard","TeacherObservations$1","memo"],"mappings":";;;;;;;;AAUA,MAAMA,IAAqD,CAAC;AAAA,EAC1D,iBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,WAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,gBAAAC;AACF,wBAEKC,GACC,EAAA,UAAA;AAAA,EAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,YAAW,UAAoB,wBAAA;AAAA,EAC/C,gBAAAD,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACvB,gBAAAC,EAACJ,GAAS,EAAA,cAAc,GACrB,UAAA;AAAA,IAAO,OAAA,QAAQN,CAAe,EAAE,IAAI,CAAC,CAACW,GAAKC,CAAK,MAAM;AACrD,UAAIA,KAAS,MAAM;AACX,cAAAC,IAAeZ,EAAc,KAAK,CAAC,EAAE,UAAUa,EAAc,MAAAA,MAAYH,CAAG;AAE9E,YAAA,CAACE,EAAqB,QAAA;AAE1B,cAAM,EAAE,YAAYE,GAAW,MAAAC,GAAM,SAAAC,MAAYJ,GAC3CK,IAAiB,MAAM,QAAQD,CAAO,IAAIA,EAAQL,CAAK,IAAI,QAE3D,EAAE,kBAAkBO,IAAkB,IAAI,YAAYC,IAAY,GAAA,IACtEF,KAAkB,IAGdG,IAAeC,EADLN,CACiC,KAAK,QAGhDO,IAAUC,EADFJ,CAC6B,KAAK;AAG9C,eAAA,gBAAAb;AAAA,UAACkB;AAAA,UAAA;AAAA,YAEC,MAAMJ;AAAA,YACN,UAAUD;AAAA,YACV,SAAAG;AAAA,YACA,OAAOR;AAAA,YACP,aAAaI;AAAA,UAAA;AAAA,UALRR;AAAA,QAAA;AAAA,MAQX;AAEO,aAAA;AAAA,IAAA,CACR;AAAA,IAEAT,KACC,gBAAAK;AAAA,MAACkB;AAAA,MAAA;AAAA,QACC,MAAMH,EAAqBpB,EAAU,IAAyC;AAAA,QAC9E,SAAQ;AAAA,QACR,OAAOA,EAAU;AAAA,QACjB,UAAUC;AAAA,QACV,aAAaD,EAAU;AAAA,MAAA;AAAA,IACzB;AAAA,IAGDG,uBACEoB,GAAW,EAAA,SAAQ,YAAW,UAAUrB,GAAkB,aAAaC,GAAgB;AAAA,EAAA,GAE5F;AAAA,EACA,gBAAAE,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AACzB,EAAA,CAAA,GAIWiB,IAAAC,EAAK5B,CAAmB;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as n } from "react";
|
|
3
|
+
import o from "../../../../../ui/layout/flex-view.js";
|
|
4
|
+
import t from "../../../../../ui/text/text.js";
|
|
5
|
+
import i from "../../../../../ui/separator/separator.js";
|
|
6
|
+
const p = ({ chapters: e }) => e ? /* @__PURE__ */ m(o, { children: [
|
|
7
|
+
/* @__PURE__ */ r(t, { $renderAs: "ab1-bold", children: "Upcoming Chapters" }),
|
|
8
|
+
/* @__PURE__ */ r(i, { heightX: 1 }),
|
|
9
|
+
/* @__PURE__ */ r(o, { $background: "GREEN_1", $borderRadiusX: 0.5, $gutterX: 0.75, $gapX: 0.75, children: /* @__PURE__ */ r(t, { $renderAs: "ub2", children: e }) }),
|
|
10
|
+
/* @__PURE__ */ r(i, { heightX: 2 })
|
|
11
|
+
] }) : null, l = n(p);
|
|
12
|
+
export {
|
|
13
|
+
l as default
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=upcoming-chapters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upcoming-chapters.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport Text from '../../../../../ui/text/text';\nimport Separator from '../../../../../ui/separator/separator';\n\nconst UpcomingChapters: FC<{ chapters?: string }> = ({ chapters }) => {\n if (!chapters) {\n return null;\n }\n\n return (\n <FlexView>\n <Text $renderAs=\"ab1-bold\">Upcoming Chapters</Text>\n <Separator heightX={1} />\n <FlexView $background=\"GREEN_1\" $borderRadiusX={0.5} $gutterX={0.75} $gapX={0.75}>\n <Text $renderAs=\"ub2\">{chapters}</Text>\n </FlexView>\n <Separator heightX={2} />\n </FlexView>\n );\n};\n\nexport default memo(UpcomingChapters);\n"],"names":["UpcomingChapters","chapters","FlexView","jsx","Text","Separator","UpcomingChapters$1","memo"],"mappings":";;;;;AAMA,MAAMA,IAA8C,CAAC,EAAE,UAAAC,QAChDA,sBAKFC,GACC,EAAA,UAAA;AAAA,EAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,YAAW,UAAiB,qBAAA;AAAA,EAC5C,gBAAAD,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACtB,gBAAAF,EAAAD,GAAA,EAAS,aAAY,WAAU,gBAAgB,KAAK,UAAU,MAAM,OAAO,MAC1E,UAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,OAAO,YAAS,CAAA,GAClC;AAAA,EACA,gBAAAD,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AACzB,EAAA,CAAA,IAXO,MAeIC,IAAAC,EAAKP,CAAgB;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ILLUSTRATIONS as E } from "../../../../assets/illustrations/illustrations.js";
|
|
2
|
+
const L = {
|
|
3
|
+
Focus: E.FOCUS_BLUE,
|
|
4
|
+
Help: E.QUESTION_MARK_YELLOW,
|
|
5
|
+
Renewal: E.RENEWAL_BLUE,
|
|
6
|
+
Book: E.OPENED_BOOK_GREEN,
|
|
7
|
+
Time: E.TIME_PURPLE,
|
|
8
|
+
LiveSession: E.LIVE_SESSION_BLUE,
|
|
9
|
+
Confidence: E.THUMBS_UP_GREEN,
|
|
10
|
+
Problem: E.PUZZLE_PURPLE,
|
|
11
|
+
Pi: E.PI_ORANGE
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
L as REPORT_CARD_ICON_MAP
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=ptm-report-constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ptm-report-constants.js","sources":["../../../../../src/features/timeline/monthly-timeline/ptm-report/ptm-report-constants.ts"],"sourcesContent":["import { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\n\nexport const REPORT_CARD_ICON_MAP: Record<string, string> = {\n Focus: ILLUSTRATIONS.FOCUS_BLUE,\n Help: ILLUSTRATIONS.QUESTION_MARK_YELLOW,\n Renewal: ILLUSTRATIONS.RENEWAL_BLUE,\n Book: ILLUSTRATIONS.OPENED_BOOK_GREEN,\n Time: ILLUSTRATIONS.TIME_PURPLE,\n LiveSession: ILLUSTRATIONS.LIVE_SESSION_BLUE,\n Confidence: ILLUSTRATIONS.THUMBS_UP_GREEN,\n Problem: ILLUSTRATIONS.PUZZLE_PURPLE,\n Pi: ILLUSTRATIONS.PI_ORANGE,\n} as const;\n"],"names":["REPORT_CARD_ICON_MAP","ILLUSTRATIONS"],"mappings":";AAEO,MAAMA,IAA+C;AAAA,EAC1D,OAAOC,EAAc;AAAA,EACrB,MAAMA,EAAc;AAAA,EACpB,SAASA,EAAc;AAAA,EACvB,MAAMA,EAAc;AAAA,EACpB,MAAMA,EAAc;AAAA,EACpB,aAAaA,EAAc;AAAA,EAC3B,YAAYA,EAAc;AAAA,EAC1B,SAASA,EAAc;AAAA,EACvB,IAAIA,EAAc;AACpB;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ptm-report-helpers.js","sources":["../../../../../src/features/timeline/monthly-timeline/ptm-report/ptm-report-helpers.ts"],"sourcesContent":["export const replaceTokens = (\n template: string,\n tokens: Record<string, string | number | undefined>,\n): string =>\n Object.entries(tokens).reduce(\n (acc, [key, value]) => acc.replaceAll(`<${key}>`, value !== undefined ? String(value) : ''),\n template,\n );\n"],"names":["replaceTokens","template","tokens","acc","key","value"],"mappings":"AAAO,MAAMA,IAAgB,CAC3BC,GACAC,MAEA,OAAO,QAAQA,CAAM,EAAE;AAAA,EACrB,CAACC,GAAK,CAACC,GAAKC,CAAK,MAAMF,EAAI,WAAW,IAAIC,CAAG,KAAKC,MAAU,SAAY,OAAOA,CAAK,IAAI,EAAE;AAAA,EAC1FJ;AACF;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ptm-report-styled.js","sources":["../../../../../src/features/timeline/monthly-timeline/ptm-report/ptm-report-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst Container = styled(FlexView)`\n max-width: 480px;\n width: 100%;\n overflow-x: hidden;\n`;\n\nexport { Container };\n"],"names":["Container","styled","FlexView"],"mappings":";;AAIM,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ptm-report-types.js","sources":["../../../../../src/features/timeline/monthly-timeline/ptm-report/ptm-report-types.ts"],"sourcesContent":["// ============================\n// SHARED INTERFACES\n// ============================\n\nexport interface IIntroSlide {\n color: string;\n content: string;\n section_name: string;\n type: string;\n}\n\nexport interface IStrategyOption {\n option_info: string;\n option_label: string;\n}\n\nexport interface IStrategyCategory {\n category_label: string;\n icon: string;\n options: IStrategyOption[];\n}\n\n// ============================\n// CONFIG INTERFACES\n// ============================\n\nexport interface ILearningStrategyConfig {\n intro_slide: IIntroSlide;\n learning_strategy_cta: string;\n max: number;\n min: number;\n page_heading: string;\n page_subheading: string;\n show_key_need?: boolean;\n step_no: number;\n steps_info: string;\n steps_label: string;\n strategies: {\n advanced_math: IStrategyCategory;\n learning_gaps: IStrategyCategory;\n math_anxiety: IStrategyCategory;\n math_foundation: IStrategyCategory;\n mental_math: IStrategyCategory;\n more_practice: IStrategyCategory;\n };\n}\n\nexport interface IParentSupportOptionConfig {\n icon: string;\n option_cta: string | null;\n option_info: string;\n option_key: string;\n option_label: string;\n report_statement: string;\n slides_ratio: string;\n slides_tag: string;\n}\n\nexport interface IParentSupportConfig {\n intro_slide: IIntroSlide;\n options: IParentSupportOptionConfig[];\n page_heading: string;\n page_subheading: string;\n step_no: number;\n steps_info: string;\n steps_label: string;\n}\n\nexport interface IRealWorldProjectConfig {\n intro_slide: IIntroSlide;\n max: number;\n page_heading: string;\n ptm_report_color?: {\n images: string[];\n objective: string;\n remarks: string;\n };\n remarks_heading: string;\n remarks_placeholder: string;\n step_no: number;\n steps_info: string;\n steps_label: string;\n tag: string;\n}\n\nexport interface ISchoolSupportArea {\n area_label?: string;\n optional: boolean;\n options?: string[];\n placeholder?: string;\n question: string;\n report_statement: string | string[];\n report_statement_with_performance?: string[];\n report_statement_with_previous_performance?: string[];\n type: string;\n}\n\nexport interface ISchoolSupportHomeworkHelpConfig {\n area_name: string;\n areas: ISchoolSupportArea[];\n color: string;\n optional: boolean;\n page_heading: string;\n}\n\nexport interface ISchoolSupportTestHelpConfig {\n area_name: string;\n areas: ISchoolSupportArea[];\n color: string;\n optional: boolean;\n page_heading: string;\n}\n\nexport interface ISchoolSupportSubsectionsConfig {\n homework_help: ISchoolSupportHomeworkHelpConfig;\n test_help: ISchoolSupportTestHelpConfig;\n}\n\nexport interface ISchoolSupportConfig {\n intro_slide: IIntroSlide;\n step_no: number;\n steps_info: string;\n steps_label: string;\n subsections: ISchoolSupportSubsectionsConfig;\n}\n\nexport interface IObservationAreaConfig {\n area_key: string;\n area_label: string;\n icon: string;\n report_statement: string;\n}\n\nexport interface IFocusAreaConfig {\n areas: IObservationAreaConfig[];\n max: number;\n page_heading: string;\n page_subheading: string;\n report_tag: string;\n}\n\nexport interface IStrengthOptionConfig {\n option_label: string;\n report_statement: string;\n report_tag: string;\n}\n\nexport interface IStrengthAreaConfig extends IObservationAreaConfig {\n options: IStrengthOptionConfig[];\n}\n\nexport interface IStrengthsConfig {\n areas: IStrengthAreaConfig[];\n max: number;\n page_heading: string;\n page_subheading: string;\n}\n\nexport interface ITeacherRemarksConfig {\n area_label: string;\n page_heading: string;\n page_subheading: string;\n placeholder: string;\n report_tag: string;\n}\n\nexport interface ITeacherObservationSubsectionsConfig {\n focus_area: IFocusAreaConfig;\n strengths: IStrengthsConfig;\n teacher_remarks: ITeacherRemarksConfig;\n}\n\nexport interface ITeacherObservationConfig {\n intro_slide: IIntroSlide;\n step_no: number;\n steps_info: string;\n steps_label: string;\n subsections: ITeacherObservationSubsectionsConfig;\n}\n\nexport interface IUpcomingChaptersConfig {\n area_label: string;\n intro_slide: IIntroSlide;\n page_heading: string;\n page_subheading: string;\n placeholder: string;\n step_no: number;\n steps_info: string;\n steps_label: string;\n}\n\nexport interface IPTMReportSectionsConfig {\n learning_strategy: ILearningStrategyConfig;\n parent_support: IParentSupportConfig;\n real_world_project?: IRealWorldProjectConfig;\n school_support?: ISchoolSupportConfig;\n teacher_observation: ITeacherObservationConfig;\n upcoming_chapters?: IUpcomingChaptersConfig;\n}\n\n// ============================\n// REPORT INTERFACES (actual report data)\n// ============================\n\nexport interface IReportStrategies {\n advanced_math?: number[];\n learning_gaps?: number[];\n math_anxiety?: number[];\n math_foundation?: number[];\n mental_math?: number[];\n more_practice?: number[];\n}\n\nexport interface IReportTeacherObservation {\n focus_area: string;\n strengths: Record<string, number>;\n teacher_remarks: string;\n}\n\nexport interface IRealWorldProjectReport {\n images?: number[];\n observation: string;\n}\n\nexport interface IUpcomingChaptersReport {\n upcoming_chapters: string;\n}\n\nexport interface ISchoolSupportHomeworkHelpReport {\n is_hw_help_provided: number;\n selected: number[];\n topics: string;\n}\n\nexport interface ISchoolSupportTestHelpReport {\n performance: {\n scored: string;\n total: string;\n grade: string;\n };\n previous_performance: {\n scored: string;\n total: string;\n grade: string;\n };\n selected: number[];\n}\n\nexport interface ISchoolSupportReport {\n homework_help: ISchoolSupportHomeworkHelpReport;\n test_help: ISchoolSupportTestHelpReport;\n}\n\nexport interface IReportSections {\n parent_support: number[];\n strategies: IReportStrategies;\n teacher_observation: IReportTeacherObservation;\n real_world_project?: IRealWorldProjectReport;\n upcoming_chapters?: IUpcomingChaptersReport;\n school_support?: ISchoolSupportReport;\n}\n\n// ============================\n// STUDENT & TEACHER DATA\n// ============================\n\nexport interface IAttendanceData {\n classes_completed: number;\n weeks_completed: number;\n}\n\nexport interface IHomeworkData {\n incomplete_sheets: number | null;\n sheets_assigned: number;\n sheets_not_completed: number;\n}\n\nexport interface IKeyNeed {\n created_by_id?: string;\n evidence_of_key_need?: string;\n is_published?: boolean;\n is_seen_by_teacher?: boolean;\n key_need: string;\n last_modified_by?: string;\n measure_of_success: string;\n strategies?: any[];\n timestamp?: number;\n}\n\nexport interface ILateClassData {\n break_time: number;\n date: number;\n enter_datetime: number;\n id: string;\n is_invalid: boolean;\n is_skipped: boolean;\n perfect_hit: number;\n scheduled_duration_minutes: number;\n scheduled_end_time: number;\n scheduled_start_datetime: number;\n scheduled_start_time: number;\n status: string;\n student_course_id: string;\n student_id: string;\n tag: string;\n teacher_classroom_id: string;\n was_late: boolean;\n}\n\nexport interface IRealWorldProjectInfo {\n activity: string;\n attempt_id?: string;\n objective: string;\n image_upload_urls?: string[];\n}\n\nexport interface IStudentData {\n attendance_data: IAttendanceData;\n key_need: IKeyNeed;\n country: string;\n country_code: string;\n first_name: string;\n gender: string;\n grade: string;\n homework_data: IHomeworkData;\n last_name: string;\n name: string;\n parent_name: string;\n phone: string;\n plus_class_streak: number;\n real_world_project?: IRealWorldProjectInfo;\n late_class_data: ILateClassData[];\n student_service_id: string;\n}\n\nexport interface ITeacherData {\n email: string;\n first_name: string;\n gender: string;\n last_name: string;\n name: string;\n phone: string;\n}\n\nexport interface IPTMReport {\n report_sections: IReportSections;\n state: string;\n student_data: IStudentData;\n teacher_data: ITeacherData;\n}\n\n// ============================\n// PTM CONFIG INTERFACES\n// ============================\n\nexport interface IDefaultKeyNeed {\n key_need: string;\n measure_of_success: string;\n}\n\nexport interface IFeedbackConfig {\n questions: string[];\n}\n\nexport interface IPTMSchedulingConfig {\n colatteral_image_link: string;\n colatteral_text: string;\n cta_label: string;\n cta_label_share_report?: string;\n cta_text: string;\n cta_text_share_report?: string;\n optional?: boolean;\n step_no: number;\n steps_info: string;\n steps_label: string;\n}\n\nexport interface ISlidesConfigBullet {\n content: string;\n title?: string;\n}\n\nexport interface ISlidesConfig {\n qna?: {\n content: string;\n header: string;\n type: string;\n };\n thankyou: {\n bullets?: ISlidesConfigBullet[];\n content?: string;\n header: string;\n subheader?: string;\n type: string;\n };\n welcome: {\n bullets: ISlidesConfigBullet[];\n header: string;\n type: string;\n };\n}\n\nexport interface IPTMConfigDetails {\n default_key_need: IDefaultKeyNeed;\n feedback_config: IFeedbackConfig;\n late_if_minutes: number;\n late_if_seconds: number;\n ptm_expiry_days: number;\n ptm_report_sections: IPTMReportSectionsConfig;\n ptm_scheduling: IPTMSchedulingConfig;\n report_color_config: Record<string, string>;\n slides_config: ISlidesConfig;\n}\n\nexport interface IPTMConfig {\n config: IPTMConfigDetails;\n created_on_ts: number;\n id: string;\n is_active: boolean;\n meta: null;\n ptm_type: string;\n updated_on_ts: number;\n version: number;\n}\n\n// ============================\n// MAIN PTM RESPONSE INTERFACE\n// ============================\n\nexport interface IPTMReportResponse {\n created_on_ts: number;\n due_date: number;\n id: string;\n is_moment_ptm: boolean;\n meta: {\n student_classroom_id: string;\n student_course_id: string;\n };\n opportunity_action_id: string | null;\n ptm_config: IPTMConfig;\n ptm_config_id: string;\n ptm_id: string;\n ptm_platform: string | null;\n ptm_state: string;\n ptm_type: string;\n report: IPTMReport;\n reschedule_reason: string | null;\n scheduled_on: number;\n student_classroom_id: string;\n student_course_id: string;\n student_id: string;\n teacher_classroom_id: string;\n teacher_id: string;\n updated_on_ts: number;\n}\n\n// ============================\n// UTILITY INTERFACES & ENUMS\n// ============================\n\nexport interface IPTMReportProps {\n ptmId: string;\n}\n\nexport enum EPTMTypes {\n ON_DEMAND = 'ON_DEMAND',\n PLUS_CLASS_7 = 'PLUS_CLASS_7',\n}\n"],"names":["EPTMTypes"],"mappings":"AAgdY,IAAAA,sBAAAA,OACVA,EAAA,YAAY,aACZA,EAAA,eAAe,gBAFLA,IAAAA,KAAA,CAAA,CAAA;"}
|