@cuemath/leap 3.5.65 → 3.5.66-link0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/features/cue-canvas/bottombar/homework-controls.js.map +1 -1
  2. package/dist/features/cue-canvas/sidebar/sidebar.js +4 -4
  3. package/dist/features/cue-canvas/sidebar/sidebar.js.map +1 -1
  4. package/dist/features/cue-canvas/toolbar/toolbar.js +21 -17
  5. package/dist/features/cue-canvas/toolbar/toolbar.js.map +1 -1
  6. package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js +23 -13
  7. package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js.map +1 -1
  8. package/dist/features/milestone/create/api/milestone-config.js.map +1 -1
  9. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +1 -1
  10. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +1 -1
  11. package/dist/features/trial-session/api/trial-home.js +10 -16
  12. package/dist/features/trial-session/api/trial-home.js.map +1 -1
  13. package/dist/features/trial-session/api/trial-session-report.js +16 -0
  14. package/dist/features/trial-session/api/trial-session-report.js.map +1 -0
  15. package/dist/features/trial-session/api/trial-topics.js +9 -0
  16. package/dist/features/trial-session/api/trial-topics.js.map +1 -0
  17. package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +62 -50
  18. package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
  19. package/dist/features/trial-session/comps/class-preference/class-preference-styled.js +5 -14
  20. package/dist/features/trial-session/comps/class-preference/class-preference-styled.js.map +1 -1
  21. package/dist/features/trial-session/comps/class-preference/class-preference.js +55 -53
  22. package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
  23. package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js +3 -2
  24. package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js.map +1 -1
  25. package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js +27 -27
  26. package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js.map +1 -1
  27. package/dist/features/trial-session/comps/learning-session/learning-session-styled.js +19 -18
  28. package/dist/features/trial-session/comps/learning-session/learning-session-styled.js.map +1 -1
  29. package/dist/features/trial-session/comps/learning-session/learning-session.js +34 -43
  30. package/dist/features/trial-session/comps/learning-session/learning-session.js.map +1 -1
  31. package/dist/features/trial-session/comps/navigation-bar/index.js +56 -58
  32. package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
  33. package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +29 -6
  34. package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
  35. package/dist/features/trial-session/comps/offering-information/offering-information.js +74 -64
  36. package/dist/features/trial-session/comps/offering-information/offering-information.js.map +1 -1
  37. package/dist/features/trial-session/comps/school-goals/school-goals-styled.js +10 -9
  38. package/dist/features/trial-session/comps/school-goals/school-goals-styled.js.map +1 -1
  39. package/dist/features/trial-session/comps/school-goals/school-goals-view.js +40 -39
  40. package/dist/features/trial-session/comps/school-goals/school-goals-view.js.map +1 -1
  41. package/dist/features/trial-session/comps/school-goals/school-goals.js +39 -37
  42. package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
  43. package/dist/features/trial-session/comps/session-insights/session-insights-styled.js +12 -20
  44. package/dist/features/trial-session/comps/session-insights/session-insights-styled.js.map +1 -1
  45. package/dist/features/trial-session/comps/session-insights/session-insights.js +64 -63
  46. package/dist/features/trial-session/comps/session-insights/session-insights.js.map +1 -1
  47. package/dist/features/trial-session/comps/session-overview/session-overview-styled.js +13 -13
  48. package/dist/features/trial-session/comps/session-overview/session-overview-styled.js.map +1 -1
  49. package/dist/features/trial-session/comps/session-overview/session-overview-utils.js +23 -4
  50. package/dist/features/trial-session/comps/session-overview/session-overview-utils.js.map +1 -1
  51. package/dist/features/trial-session/comps/session-overview/session-overview.js +20 -20
  52. package/dist/features/trial-session/comps/session-overview/session-overview.js.map +1 -1
  53. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js +61 -0
  54. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js.map +1 -0
  55. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js +5 -0
  56. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js.map +1 -0
  57. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js +135 -0
  58. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js.map +1 -0
  59. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js +53 -0
  60. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js.map +1 -0
  61. package/dist/features/trial-session/comps/session-report/report-404/report-404.js +15 -16
  62. package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -1
  63. package/dist/features/trial-session/comps/session-report/session-report.js +35 -33
  64. package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
  65. package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js +9 -16
  66. package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js.map +1 -1
  67. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +39 -37
  68. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
  69. package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js +10 -9
  70. package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js.map +1 -1
  71. package/dist/features/trial-session/comps/student-info/student-info-constants.js +35 -0
  72. package/dist/features/trial-session/comps/student-info/student-info-constants.js.map +1 -0
  73. package/dist/features/trial-session/comps/student-info/student-info-helpers.js +12 -0
  74. package/dist/features/trial-session/comps/student-info/student-info-helpers.js.map +1 -0
  75. package/dist/features/trial-session/comps/student-info/student-info-styled.js +26 -11
  76. package/dist/features/trial-session/comps/student-info/student-info-styled.js.map +1 -1
  77. package/dist/features/trial-session/comps/student-info/student-info.js +113 -78
  78. package/dist/features/trial-session/comps/student-info/student-info.js.map +1 -1
  79. package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +3 -12
  80. package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
  81. package/dist/features/trial-session/comps/student-personalization/student-personalization.js +34 -33
  82. package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
  83. package/dist/features/trial-session/comps/student-profile/student-profile.js +45 -44
  84. package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
  85. package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +9 -8
  86. package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
  87. package/dist/features/trial-session/comps/test-prep/test-prep-styled.js +11 -19
  88. package/dist/features/trial-session/comps/test-prep/test-prep-styled.js.map +1 -1
  89. package/dist/features/trial-session/comps/test-prep/test-prep.js +31 -29
  90. package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
  91. package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js +42 -0
  92. package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js.map +1 -0
  93. package/dist/features/trial-session/comps/topic-selection/topic-selection.js +84 -0
  94. package/dist/features/trial-session/comps/topic-selection/topic-selection.js.map +1 -0
  95. package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js +21 -0
  96. package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js.map +1 -0
  97. package/dist/features/trial-session/comps/whiteboard/whiteboard.js +99 -0
  98. package/dist/features/trial-session/comps/whiteboard/whiteboard.js.map +1 -0
  99. package/dist/features/trial-session/comps/worksheet/worksheet.js +35 -33
  100. package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
  101. package/dist/features/trial-session/context/trial-session-context.js +2 -0
  102. package/dist/features/trial-session/context/trial-session-context.js.map +1 -1
  103. package/dist/features/trial-session/helper.js +70 -64
  104. package/dist/features/trial-session/helper.js.map +1 -1
  105. package/dist/features/trial-session/hooks/use-trial-session-navigation.js +190 -158
  106. package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
  107. package/dist/features/trial-session/right-panel/right-panel-styled.js +8 -8
  108. package/dist/features/trial-session/right-panel/right-panel-styled.js.map +1 -1
  109. package/dist/features/trial-session/right-panel/slide-components-map.js +42 -36
  110. package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
  111. package/dist/features/trial-session/trial-session-constants.js +22 -18
  112. package/dist/features/trial-session/trial-session-constants.js.map +1 -1
  113. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  114. package/dist/features/trial-session/trial-session-view.js +82 -77
  115. package/dist/features/trial-session/trial-session-view.js.map +1 -1
  116. package/dist/features/trial-session/trial-session.js +38 -38
  117. package/dist/features/trial-session/trial-session.js.map +1 -1
  118. package/dist/features/ui/inputs/checkbox-input/checkbox-input.js +21 -21
  119. package/dist/features/ui/inputs/checkbox-input/checkbox-input.js.map +1 -1
  120. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +12 -12
  121. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
  122. package/dist/features/ui/theme/clrs.js +1 -0
  123. package/dist/features/ui/theme/clrs.js.map +1 -1
  124. package/dist/features/worksheet/worksheet/mocks/activity.js +6 -0
  125. package/dist/features/worksheet/worksheet/mocks/activity.js.map +1 -0
  126. package/dist/features/worksheet/worksheet/mocks/signed-requests.js +5 -0
  127. package/dist/features/worksheet/worksheet/mocks/signed-requests.js.map +1 -0
  128. package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js +57 -0
  129. package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js.map +1 -0
  130. package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js +263 -0
  131. package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js.map +1 -0
  132. package/dist/features/worksheet/worksheet/stories/worksheet-student.js +177 -0
  133. package/dist/features/worksheet/worksheet/stories/worksheet-student.js.map +1 -0
  134. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js +268 -0
  135. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +1 -0
  136. package/dist/features/worksheet/worksheet/worksheet-helpers.js +38 -37
  137. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  138. package/dist/index.d.ts +7 -3
  139. package/dist/index.js +1 -1
  140. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  141. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  142. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  143. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  144. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  145. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  146. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
  147. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  148. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  149. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  150. package/package.json +1 -1
  151. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  152. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"session-insights.js","sources":["../../../../../src/features/trial-session/comps/session-insights/session-insights.tsx"],"sourcesContent":["import { memo, useCallback, useEffect } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport { LOTTIE } from '../../../../assets/lottie/lottie';\nimport Error from '../../../ui/error/error';\nimport FlexView from '../../../ui/layout/flex-view';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useGetSessionInsights } from '../../api/trial-home';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './session-insights-styled';\nimport type { TDepthAggregation, TProficiencyLottieMap } from './session-insights-types';\n\nconst proficiencyLottieMap: TProficiencyLottieMap = {\n BEGINNER: LOTTIE.BEGINNER1X,\n FAMILIAR: LOTTIE.FAMILIAR1X,\n PROFICIENT: LOTTIE.PROFICIENT1X,\n};\n\nconst STAR_RATING_ICONS: Record<TDepthAggregation['star'], string> = {\n 1: ILLUSTRATIONS.ONE_STAR_FILLED,\n 2: ILLUSTRATIONS.TWO_STARS_FILLED,\n 3: ILLUSTRATIONS.THREE_STARS_FILLED,\n};\n\nconst SessionInsights = memo(function SessionInsights() {\n const { formData } = useTrialSessionContext();\n const { attemptId = 'kdbkb' } = formData || {};\n\n const {\n data: sessionInsights,\n get: getSessionInsights,\n isProcessing,\n isProcessingFailed,\n } = useGetSessionInsights();\n\n const { topic_aggregation: topicAggregation = [], depth_aggregation: depthAggregation = [] } =\n sessionInsights || {};\n\n const fetchData = useCallback(() => {\n if (attemptId) {\n getSessionInsights(attemptId);\n }\n }, [attemptId, getSessionInsights]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n if (isProcessingFailed) {\n return <Error height=\"70vh\" onTryAgain={fetchData} />;\n }\n\n if (isProcessing || !sessionInsights) {\n return <AppLoader height=\"100vh\" />;\n }\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.ContentWrapper $alignItems=\"center\" $width={650} $alignSelf=\"center\">\n <FlexView\n $flexDirection=\"row\"\n $justifyContent=\"center\"\n $borderColor=\"BLACK_T_87\"\n $width=\"100%\"\n >\n {topicAggregation.map((aggregation, index) => {\n const {\n level,\n topic_name: topicName,\n level_description: levelDescription,\n } = aggregation;\n\n return (\n <Styled.TopicWrapper\n key={index}\n $gapX={1}\n $gutterX={1}\n $width=\"100%\"\n $height={250}\n $flexDirection=\"column\"\n $justifyContent=\"space-between\"\n >\n <Styled.TopicName title={topicName} $renderAs=\"ab2-bold\" $color=\"BLACK_T_87\">\n {topicName}\n </Styled.TopicName>\n <Styled.LottieWrapper>\n <LottieAnimation height={272} src={proficiencyLottieMap[level]} />\n </Styled.LottieWrapper>\n <div>\n <Text $renderAs=\"ac4\" $color=\"BLACK_T_87\">\n {level}\n </Text>\n <Text $renderAs=\"ub2\" $color=\"BLACK_T_60\">\n {levelDescription}\n </Text>\n </div>\n </Styled.TopicWrapper>\n );\n })}\n </FlexView>\n <Styled.RatingBlock\n $width=\"100%\"\n $borderColor=\"BLACK_T_87\"\n $flexDirection=\"row\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $flexGap={80}\n $background=\"WHITE\"\n $gap={25.5}\n >\n {depthAggregation.map((aggregation, index) => {\n const {\n star,\n depth_description: depthDescription,\n star_description: starDescription,\n } = aggregation;\n\n return (\n <FlexView key={index} $width={88}>\n <img src={STAR_RATING_ICONS[star]} height={24} width={88} />\n <Separator height={4} />\n <FlexView\n $background=\"WHITE_4\"\n $gutterX={0.25}\n $gap={2}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $width=\"fit-content\"\n $alignSelf=\"center\"\n >\n <Text $renderAs=\"ub3\" $color=\"BLACK_T_87\">\n {starDescription}\n </Text>\n </FlexView>\n <Separator heightX={1} />\n <Text $renderAs=\"ac4\" $color=\"BLACK_T_87\" $align=\"center\">\n {depthDescription}\n </Text>\n </FlexView>\n );\n })}\n </Styled.RatingBlock>\n </Styled.ContentWrapper>\n </Styled.Container>\n );\n});\n\nexport default SessionInsights;\n"],"names":["proficiencyLottieMap","LOTTIE","STAR_RATING_ICONS","ILLUSTRATIONS","SessionInsights","memo","formData","useTrialSessionContext","attemptId","sessionInsights","getSessionInsights","isProcessing","isProcessingFailed","useGetSessionInsights","topicAggregation","depthAggregation","fetchData","useCallback","useEffect","jsx","Error","AppLoader","jsxs","Styled.Container","Separator","SlideHeader","Styled.ContentWrapper","FlexView","aggregation","index","level","topicName","levelDescription","Styled.TopicWrapper","Styled.TopicName","Styled.LottieWrapper","LottieAnimation","Text","Styled.RatingBlock","star","depthDescription","starDescription"],"mappings":";;;;;;;;;;;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AI;AAAA,cAC1D,gBAAApB,EAACK,GAAU,EAAA,QAAQ,EAAG,CAAA;AAAA,cACtB,gBAAAL;AAAA,gBAACQ;AAAA,gBAAA;AAAA,kBACC,aAAY;AAAA,kBACZ,UAAU;AAAA,kBACV,MAAM;AAAA,kBACN,iBAAgB;AAAA,kBAChB,aAAY;AAAA,kBACZ,QAAO;AAAA,kBACP,YAAW;AAAA,kBAEX,4BAACU,GAAK,EAAA,WAAU,OAAM,QAAO,cAC1B,UACHI,GAAA;AAAA,gBAAA;AAAA,cACF;AAAA,cACA,gBAAAtB,EAACK,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,cACvB,gBAAAL,EAACkB,KAAK,WAAU,OAAM,QAAO,cAAa,QAAO,UAC9C,UACHG,EAAA,CAAA;AAAA,YAAA,EAAA,GAnBaX,CAoBf;AAAA,UAAA,CAEH;AAAA,QAAA;AAAA,MACH;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"session-insights.js","sources":["../../../../../src/features/trial-session/comps/session-insights/session-insights.tsx"],"sourcesContent":["import { memo, useCallback, useEffect } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport { LOTTIE } from '../../../../assets/lottie/lottie';\nimport Error from '../../../ui/error/error';\nimport FlexView from '../../../ui/layout/flex-view';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useGetSessionInsights } from '../../api/trial-session-report';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './session-insights-styled';\nimport type { TDepthAggregation, TProficiencyLottieMap } from './session-insights-types';\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\n\nconst proficiencyLottieMap: TProficiencyLottieMap = {\n BEGINNER: LOTTIE.BEGINNER1X,\n FAMILIAR: LOTTIE.FAMILIAR1X,\n PROFICIENT: LOTTIE.PROFICIENT1X,\n};\n\nconst STAR_RATING_ICONS: Record<TDepthAggregation['star'], string> = {\n 1: ILLUSTRATIONS.ONE_STAR_FILLED,\n 2: ILLUSTRATIONS.TWO_STARS_FILLED,\n 3: ILLUSTRATIONS.THREE_STARS_FILLED,\n};\n\nconst SessionInsights = memo(function SessionInsights() {\n const { formData } = useTrialSessionContext();\n const { attemptId = 'kdbkb' } = formData || {};\n\n const {\n data: sessionInsights,\n get: getSessionInsights,\n isProcessing,\n isProcessingFailed,\n } = useGetSessionInsights();\n\n const { topic_aggregation: topicAggregation = [], depth_aggregation: depthAggregation = [] } =\n sessionInsights || {};\n\n const fetchData = useCallback(() => {\n if (attemptId) {\n getSessionInsights(attemptId);\n }\n }, [attemptId, getSessionInsights]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n if (isProcessingFailed) {\n return <Error height=\"70vh\" onTryAgain={fetchData} />;\n }\n\n if (isProcessing || !sessionInsights) {\n return <AppLoader height=\"100vh\" />;\n }\n\n return (\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n <Separator height={60} />\n <SlideHeader />\n <FlexView $alignItems=\"center\" $width={RIGHT_PANEL_CONTENT_WIDTH - 100} $alignSelf=\"center\">\n <FlexView\n $flexDirection=\"row\"\n $justifyContent=\"center\"\n $borderColor=\"BLACK_T_87\"\n $width=\"100%\"\n >\n {topicAggregation.map(aggregation => {\n const {\n level,\n topic_name: topicName,\n level_description: levelDescription,\n } = aggregation;\n\n return (\n <Styled.TopicWrapper\n key={topicName}\n $gapX={1}\n $gutterX={1}\n $width=\"100%\"\n $height={240}\n $flexDirection=\"column\"\n $justifyContent=\"space-between\"\n >\n <Styled.TopicName title={topicName} $renderAs=\"ab2-bold\" $color=\"BLACK_T_87\">\n {topicName}\n </Styled.TopicName>\n <Styled.LottieWrapper>\n <LottieAnimation height={272} src={proficiencyLottieMap[level]} />\n </Styled.LottieWrapper>\n <div>\n <Text $renderAs=\"ac4\" $color=\"BLACK_T_87\">\n {level}\n </Text>\n <Text $renderAs=\"ub2\" $color=\"BLACK_T_60\">\n {levelDescription}\n </Text>\n </div>\n </Styled.TopicWrapper>\n );\n })}\n </FlexView>\n <Styled.RatingBlock\n $width=\"100%\"\n $borderColor=\"BLACK_T_87\"\n $flexDirection=\"row\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $flexGap={80}\n $background=\"WHITE\"\n $gap={25.5}\n >\n {depthAggregation.map(aggregation => {\n const {\n star,\n depth_description: depthDescription,\n star_description: starDescription,\n } = aggregation;\n\n return (\n <FlexView key={depthDescription} $width={88}>\n <img src={STAR_RATING_ICONS[star]} height={24} width={88} />\n <Separator height={4} />\n <FlexView\n $background=\"WHITE_4\"\n $gutterX={0.25}\n $gap={2}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $width=\"fit-content\"\n $alignSelf=\"center\"\n >\n <Text $renderAs=\"ub3\" $color=\"BLACK_T_87\">\n {starDescription}\n </Text>\n </FlexView>\n <Separator heightX={1} />\n <Text $renderAs=\"ac4\" $color=\"BLACK_T_87\" $align=\"center\">\n {depthDescription}\n </Text>\n </FlexView>\n );\n })}\n </Styled.RatingBlock>\n </FlexView>\n </FlexView>\n );\n});\n\nexport default SessionInsights;\n"],"names":["proficiencyLottieMap","LOTTIE","STAR_RATING_ICONS","ILLUSTRATIONS","SessionInsights","memo","formData","useTrialSessionContext","attemptId","sessionInsights","getSessionInsights","isProcessing","isProcessingFailed","useGetSessionInsights","topicAggregation","depthAggregation","fetchData","useCallback","useEffect","jsx","Error","AppLoader","jsxs","FlexView","Separator","SlideHeader","RIGHT_PANEL_CONTENT_WIDTH","aggregation","level","topicName","levelDescription","Styled.TopicWrapper","Styled.TopicName","Styled.LottieWrapper","LottieAnimation","Text","Styled.RatingBlock","star","depthDescription","starDescription"],"mappings":";;;;;;;;;;;;;;;AAiBA,MAAMA,IAA8C;AAAA,EAClD,UAAUC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K,GAAU,EAAA,QAAQ,EAAG,CAAA;AAAA,cACtB,gBAAAL;AAAA,gBAACI;AAAA,gBAAA;AAAA,kBACC,aAAY;AAAA,kBACZ,UAAU;AAAA,kBACV,MAAM;AAAA,kBACN,iBAAgB;AAAA,kBAChB,aAAY;AAAA,kBACZ,QAAO;AAAA,kBACP,YAAW;AAAA,kBAEX,4BAACY,GAAK,EAAA,WAAU,OAAM,QAAO,cAC1B,UACHI,GAAA;AAAA,gBAAA;AAAA,cACF;AAAA,cACA,gBAAApB,EAACK,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,cACvB,gBAAAL,EAACgB,KAAK,WAAU,OAAM,QAAO,cAAa,QAAO,UAC9C,UACHG,EAAA,CAAA;AAAA,YAAA,EAAA,GAnBaA,CAoBf;AAAA,UAAA,CAEH;AAAA,QAAA;AAAA,MACH;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
@@ -1,35 +1,35 @@
1
1
  import r from "styled-components";
2
- const n = r.div`
2
+ import { RIGHT_PANEL_CONTENT_WIDTH as i } from "../../trial-session-constants.js";
3
+ const a = r.div`
3
4
  width: 100%;
4
5
  height: 100%;
5
- `, d = r.div(({ theme: o }) => {
6
- const { BLACK_T_87: t } = o.colors;
6
+ `, p = r.div(({ theme: t }) => {
7
+ const { BLACK_T_87: o } = t.colors;
7
8
  return `
8
- width: 550px;
9
+ width: ${i - 100}px;
9
10
  margin: auto;
10
- border: 1px solid ${t};
11
+ border: 1px solid ${o};
11
12
  & > *:not(:last-child) {
12
- border-bottom: 1px solid ${t};
13
+ border-bottom: 1px solid ${o};
13
14
  }
14
15
  .period-text {
15
16
  margin-left: 23px;
16
17
  }
17
18
  `;
18
- }), a = r.div(({ theme: o, $bgImage: t }) => {
19
- const { gutter: e } = o.layout;
19
+ }), c = r.div(({ theme: t, $bgImage: o }) => {
20
+ const { gutter: e } = t.layout;
20
21
  return `
21
22
  width: 100%;
22
- height: ${350 / 3}px;
23
23
  padding: ${e * 2.5}px ${e}px;
24
- background-image: url(${t});
24
+ background-image: url(${o});
25
25
  background-repeat: no-repeat;
26
26
  background-position: right, center;
27
27
  background-size: cover;
28
28
  `;
29
29
  });
30
30
  export {
31
- n as Container,
32
- a as Goal,
33
- d as GoalsWrapper
31
+ a as Container,
32
+ c as Goal,
33
+ p as GoalsWrapper
34
34
  };
35
35
  //# sourceMappingURL=session-overview-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-overview-styled.js","sources":["../../../../../src/features/trial-session/comps/session-overview/session-overview-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\ntype TSessionGoal = {\n $bgImage: string;\n};\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n`;\n\nconst GoalsWrapper = styled.div(({ theme }) => {\n const { BLACK_T_87 } = theme.colors;\n\n return `\n width: 550px;\n margin: auto;\n border: 1px solid ${BLACK_T_87};\n & > *:not(:last-child) {\n border-bottom: 1px solid ${BLACK_T_87};\n }\n .period-text {\n margin-left: 23px;\n }\n `;\n});\n\nconst Goal = styled.div<TSessionGoal>(({ theme, $bgImage }) => {\n const { gutter } = theme.layout;\n\n return `\n width: 100%;\n height: ${350 / 3}px;\n padding: ${gutter * 2.5}px ${gutter}px;\n background-image: url(${$bgImage});\n background-repeat: no-repeat;\n background-position: right, center;\n background-size: cover;\n `;\n});\n\nexport { Container, GoalsWrapper, Goal };\n"],"names":["Container","styled","GoalsWrapper","theme","BLACK_T_87","Goal","$bgImage","gutter"],"mappings":";AAMA,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA,GAKnBC,IAAeD,EAAO,IAAI,CAAC,EAAE,OAAAE,QAAY;AACvC,QAAA,EAAE,YAAAC,EAAW,IAAID,EAAM;AAEtB,SAAA;AAAA;AAAA;AAAA,wBAGeC,CAAU;AAAA;AAAA,iCAEDA,CAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAM3C,CAAC,GAEKC,IAAOJ,EAAO,IAAkB,CAAC,EAAE,OAAAE,GAAO,UAAAG,QAAe;AACvD,QAAA,EAAE,QAAAC,EAAO,IAAIJ,EAAM;AAElB,SAAA;AAAA;AAAA,cAEK,MAAM,CAAC;AAAA,eACNI,IAAS,GAAG,MAAMA,CAAM;AAAA,4BACXD,CAAQ;AAAA;AAAA;AAAA;AAAA;AAKpC,CAAC;"}
1
+ {"version":3,"file":"session-overview-styled.js","sources":["../../../../../src/features/trial-session/comps/session-overview/session-overview-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\n\ntype TSessionGoal = {\n $bgImage: string;\n};\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n`;\n\nconst GoalsWrapper = styled.div(({ theme }) => {\n const { BLACK_T_87 } = theme.colors;\n\n return `\n width: ${RIGHT_PANEL_CONTENT_WIDTH - 100}px;\n margin: auto;\n border: 1px solid ${BLACK_T_87};\n & > *:not(:last-child) {\n border-bottom: 1px solid ${BLACK_T_87};\n }\n .period-text {\n margin-left: 23px;\n }\n `;\n});\n\nconst Goal = styled.div<TSessionGoal>(({ theme, $bgImage }) => {\n const { gutter } = theme.layout;\n\n return `\n width: 100%;\n padding: ${gutter * 2.5}px ${gutter}px;\n background-image: url(${$bgImage});\n background-repeat: no-repeat;\n background-position: right, center;\n background-size: cover;\n `;\n});\n\nexport { Container, GoalsWrapper, Goal };\n"],"names":["Container","styled","GoalsWrapper","theme","BLACK_T_87","RIGHT_PANEL_CONTENT_WIDTH","Goal","$bgImage","gutter"],"mappings":";;AAQA,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA,GAKnBC,IAAeD,EAAO,IAAI,CAAC,EAAE,OAAAE,QAAY;AACvC,QAAA,EAAE,YAAAC,EAAW,IAAID,EAAM;AAEtB,SAAA;AAAA,aACIE,IAA4B,GAAG;AAAA;AAAA,wBAEpBD,CAAU;AAAA;AAAA,iCAEDA,CAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAM3C,CAAC,GAEKE,IAAOL,EAAO,IAAkB,CAAC,EAAE,OAAAE,GAAO,UAAAI,QAAe;AACvD,QAAA,EAAE,QAAAC,EAAO,IAAIL,EAAM;AAElB,SAAA;AAAA;AAAA,eAEMK,IAAS,GAAG,MAAMA,CAAM;AAAA,4BACXD,CAAQ;AAAA;AAAA;AAAA;AAAA;AAKpC,CAAC;"}
@@ -1,6 +1,6 @@
1
1
  import { GIF as e } from "../../../../assets/gif/gif.js";
2
2
  import { TrialPageId as r } from "../../trial-session-constants.js";
3
- const s = [
3
+ const t = [
4
4
  {
5
5
  title: "Your goals",
6
6
  period: "10 min",
@@ -16,6 +16,25 @@ const s = [
16
16
  period: "15 min",
17
17
  image: e.WAY_FORWARD
18
18
  }
19
+ ], n = [
20
+ {
21
+ title: `Personalize
22
+ the session`,
23
+ period: "5 min",
24
+ image: e.YOUR_GOALS
25
+ },
26
+ {
27
+ title: `Interactive
28
+ Learning`,
29
+ period: "40 min",
30
+ image: e.LEARNING_SESSION
31
+ },
32
+ {
33
+ title: `way
34
+ forward`,
35
+ period: "15 min",
36
+ image: e.WAY_FORWARD
37
+ }
19
38
  ], o = [
20
39
  {
21
40
  title: "Your goals",
@@ -32,11 +51,11 @@ const s = [
32
51
  image: e.WAY_FORWARD,
33
52
  archived: !0
34
53
  }
35
- ], S = (i) => i ? {
36
- [r.SESSION_OVERVIEW]: s,
54
+ ], O = (i, s) => i ? {
55
+ [r.SESSION_OVERVIEW]: s === "TRIAL_V3" ? t : n,
37
56
  [r.SESSION_SUMMARY]: o
38
57
  }[i] : void 0;
39
58
  export {
40
- S as getSessionConfig
59
+ O as getSessionConfig
41
60
  };
42
61
  //# sourceMappingURL=session-overview-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-overview-utils.js","sources":["../../../../../src/features/trial-session/comps/session-overview/session-overview-utils.tsx"],"sourcesContent":["import { GIF } from '../../../../assets/gif/gif';\nimport { TrialPageId } from '../../trial-session-constants';\n\ntype TSessionItem = {\n title: string;\n image: string;\n period?: string;\n archived?: boolean;\n};\n\nconst sessionOverview = [\n {\n title: 'Your goals',\n period: '10 min',\n image: GIF.YOUR_GOALS,\n },\n {\n title: 'learning session',\n period: '30 min',\n image: GIF.LEARNING_SESSION,\n },\n {\n title: 'way forward',\n period: '15 min',\n image: GIF.WAY_FORWARD,\n },\n];\n\nconst sessionSummary = [\n {\n title: 'Your goals',\n image: GIF.YOUR_GOALS,\n archived: true,\n },\n {\n title: 'learning session',\n image: GIF.LEARNING_SESSION,\n archived: true,\n },\n {\n title: 'way forward',\n image: GIF.WAY_FORWARD,\n archived: true,\n },\n];\n\nexport const getSessionConfig = (pageId: TrialPageId) => {\n if (!pageId) return;\n\n const sessions: Partial<Record<TrialPageId, TSessionItem[]>> = {\n [TrialPageId.SESSION_OVERVIEW]: sessionOverview,\n [TrialPageId.SESSION_SUMMARY]: sessionSummary,\n };\n\n return sessions[pageId];\n};\n"],"names":["sessionOverview","GIF","sessionSummary","getSessionConfig","pageId","TrialPageId"],"mappings":";;AAUA,MAAMA,IAAkB;AAAA,EACtB;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAOC,EAAI;AAAA,EACb;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAOA,EAAI;AAAA,EACb;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAOA,EAAI;AAAA,EACb;AACF,GAEMC,IAAiB;AAAA,EACrB;AAAA,IACE,OAAO;AAAA,IACP,OAAOD,EAAI;AAAA,IACX,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,OAAOA,EAAI;AAAA,IACX,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,OAAOA,EAAI;AAAA,IACX,UAAU;AAAA,EACZ;AACF,GAEaE,IAAmB,CAACC,MAC1BA,IAE0D;AAAA,EAC7D,CAACC,EAAY,gBAAgB,GAAGL;AAAA,EAChC,CAACK,EAAY,eAAe,GAAGH;AAAA,EAGjBE,CAAM,IAPT;"}
1
+ {"version":3,"file":"session-overview-utils.js","sources":["../../../../../src/features/trial-session/comps/session-overview/session-overview-utils.tsx"],"sourcesContent":["import { GIF } from '../../../../assets/gif/gif';\nimport { TrialPageId } from '../../trial-session-constants';\n\ntype TSessionItem = {\n title: string;\n image: string;\n period?: string;\n archived?: boolean;\n};\n\nconst sessionOverview = [\n {\n title: 'Your goals',\n period: '10 min',\n image: GIF.YOUR_GOALS,\n },\n {\n title: 'learning session',\n period: '30 min',\n image: GIF.LEARNING_SESSION,\n },\n {\n title: 'way forward',\n period: '15 min',\n image: GIF.WAY_FORWARD,\n },\n];\n\nconst sessionOverviewV3 = [\n {\n title: 'Personalize \\nthe session',\n period: '5 min',\n image: GIF.YOUR_GOALS,\n },\n {\n title: 'Interactive \\nLearning',\n period: '40 min',\n image: GIF.LEARNING_SESSION,\n },\n {\n title: 'way \\nforward',\n period: '15 min',\n image: GIF.WAY_FORWARD,\n },\n];\n\nconst sessionSummary = [\n {\n title: 'Your goals',\n image: GIF.YOUR_GOALS,\n archived: true,\n },\n {\n title: 'learning session',\n image: GIF.LEARNING_SESSION,\n archived: true,\n },\n {\n title: 'way forward',\n image: GIF.WAY_FORWARD,\n archived: true,\n },\n];\n\nexport const getSessionConfig = (pageId: TrialPageId, demoType: string) => {\n if (!pageId) return;\n\n const sessions: Partial<Record<TrialPageId, TSessionItem[]>> = {\n [TrialPageId.SESSION_OVERVIEW]: demoType === 'TRIAL_V3' ? sessionOverview : sessionOverviewV3,\n [TrialPageId.SESSION_SUMMARY]: sessionSummary,\n };\n\n return sessions[pageId];\n};\n"],"names":["sessionOverview","GIF","sessionOverviewV3","sessionSummary","getSessionConfig","pageId","demoType","TrialPageId"],"mappings":";;AAUA,MAAMA,IAAkB;AAAA,EACtB;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAOC,EAAI;AAAA,EACb;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAOA,EAAI;AAAA,EACb;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAOA,EAAI;AAAA,EACb;AACF,GAEMC,IAAoB;AAAA,EACxB;AAAA,IACE,OAAO;AAAA;AAAA,IACP,QAAQ;AAAA,IACR,OAAOD,EAAI;AAAA,EACb;AAAA,EACA;AAAA,IACE,OAAO;AAAA;AAAA,IACP,QAAQ;AAAA,IACR,OAAOA,EAAI;AAAA,EACb;AAAA,EACA;AAAA,IACE,OAAO;AAAA;AAAA,IACP,QAAQ;AAAA,IACR,OAAOA,EAAI;AAAA,EACb;AACF,GAEME,IAAiB;AAAA,EACrB;AAAA,IACE,OAAO;AAAA,IACP,OAAOF,EAAI;AAAA,IACX,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,OAAOA,EAAI;AAAA,IACX,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,OAAOA,EAAI;AAAA,IACX,UAAU;AAAA,EACZ;AACF,GAEaG,IAAmB,CAACC,GAAqBC,MAC/CD,IAE0D;AAAA,EAC7D,CAACE,EAAY,gBAAgB,GAAGD,MAAa,aAAaN,IAAkBE;AAAA,EAC5E,CAACK,EAAY,eAAe,GAAGJ;AAAA,EAGjBE,CAAM,IAPT;"}
@@ -1,31 +1,31 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { memo as d } from "react";
3
- import p from "../../../../assets/line-icons/icons/tick.js";
4
- import h from "../../../ui/layout/flex-view.js";
5
- import g from "../../../ui/separator/separator.js";
2
+ import { memo as f } from "react";
3
+ import h from "../../../../assets/line-icons/icons/tick.js";
4
+ import g from "../../../ui/layout/flex-view.js";
5
+ import x from "../../../ui/separator/separator.js";
6
6
  import o from "../../../ui/text/text.js";
7
- import { useTrialSessionContext as x } from "../../context/use-trial-session-context.js";
8
- import $ from "../slide-header/index.js";
9
- import { Container as u, GoalsWrapper as C, Goal as S } from "./session-overview-styled.js";
7
+ import { useTrialSessionContext as $ } from "../../context/use-trial-session-context.js";
8
+ import u from "../slide-header/index.js";
9
+ import { Container as S, GoalsWrapper as w, Goal as C } from "./session-overview-styled.js";
10
10
  import { getSessionConfig as v } from "./session-overview-utils.js";
11
- const y = d(function() {
12
- const { slideConfig: s } = x(), { id: m } = s || {}, i = v(m);
13
- return /* @__PURE__ */ r(u, { children: [
14
- /* @__PURE__ */ e(g, { height: 60 }),
15
- /* @__PURE__ */ e($, {}),
16
- /* @__PURE__ */ e(C, { children: i && i.map((a, t) => {
17
- const { title: c, period: n, image: l, archived: f } = a;
18
- return /* @__PURE__ */ r(S, { $bgImage: l, children: [
11
+ const D = f(function() {
12
+ const { slideConfig: m, demoType: a } = $(), { id: c } = m || {}, i = v(c, a);
13
+ return /* @__PURE__ */ r(S, { children: [
14
+ /* @__PURE__ */ e(x, { height: 60 }),
15
+ /* @__PURE__ */ e(u, {}),
16
+ /* @__PURE__ */ e(w, { children: i && i.map((l, p) => {
17
+ const { title: t, period: n, image: d, archived: s } = l;
18
+ return /* @__PURE__ */ r(C, { $bgImage: d, children: [
19
19
  /* @__PURE__ */ r(
20
- h,
20
+ g,
21
21
  {
22
22
  $flexDirection: "row",
23
23
  $justifyContent: "flex-start",
24
- $alignItems: "center",
24
+ $alignItems: s ? "center" : "start",
25
25
  $flexGap: 12,
26
26
  children: [
27
- f ? /* @__PURE__ */ e(p, { height: 24, width: 20, color: "WHITE" }) : /* @__PURE__ */ e(o, { $renderAs: "ac2", children: t + 1 + ". " }),
28
- /* @__PURE__ */ e(o, { $renderAs: "ac2", children: c })
27
+ s ? /* @__PURE__ */ e(h, { height: 24, width: 20, color: "WHITE" }) : /* @__PURE__ */ e(o, { $renderAs: "ac2", children: p + 1 + ". " }),
28
+ /* @__PURE__ */ e(o, { $renderAs: "ac2", $whiteSpace: "pre-line", children: t })
29
29
  ]
30
30
  }
31
31
  ),
@@ -35,6 +35,6 @@ const y = d(function() {
35
35
  ] });
36
36
  });
37
37
  export {
38
- y as default
38
+ D as default
39
39
  };
40
40
  //# sourceMappingURL=session-overview.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-overview.js","sources":["../../../../../src/features/trial-session/comps/session-overview/session-overview.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport TickIcon from '../../../../assets/line-icons/icons/tick';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './session-overview-styled';\nimport { getSessionConfig } from './session-overview-utils';\n\nconst SessionOverview = memo(function SessionOverview() {\n const { slideConfig } = useTrialSessionContext();\n const { id } = slideConfig || {};\n\n const sessionConfigs = getSessionConfig(id);\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.GoalsWrapper>\n {sessionConfigs &&\n sessionConfigs.map((goal, index: number) => {\n const { title, period, image, archived } = goal;\n\n return (\n <Styled.Goal key={`goal-${index}`} $bgImage={image}>\n <FlexView\n $flexDirection=\"row\"\n $justifyContent=\"flex-start\"\n $alignItems=\"center\"\n $flexGap={12}\n >\n {archived ? (\n <TickIcon height={24} width={20} color=\"WHITE\" />\n ) : (\n <Text $renderAs=\"ac2\">{index + 1 + '. '}</Text>\n )}\n <Text $renderAs=\"ac2\">{title}</Text>\n </FlexView>\n {period && (\n <Text $renderAs=\"ub2\" className=\"period-text\">\n {period}\n </Text>\n )}\n </Styled.Goal>\n );\n })}\n </Styled.GoalsWrapper>\n </Styled.Container>\n );\n});\n\nexport default SessionOverview;\n"],"names":["SessionOverview","memo","slideConfig","useTrialSessionContext","id","sessionConfigs","getSessionConfig","jsxs","Styled.Container","jsx","Separator","SlideHeader","Styled.GoalsWrapper","goal","index","title","period","image","archived","Styled.Goal","FlexView","TickIcon","Text"],"mappings":";;;;;;;;;;AAWM,MAAAA,IAAkBC,EAAK,WAA2B;AAChD,QAAA,EAAE,aAAAC,MAAgBC,KAClB,EAAE,IAAAC,EAAA,IAAOF,KAAe,IAExBG,IAAiBC,EAAiBF,CAAE;AAGxC,SAAA,gBAAAG,EAACC,GAAA,EACC,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,sBACtBC,GAAY,EAAA;AAAA,IACb,gBAAAF,EAACG,GAAA,EACE,eACCP,EAAe,IAAI,CAACQ,GAAMC,MAAkB;AAC1C,YAAM,EAAE,OAAAC,GAAO,QAAAC,GAAQ,OAAAC,GAAO,UAAAC,MAAaL;AAE3C,aACG,gBAAAN,EAAAY,GAAA,EAAkC,UAAUF,GAC3C,UAAA;AAAA,QAAA,gBAAAV;AAAA,UAACa;AAAA,UAAA;AAAA,YACC,gBAAe;AAAA,YACf,iBAAgB;AAAA,YAChB,aAAY;AAAA,YACZ,UAAU;AAAA,YAET,UAAA;AAAA,cAAAF,IACE,gBAAAT,EAAAY,GAAA,EAAS,QAAQ,IAAI,OAAO,IAAI,OAAM,QAAQ,CAAA,sBAE9CC,GAAK,EAAA,WAAU,OAAO,UAAAR,IAAQ,IAAI,MAAK;AAAA,cAEzC,gBAAAL,EAAAa,GAAA,EAAK,WAAU,OAAO,UAAMP,GAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QAC/B;AAAA,QACCC,KACE,gBAAAP,EAAAa,GAAA,EAAK,WAAU,OAAM,WAAU,eAC7B,UACHN,GAAA;AAAA,MAjBc,EAAA,GAAA,QAAQF,CAAK,EAmB/B;AAAA,IAEH,CAAA,GACL;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"session-overview.js","sources":["../../../../../src/features/trial-session/comps/session-overview/session-overview.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport TickIcon from '../../../../assets/line-icons/icons/tick';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './session-overview-styled';\nimport { getSessionConfig } from './session-overview-utils';\n\nconst SessionOverview = memo(function SessionOverview() {\n const { slideConfig, demoType } = useTrialSessionContext();\n const { id } = slideConfig || {};\n\n const sessionConfigs = getSessionConfig(id, demoType);\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.GoalsWrapper>\n {sessionConfigs &&\n sessionConfigs.map((goal, index) => {\n const { title, period, image, archived } = goal;\n\n return (\n <Styled.Goal key={`goal-${title}`} $bgImage={image}>\n <FlexView\n $flexDirection=\"row\"\n $justifyContent=\"flex-start\"\n $alignItems={archived ? 'center' : 'start'}\n $flexGap={12}\n >\n {archived ? (\n <TickIcon height={24} width={20} color=\"WHITE\" />\n ) : (\n <Text $renderAs=\"ac2\">{index + 1 + '. '}</Text>\n )}\n <Text $renderAs=\"ac2\" $whiteSpace=\"pre-line\">\n {title}\n </Text>\n </FlexView>\n {period && (\n <Text $renderAs=\"ub2\" className=\"period-text\">\n {period}\n </Text>\n )}\n </Styled.Goal>\n );\n })}\n </Styled.GoalsWrapper>\n </Styled.Container>\n );\n});\n\nexport default SessionOverview;\n"],"names":["SessionOverview","memo","slideConfig","demoType","useTrialSessionContext","id","sessionConfigs","getSessionConfig","jsxs","Styled.Container","jsx","Separator","SlideHeader","Styled.GoalsWrapper","goal","index","title","period","image","archived","Styled.Goal","FlexView","TickIcon","Text"],"mappings":";;;;;;;;;;AAWM,MAAAA,IAAkBC,EAAK,WAA2B;AACtD,QAAM,EAAE,aAAAC,GAAa,UAAAC,EAAS,IAAIC,EAAuB,GACnD,EAAE,IAAAC,EAAA,IAAOH,KAAe,IAExBI,IAAiBC,EAAiBF,GAAIF,CAAQ;AAGlD,SAAA,gBAAAK,EAACC,GAAA,EACC,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,sBACtBC,GAAY,EAAA;AAAA,IACb,gBAAAF,EAACG,GAAA,EACE,eACCP,EAAe,IAAI,CAACQ,GAAMC,MAAU;AAClC,YAAM,EAAE,OAAAC,GAAO,QAAAC,GAAQ,OAAAC,GAAO,UAAAC,MAAaL;AAE3C,aACG,gBAAAN,EAAAY,GAAA,EAAkC,UAAUF,GAC3C,UAAA;AAAA,QAAA,gBAAAV;AAAA,UAACa;AAAA,UAAA;AAAA,YACC,gBAAe;AAAA,YACf,iBAAgB;AAAA,YAChB,aAAaF,IAAW,WAAW;AAAA,YACnC,UAAU;AAAA,YAET,UAAA;AAAA,cAAAA,IACE,gBAAAT,EAAAY,GAAA,EAAS,QAAQ,IAAI,OAAO,IAAI,OAAM,QAAQ,CAAA,sBAE9CC,GAAK,EAAA,WAAU,OAAO,UAAAR,IAAQ,IAAI,MAAK;AAAA,gCAEzCQ,GAAK,EAAA,WAAU,OAAM,aAAY,YAC/B,UACHP,GAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,QACCC,KACE,gBAAAP,EAAAa,GAAA,EAAK,WAAU,OAAM,WAAU,eAC7B,UACHN,GAAA;AAAA,MAnBc,EAAA,GAAA,QAAQD,CAAK,EAqB/B;AAAA,IAEH,CAAA,GACL;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
@@ -0,0 +1,61 @@
1
+ import r from "styled-components";
2
+ import t from "../../../ui/layout/flex-view.js";
3
+ import n from "../../../../assets/line-icons/icons/check2.js";
4
+ import p from "../../../../assets/line-icons/icons/bulb2.js";
5
+ import i from "../../../../assets/line-icons/icons/cross.js";
6
+ const d = r.div`
7
+ width: 100%;
8
+ height: 100%;
9
+ overflow: auto;
10
+ `, x = r(t)`
11
+ padding: 26px 14px 26px 44px;
12
+ border-right: 1px solid ${({ theme: o }) => o.colors.BLACK};
13
+ &:not(:last-child) {
14
+ border-bottom: 1px solid ${({ theme: o }) => o.colors.BLACK};
15
+ }
16
+ `, m = r.div(
17
+ ({ theme: o }) => `
18
+ height: 1px;
19
+ margin: 24px 0px;
20
+ margin-left: 88px;
21
+ background-image: repeating-linear-gradient(
22
+ to right,
23
+ ${o.colors.WHITE_5} 0px,
24
+ ${o.colors.WHITE_5} 15px,
25
+ transparent 15px,
26
+ transparent 20px
27
+ );
28
+ &:last-child {
29
+ display: none;
30
+ }
31
+ `
32
+ ), b = r(t)`
33
+ position: absolute;
34
+ top: 0;
35
+ left: 0;
36
+ `, g = r(n)(
37
+ ({ theme: o }) => `
38
+ border-radius: 14px;
39
+ background-color: ${o.colors.GREEN_5};
40
+ `
41
+ ), u = r(p)(
42
+ ({ theme: o }) => `
43
+ border-radius: 14px;
44
+ background-color: ${o.colors.YELLOW_5};
45
+ `
46
+ ), h = r(i)(
47
+ ({ theme: o }) => `
48
+ border-radius: 14px;
49
+ background-color: ${o.colors.RED_4};
50
+ `
51
+ );
52
+ export {
53
+ b as AbsoluteWrapper,
54
+ u as BulbIcon,
55
+ g as CheckIcon,
56
+ d as Container,
57
+ h as CrossIcon,
58
+ m as HorizontalDottedLine,
59
+ x as SummaryWrapper
60
+ };
61
+ //# sourceMappingURL=session-progress-summary-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-progress-summary-styled.js","sources":["../../../../../src/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Check2Icon from '../../../../assets/line-icons/icons/check2';\nimport Bulb2Icon from '../../../../assets/line-icons/icons/bulb2';\nimport Cross2Icon from '../../../../assets/line-icons/icons/cross';\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n overflow: auto;\n`;\n\nconst SummaryWrapper = styled(FlexView)`\n padding: 26px 14px 26px 44px;\n border-right: 1px solid ${({ theme }) => theme.colors.BLACK};\n &:not(:last-child) {\n border-bottom: 1px solid ${({ theme }) => theme.colors.BLACK};\n }\n`;\n\nconst HorizontalDottedLine = styled.div(\n ({ theme }) => `\n height: 1px;\n margin: 24px 0px;\n margin-left: 88px;\n background-image: repeating-linear-gradient(\n to right,\n ${theme.colors.WHITE_5} 0px,\n ${theme.colors.WHITE_5} 15px,\n transparent 15px,\n transparent 20px\n );\n &:last-child {\n display: none;\n }\n`,\n);\n\nconst AbsoluteWrapper = styled(FlexView)`\n position: absolute;\n top: 0;\n left: 0;\n`;\n\nconst CheckIcon = styled(Check2Icon)(\n ({ theme }) => `\n border-radius: 14px;\n background-color: ${theme.colors.GREEN_5};\n`,\n);\n\nconst BulbIcon = styled(Bulb2Icon)(\n ({ theme }) => `\n border-radius: 14px;\n background-color: ${theme.colors.YELLOW_5};\n`,\n);\n\nconst CrossIcon = styled(Cross2Icon)(\n ({ theme }) => `\n border-radius: 14px;\n background-color: ${theme.colors.RED_4};\n`,\n);\n\nexport {\n Container,\n SummaryWrapper,\n HorizontalDottedLine,\n CheckIcon,\n BulbIcon,\n CrossIcon,\n AbsoluteWrapper,\n};\n"],"names":["Container","styled","SummaryWrapper","FlexView","theme","HorizontalDottedLine","AbsoluteWrapper","CheckIcon","Check2Icon","BulbIcon","Bulb2Icon","CrossIcon","Cross2Icon"],"mappings":";;;;;AAOA,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA;AAAA,GAMnBC,IAAiBD,EAAOE,CAAQ;AAAA;AAAA,4BAEV,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA,+BAE9B,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA,GAI1DC,IAAuBJ,EAAO;AAAA,EAClC,CAAC,EAAE,OAAAG,EAAA,MAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAMXA,EAAM,OAAO,OAAO;AAAA,MACpBA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ1B,GAEME,IAAkBL,EAAOE,CAAQ;AAAA;AAAA;AAAA;AAAA,GAMjCI,IAAYN,EAAOO,CAAU;AAAA,EACjC,CAAC,EAAE,OAAAJ,EAAA,MAAY;AAAA;AAAA,sBAEKA,EAAM,OAAO,OAAO;AAAA;AAE1C,GAEMK,IAAWR,EAAOS,CAAS;AAAA,EAC/B,CAAC,EAAE,OAAAN,EAAA,MAAY;AAAA;AAAA,sBAEKA,EAAM,OAAO,QAAQ;AAAA;AAE3C,GAEMO,IAAYV,EAAOW,CAAU;AAAA,EACjC,CAAC,EAAE,OAAAR,EAAA,MAAY;AAAA;AAAA,sBAEKA,EAAM,OAAO,KAAK;AAAA;AAExC;"}
@@ -0,0 +1,5 @@
1
+ var L = /* @__PURE__ */ ((E) => (E.SOLVED_INDEPENDENTLY = "SOLVED_INDEPENDENTLY", E.SOLVED_WITH_HELP = "SOLVED_WITH_HELP", E.COULD_NOT_SOLVE = "COULD_NOT_SOLVE", E))(L || {});
2
+ export {
3
+ L as ETopicStatus
4
+ };
5
+ //# sourceMappingURL=session-progress-summary-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-progress-summary-types.js","sources":["../../../../../src/features/trial-session/comps/session-progress-summary/session-progress-summary-types.ts"],"sourcesContent":["export enum ETopicStatus {\n SOLVED_INDEPENDENTLY = 'SOLVED_INDEPENDENTLY',\n SOLVED_WITH_HELP = 'SOLVED_WITH_HELP',\n COULD_NOT_SOLVE = 'COULD_NOT_SOLVE',\n}\nexport interface ISessionProgressSummary {\n overview: string;\n independent_performance: string;\n intervention_success: string;\n overall_assessment: string;\n default_topic_image_url: string;\n total_problems: number;\n topic_performance: {\n topic_name: string;\n image_url: string;\n subtopics: { subtopic_name: string; status: ETopicStatus; status_text: string }[];\n }[];\n}\n\nexport interface ISessionProgressSummaryProps extends ISessionProgressSummary {\n studentName: string;\n reportSubHeader: string;\n}\n"],"names":["ETopicStatus"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,uBAAuB,wBACvBA,EAAA,mBAAmB,oBACnBA,EAAA,kBAAkB,mBAHRA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -0,0 +1,135 @@
1
+ import { jsxs as r, jsx as e, Fragment as C } from "react/jsx-runtime";
2
+ import { memo as H, Fragment as L } from "react";
3
+ import n from "../../../ui/layout/flex-view.js";
4
+ import t from "../../../ui/text/text.js";
5
+ import { RIGHT_PANEL_CONTENT_WIDTH as S } from "../../trial-session-constants.js";
6
+ import W from "../../../ui/separator/separator.js";
7
+ import k from "../slide-header/index.js";
8
+ import { CheckIcon as D, BulbIcon as N, CrossIcon as v, Container as y, SummaryWrapper as c, AbsoluteWrapper as l, HorizontalDottedLine as j } from "./session-progress-summary-styled.js";
9
+ import { ETopicStatus as a } from "./session-progress-summary-types.js";
10
+ import P from "../../../ui/image/image.js";
11
+ import O from "../../../../assets/line-icons/icons/hint-fill.js";
12
+ import B from "../session-report/report-404/report-404.js";
13
+ const h = {
14
+ [a.SOLVED_INDEPENDENTLY]: D,
15
+ [a.SOLVED_WITH_HELP]: N,
16
+ [a.COULD_NOT_SOLVE]: v
17
+ }, G = H(($) => {
18
+ const {
19
+ studentName: p,
20
+ reportSubHeader: u,
21
+ overview: f,
22
+ independent_performance: g,
23
+ intervention_success: s,
24
+ overall_assessment: _,
25
+ topic_performance: I = [],
26
+ default_topic_image_url: b,
27
+ total_problems: T
28
+ } = $;
29
+ return /* @__PURE__ */ r(y, { children: [
30
+ /* @__PURE__ */ e(W, { height: 60 }),
31
+ /* @__PURE__ */ e(k, { textToInsert: u }),
32
+ /* @__PURE__ */ e(n, { $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ e(n, { $width: S, children: T ? /* @__PURE__ */ r(L, { children: [
33
+ /* @__PURE__ */ r(n, { $borderColor: "BLACK", $background: "WHITE", $flexDirection: "row", children: [
34
+ /* @__PURE__ */ r(n, { $width: 300, children: [
35
+ /* @__PURE__ */ r(c, { $position: "relative", $background: "WHITE_2", children: [
36
+ /* @__PURE__ */ e(
37
+ l,
38
+ {
39
+ $width: 20,
40
+ $height: 20,
41
+ $justifyContent: "center",
42
+ $alignItems: "center",
43
+ $background: "WHITE_4",
44
+ children: /* @__PURE__ */ e(t, { $renderAs: "ac4-black", color: "BLACK_T_60", children: "1" })
45
+ }
46
+ ),
47
+ /* @__PURE__ */ e(t, { $renderAs: "ub2", children: f })
48
+ ] }),
49
+ /* @__PURE__ */ r(c, { $position: "relative", $background: "WHITE_2", children: [
50
+ /* @__PURE__ */ e(
51
+ l,
52
+ {
53
+ $width: 20,
54
+ $height: 20,
55
+ $justifyContent: "center",
56
+ $alignItems: "center",
57
+ $background: "WHITE_4",
58
+ children: /* @__PURE__ */ e(t, { $renderAs: "ac4-black", color: "BLACK_T_60", children: "2" })
59
+ }
60
+ ),
61
+ /* @__PURE__ */ e(t, { $renderAs: "ub2", children: g })
62
+ ] }),
63
+ s ? /* @__PURE__ */ r(c, { $position: "relative", $background: "WHITE_2", children: [
64
+ /* @__PURE__ */ e(
65
+ l,
66
+ {
67
+ $width: 20,
68
+ $height: 20,
69
+ $justifyContent: "center",
70
+ $alignItems: "center",
71
+ $background: "WHITE_4",
72
+ children: /* @__PURE__ */ e(t, { $renderAs: "ac4-black", color: "BLACK_T_60", children: "3" })
73
+ }
74
+ ),
75
+ /* @__PURE__ */ e(t, { $renderAs: "ub2", children: s })
76
+ ] }) : null,
77
+ /* @__PURE__ */ r(c, { $position: "relative", $background: "WHITE_4", $flex: 1, children: [
78
+ /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(O, { height: 28, width: 28 }) }),
79
+ /* @__PURE__ */ e(t, { $renderAs: "ub2", children: _ })
80
+ ] })
81
+ ] }),
82
+ /* @__PURE__ */ e(n, { $flex: 1, $gap: 40, $gutter: 24, children: I.map((i) => {
83
+ const { topic_name: d, image_url: o, subtopics: E } = i;
84
+ return /* @__PURE__ */ r(C, { children: [
85
+ /* @__PURE__ */ e(n, { children: /* @__PURE__ */ r(n, { $flexDirection: "row", $alignItems: "center", $flexGapX: 1, children: [
86
+ /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(
87
+ P,
88
+ {
89
+ src: o || b,
90
+ borderRadius: 88,
91
+ height: 88,
92
+ width: 88,
93
+ alt: "topic",
94
+ withLoader: !0
95
+ }
96
+ ) }),
97
+ /* @__PURE__ */ e(n, { children: /* @__PURE__ */ r(n, { $flexGap: 8, children: [
98
+ /* @__PURE__ */ e(t, { $renderAs: "ab2-bold", children: d }),
99
+ E.map((w) => {
100
+ const { status: A, subtopic_name: m } = w, x = h[A];
101
+ return /* @__PURE__ */ r(
102
+ n,
103
+ {
104
+ $flexDirection: "row",
105
+ $alignItems: "center",
106
+ $flexGapX: 0.5,
107
+ children: [
108
+ /* @__PURE__ */ e(x, { color: "WHITE", height: 14, width: 14 }),
109
+ /* @__PURE__ */ e(t, { $renderAs: "ub3", children: m })
110
+ ]
111
+ },
112
+ m
113
+ );
114
+ })
115
+ ] }) })
116
+ ] }) }, i.topic_name),
117
+ /* @__PURE__ */ e(j, {})
118
+ ] });
119
+ }) })
120
+ ] }),
121
+ /* @__PURE__ */ e(n, { $flexDirection: "row", $justifyContent: "end", $flexGapX: 1, $gap: 10, children: Object.keys(a).map((i) => {
122
+ const d = h[i];
123
+ return /* @__PURE__ */ r(n, { $flexDirection: "row", $flexGap: 4, $alignItems: "center", children: [
124
+ /* @__PURE__ */ e(d, { color: "WHITE", height: 14, width: 14 }),
125
+ /* @__PURE__ */ e(t, { $renderAs: "ub3", $color: "BLACK_T_60", children: i.toLocaleLowerCase().split("_").map((o) => o.charAt(0).toUpperCase() + o.slice(1)).join(" ") })
126
+ ] }, i);
127
+ }) })
128
+ ] }) : /* @__PURE__ */ e(B, { studentName: p }) }) })
129
+ ] });
130
+ });
131
+ G.displayName = "SessionProgressSummaryView";
132
+ export {
133
+ G as default
134
+ };
135
+ //# sourceMappingURL=session-progress-summary-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-progress-summary-view.js","sources":["../../../../../src/features/trial-session/comps/session-progress-summary/session-progress-summary-view.tsx"],"sourcesContent":["import { type FC, Fragment, memo } from 'react';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\nimport Separator from '../../../ui/separator/separator';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './session-progress-summary-styled';\nimport { ETopicStatus, type ISessionProgressSummaryProps } from './session-progress-summary-types';\nimport Image from '../../../ui/image/image';\nimport HintFillIcon from '../../../../assets/line-icons/icons/hint-fill';\nimport Report404 from '../session-report/report-404/report-404';\n\nconst StatusIconMap = {\n [ETopicStatus.SOLVED_INDEPENDENTLY]: Styled.CheckIcon,\n [ETopicStatus.SOLVED_WITH_HELP]: Styled.BulbIcon,\n [ETopicStatus.COULD_NOT_SOLVE]: Styled.CrossIcon,\n};\n\nconst SessionProgressSummaryView: FC<ISessionProgressSummaryProps> = memo(props => {\n const {\n studentName,\n reportSubHeader,\n overview,\n independent_performance: independentPerformance,\n intervention_success: interventionSuccess,\n overall_assessment: overallAssessment,\n topic_performance: topicPerformance = [],\n default_topic_image_url: defaultTopicImage,\n total_problems: totalProblems,\n } = props;\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader textToInsert={reportSubHeader} />\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n <FlexView $width={RIGHT_PANEL_CONTENT_WIDTH}>\n {totalProblems ? (\n <Fragment>\n <FlexView $borderColor=\"BLACK\" $background=\"WHITE\" $flexDirection=\"row\">\n <FlexView $width={300}>\n <Styled.SummaryWrapper $position=\"relative\" $background=\"WHITE_2\">\n <Styled.AbsoluteWrapper\n $width={20}\n $height={20}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background=\"WHITE_4\"\n >\n <Text $renderAs=\"ac4-black\" color=\"BLACK_T_60\">\n 1\n </Text>\n </Styled.AbsoluteWrapper>\n <Text $renderAs=\"ub2\">{overview}</Text>\n </Styled.SummaryWrapper>\n <Styled.SummaryWrapper $position=\"relative\" $background=\"WHITE_2\">\n <Styled.AbsoluteWrapper\n $width={20}\n $height={20}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background=\"WHITE_4\"\n >\n <Text $renderAs=\"ac4-black\" color=\"BLACK_T_60\">\n 2\n </Text>\n </Styled.AbsoluteWrapper>\n <Text $renderAs=\"ub2\">{independentPerformance}</Text>\n </Styled.SummaryWrapper>\n {interventionSuccess ? (\n <Styled.SummaryWrapper $position=\"relative\" $background=\"WHITE_2\">\n <Styled.AbsoluteWrapper\n $width={20}\n $height={20}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background=\"WHITE_4\"\n >\n <Text $renderAs=\"ac4-black\" color=\"BLACK_T_60\">\n 3\n </Text>\n </Styled.AbsoluteWrapper>\n <Text $renderAs=\"ub2\">{interventionSuccess}</Text>\n </Styled.SummaryWrapper>\n ) : null}\n <Styled.SummaryWrapper $position=\"relative\" $background=\"WHITE_4\" $flex={1}>\n <Styled.AbsoluteWrapper>\n <HintFillIcon height={28} width={28} />\n </Styled.AbsoluteWrapper>\n <Text $renderAs=\"ub2\">{overallAssessment}</Text>\n </Styled.SummaryWrapper>\n </FlexView>\n <FlexView $flex={1} $gap={40} $gutter={24}>\n {topicPerformance.map(topic => {\n const { topic_name: topicName, image_url: topicImage, subtopics } = topic;\n\n return (\n <>\n <FlexView key={topic.topic_name}>\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexGapX={1}>\n <FlexView>\n <Image\n src={topicImage || defaultTopicImage}\n borderRadius={88}\n height={88}\n width={88}\n alt=\"topic\"\n withLoader\n />\n </FlexView>\n <FlexView>\n <FlexView $flexGap={8}>\n <Text $renderAs=\"ab2-bold\">{topicName}</Text>\n {subtopics.map(subtopic => {\n const { status, subtopic_name: subtopicName } = subtopic;\n\n const IconToRender = StatusIconMap[status as ETopicStatus];\n\n return (\n <FlexView\n key={subtopicName}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGapX={0.5}\n >\n <IconToRender color=\"WHITE\" height={14} width={14} />\n <Text $renderAs=\"ub3\">{subtopicName}</Text>\n </FlexView>\n );\n })}\n </FlexView>\n </FlexView>\n </FlexView>\n </FlexView>\n <Styled.HorizontalDottedLine />\n </>\n );\n })}\n </FlexView>\n </FlexView>\n <FlexView $flexDirection=\"row\" $justifyContent=\"end\" $flexGapX={1} $gap={10}>\n {Object.keys(ETopicStatus).map(status => {\n const IconToRender = StatusIconMap[status as ETopicStatus];\n\n return (\n <FlexView key={status} $flexDirection=\"row\" $flexGap={4} $alignItems=\"center\">\n <IconToRender color=\"WHITE\" height={14} width={14} />\n <Text $renderAs=\"ub3\" $color=\"BLACK_T_60\">\n {status\n .toLocaleLowerCase()\n .split('_')\n .map(word => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ')}\n </Text>\n </FlexView>\n );\n })}\n </FlexView>\n </Fragment>\n ) : (\n <Report404 studentName={studentName} />\n )}\n </FlexView>\n </FlexView>\n </Styled.Container>\n );\n});\n\nSessionProgressSummaryView.displayName = 'SessionProgressSummaryView';\n\nexport default SessionProgressSummaryView;\n"],"names":["StatusIconMap","ETopicStatus","Styled.CheckIcon","Styled.BulbIcon","Styled.CrossIcon","SessionProgressSummaryView","memo","props","studentName","reportSubHeader","overview","independentPerformance","interventionSuccess","overallAssessment","topicPerformance","defaultTopicImage","totalProblems","jsxs","Styled.Container","jsx","Separator","SlideHeader","FlexView","RIGHT_PANEL_CONTENT_WIDTH","Fragment","Styled.SummaryWrapper","Styled.AbsoluteWrapper","Text","HintFillIcon","topic","topicName","topicImage","subtopics","Image","subtopic","status","subtopicName","IconToRender","Styled.HorizontalDottedLine","word","Report404"],"mappings":";;;;;;;;;;;;AAaA,MAAMA,IAAgB;AAAA,EACpB,CAACC,EAAa,oBAAoB,GAAGC;AAAAA,EACrC,CAACD,EAAa,gBAAgB,GAAGE;AAAAA,EACjC,CAACF,EAAa,eAAe,GAAGG;AAClC,GAEMC,IAA+DC,EAAK,CAASC,MAAA;AAC3E,QAA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sB,EAAA,gBAAe,OAAM,UAAU,GAAG,aAAY,UACnE,UAAA;AAAA,UAAA,gBAAAH,EAACkB,KAAa,OAAM,SAAQ,QAAQ,IAAI,OAAO,IAAI;AAAA,UACnD,gBAAAlB,EAACQ,GAAK,EAAA,WAAU,OAAM,QAAO,cAC1B,UAAAQ,EACE,kBAAkB,EAClB,MAAM,GAAG,EACT,IAAI,CAAQI,MAAAA,EAAK,OAAO,CAAC,EAAE,YAAgB,IAAAA,EAAK,MAAM,CAAC,CAAC,EACxD,KAAK,GAAG,EACb,CAAA;AAAA,QAAA,EAAA,GARaJ,CASf;AAAA,MAEH,CAAA,GACH;AAAA,IAAA,EACF,CAAA,IAEA,gBAAAhB,EAACqB,GAAU,EAAA,aAAAhC,EAA0B,CAAA,EAEzC,CAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;AAEDH,EAA2B,cAAc;"}
@@ -0,0 +1,53 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { memo as R, useMemo as h, useCallback as y, useEffect as T } from "react";
3
+ import { useGetSessionProgressReports as A } from "../../api/trial-session-report.js";
4
+ import { useTrialSessionContext as L } from "../../context/use-trial-session-context.js";
5
+ import b from "../../../ui/loader/app-loader/app-loader.js";
6
+ import _ from "../../../ui/error/error.js";
7
+ import $ from "./session-progress-summary-view.js";
8
+ import { getPreferencesFromConfig as v } from "../../../milestone/create/milestone-create-helpers.js";
9
+ import { COURSE_STREAMS as x, PREFERENCE_CATEGORY as F } from "../../../milestone/constants.js";
10
+ import { studentLevels as G } from "../student-feedback/student-feedback-constants.js";
11
+ import { convertToTitleCase as M } from "../../../../helpers/label-text.js";
12
+ const N = R(() => {
13
+ const { formData: S, milestoneConfig: a } = L(), {
14
+ grade: r,
15
+ name: o = "",
16
+ course: s = "geometry",
17
+ attemptId: t = "",
18
+ personalizedLevel: e
19
+ } = S || {}, l = h(() => {
20
+ var u, g, d;
21
+ const P = ((g = (u = v(a, {
22
+ grade: r ?? "",
23
+ courseStream: x.MATH,
24
+ preferenceCategory: F.LEVEL
25
+ })) == null ? void 0 : u.find((i) => i.id === (e == null ? void 0 : e[0]))) == null ? void 0 : g.label) ?? "";
26
+ return `Grade ${r} ${s ? ` • ${s.split("_").map((i) => M(i)).join(" ")}` : ""} • ${((d = G[P.toLowerCase()]) == null ? void 0 : d.title) ?? ""}`;
27
+ }, [s, r, a, e]), {
28
+ data: f,
29
+ get: p,
30
+ isProcessed: c,
31
+ isProcessing: E,
32
+ isProcessingFailed: C
33
+ } = A(), m = y(() => {
34
+ t && !c && p(t, {
35
+ student_name: o ?? ""
36
+ });
37
+ }, [t, p, c, o]);
38
+ return T(() => {
39
+ m();
40
+ }, [m]), C ? /* @__PURE__ */ n(_, { height: "70vh", onTryAgain: m }) : E || !f ? /* @__PURE__ */ n(b, { height: "100vh" }) : /* @__PURE__ */ n(
41
+ $,
42
+ {
43
+ studentName: o,
44
+ reportSubHeader: l,
45
+ ...f
46
+ }
47
+ );
48
+ });
49
+ N.displayName = "SessionProgressSummary";
50
+ export {
51
+ N as default
52
+ };
53
+ //# sourceMappingURL=session-progress-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-progress-summary.js","sources":["../../../../../src/features/trial-session/comps/session-progress-summary/session-progress-summary.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport { useGetSessionProgressReports } from '../../api/trial-session-report';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport Error from '../../../ui/error/error';\nimport SessionProgressSummaryView from './session-progress-summary-view';\nimport { getPreferencesFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport { COURSE_STREAMS, PREFERENCE_CATEGORY } from '../../../milestone/constants';\nimport { studentLevels } from '../student-feedback/student-feedback-constants';\nimport { convertToTitleCase } from '../../../../helpers/label-text';\n\nconst SessionProgressSummary = memo(() => {\n const { formData, milestoneConfig } = useTrialSessionContext();\n const {\n grade,\n name = '',\n course = 'geometry',\n attemptId = '',\n personalizedLevel,\n } = formData || {};\n\n const reportSubHeader = useMemo(() => {\n const selectedLabel =\n getPreferencesFromConfig(milestoneConfig, {\n grade: grade ?? '',\n courseStream: COURSE_STREAMS.MATH,\n preferenceCategory: PREFERENCE_CATEGORY.LEVEL,\n })?.find(sessionLevel => sessionLevel.id === personalizedLevel?.[0])?.label ?? '';\n\n return `Grade ${grade} ${\n course\n ? ` • ${course\n .split('_')\n .map(txt => convertToTitleCase(txt))\n .join(' ')}`\n : ''\n } • ${studentLevels[selectedLabel.toLowerCase()]?.title ?? ''}`;\n }, [course, grade, milestoneConfig, personalizedLevel]);\n\n const {\n data: sessionReports,\n get: getSessionReports,\n isProcessed,\n isProcessing,\n isProcessingFailed,\n } = useGetSessionProgressReports();\n\n const fetchData = useCallback(() => {\n if (attemptId && !isProcessed) {\n getSessionReports(attemptId, {\n student_name: name ?? '',\n });\n }\n }, [attemptId, getSessionReports, isProcessed, name]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n if (isProcessingFailed) {\n return <Error height=\"70vh\" onTryAgain={fetchData} />;\n }\n\n if (isProcessing || !sessionReports) {\n return <AppLoader height=\"100vh\" />;\n }\n\n return (\n <SessionProgressSummaryView\n studentName={name}\n reportSubHeader={reportSubHeader}\n {...sessionReports}\n />\n );\n});\n\nSessionProgressSummary.displayName = 'SessionProgressSummary';\n\nexport default SessionProgressSummary;\n"],"names":["SessionProgressSummary","memo","formData","milestoneConfig","useTrialSessionContext","grade","name","course","attemptId","personalizedLevel","reportSubHeader","useMemo","selectedLabel","_b","_a","getPreferencesFromConfig","COURSE_STREAMS","PREFERENCE_CATEGORY","sessionLevel","txt","convertToTitleCase","_c","studentLevels","sessionReports","getSessionReports","isProcessed","isProcessing","isProcessingFailed","useGetSessionProgressReports","fetchData","useCallback","useEffect","jsx","Error","AppLoader","SessionProgressSummaryView"],"mappings":";;;;;;;;;;;AAYM,MAAAA,IAAyBC,EAAK,MAAM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