@cuemath/leap 3.5.67-link1 → 3.5.68-as1
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/features/cue-canvas/bottombar/homework-controls.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/sidebar.js +4 -4
- package/dist/features/cue-canvas/sidebar/sidebar.js.map +1 -1
- package/dist/features/cue-canvas/toolbar/toolbar.js +17 -21
- package/dist/features/cue-canvas/toolbar/toolbar.js.map +1 -1
- package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js +13 -23
- package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js.map +1 -1
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-types.js +4 -4
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-types.js.map +1 -1
- package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js +40 -39
- package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js.map +1 -1
- package/dist/features/math-fit/math-fit-report/math-fit-report.js +74 -57
- package/dist/features/math-fit/math-fit-report/math-fit-report.js.map +1 -1
- package/dist/features/milestone/create/api/milestone-config.js.map +1 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +1 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +1 -1
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/mathfit/mathfit.js +30 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/comps/mathfit/mathfit.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.js.map +1 -1
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report.js +52 -49
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report.js.map +1 -1
- package/dist/features/trial-session/api/trial-home.js +16 -10
- package/dist/features/trial-session/api/trial-home.js.map +1 -1
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +50 -62
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
- package/dist/features/trial-session/comps/class-preference/class-preference-styled.js +14 -5
- package/dist/features/trial-session/comps/class-preference/class-preference-styled.js.map +1 -1
- package/dist/features/trial-session/comps/class-preference/class-preference.js +53 -55
- package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
- package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js +2 -3
- package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js.map +1 -1
- package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js +26 -27
- package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js.map +1 -1
- package/dist/features/trial-session/comps/learning-session/learning-session-styled.js +18 -19
- package/dist/features/trial-session/comps/learning-session/learning-session-styled.js.map +1 -1
- package/dist/features/trial-session/comps/learning-session/learning-session.js +43 -34
- package/dist/features/trial-session/comps/learning-session/learning-session.js.map +1 -1
- package/dist/features/trial-session/comps/navigation-bar/index.js +58 -56
- package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +6 -29
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
- package/dist/features/trial-session/comps/offering-information/offering-information.js +64 -74
- package/dist/features/trial-session/comps/offering-information/offering-information.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js +9 -10
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js +39 -40
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals.js +37 -39
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/session-insights/session-insights-styled.js +20 -12
- package/dist/features/trial-session/comps/session-insights/session-insights-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-insights/session-insights.js +63 -64
- package/dist/features/trial-session/comps/session-insights/session-insights.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview-styled.js +13 -13
- package/dist/features/trial-session/comps/session-overview/session-overview-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview-utils.js +4 -23
- package/dist/features/trial-session/comps/session-overview/session-overview-utils.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview.js +20 -20
- package/dist/features/trial-session/comps/session-overview/session-overview.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js +16 -15
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/session-report.js +33 -35
- package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js +16 -9
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +37 -39
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
- package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js +9 -10
- package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-info/student-info-styled.js +11 -26
- package/dist/features/trial-session/comps/student-info/student-info-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-info/student-info.js +78 -124
- package/dist/features/trial-session/comps/student-info/student-info.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +12 -3
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js +33 -34
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/student-profile.js +44 -45
- package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +8 -9
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep-styled.js +19 -11
- package/dist/features/trial-session/comps/test-prep/test-prep-styled.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep.js +29 -31
- package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
- package/dist/features/trial-session/comps/worksheet/worksheet.js +33 -35
- package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
- package/dist/features/trial-session/context/trial-session-context.js +0 -2
- package/dist/features/trial-session/context/trial-session-context.js.map +1 -1
- package/dist/features/trial-session/helper.js +66 -73
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +158 -190
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/right-panel/right-panel-styled.js +8 -8
- package/dist/features/trial-session/right-panel/right-panel-styled.js.map +1 -1
- package/dist/features/trial-session/right-panel/slide-components-map.js +36 -42
- package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
- package/dist/features/trial-session/trial-session-constants.js +18 -22
- package/dist/features/trial-session/trial-session-constants.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/trial-session/trial-session-view.js +79 -87
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/trial-session/trial-session.js +57 -66
- package/dist/features/trial-session/trial-session.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input/checkbox-input.js +21 -21
- package/dist/features/ui/inputs/checkbox-input/checkbox-input.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +12 -12
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
- package/dist/features/ui/theme/clrs.js +0 -1
- package/dist/features/ui/theme/clrs.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +37 -38
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/index.d.ts +6 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/features/trial-session/api/trial-session-report.js +0 -16
- package/dist/features/trial-session/api/trial-session-report.js.map +0 -1
- package/dist/features/trial-session/api/trial-topics.js +0 -9
- package/dist/features/trial-session/api/trial-topics.js.map +0 -1
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js +0 -61
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js.map +0 -1
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js +0 -5
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js.map +0 -1
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js +0 -135
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js.map +0 -1
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js +0 -53
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js.map +0 -1
- package/dist/features/trial-session/comps/student-info/student-info-constants.js +0 -35
- package/dist/features/trial-session/comps/student-info/student-info-constants.js.map +0 -1
- package/dist/features/trial-session/comps/student-info/student-info-helpers.js +0 -12
- package/dist/features/trial-session/comps/student-info/student-info-helpers.js.map +0 -1
- package/dist/features/trial-session/comps/topic-selection/topic-selection-helpers.js +0 -10
- package/dist/features/trial-session/comps/topic-selection/topic-selection-helpers.js.map +0 -1
- package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js +0 -42
- package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js.map +0 -1
- package/dist/features/trial-session/comps/topic-selection/topic-selection.js +0 -67
- package/dist/features/trial-session/comps/topic-selection/topic-selection.js.map +0 -1
- package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js +0 -21
- package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js.map +0 -1
- package/dist/features/trial-session/comps/whiteboard/whiteboard.js +0 -99
- package/dist/features/trial-session/comps/whiteboard/whiteboard.js.map +0 -1
- package/dist/features/worksheet/worksheet/mocks/activity.js +0 -6
- package/dist/features/worksheet/worksheet/mocks/activity.js.map +0 -1
- package/dist/features/worksheet/worksheet/mocks/signed-requests.js +0 -5
- package/dist/features/worksheet/worksheet/mocks/signed-requests.js.map +0 -1
- package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js +0 -57
- package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js.map +0 -1
- package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js +0 -263
- package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js.map +0 -1
- package/dist/features/worksheet/worksheet/stories/worksheet-student.js +0 -177
- package/dist/features/worksheet/worksheet/stories/worksheet-student.js.map +0 -1
- package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js +0 -268
- package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trial-report.js","sources":["../../../../../src/features/parent-dashboard/modals/trial-report/trial-report.tsx"],"sourcesContent":["import { memo, useCallback, useEffect } from 'react';\n\nimport { useGetSessionReports } from '../../../trial-session/api/trial-
|
|
1
|
+
{"version":3,"file":"trial-report.js","sources":["../../../../../src/features/parent-dashboard/modals/trial-report/trial-report.tsx"],"sourcesContent":["import { memo, useCallback, useEffect } from 'react';\n\nimport { useGetSessionReports } from '../../../trial-session/api/trial-home';\nimport ReportInformation from '../../../trial-session/comps/session-report/report-information/report-information';\nimport Error from '../../../ui/error/error';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport useModalParams from '../../../ui/modals/use-modal-params';\nimport * as Styled from './trial-report-styled';\n\nconst StudentTrialReport = () => {\n const { studentName, attemptId, studentLevel } = useModalParams<{\n studentName: string;\n attemptId: string;\n studentLevel: string;\n }>();\n\n const {\n get: getSessionReports,\n isProcessingFailed,\n data: sessionReports,\n isProcessing,\n } = useGetSessionReports();\n\n const fetchData = useCallback(() => {\n if (attemptId && studentName) {\n getSessionReports(attemptId, {\n student_level: studentLevel,\n student_name: studentName,\n });\n }\n }, [attemptId, getSessionReports, studentLevel, studentName]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n if (isProcessingFailed) {\n return <Error height=\"50vh\" onTryAgain={fetchData} />;\n }\n\n if (isProcessing || !sessionReports) {\n return <AppLoader height={200} width={200} />;\n }\n\n return (\n <Styled.Container $borderColor=\"BLACK_1\">\n <ReportInformation sessionReports={sessionReports} studentName={studentName} />\n </Styled.Container>\n );\n};\n\nexport default memo(StudentTrialReport);\n"],"names":["StudentTrialReport","studentName","attemptId","studentLevel","useModalParams","getSessionReports","isProcessingFailed","sessionReports","isProcessing","useGetSessionReports","fetchData","useCallback","useEffect","jsx","Error","AppLoader","Styled.Container","ReportInformation","trialReport","memo"],"mappings":";;;;;;;;AASA,MAAMA,IAAqB,MAAM;AAC/B,QAAM,EAAE,aAAAC,GAAa,WAAAC,GAAW,cAAAC,MAAiBC,EAI9C,GAEG;AAAA,IACJ,KAAKC;AAAA,IACL,oBAAAC;AAAA,IACA,MAAMC;AAAA,IACN,cAAAC;AAAA,MACEC,EAAqB,GAEnBC,IAAYC,EAAY,MAAM;AAClC,IAAIT,KAAaD,KACfI,EAAkBH,GAAW;AAAA,MAC3B,eAAeC;AAAA,MACf,cAAcF;AAAA,IAAA,CACf;AAAA,KAEF,CAACC,GAAWG,GAAmBF,GAAcF,CAAW,CAAC;AAM5D,SAJAW,EAAU,MAAM;AACJ,IAAAF;EAAA,GACT,CAACA,CAAS,CAAC,GAEVJ,IACM,gBAAAO,EAAAC,GAAA,EAAM,QAAO,QAAO,YAAYJ,EAAW,CAAA,IAGjDF,KAAgB,CAACD,IACX,gBAAAM,EAAAE,GAAA,EAAU,QAAQ,KAAK,OAAO,IAAK,CAAA,IAI3C,gBAAAF,EAACG,GAAA,EAAiB,cAAa,WAC7B,UAAC,gBAAAH,EAAAI,GAAA,EAAkB,gBAAAV,GAAgC,aAAAN,EAA0B,CAAA,EAC/E,CAAA;AAEJ,GAEeiB,IAAAC,EAAKnB,CAAkB;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import a from "../../../../../math-fit/math-fit-report/math-fit-report.js";
|
|
3
|
+
import t from "../../../../../ui/layout/flex-view.js";
|
|
4
|
+
import l from "../../../../../ui/separator/separator.js";
|
|
5
|
+
import n from "../../../../../ui/text/text.js";
|
|
6
|
+
const u = ({
|
|
7
|
+
mathfitTests: e,
|
|
8
|
+
studentName: i
|
|
9
|
+
}) => !e || e.length === 0 ? null : /* @__PURE__ */ p(t, { children: [
|
|
10
|
+
/* @__PURE__ */ r(n, { $renderAs: "ab1-bold", $color: "BLACK_1", children: "MathFit Test Report" }),
|
|
11
|
+
/* @__PURE__ */ r(l, { heightX: 1 }),
|
|
12
|
+
/* @__PURE__ */ r(t, { $flexGapX: 1.5, children: e.map((o) => /* @__PURE__ */ r(
|
|
13
|
+
a,
|
|
14
|
+
{
|
|
15
|
+
data: o,
|
|
16
|
+
studentName: i,
|
|
17
|
+
userType: "STUDENT",
|
|
18
|
+
isMonthlyReportPage: !0,
|
|
19
|
+
onBack: () => {
|
|
20
|
+
},
|
|
21
|
+
onReview: () => {
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
o.id
|
|
25
|
+
)) })
|
|
26
|
+
] });
|
|
27
|
+
export {
|
|
28
|
+
u as default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=mathfit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mathfit.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/monthly-report/comps/mathfit/mathfit.tsx"],"sourcesContent":["import { type IMathFitAssessmentResponse } from '../../../../../math-fit/math-fit-overview/math-fit-overview-types';\nimport MathFitReport from '../../../../../math-fit/math-fit-report/math-fit-report';\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport Separator from '../../../../../ui/separator/separator';\nimport Text from '../../../../../ui/text/text';\n\nconst Mathfit = ({\n mathfitTests,\n studentName,\n}: {\n mathfitTests: IMathFitAssessmentResponse[];\n studentName: string;\n}) => {\n if (!mathfitTests || mathfitTests.length === 0) {\n return null;\n }\n\n return (\n <FlexView>\n <Text $renderAs=\"ab1-bold\" $color=\"BLACK_1\">\n MathFit Test Report\n </Text>\n <Separator heightX={1} />\n <FlexView $flexGapX={1.5}>\n {mathfitTests.map(test => (\n <MathFitReport\n key={test.id}\n data={test}\n studentName={studentName}\n userType=\"STUDENT\"\n isMonthlyReportPage\n onBack={() => {}}\n onReview={() => {}}\n />\n ))}\n </FlexView>\n </FlexView>\n );\n};\n\nexport default Mathfit;\n"],"names":["Mathfit","mathfitTests","studentName","FlexView","jsx","Text","Separator","test","MathFitReport"],"mappings":";;;;;AAMA,MAAMA,IAAU,CAAC;AAAA,EACf,cAAAC;AAAA,EACA,aAAAC;AACF,MAIM,CAACD,KAAgBA,EAAa,WAAW,IACpC,yBAINE,GACC,EAAA,UAAA;AAAA,EAAA,gBAAAC,EAACC,GAAK,EAAA,WAAU,YAAW,QAAO,WAAU,UAE5C,uBAAA;AAAA,EACA,gBAAAD,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,oBACtBH,GAAS,EAAA,WAAW,KAClB,UAAAF,EAAa,IAAI,CAChBM,MAAA,gBAAAH;AAAA,IAACI;AAAA,IAAA;AAAA,MAEC,MAAMD;AAAA,MACN,aAAAL;AAAA,MACA,UAAS;AAAA,MACT,qBAAmB;AAAA,MACnB,QAAQ,MAAM;AAAA,MAAC;AAAA,MACf,UAAU,MAAM;AAAA,MAAC;AAAA,IAAA;AAAA,IANZK,EAAK;AAAA,EAQb,CAAA,GACH;AACF,EAAA,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monthly-report-types.js","sources":["../../../../../src/features/timeline/monthly-timeline/monthly-report/monthly-report-types.ts"],"sourcesContent":["import { type NODE_TYPES } from '../../../../types/models/worksheet';\nimport { type TCourseStream } from '../../../milestone/create/milestone-create-types';\nimport { type THueNames } from '../../../ui/types';\nimport { type NODE_STATE } from '../../daily-timeline/daily-timeline-types';\nimport { type IUserMilestone } from '../monthly-timeline-types';\n\nexport enum CARD_TYPE {\n 'general' = 'general',\n 'legacy' = 'legacy',\n 'diagnostic' = 'diagnostic',\n 'remedial' = 'remedial',\n 'recap' = 'recap',\n 'learn' = 'learn',\n 'extra_practice' = 'extra_practice',\n 'practice' = 'practice',\n 'test' = 'test',\n 'revision' = 'revision',\n 'advanced' = 'advanced',\n 'challenge' = 'challenge',\n 'video' = 'video',\n 'simulation' = 'simulation',\n 'note' = 'note',\n 'subjective' = 'subjective',\n 'deck' = 'deck',\n 'puzzle' = 'puzzle',\n 'test_series' = 'test_series',\n 'activity' = 'activity',\n 'project' = 'project',\n 'certificate' = 'certificate',\n 'ppt_viva' = 'ppt_viva',\n 'ppt_content' = 'ppt_content',\n 'wb_activity' = 'wb_activity',\n 'smart_practice' = 'smart_practice',\n 'exit_ticket' = 'exit_ticket',\n 'monthly_mastery_test' = 'monthly_mastery_test',\n 'supplementary_mastery_test' = 'supplementary_mastery_test',\n 'trial_diagnostic' = 'trial_diagnostic',\n 'trial' = 'trial',\n 'trial_basic' = 'trial_basic',\n 'trial_intermediate' = 'trial_intermediate',\n 'trial_advanced' = 'trial_advanced',\n 'sat_mock_test' = 'sat_mock_test',\n 'pdf' = 'pdf',\n}\n\nexport type ActivitiesByCardType = Partial<{\n [K in CARD_TYPE]: IMonthlyActivity[];\n}>;\n\nexport type TFeedback = 'positive' | 'negative';\n\nexport interface IMonthlyReportResponse {\n course_stream: TCourseStream;\n id: string;\n created_on_ts: number;\n is_deleted: boolean;\n report_date: string;\n report_date_ts: number;\n report_month: number;\n report_year: number;\n student_course_ids: string[];\n user_id: string;\n updated_on_ts: number;\n calendar_data: TCalendarData | null;\n progress_data: {\n user_milestones: IUserMilestone[];\n activities: ActivitiesByCardType;\n user_achievements: IAchievementAsset[];\n };\n feedback: TFeedback | null;\n}\n\nexport interface IProgressStat {\n completed: number;\n total: number;\n}\n\nexport interface IMonthlyActivity {\n id: string;\n node_type: NODE_TYPES;\n card_type: CARD_TYPE;\n card_header: CARD_TYPE | null;\n feedback_comments: string | null;\n state: NODE_STATE;\n title?: string;\n accuracy?: number | null;\n subtext?: string | null;\n is_timed?: boolean;\n image_hue?: THueNames;\n image_url?: string;\n sat_max_score?: number | null;\n sat_total_score?: number | null;\n item_ref?: string | null;\n thumbnail_url?: string;\n user_attempt_id?: string | null;\n tip: string | null;\n user_block_id: string | null;\n user_chapter_id: string | null;\n user_node_id: string | null;\n}\n\nexport interface IAchievementAsset {\n asset_id: string;\n url: string;\n}\n\nexport interface IMonthlyReportProps {\n reportId: string;\n studentName: string;\n onPuzzleClick?: (params: {\n item_ref: IMonthlyActivity['item_ref'];\n feedback_comments: IMonthlyActivity['feedback_comments'];\n image_hue: IMonthlyActivity['image_hue'];\n title: IMonthlyActivity['title'];\n tip: IMonthlyActivity['tip'];\n }) => void;\n showSnackbar?: (params: { type: 'error' | 'info'; message: string; bgColor: string }) => void;\n onFeedback?: (feedback: TFeedback, studentCourseId: string) => void;\n onAPIComplete?: (success: boolean) => void;\n}\n\nexport type TClassType = 'REGULAR' | 'EXTRA';\nexport interface IClassEvent {\n class_type: TClassType;\n is_paused: boolean;\n is_present: boolean;\n status: string;\n tag: string | null;\n theme: string;\n time: number;\n}\n\nexport type TCalendarData = Record<string, IClassEvent[]>;\n"],"names":["CARD_TYPE"],"mappings":"
|
|
1
|
+
{"version":3,"file":"monthly-report-types.js","sources":["../../../../../src/features/timeline/monthly-timeline/monthly-report/monthly-report-types.ts"],"sourcesContent":["import { type NODE_TYPES } from '../../../../types/models/worksheet';\nimport { type IMathFitAssessmentResponse } from '../../../math-fit/math-fit-overview/math-fit-overview-types';\nimport { type TCourseStream } from '../../../milestone/create/milestone-create-types';\nimport { type THueNames } from '../../../ui/types';\nimport { type NODE_STATE } from '../../daily-timeline/daily-timeline-types';\nimport { type IUserMilestone } from '../monthly-timeline-types';\n\nexport enum CARD_TYPE {\n 'general' = 'general',\n 'legacy' = 'legacy',\n 'diagnostic' = 'diagnostic',\n 'remedial' = 'remedial',\n 'recap' = 'recap',\n 'learn' = 'learn',\n 'extra_practice' = 'extra_practice',\n 'practice' = 'practice',\n 'test' = 'test',\n 'revision' = 'revision',\n 'advanced' = 'advanced',\n 'challenge' = 'challenge',\n 'video' = 'video',\n 'simulation' = 'simulation',\n 'note' = 'note',\n 'subjective' = 'subjective',\n 'deck' = 'deck',\n 'puzzle' = 'puzzle',\n 'test_series' = 'test_series',\n 'activity' = 'activity',\n 'project' = 'project',\n 'certificate' = 'certificate',\n 'ppt_viva' = 'ppt_viva',\n 'ppt_content' = 'ppt_content',\n 'wb_activity' = 'wb_activity',\n 'smart_practice' = 'smart_practice',\n 'exit_ticket' = 'exit_ticket',\n 'monthly_mastery_test' = 'monthly_mastery_test',\n 'supplementary_mastery_test' = 'supplementary_mastery_test',\n 'trial_diagnostic' = 'trial_diagnostic',\n 'trial' = 'trial',\n 'trial_basic' = 'trial_basic',\n 'trial_intermediate' = 'trial_intermediate',\n 'trial_advanced' = 'trial_advanced',\n 'sat_mock_test' = 'sat_mock_test',\n 'pdf' = 'pdf',\n}\n\nexport type ActivitiesByCardType = Partial<{\n [K in CARD_TYPE]: IMonthlyActivity[];\n}>;\n\nexport type TFeedback = 'positive' | 'negative';\n\nexport interface IMonthlyReportResponse {\n course_stream: TCourseStream;\n id: string;\n created_on_ts: number;\n is_deleted: boolean;\n report_date: string;\n report_date_ts: number;\n report_month: number;\n report_year: number;\n student_course_ids: string[];\n user_id: string;\n updated_on_ts: number;\n calendar_data: TCalendarData | null;\n progress_data: {\n mathfit_tests: IMathFitAssessmentResponse[];\n user_milestones: IUserMilestone[];\n activities: ActivitiesByCardType;\n user_achievements: IAchievementAsset[];\n };\n feedback: TFeedback | null;\n}\n\nexport interface IProgressStat {\n completed: number;\n total: number;\n}\n\nexport interface IMonthlyActivity {\n id: string;\n node_type: NODE_TYPES;\n card_type: CARD_TYPE;\n card_header: CARD_TYPE | null;\n feedback_comments: string | null;\n state: NODE_STATE;\n title?: string;\n accuracy?: number | null;\n subtext?: string | null;\n is_timed?: boolean;\n image_hue?: THueNames;\n image_url?: string;\n sat_max_score?: number | null;\n sat_total_score?: number | null;\n item_ref?: string | null;\n thumbnail_url?: string;\n user_attempt_id?: string | null;\n tip: string | null;\n user_block_id: string | null;\n user_chapter_id: string | null;\n user_node_id: string | null;\n}\n\nexport interface IAchievementAsset {\n asset_id: string;\n url: string;\n}\n\nexport interface IMonthlyReportProps {\n reportId: string;\n studentName: string;\n onPuzzleClick?: (params: {\n item_ref: IMonthlyActivity['item_ref'];\n feedback_comments: IMonthlyActivity['feedback_comments'];\n image_hue: IMonthlyActivity['image_hue'];\n title: IMonthlyActivity['title'];\n tip: IMonthlyActivity['tip'];\n }) => void;\n showSnackbar?: (params: { type: 'error' | 'info'; message: string; bgColor: string }) => void;\n onFeedback?: (feedback: TFeedback, studentCourseId: string) => void;\n onAPIComplete?: (success: boolean) => void;\n}\n\nexport type TClassType = 'REGULAR' | 'EXTRA';\nexport interface IClassEvent {\n class_type: TClassType;\n is_paused: boolean;\n is_present: boolean;\n status: string;\n tag: string | null;\n theme: string;\n time: number;\n}\n\nexport type TCalendarData = Record<string, IClassEvent[]>;\n"],"names":["CARD_TYPE"],"mappings":"AAOY,IAAAA,sBAAAA,OACVA,EAAA,UAAY,WACZA,EAAA,SAAW,UACXA,EAAA,aAAe,cACfA,EAAA,WAAa,YACbA,EAAA,QAAU,SACVA,EAAA,QAAU,SACVA,EAAA,iBAAmB,kBACnBA,EAAA,WAAa,YACbA,EAAA,OAAS,QACTA,EAAA,WAAa,YACbA,EAAA,WAAa,YACbA,EAAA,YAAc,aACdA,EAAA,QAAU,SACVA,EAAA,aAAe,cACfA,EAAA,OAAS,QACTA,EAAA,aAAe,cACfA,EAAA,OAAS,QACTA,EAAA,SAAW,UACXA,EAAA,cAAgB,eAChBA,EAAA,WAAa,YACbA,EAAA,UAAY,WACZA,EAAA,cAAgB,eAChBA,EAAA,WAAa,YACbA,EAAA,cAAgB,eAChBA,EAAA,cAAgB,eAChBA,EAAA,iBAAmB,kBACnBA,EAAA,cAAgB,eAChBA,EAAA,uBAAyB,wBACzBA,EAAA,6BAA+B,8BAC/BA,EAAA,mBAAqB,oBACrBA,EAAA,QAAU,SACVA,EAAA,cAAgB,eAChBA,EAAA,qBAAuB,sBACvBA,EAAA,iBAAmB,kBACnBA,EAAA,gBAAkB,iBAClBA,EAAA,MAAQ,OApCEA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,82 +1,85 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { monthlyReportGet as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { MonthlyReportContainer as
|
|
7
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { memo as Y, useCallback as E, useEffect as l } from "react";
|
|
3
|
+
import { monthlyReportGet as G } from "./api/use-monthly-report-api.js";
|
|
4
|
+
import N from "../../../ui/loader/app-loader/app-loader.js";
|
|
5
|
+
import w from "../../../ui/error/error.js";
|
|
6
|
+
import { MonthlyReportContainer as A } from "./monthly-report-styled.js";
|
|
7
|
+
import T from "./comps/goals/goals.js";
|
|
8
8
|
import C from "./comps/activities/activities.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { IS_APP_RUNNING_IN_RN as
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
import U from "./comps/attendance/attendance.js";
|
|
10
|
+
import X from "./comps/feedback/feedback.js";
|
|
11
|
+
import q from "./comps/achievements/achievements.js";
|
|
12
|
+
import { IS_APP_RUNNING_IN_RN as z } from "../../../../constants/app-config.js";
|
|
13
|
+
import B from "../../../ui/separator/separator.js";
|
|
14
|
+
import H from "./comps/mathfit/mathfit.js";
|
|
15
|
+
const J = ({
|
|
16
|
+
studentName: a,
|
|
16
17
|
reportId: r,
|
|
17
|
-
onPuzzleClick:
|
|
18
|
+
onPuzzleClick: k,
|
|
18
19
|
showSnackbar: u,
|
|
19
|
-
onFeedback:
|
|
20
|
+
onFeedback: L,
|
|
20
21
|
onAPIComplete: o
|
|
21
22
|
}) => {
|
|
22
23
|
const {
|
|
23
24
|
get: g,
|
|
24
25
|
data: _,
|
|
25
|
-
isProcessing:
|
|
26
|
+
isProcessing: i,
|
|
26
27
|
isProcessingFailed: s,
|
|
27
28
|
isStale: M,
|
|
28
29
|
isProcessed: n
|
|
29
|
-
} =
|
|
30
|
-
progress_data:
|
|
30
|
+
} = G(r), {
|
|
31
|
+
progress_data: S,
|
|
31
32
|
calendar_data: D,
|
|
32
|
-
report_month:
|
|
33
|
-
report_year:
|
|
34
|
-
feedback:
|
|
35
|
-
student_course_ids:
|
|
33
|
+
report_month: c,
|
|
34
|
+
report_year: h,
|
|
35
|
+
feedback: b,
|
|
36
|
+
student_course_ids: m
|
|
36
37
|
} = _ || {}, {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
mathfit_tests: v,
|
|
39
|
+
user_milestones: y,
|
|
40
|
+
activities: R,
|
|
41
|
+
user_achievements: F
|
|
42
|
+
} = S || {}, e = E(() => {
|
|
41
43
|
g(r);
|
|
42
44
|
}, [g, r]);
|
|
43
45
|
if (l(() => {
|
|
44
46
|
e();
|
|
45
47
|
}, [e]), l(() => {
|
|
46
|
-
M && !
|
|
47
|
-
}, [M,
|
|
48
|
+
M && !i && e();
|
|
49
|
+
}, [M, i, e]), l(() => {
|
|
48
50
|
(n || s) && (o == null || o(n && !s));
|
|
49
|
-
}, [n, s, o]),
|
|
50
|
-
return /* @__PURE__ */ t(
|
|
51
|
+
}, [n, s, o]), i && !_)
|
|
52
|
+
return /* @__PURE__ */ t(N, { height: "100dvh" });
|
|
51
53
|
if (s)
|
|
52
|
-
return /* @__PURE__ */ t(
|
|
53
|
-
const
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
v && /* @__PURE__ */ t(
|
|
56
|
-
y && /* @__PURE__ */ t(
|
|
57
|
-
R && /* @__PURE__ */ t(
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
return /* @__PURE__ */ t(w, { height: "100dvh", onTryAgain: e });
|
|
55
|
+
const f = m == null ? void 0 : m[0], d = /* @__PURE__ */ new Date(), p = d.getMonth(), j = p === 0 ? d.getFullYear() - 1 : d.getFullYear();
|
|
56
|
+
return /* @__PURE__ */ x(A, { children: [
|
|
57
|
+
v && /* @__PURE__ */ t(H, { mathfitTests: v, studentName: a }),
|
|
58
|
+
y && /* @__PURE__ */ t(T, { milestones: y, isExpended: !0 }),
|
|
59
|
+
R && /* @__PURE__ */ t(C, { activities: R, onPuzzleClick: k }),
|
|
60
|
+
F && /* @__PURE__ */ t(q, { achievements: F, studentName: a }),
|
|
61
|
+
D && c && h && /* @__PURE__ */ t(
|
|
62
|
+
U,
|
|
60
63
|
{
|
|
61
64
|
calendarData: D,
|
|
62
|
-
reportMonth:
|
|
63
|
-
reportYear:
|
|
65
|
+
reportMonth: c,
|
|
66
|
+
reportYear: h,
|
|
64
67
|
onDateClick: u
|
|
65
68
|
}
|
|
66
69
|
),
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
z && !b && f && (c === (p === 0 ? 12 : p) && h === j) && f ? /* @__PURE__ */ t(
|
|
71
|
+
X,
|
|
69
72
|
{
|
|
70
73
|
reportId: r,
|
|
71
|
-
studentName:
|
|
72
|
-
onFeedback:
|
|
73
|
-
studentCourseId:
|
|
74
|
+
studentName: a,
|
|
75
|
+
onFeedback: L,
|
|
76
|
+
studentCourseId: f,
|
|
74
77
|
showSnackbar: u
|
|
75
78
|
}
|
|
76
|
-
) : /* @__PURE__ */ t(
|
|
79
|
+
) : /* @__PURE__ */ t(B, { heightX: 1 })
|
|
77
80
|
] });
|
|
78
|
-
},
|
|
81
|
+
}, ht = Y(J);
|
|
79
82
|
export {
|
|
80
|
-
|
|
83
|
+
ht as default
|
|
81
84
|
};
|
|
82
85
|
//# sourceMappingURL=monthly-report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monthly-report.js","sources":["../../../../../src/features/timeline/monthly-timeline/monthly-report/monthly-report.tsx"],"sourcesContent":["import { type FC, memo, useCallback, useEffect } from 'react';\n\nimport { type IMonthlyReportProps } from './monthly-report-types';\nimport { monthlyReportGet } from './api/use-monthly-report-api';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport Error from '../../../ui/error/error';\nimport * as Styled from './monthly-report-styled';\nimport Goals from './comps/goals/goals';\nimport Activities from './comps/activities/activities';\nimport Attendance from './comps/attendance/attendance';\nimport Feedback from './comps/feedback/feedback';\nimport Achievements from './comps/achievements/achievements';\nimport { IS_APP_RUNNING_IN_RN } from '../../../../constants/app-config';\nimport Separator from '../../../ui/separator/separator';\n\nconst MonthlyReport: FC<IMonthlyReportProps> = ({\n studentName,\n reportId,\n onPuzzleClick,\n showSnackbar,\n onFeedback,\n onAPIComplete,\n}) => {\n const {\n get: getReport,\n data: reportData,\n isProcessing,\n isProcessingFailed,\n isStale,\n isProcessed,\n } = monthlyReportGet(reportId);\n\n const {\n progress_data: progressData,\n calendar_data: calendarData,\n report_month: month,\n report_year: year,\n feedback,\n student_course_ids: studentCourseIds,\n } = reportData || {};\n\n const {\n user_milestones: userMilestones,\n activities,\n user_achievements: userAchievements,\n } = progressData || {};\n\n const fetchData = useCallback(() => {\n getReport(reportId);\n }, [getReport, reportId]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n useEffect(() => {\n if (isStale && !isProcessing) {\n fetchData();\n }\n }, [isStale, isProcessing, fetchData]);\n\n useEffect(() => {\n if (isProcessed || isProcessingFailed) {\n onAPIComplete?.(isProcessed && !isProcessingFailed);\n }\n }, [isProcessed, isProcessingFailed, onAPIComplete]);\n\n if (isProcessing && !reportData) {\n return <AppLoader height=\"100dvh\" />;\n }\n\n if (isProcessingFailed) {\n return <Error height=\"100dvh\" onTryAgain={fetchData} />;\n }\n\n const firstStudentCourseId = studentCourseIds?.[0];\n\n // Check if the report is for the last month (previous month)\n const currentDate = new Date();\n const lastMonth = currentDate.getMonth(); // Current month - 1 (getMonth() returns 0-11)\n const lastMonthYear = lastMonth === 0 ? currentDate.getFullYear() - 1 : currentDate.getFullYear();\n const adjustedLastMonth = lastMonth === 0 ? 12 : lastMonth; // Handle January edge case\n const isLastMonth = month === adjustedLastMonth && year === lastMonthYear;\n\n const shouldShowFeedback =\n IS_APP_RUNNING_IN_RN && !feedback && firstStudentCourseId && isLastMonth;\n const hasCalendarData = calendarData && month && year;\n\n return (\n <Styled.MonthlyReportContainer>\n {userMilestones && <Goals milestones={userMilestones} isExpended={true} />}\n\n {activities && <Activities activities={activities} onPuzzleClick={onPuzzleClick} />}\n\n {userAchievements && (\n <Achievements achievements={userAchievements} studentName={studentName} />\n )}\n\n {hasCalendarData && (\n <Attendance\n calendarData={calendarData}\n reportMonth={month}\n reportYear={year}\n onDateClick={showSnackbar}\n />\n )}\n\n {shouldShowFeedback && firstStudentCourseId ? (\n <Feedback\n reportId={reportId}\n studentName={studentName}\n onFeedback={onFeedback}\n studentCourseId={firstStudentCourseId}\n showSnackbar={showSnackbar}\n />\n ) : (\n <Separator heightX={1} />\n )}\n </Styled.MonthlyReportContainer>\n );\n};\n\nexport default memo(MonthlyReport);\n"],"names":["MonthlyReport","studentName","reportId","onPuzzleClick","showSnackbar","onFeedback","onAPIComplete","getReport","reportData","isProcessing","isProcessingFailed","isStale","isProcessed","monthlyReportGet","progressData","calendarData","month","year","feedback","studentCourseIds","userMilestones","activities","userAchievements","fetchData","useCallback","useEffect","jsx","AppLoader","Error","firstStudentCourseId","currentDate","lastMonth","lastMonthYear","jsxs","Styled.MonthlyReportContainer","Goals","Activities","Achievements","Attendance","IS_APP_RUNNING_IN_RN","Feedback","Separator","monthlyReport","memo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"monthly-report.js","sources":["../../../../../src/features/timeline/monthly-timeline/monthly-report/monthly-report.tsx"],"sourcesContent":["import { type FC, memo, useCallback, useEffect } from 'react';\n\nimport { type IMonthlyReportProps } from './monthly-report-types';\nimport { monthlyReportGet } from './api/use-monthly-report-api';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport Error from '../../../ui/error/error';\nimport * as Styled from './monthly-report-styled';\nimport Goals from './comps/goals/goals';\nimport Activities from './comps/activities/activities';\nimport Attendance from './comps/attendance/attendance';\nimport Feedback from './comps/feedback/feedback';\nimport Achievements from './comps/achievements/achievements';\nimport { IS_APP_RUNNING_IN_RN } from '../../../../constants/app-config';\nimport Separator from '../../../ui/separator/separator';\nimport Mathfit from './comps/mathfit/mathfit';\n\nconst MonthlyReport: FC<IMonthlyReportProps> = ({\n studentName,\n reportId,\n onPuzzleClick,\n showSnackbar,\n onFeedback,\n onAPIComplete,\n}) => {\n const {\n get: getReport,\n data: reportData,\n isProcessing,\n isProcessingFailed,\n isStale,\n isProcessed,\n } = monthlyReportGet(reportId);\n\n const {\n progress_data: progressData,\n calendar_data: calendarData,\n report_month: month,\n report_year: year,\n feedback,\n student_course_ids: studentCourseIds,\n } = reportData || {};\n\n const {\n mathfit_tests: mathfitTests,\n user_milestones: userMilestones,\n activities,\n user_achievements: userAchievements,\n } = progressData || {};\n\n const fetchData = useCallback(() => {\n getReport(reportId);\n }, [getReport, reportId]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n useEffect(() => {\n if (isStale && !isProcessing) {\n fetchData();\n }\n }, [isStale, isProcessing, fetchData]);\n\n useEffect(() => {\n if (isProcessed || isProcessingFailed) {\n onAPIComplete?.(isProcessed && !isProcessingFailed);\n }\n }, [isProcessed, isProcessingFailed, onAPIComplete]);\n\n if (isProcessing && !reportData) {\n return <AppLoader height=\"100dvh\" />;\n }\n\n if (isProcessingFailed) {\n return <Error height=\"100dvh\" onTryAgain={fetchData} />;\n }\n\n const firstStudentCourseId = studentCourseIds?.[0];\n\n // Check if the report is for the last month (previous month)\n const currentDate = new Date();\n const lastMonth = currentDate.getMonth(); // Current month - 1 (getMonth() returns 0-11)\n const lastMonthYear = lastMonth === 0 ? currentDate.getFullYear() - 1 : currentDate.getFullYear();\n const adjustedLastMonth = lastMonth === 0 ? 12 : lastMonth; // Handle January edge case\n const isLastMonth = month === adjustedLastMonth && year === lastMonthYear;\n\n const shouldShowFeedback =\n IS_APP_RUNNING_IN_RN && !feedback && firstStudentCourseId && isLastMonth;\n const hasCalendarData = calendarData && month && year;\n\n return (\n <Styled.MonthlyReportContainer>\n {mathfitTests && <Mathfit mathfitTests={mathfitTests} studentName={studentName} />}\n\n {userMilestones && <Goals milestones={userMilestones} isExpended={true} />}\n\n {activities && <Activities activities={activities} onPuzzleClick={onPuzzleClick} />}\n\n {userAchievements && (\n <Achievements achievements={userAchievements} studentName={studentName} />\n )}\n\n {hasCalendarData && (\n <Attendance\n calendarData={calendarData}\n reportMonth={month}\n reportYear={year}\n onDateClick={showSnackbar}\n />\n )}\n\n {shouldShowFeedback && firstStudentCourseId ? (\n <Feedback\n reportId={reportId}\n studentName={studentName}\n onFeedback={onFeedback}\n studentCourseId={firstStudentCourseId}\n showSnackbar={showSnackbar}\n />\n ) : (\n <Separator heightX={1} />\n )}\n </Styled.MonthlyReportContainer>\n );\n};\n\nexport default memo(MonthlyReport);\n"],"names":["MonthlyReport","studentName","reportId","onPuzzleClick","showSnackbar","onFeedback","onAPIComplete","getReport","reportData","isProcessing","isProcessingFailed","isStale","isProcessed","monthlyReportGet","progressData","calendarData","month","year","feedback","studentCourseIds","mathfitTests","userMilestones","activities","userAchievements","fetchData","useCallback","useEffect","jsx","AppLoader","Error","firstStudentCourseId","currentDate","lastMonth","lastMonthYear","jsxs","Styled.MonthlyReportContainer","Mathfit","Goals","Activities","Achievements","Attendance","IS_APP_RUNNING_IN_RN","Feedback","Separator","monthlyReport","memo"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAMA,IAAyC,CAAC;AAAA,E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EAAY;AASlF,SAAA,gBAAAG,EAACC,GAAA,EACE,UAAA;AAAA,IAAgBf,KAAA,gBAAAO,EAACS,GAAQ,EAAA,cAAAhB,GAA4B,aAAAnB,EAA0B,CAAA;AAAA,IAE/EoB,KAAmB,gBAAAM,EAAAU,GAAA,EAAM,YAAYhB,GAAgB,YAAY,IAAM;AAAA,IAEvEC,KAAc,gBAAAK,EAACW,GAAW,EAAA,YAAAhB,GAAwB,eAAAnB,EAA8B,CAAA;AAAA,IAEhFoB,KACC,gBAAAI,EAACY,GAAa,EAAA,cAAchB,GAAkB,aAAAtB,GAA0B;AAAA,IAXtDc,KAAgBC,KAASC,KAe3C,gBAAAU;AAAA,MAACa;AAAA,MAAA;AAAA,QACC,cAAAzB;AAAA,QACA,aAAaC;AAAA,QACb,YAAYC;AAAA,QACZ,aAAab;AAAA,MAAA;AAAA,IACf;AAAA,IArBJqC,KAAwB,CAACvB,KAAYY,MAHnBd,OADMgB,MAAc,IAAI,KAAKA,MACEf,MAASgB,MA2BjCH,IACrB,gBAAAH;AAAA,MAACe;AAAA,MAAA;AAAA,QACC,UAAAxC;AAAA,QACA,aAAAD;AAAA,QACA,YAAAI;AAAA,QACA,iBAAiByB;AAAA,QACjB,cAAA1B;AAAA,MAAA;AAAA,IAGF,IAAA,gBAAAuB,EAACgB,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EAE3B,EAAA,CAAA;AAEJ,GAEeC,KAAAC,EAAK7C,CAAa;"}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import { createGetAPI as
|
|
2
|
-
import { BASE_URL_V1 as
|
|
3
|
-
import { stringify as
|
|
4
|
-
const { useGet:
|
|
5
|
-
getURL: (
|
|
6
|
-
}), { usePatch:
|
|
7
|
-
getURL: () => `${
|
|
1
|
+
import { createGetAPI as s, createPatchAPI as a } from "@cuemath/rest-api";
|
|
2
|
+
import { BASE_URL_V1 as r, BASE_URL_V2 as i } from "../../../constants/api.js";
|
|
3
|
+
import { stringify as o } from "../../../helpers/query-string.js";
|
|
4
|
+
const { useGet: u, invalidate: l } = s({
|
|
5
|
+
getURL: (t, e) => `${r}/trial/home/v2/?${o(e)}`
|
|
6
|
+
}), { usePatch: p } = a({
|
|
7
|
+
getURL: () => `${r}/trial/home/v2/`
|
|
8
|
+
}), { useGet: g } = s({
|
|
9
|
+
getURL: (t) => `${i}/user-attempts/${t}/trial-diagnostic/report`
|
|
10
|
+
}), { useGet: $ } = s({
|
|
11
|
+
getURL: (t, e) => `${i}/user-attempts/${t}/trial-diagnostic/report/v2/?${o(e)}`
|
|
8
12
|
});
|
|
9
13
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
l as invalidateTrialHome,
|
|
15
|
+
g as useGetSessionInsights,
|
|
16
|
+
$ as useGetSessionReports,
|
|
17
|
+
u as useGetTrialHome,
|
|
18
|
+
p as usePatchTrialHome
|
|
13
19
|
};
|
|
14
20
|
//# sourceMappingURL=trial-home.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trial-home.js","sources":["../../../../src/features/trial-session/api/trial-home.ts"],"sourcesContent":["import { createGetAPI, createPatchAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\nimport { stringify } from '../../../helpers/query-string';\nimport type { ITrialHomeData } from '../trial-session-types';\n\ninterface IGetTrailHomeQuery {\n teacher_id: string;\n student_id: string;\n viewer: string;\n}\n\nconst { useGet: useGetTrialHome, invalidate: invalidateTrialHome } = createGetAPI<\n ITrialHomeData,\n IGetTrailHomeQuery\n>({\n getURL: (_, query) => `${BASE_URL_V1}/trial/home/v2/?${stringify(query)}`,\n});\n\nconst { usePatch: usePatchTrialHome } = createPatchAPI({\n getURL: () => `${BASE_URL_V1}/trial/home/v2/`,\n});\n\
|
|
1
|
+
{"version":3,"file":"trial-home.js","sources":["../../../../src/features/trial-session/api/trial-home.ts"],"sourcesContent":["import { createGetAPI, createPatchAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1, BASE_URL_V2 } from '../../../constants/api';\nimport { stringify } from '../../../helpers/query-string';\nimport type { TSessionInsightsData } from '../comps/session-insights/session-insights-types';\nimport type { TSessionReportData } from '../comps/session-report/session-report-types';\nimport type { ITrialHomeData } from '../trial-session-types';\n\ninterface IGetTrailHomeQuery {\n teacher_id: string;\n student_id: string;\n viewer: string;\n}\n\ninterface ISessionInsightsQuery {\n student_level: string;\n student_name: string;\n}\n\nconst { useGet: useGetTrialHome, invalidate: invalidateTrialHome } = createGetAPI<\n ITrialHomeData,\n IGetTrailHomeQuery\n>({\n getURL: (_, query) => `${BASE_URL_V1}/trial/home/v2/?${stringify(query)}`,\n});\n\nconst { usePatch: usePatchTrialHome } = createPatchAPI({\n getURL: () => `${BASE_URL_V1}/trial/home/v2/`,\n});\n\nconst { useGet: useGetSessionInsights } = createGetAPI<TSessionInsightsData>({\n getURL: userAttemptId => `${BASE_URL_V2}/user-attempts/${userAttemptId}/trial-diagnostic/report`,\n});\n\nconst { useGet: useGetSessionReports } = createGetAPI<TSessionReportData, ISessionInsightsQuery>({\n getURL: (userAttemptId, query) =>\n `${BASE_URL_V2}/user-attempts/${userAttemptId}/trial-diagnostic/report/v2/?${stringify(query)}`,\n});\n\nexport {\n useGetTrialHome,\n usePatchTrialHome,\n invalidateTrialHome,\n useGetSessionReports,\n useGetSessionInsights,\n};\n"],"names":["useGetTrialHome","invalidateTrialHome","createGetAPI","_","query","BASE_URL_V1","stringify","usePatchTrialHome","createPatchAPI","useGetSessionInsights","userAttemptId","BASE_URL_V2","useGetSessionReports"],"mappings":";;;AAmBA,MAAM,EAAE,QAAQA,GAAiB,YAAYC,EAAA,IAAwBC,EAGnE;AAAA,EACA,QAAQ,CAACC,GAAGC,MAAU,GAAGC,CAAW,mBAAmBC,EAAUF,CAAK,CAAC;AACzE,CAAC,GAEK,EAAE,UAAUG,EAAkB,IAAIC,EAAe;AAAA,EACrD,QAAQ,MAAM,GAAGH,CAAW;AAC9B,CAAC,GAEK,EAAE,QAAQI,EAAsB,IAAIP,EAAmC;AAAA,EAC3E,QAAQ,CAAAQ,MAAiB,GAAGC,CAAW,kBAAkBD,CAAa;AACxE,CAAC,GAEK,EAAE,QAAQE,EAAqB,IAAIV,EAAwD;AAAA,EAC/F,QAAQ,CAACQ,GAAeN,MACtB,GAAGO,CAAW,kBAAkBD,CAAa,gCAAgCJ,EAAUF,CAAK,CAAC;AACjG,CAAC;"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { getTheme as
|
|
1
|
+
import { getTheme as O } from "../../../ui/theme/get-theme.js";
|
|
2
2
|
import { TrialPageId as x } from "../../trial-session-constants.js";
|
|
3
|
-
const
|
|
4
|
-
BLACK_T_08:
|
|
5
|
-
WHITE_3:
|
|
3
|
+
const I = O(), {
|
|
4
|
+
BLACK_T_08: l,
|
|
5
|
+
WHITE_3: b,
|
|
6
6
|
WHITE_4: A,
|
|
7
7
|
WHITE_5: i,
|
|
8
8
|
GREEN_1: o,
|
|
9
9
|
GREEN_2: s,
|
|
10
10
|
ORANGE_1: C,
|
|
11
|
-
ORANGE_2:
|
|
12
|
-
BLUE_1:
|
|
13
|
-
BLUE_2:
|
|
14
|
-
BLUE_3:
|
|
15
|
-
PURPLE_1:
|
|
16
|
-
PURPLE_2:
|
|
17
|
-
YELLOW_1:
|
|
18
|
-
YELLOW_2:
|
|
19
|
-
} =
|
|
11
|
+
ORANGE_2: N,
|
|
12
|
+
BLUE_1: y,
|
|
13
|
+
BLUE_2: r,
|
|
14
|
+
BLUE_3: L,
|
|
15
|
+
PURPLE_1: E,
|
|
16
|
+
PURPLE_2: S,
|
|
17
|
+
YELLOW_1: g,
|
|
18
|
+
YELLOW_2: _
|
|
19
|
+
} = I.colors, U = (T) => T ? {
|
|
20
20
|
[x.SESSION_OVERVIEW]: [
|
|
21
|
-
{ xAxis: 2, yAxis: 1, bgColor:
|
|
21
|
+
{ xAxis: 2, yAxis: 1, bgColor: _ },
|
|
22
22
|
{ xAxis: 14, yAxis: 1, bgColor: o },
|
|
23
23
|
{ xAxis: 3, yAxis: 10, bgColor: o },
|
|
24
24
|
{ xAxis: 16, yAxis: 6, bgColor: C }
|
|
25
25
|
],
|
|
26
26
|
[x.STUDENT_INFORMATION]: [
|
|
27
|
-
{ xAxis:
|
|
28
|
-
{ xAxis:
|
|
29
|
-
{ xAxis: 1, yAxis:
|
|
30
|
-
{ xAxis:
|
|
27
|
+
{ xAxis: 2, yAxis: 1, bgColor: r },
|
|
28
|
+
{ xAxis: 17, yAxis: 3, bgColor: y },
|
|
29
|
+
{ xAxis: 1, yAxis: 9, bgColor: y },
|
|
30
|
+
{ xAxis: 16, yAxis: 8, bgColor: r }
|
|
31
31
|
],
|
|
32
32
|
[x.LEARNING_LEVEL]: [
|
|
33
33
|
{ xAxis: 3, yAxis: 0, bgColor: s },
|
|
@@ -42,21 +42,21 @@ const R = I(), {
|
|
|
42
42
|
{ xAxis: 17, yAxis: 6, bgColor: o }
|
|
43
43
|
],
|
|
44
44
|
[x.SCHOOL_GOALS]: [
|
|
45
|
-
{ xAxis: 2, yAxis: 1, bgColor:
|
|
46
|
-
{ xAxis: 16, yAxis: 0, bgColor:
|
|
47
|
-
{ xAxis:
|
|
48
|
-
{ xAxis: 17, yAxis: 10, bgColor:
|
|
45
|
+
{ xAxis: 2, yAxis: 1, bgColor: S },
|
|
46
|
+
{ xAxis: 16, yAxis: 0, bgColor: E },
|
|
47
|
+
{ xAxis: 1, yAxis: 8, bgColor: E },
|
|
48
|
+
{ xAxis: 17, yAxis: 10, bgColor: S }
|
|
49
49
|
],
|
|
50
50
|
[x.TEST_PREP]: [
|
|
51
|
-
{ xAxis: 3, yAxis: 0, bgColor:
|
|
52
|
-
{ xAxis: 16, yAxis: 1, bgColor:
|
|
53
|
-
{ xAxis: 0, yAxis: 9, bgColor:
|
|
54
|
-
{ xAxis: 18, yAxis: 8, bgColor:
|
|
51
|
+
{ xAxis: 3, yAxis: 0, bgColor: y },
|
|
52
|
+
{ xAxis: 16, yAxis: 1, bgColor: r },
|
|
53
|
+
{ xAxis: 0, yAxis: 9, bgColor: r },
|
|
54
|
+
{ xAxis: 18, yAxis: 8, bgColor: y }
|
|
55
55
|
],
|
|
56
56
|
[x.STUDENT_ENRICHMENT]: [
|
|
57
57
|
{ xAxis: 0, yAxis: 1, bgColor: C },
|
|
58
|
-
{ xAxis: 14, yAxis: 1, bgColor:
|
|
59
|
-
{ xAxis: 3, yAxis: 11, bgColor:
|
|
58
|
+
{ xAxis: 14, yAxis: 1, bgColor: N },
|
|
59
|
+
{ xAxis: 3, yAxis: 11, bgColor: N },
|
|
60
60
|
{ xAxis: 12, yAxis: 12, bgColor: C }
|
|
61
61
|
],
|
|
62
62
|
[x.STUDENT_PERSONALIZATION]: [
|
|
@@ -65,38 +65,26 @@ const R = I(), {
|
|
|
65
65
|
{ xAxis: 0, yAxis: 10, bgColor: o },
|
|
66
66
|
{ xAxis: 12, yAxis: 12, bgColor: o }
|
|
67
67
|
],
|
|
68
|
-
[x.TOPIC_SELECTION]: [
|
|
69
|
-
{ xAxis: 1, yAxis: 1, bgColor: o },
|
|
70
|
-
{ xAxis: 13, yAxis: 2, bgColor: s },
|
|
71
|
-
{ xAxis: 0, yAxis: 10, bgColor: o },
|
|
72
|
-
{ xAxis: 12, yAxis: 12, bgColor: o }
|
|
73
|
-
],
|
|
74
68
|
[x.ADDITIONAL_INFO]: [
|
|
75
|
-
{ xAxis: 2, yAxis: 1, bgColor:
|
|
76
|
-
{ xAxis: 13, yAxis: 0, bgColor:
|
|
77
|
-
{ xAxis: 2, yAxis: 12, bgColor:
|
|
78
|
-
{ xAxis: 13, yAxis: 11, bgColor:
|
|
69
|
+
{ xAxis: 2, yAxis: 1, bgColor: l },
|
|
70
|
+
{ xAxis: 13, yAxis: 0, bgColor: b },
|
|
71
|
+
{ xAxis: 2, yAxis: 12, bgColor: l },
|
|
72
|
+
{ xAxis: 13, yAxis: 11, bgColor: b }
|
|
79
73
|
],
|
|
80
74
|
[x.STUDENT_PROFILE]: [
|
|
81
|
-
{ xAxis: 3, yAxis: 1, bgColor:
|
|
82
|
-
{ xAxis: 14, yAxis: 1, bgColor:
|
|
83
|
-
{ xAxis: 1, yAxis: 7, bgColor:
|
|
84
|
-
{ xAxis: 17, yAxis: 9, bgColor:
|
|
75
|
+
{ xAxis: 3, yAxis: 1, bgColor: b },
|
|
76
|
+
{ xAxis: 14, yAxis: 1, bgColor: l },
|
|
77
|
+
{ xAxis: 1, yAxis: 7, bgColor: l },
|
|
78
|
+
{ xAxis: 17, yAxis: 9, bgColor: b }
|
|
85
79
|
],
|
|
86
80
|
[x.PARENT_APP]: [
|
|
87
81
|
{ xAxis: 1, yAxis: 1, bgColor: s },
|
|
88
82
|
{ xAxis: 14, yAxis: 0, bgColor: C },
|
|
89
|
-
{ xAxis: 1, yAxis: 10, bgColor:
|
|
90
|
-
{ xAxis: 17, yAxis: 9, bgColor:
|
|
91
|
-
],
|
|
92
|
-
[x.SESSION_PROGRESS_SUMMARY]: [
|
|
93
|
-
{ xAxis: 1, yAxis: 1, bgColor: s },
|
|
94
|
-
{ xAxis: 13, yAxis: 0, bgColor: C },
|
|
95
|
-
{ xAxis: 3, yAxis: 13, bgColor: N },
|
|
96
|
-
{ xAxis: 15, yAxis: 9, bgColor: r }
|
|
83
|
+
{ xAxis: 1, yAxis: 10, bgColor: L },
|
|
84
|
+
{ xAxis: 17, yAxis: 9, bgColor: g }
|
|
97
85
|
],
|
|
98
86
|
[x.SESSION_SUMMARY]: [
|
|
99
|
-
{ xAxis: 2, yAxis: 1, bgColor:
|
|
87
|
+
{ xAxis: 2, yAxis: 1, bgColor: _ },
|
|
100
88
|
{ xAxis: 14, yAxis: 1, bgColor: o },
|
|
101
89
|
{ xAxis: 2, yAxis: 10, bgColor: o },
|
|
102
90
|
{ xAxis: 16, yAxis: 8, bgColor: C }
|
|
@@ -108,22 +96,22 @@ const R = I(), {
|
|
|
108
96
|
{ xAxis: 17, yAxis: 8, bgColor: s }
|
|
109
97
|
],
|
|
110
98
|
[x.SESSION_INSIGHTS]: [
|
|
111
|
-
{ xAxis: 1, yAxis: 1, bgColor:
|
|
112
|
-
{ xAxis: 16, yAxis: 1, bgColor:
|
|
99
|
+
{ xAxis: 1, yAxis: 1, bgColor: r },
|
|
100
|
+
{ xAxis: 16, yAxis: 1, bgColor: g },
|
|
113
101
|
{ xAxis: 1, yAxis: 9, bgColor: C },
|
|
114
|
-
{ xAxis: 17, yAxis: 8, bgColor:
|
|
102
|
+
{ xAxis: 17, yAxis: 8, bgColor: E }
|
|
115
103
|
],
|
|
116
104
|
[x.SESSION_REPORT]: [
|
|
117
|
-
{ xAxis: 1, yAxis: 1, bgColor:
|
|
118
|
-
{ xAxis: 16, yAxis: 1, bgColor:
|
|
105
|
+
{ xAxis: 1, yAxis: 1, bgColor: r },
|
|
106
|
+
{ xAxis: 16, yAxis: 1, bgColor: g },
|
|
119
107
|
{ xAxis: 1, yAxis: 9, bgColor: C },
|
|
120
|
-
{ xAxis: 17, yAxis: 8, bgColor:
|
|
108
|
+
{ xAxis: 17, yAxis: 8, bgColor: E }
|
|
121
109
|
],
|
|
122
110
|
[x.CLASS_PREFERENCE]: [
|
|
123
|
-
{ xAxis: 2, yAxis: 1, bgColor:
|
|
124
|
-
{ xAxis: 16, yAxis: 1, bgColor:
|
|
125
|
-
{ xAxis: 2, yAxis: 9, bgColor:
|
|
126
|
-
{ xAxis: 17, yAxis: 8, bgColor:
|
|
111
|
+
{ xAxis: 2, yAxis: 1, bgColor: g },
|
|
112
|
+
{ xAxis: 16, yAxis: 1, bgColor: _ },
|
|
113
|
+
{ xAxis: 2, yAxis: 9, bgColor: g },
|
|
114
|
+
{ xAxis: 17, yAxis: 8, bgColor: g }
|
|
127
115
|
],
|
|
128
116
|
[x.WELCOME_CUEMATH]: [
|
|
129
117
|
{ xAxis: 2, yAxis: 0, bgColor: A },
|
|
@@ -161,7 +149,7 @@ const R = I(), {
|
|
|
161
149
|
{ xAxis: 3, yAxis: 9, bgColor: i },
|
|
162
150
|
{ xAxis: 17, yAxis: 10, bgColor: A }
|
|
163
151
|
]
|
|
164
|
-
}[
|
|
152
|
+
}[T] : void 0;
|
|
165
153
|
export {
|
|
166
154
|
U as getColoredBoxPosition
|
|
167
155
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-grid-utils.js","sources":["../../../../../src/features/trial-session/comps/background-grid/background-grid-utils.ts"],"sourcesContent":["import { getTheme } from '../../../ui/theme/get-theme';\nimport { TrialPageId } from '../../trial-session-constants';\nimport type { TColoredBox } from './background-grid-types';\n\nconst theme = getTheme();\nconst {\n BLACK_T_08,\n WHITE_3,\n WHITE_4,\n WHITE_5,\n GREEN_1,\n GREEN_2,\n ORANGE_1,\n ORANGE_2,\n BLUE_1,\n BLUE_2,\n BLUE_3,\n PURPLE_1,\n PURPLE_2,\n YELLOW_1,\n YELLOW_2,\n} = theme.colors;\n\nexport const getColoredBoxPosition = (slideId?: TrialPageId): TColoredBox[] | undefined => {\n if (!slideId) return;\n\n const positions: Partial<Record<TrialPageId, TColoredBox[]>> = {\n [TrialPageId.SESSION_OVERVIEW]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 14, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 3, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 16, yAxis: 6, bgColor: ORANGE_1 },\n ],\n [TrialPageId.STUDENT_INFORMATION]: [\n { xAxis: 3, yAxis: 1, bgColor: WHITE_3 },\n { xAxis: 14, yAxis: 1, bgColor: BLACK_T_08 },\n { xAxis: 1, yAxis: 7, bgColor: BLACK_T_08 },\n { xAxis: 17, yAxis: 9, bgColor: WHITE_3 },\n ],\n [TrialPageId.LEARNING_LEVEL]: [\n { xAxis: 3, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 6, bgColor: GREEN_1 },\n ],\n [TrialPageId.STUDENT_LEVEL]: [\n { xAxis: 2, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 6, bgColor: GREEN_1 },\n ],\n [TrialPageId.SCHOOL_GOALS]: [\n { xAxis: 2, yAxis: 1, bgColor: PURPLE_2 },\n { xAxis: 16, yAxis: 0, bgColor: PURPLE_1 },\n { xAxis: 0, yAxis: 8, bgColor: PURPLE_1 },\n { xAxis: 17, yAxis: 10, bgColor: PURPLE_2 },\n ],\n [TrialPageId.TEST_PREP]: [\n { xAxis: 3, yAxis: 0, bgColor: BLUE_1 },\n { xAxis: 16, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 0, yAxis: 9, bgColor: BLUE_2 },\n { xAxis: 18, yAxis: 8, bgColor: BLUE_1 },\n ],\n [TrialPageId.STUDENT_ENRICHMENT]: [\n { xAxis: 0, yAxis: 1, bgColor: ORANGE_1 },\n { xAxis: 14, yAxis: 1, bgColor: ORANGE_2 },\n { xAxis: 3, yAxis: 11, bgColor: ORANGE_2 },\n { xAxis: 12, yAxis: 12, bgColor: ORANGE_1 },\n ],\n [TrialPageId.STUDENT_PERSONALIZATION]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 14, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 0, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 12, yAxis: 12, bgColor: GREEN_1 },\n ],\n [TrialPageId.TOPIC_SELECTION]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 13, yAxis: 2, bgColor: GREEN_2 },\n { xAxis: 0, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 12, yAxis: 12, bgColor: GREEN_1 },\n ],\n [TrialPageId.ADDITIONAL_INFO]: [\n { xAxis: 2, yAxis: 1, bgColor: BLACK_T_08 },\n { xAxis: 13, yAxis: 0, bgColor: WHITE_3 },\n { xAxis: 2, yAxis: 12, bgColor: BLACK_T_08 },\n { xAxis: 13, yAxis: 11, bgColor: WHITE_3 },\n ],\n [TrialPageId.STUDENT_PROFILE]: [\n { xAxis: 3, yAxis: 1, bgColor: WHITE_3 },\n { xAxis: 14, yAxis: 1, bgColor: BLACK_T_08 },\n { xAxis: 1, yAxis: 7, bgColor: BLACK_T_08 },\n { xAxis: 17, yAxis: 9, bgColor: WHITE_3 },\n ],\n [TrialPageId.PARENT_APP]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 14, yAxis: 0, bgColor: ORANGE_1 },\n { xAxis: 1, yAxis: 10, bgColor: BLUE_3 },\n { xAxis: 17, yAxis: 9, bgColor: YELLOW_1 },\n ],\n [TrialPageId.SESSION_PROGRESS_SUMMARY]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 13, yAxis: 0, bgColor: ORANGE_1 },\n { xAxis: 3, yAxis: 13, bgColor: BLUE_3 },\n { xAxis: 15, yAxis: 9, bgColor: YELLOW_1 },\n ],\n [TrialPageId.SESSION_SUMMARY]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 14, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 2, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 16, yAxis: 8, bgColor: ORANGE_1 },\n ],\n [TrialPageId.PRICING]: [\n { xAxis: 2, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 2, bgColor: GREEN_1 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 8, bgColor: GREEN_2 },\n ],\n [TrialPageId.SESSION_INSIGHTS]: [\n { xAxis: 1, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 1, yAxis: 9, bgColor: ORANGE_1 },\n { xAxis: 17, yAxis: 8, bgColor: PURPLE_1 },\n ],\n [TrialPageId.SESSION_REPORT]: [\n { xAxis: 1, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 1, yAxis: 9, bgColor: ORANGE_1 },\n { xAxis: 17, yAxis: 8, bgColor: PURPLE_1 },\n ],\n [TrialPageId.CLASS_PREFERENCE]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 2, yAxis: 9, bgColor: YELLOW_1 },\n { xAxis: 17, yAxis: 8, bgColor: YELLOW_1 },\n ],\n [TrialPageId.WELCOME_CUEMATH]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.TEACHER_INTRO]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.STUDENT_INTRO]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.COMPLETED_WORKSHEET]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.WELCOME_BACK]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.THANK_YOU]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n };\n\n return positions[slideId];\n};\n"],"names":["theme","getTheme","BLACK_T_08","WHITE_3","WHITE_4","WHITE_5","GREEN_1","GREEN_2","ORANGE_1","ORANGE_2","BLUE_1","BLUE_2","BLUE_3","PURPLE_1","PURPLE_2","YELLOW_1","YELLOW_2","getColoredBoxPosition","slideId","TrialPageId"],"mappings":";;AAIA,MAAMA,IAAQC,EAAS,GACjB;AAAA,EACJ,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AACF,IAAIhB,EAAM,QAEGiB,IAAwB,CAACC,MAC/BA,IAE0D;AAAA,EAC7D,CAACC,EAAY,gBAAgB,GAAG;AAAA,IAC9B,EAAE,OAAO,GAAG,OAAO,GAAG,SAASH,EAAS;AAAA,IACxC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASV,EAAQ;AAAA,IACxC,EAAE,OAAO,GAAG,OAAO,IAAI,SAASA,EAAQ;AAAA,IACxC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASE,EAAS;AAAA,EAC3C;AAAA,EACA,CAACW,EAAY,mBAAmB,GAAG;AAAA,IACjC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAShB,E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"version":3,"file":"background-grid-utils.js","sources":["../../../../../src/features/trial-session/comps/background-grid/background-grid-utils.ts"],"sourcesContent":["import { getTheme } from '../../../ui/theme/get-theme';\nimport { TrialPageId } from '../../trial-session-constants';\nimport type { TColoredBox } from './background-grid-types';\n\nconst theme = getTheme();\nconst {\n BLACK_T_08,\n WHITE_3,\n WHITE_4,\n WHITE_5,\n GREEN_1,\n GREEN_2,\n ORANGE_1,\n ORANGE_2,\n BLUE_1,\n BLUE_2,\n BLUE_3,\n PURPLE_1,\n PURPLE_2,\n YELLOW_1,\n YELLOW_2,\n} = theme.colors;\n\nexport const getColoredBoxPosition = (slideId?: TrialPageId): TColoredBox[] | undefined => {\n if (!slideId) return;\n\n const positions: Partial<Record<TrialPageId, TColoredBox[]>> = {\n [TrialPageId.SESSION_OVERVIEW]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 14, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 3, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 16, yAxis: 6, bgColor: ORANGE_1 },\n ],\n [TrialPageId.STUDENT_INFORMATION]: [\n { xAxis: 2, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 17, yAxis: 3, bgColor: BLUE_1 },\n { xAxis: 1, yAxis: 9, bgColor: BLUE_1 },\n { xAxis: 16, yAxis: 8, bgColor: BLUE_2 },\n ],\n [TrialPageId.LEARNING_LEVEL]: [\n { xAxis: 3, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 6, bgColor: GREEN_1 },\n ],\n [TrialPageId.STUDENT_LEVEL]: [\n { xAxis: 2, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 6, bgColor: GREEN_1 },\n ],\n [TrialPageId.SCHOOL_GOALS]: [\n { xAxis: 2, yAxis: 1, bgColor: PURPLE_2 },\n { xAxis: 16, yAxis: 0, bgColor: PURPLE_1 },\n { xAxis: 1, yAxis: 8, bgColor: PURPLE_1 },\n { xAxis: 17, yAxis: 10, bgColor: PURPLE_2 },\n ],\n [TrialPageId.TEST_PREP]: [\n { xAxis: 3, yAxis: 0, bgColor: BLUE_1 },\n { xAxis: 16, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 0, yAxis: 9, bgColor: BLUE_2 },\n { xAxis: 18, yAxis: 8, bgColor: BLUE_1 },\n ],\n [TrialPageId.STUDENT_ENRICHMENT]: [\n { xAxis: 0, yAxis: 1, bgColor: ORANGE_1 },\n { xAxis: 14, yAxis: 1, bgColor: ORANGE_2 },\n { xAxis: 3, yAxis: 11, bgColor: ORANGE_2 },\n { xAxis: 12, yAxis: 12, bgColor: ORANGE_1 },\n ],\n [TrialPageId.STUDENT_PERSONALIZATION]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 14, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 0, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 12, yAxis: 12, bgColor: GREEN_1 },\n ],\n [TrialPageId.ADDITIONAL_INFO]: [\n { xAxis: 2, yAxis: 1, bgColor: BLACK_T_08 },\n { xAxis: 13, yAxis: 0, bgColor: WHITE_3 },\n { xAxis: 2, yAxis: 12, bgColor: BLACK_T_08 },\n { xAxis: 13, yAxis: 11, bgColor: WHITE_3 },\n ],\n [TrialPageId.STUDENT_PROFILE]: [\n { xAxis: 3, yAxis: 1, bgColor: WHITE_3 },\n { xAxis: 14, yAxis: 1, bgColor: BLACK_T_08 },\n { xAxis: 1, yAxis: 7, bgColor: BLACK_T_08 },\n { xAxis: 17, yAxis: 9, bgColor: WHITE_3 },\n ],\n [TrialPageId.PARENT_APP]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 14, yAxis: 0, bgColor: ORANGE_1 },\n { xAxis: 1, yAxis: 10, bgColor: BLUE_3 },\n { xAxis: 17, yAxis: 9, bgColor: YELLOW_1 },\n ],\n [TrialPageId.SESSION_SUMMARY]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 14, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 2, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 16, yAxis: 8, bgColor: ORANGE_1 },\n ],\n [TrialPageId.PRICING]: [\n { xAxis: 2, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 2, bgColor: GREEN_1 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 8, bgColor: GREEN_2 },\n ],\n [TrialPageId.SESSION_INSIGHTS]: [\n { xAxis: 1, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 1, yAxis: 9, bgColor: ORANGE_1 },\n { xAxis: 17, yAxis: 8, bgColor: PURPLE_1 },\n ],\n [TrialPageId.SESSION_REPORT]: [\n { xAxis: 1, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 1, yAxis: 9, bgColor: ORANGE_1 },\n { xAxis: 17, yAxis: 8, bgColor: PURPLE_1 },\n ],\n [TrialPageId.CLASS_PREFERENCE]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 2, yAxis: 9, bgColor: YELLOW_1 },\n { xAxis: 17, yAxis: 8, bgColor: YELLOW_1 },\n ],\n [TrialPageId.WELCOME_CUEMATH]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.TEACHER_INTRO]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.STUDENT_INTRO]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.COMPLETED_WORKSHEET]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.WELCOME_BACK]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.THANK_YOU]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n };\n\n return positions[slideId];\n};\n"],"names":["theme","getTheme","BLACK_T_08","WHITE_3","WHITE_4","WHITE_5","GREEN_1","GREEN_2","ORANGE_1","ORANGE_2","BLUE_1","BLUE_2","BLUE_3","PURPLE_1","PURPLE_2","YELLOW_1","YELLOW_2","getColoredBoxPosition","slideId","TrialPageId"],"mappings":";;AAIA,MAAMA,IAAQC,EAAS,GACjB;AAAA,EACJ,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,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E,OAAO,IAAI,OAAO,IAAI,SAASD,EAAQ;AAAA,EAC3C;AAAA,EAGec,CAAO,IAzIV;"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import r from "styled-components";
|
|
2
|
+
import o from "../../../ui/layout/flex-view.js";
|
|
3
|
+
const e = r.div`
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
`, n = r(o)`
|
|
7
|
+
width: 650px;
|
|
8
|
+
margin: auto;
|
|
9
|
+
position: relative;
|
|
10
|
+
`, p = r.div(
|
|
4
11
|
({ theme: t }) => `
|
|
5
|
-
width:
|
|
12
|
+
width: 600px;
|
|
6
13
|
height: ${t.layout.gutter * 2.25}px;
|
|
7
14
|
position: absolute;
|
|
8
15
|
top: -${t.layout.gutter * 1.25}px;
|
|
@@ -12,6 +19,8 @@ const i = o.div(
|
|
|
12
19
|
`
|
|
13
20
|
);
|
|
14
21
|
export {
|
|
15
|
-
|
|
22
|
+
e as Container,
|
|
23
|
+
p as FixedLineSeparator,
|
|
24
|
+
n as PreferenceWrapper
|
|
16
25
|
};
|
|
17
26
|
//# sourceMappingURL=class-preference-styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class-preference-styled.js","sources":["../../../../../src/features/trial-session/comps/class-preference/class-preference-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport
|
|
1
|
+
{"version":3,"file":"class-preference-styled.js","sources":["../../../../../src/features/trial-session/comps/class-preference/class-preference-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n`;\n\nconst PreferenceWrapper = styled(FlexView)`\n width: 650px;\n margin: auto;\n position: relative;\n`;\n\nconst FixedLineSeparator = styled.div(\n ({ theme }) => `\n width: 600px;\n height: ${theme.layout.gutter * 2.25}px;\n position: absolute;\n top: -${theme.layout.gutter * 1.25}px;\n background-image: none, linear-gradient(90deg, ${theme.colors.BLACK_1} 1px, transparent 1px);\n background-size: ${theme.layout.gutter * 3.125}px ${theme.layout.gutter * 3.125}px;\n transform: translateX(-${theme.layout.gutter * 1.625}px)\n `,\n);\n\nexport { Container, PreferenceWrapper, FixedLineSeparator };\n"],"names":["Container","styled","PreferenceWrapper","FlexView","FixedLineSeparator","theme"],"mappings":";;AAIA,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA,GAKnBC,IAAoBD,EAAOE,CAAQ;AAAA;AAAA;AAAA;AAAA,GAMnCC,IAAqBH,EAAO;AAAA,EAChC,CAAC,EAAE,OAAAI,EAAA,MAAY;AAAA;AAAA,YAELA,EAAM,OAAO,SAAS,IAAI;AAAA;AAAA,UAE5BA,EAAM,OAAO,SAAS,IAAI;AAAA,mDACeA,EAAM,OAAO,OAAO;AAAA,qBAClDA,EAAM,OAAO,SAAS,KAAK,MAAMA,EAAM,OAAO,SAAS,KAAK;AAAA,2BACtDA,EAAM,OAAO,SAAS,KAAK;AAAA;AAEtD;"}
|