@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":"homework-controls.js","sources":["../../../../src/features/cue-canvas/bottombar/homework-controls.tsx"],"sourcesContent":["import { memo, useCallback, useState, type FC } from 'react';\n\nimport CheckIcon from '../../../assets/line-icons/icons/check';\nimport ShareIcon from '../../../assets/line-icons/icons/share';\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport { dataURIToBlob } from '../cue-canvas-helpers';\nimport { useCueCanvasActions } from '../hooks/use-cue-canvas-actions';\nimport type { IHomeWorkControllerProps } from './bottombar-types';\n\nconst HomeworkController: FC<IHomeWorkControllerProps> = props => {\n const { width, onSendImageToChat, onMarkAsResolved } = props;\n const { homeworkId, activeInstance, setHomeworkId } = useCueCanvasActions();\n const [isBusy, setIsBusy] = useState(false);\n\n const onSuccess = useCallback(() => {\n activeInstance?.clearCanvas();\n setHomeworkId(undefined);\n setIsBusy(false);\n }, [activeInstance, setHomeworkId]);\n\n const getBoardSnapshot = useCallback(async () => {\n if (!activeInstance) return;\n\n const snapshot = await activeInstance?.getCanvasAsImage();\n\n if (!snapshot) {\n return;\n }\n\n const blobdata = dataURIToBlob(snapshot);\n\n return [blobdata];\n }, [activeInstance]);\n\n const handleSendImageToChat = useCallback(async () => {\n const snapshot = await getBoardSnapshot();\n\n if (!homeworkId || !onSendImageToChat || !snapshot) return;\n\n onSendImageToChat?.(homeworkId, snapshot, onSuccess);\n }, [getBoardSnapshot, homeworkId, onSendImageToChat, onSuccess]);\n\n const handleMarkAsResolved = useCallback(() => {\n if (!homeworkId) return;\n setIsBusy(true);\n onMarkAsResolved?.(homeworkId, onSuccess);\n }, [homeworkId, onMarkAsResolved, onSuccess]);\n\n if (!homeworkId) return null;\n\n if (isBusy) {\n return (\n <FlexView\n $gapX={1}\n $gutterX={0.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width={width}\n $background=\"YELLOW_1\"\n >\n <Text $renderAs=\"body3\" $color=\"BLACK\">\n Resolving....\n </Text>\n </FlexView>\n );\n }\n\n return (\n <FlexView\n $flexDirection=\"row\"\n $gapX={1}\n $gutterX={0.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width={width}\n $background=\"YELLOW_1\"\n >\n <Button\n label=\"Mark as reolved\"\n onClick={handleMarkAsResolved}\n renderAs={'primary'}\n Icon={CheckIcon}\n busy={isBusy}\n />\n <Separator width={16} />\n <Button\n label=\"Send CueBoard image to chat\"\n onClick={handleSendImageToChat}\n renderAs={'primary'}\n Icon={ShareIcon}\n />\n </FlexView>\n );\n};\n\nexport default memo(HomeworkController);\n"],"names":["HomeworkController","props","width","onSendImageToChat","onMarkAsResolved","homeworkId","activeInstance","setHomeworkId","useCueCanvasActions","isBusy","setIsBusy","useState","onSuccess","useCallback","getBoardSnapshot","snapshot","dataURIToBlob","handleSendImageToChat","handleMarkAsResolved","jsx","FlexView","Text","jsxs","Button","CheckIcon","Separator","ShareIcon","homeworkControls","memo"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAAmD,CAASC,MAAA;AAChE,QAAM,EAAE,OAAAC,GAAO,mBAAAC,GAAmB,kBAAAC,EAAA,IAAqBH,GACjD,EAAE,YAAAI,GAAY,gBAAAC,GAAgB,eAAAC,MAAkBC,EAAoB,GACpE,CAACC,GAAQC,CAAS,IAAIC,EAAS,EAAK,GAEpCC,IAAYC,EAAY,MAAM;AAClC,IAAAP,KAAA,QAAAA,EAAgB,eAChBC,EAAc,MAAS,GACvBG,EAAU,EAAK;AAAA,EAAA,GACd,CAACJ,GAAgBC,CAAa,CAAC,GAE5BO,IAAmBD,EAAY,YAAY;AAC/C,QAAI,CAACP,EAAgB;AAEf,UAAAS,IAAW,OAAMT,KAAA,gBAAAA,EAAgB;AAEvC,WAAKS,IAME,CAFUC,EAAcD,CAAQ,CAEvB,IALd;AAAA,EAKc,GACf,CAACT,CAAc,CAAC,GAEbW,IAAwBJ,EAAY,YAAY;AAC9C,UAAAE,IAAW,MAAMD;AAEvB,IAAI,CAACT,KAAc,CAACF,KAAqB,CAACY,KAEtBZ,KAAA,QAAAA,EAAAE,GAAYU,GAAUH;AAAA,KACzC,CAACE,GAAkBT,GAAYF,GAAmBS,CAAS,CAAC,GAEzDM,IAAuBL,EAAY,MAAM;AAC7C,IAAKR,MACLK,EAAU,EAAI,GACdN,KAAA,QAAAA,EAAmBC,GAAYO;AAAA,EAC9B,GAAA,CAACP,GAAYD,GAAkBQ,CAAS,CAAC;AAExC,SAACP,IAEDI,IAEA,gBAAAU;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,UAAU;AAAA,MACV,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,QAAQlB;AAAA,MACR,aAAY;AAAA,MAEZ,4BAACmB,GAAK,EAAA,WAAU,SAAQ,QAAO,SAAQ,UAEvC,iBAAA;AAAA,IAAA;AAAA,EAAA,IAMJ,gBAAAC;AAAA,IAACF;AAAA,IAAA;AAAA,MACC,gBAAe;AAAA,MACf,OAAO;AAAA,MACP,UAAU;AAAA,MACV,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,QAAQlB;AAAA,MACR,aAAY;AAAA,MAEZ,UAAA;AAAA,QAAA,gBAAAiB;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACN,SAASL;AAAA,YACT,UAAU;AAAA,YACV,MAAMM;AAAA,YACN,MAAMf;AAAA,UAAA;AAAA,QACR;AAAA,QACA,gBAAAU,EAACM,GAAU,EAAA,OAAO,GAAI,CAAA;AAAA,QACtB,gBAAAN;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACN,SAASN;AAAA,YACT,UAAU;AAAA,YACV,MAAMS;AAAA,UAAA;AAAA,QACR;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,IA1CoB;AA6C1B,GAEeC,IAAAC,EAAK5B,CAAkB;"}
1
+ {"version":3,"file":"homework-controls.js","sources":["../../../../src/features/cue-canvas/bottombar/homework-controls.tsx"],"sourcesContent":["import { memo, useCallback, useState, type FC } from 'react';\n\nimport CheckIcon from '../../../assets/line-icons/icons/check';\nimport ShareIcon from '../../../assets/line-icons/icons/share';\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport { dataURIToBlob } from '../cue-canvas-helpers';\nimport { useCueCanvasActions } from '../hooks/use-cue-canvas-actions';\nimport type { IHomeWorkControllerProps } from './bottombar-types';\n\nconst HomeworkController: FC<IHomeWorkControllerProps> = props => {\n const { width, onSendImageToChat, onMarkAsResolved } = props;\n const { homeworkId, activeInstance, setHomeworkId } = useCueCanvasActions();\n const [isBusy, setIsBusy] = useState(false);\n\n const onSuccess = useCallback(() => {\n activeInstance?.clearCanvas();\n setHomeworkId(undefined);\n setIsBusy(false);\n }, [activeInstance, setHomeworkId]);\n\n const getBoardSnapshot = useCallback(async () => {\n if (!activeInstance) return;\n\n const snapshot = await activeInstance?.getCanvasAsImage();\n\n if (!snapshot) {\n return;\n }\n\n const blobdata = dataURIToBlob(snapshot);\n\n return [blobdata];\n }, [activeInstance]);\n\n const handleSendImageToChat = useCallback(async () => {\n const snapshot = await getBoardSnapshot();\n\n if (!homeworkId || !onSendImageToChat || !snapshot) return;\n\n onSendImageToChat?.(homeworkId, snapshot, onSuccess);\n }, [getBoardSnapshot, homeworkId, onSendImageToChat, onSuccess]);\n\n const handleMarkAsResolved = useCallback(() => {\n if (!homeworkId) return;\n setIsBusy(true);\n onMarkAsResolved?.(homeworkId, onSuccess);\n }, [homeworkId, onMarkAsResolved, onSuccess]);\n\n if (!homeworkId) return null;\n\n if (isBusy) {\n return (\n <FlexView\n $gapX={1}\n $gutterX={0.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width={width}\n $background=\"YELLOW_1\"\n >\n <Text $renderAs=\"body3\" $color=\"BLACK\">\n Resolving....\n </Text>\n </FlexView>\n );\n }\n\n return (\n <FlexView\n $flexDirection=\"row\"\n $gapX={1}\n $gutterX={0.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width={width}\n $background=\"YELLOW_1\"\n >\n <Button\n label=\"Mark as reolved\"\n onClick={handleMarkAsResolved}\n renderAs={'primary'}\n Icon={CheckIcon}\n busy={isBusy}\n />\n <Separator width={16} />\n <Button\n label=\"Send CueBoard image to chat\"\n onClick={handleSendImageToChat}\n renderAs={'primary'}\n Icon={ShareIcon}\n />\n </FlexView>\n );\n};\n\nexport default memo(HomeworkController);\n"],"names":["HomeworkController","props","width","onSendImageToChat","onMarkAsResolved","homeworkId","activeInstance","setHomeworkId","useCueCanvasActions","isBusy","setIsBusy","useState","onSuccess","useCallback","getBoardSnapshot","snapshot","dataURIToBlob","handleSendImageToChat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AA,IAAA;AAAA,EAAA,IAMJ,gBAAAC;AAAA,IAACF;AAAA,IAAA;AAAA,MACC,gBAAe;AAAA,MACf,OAAO;AAAA,MACP,UAAU;AAAA,MACV,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,QAAQlB;AAAA,MACR,aAAY;AAAA,MAEZ,UAAA;AAAA,QAAA,gBAAAiB;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACN,SAASL;AAAA,YACT,UAAU;AAAA,YACV,MAAMM;AAAA,YACN,MAAMf;AAAA,UAAA;AAAA,QACR;AAAA,QACA,gBAAAU,EAACM,GAAU,EAAA,OAAO,GAAI,CAAA;AAAA,QACtB,gBAAAN;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACN,SAASN;AAAA,YACT,UAAU;AAAA,YACV,MAAMS;AAAA,UAAA;AAAA,QACR;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,IA1CoB;AA6C1B,GAEeC,IAAAC,EAAK5B,CAAkB;"}
@@ -3,15 +3,15 @@ import { memo as p, useState as d, useMemo as f } from "react";
3
3
  import c from "../../ui/layout/flex-view.js";
4
4
  import o from "../../ui/separator/separator.js";
5
5
  import l from "./homework/homework.js";
6
- import s from "./puzzles/puzzles.js";
7
- import { SideBarContainer as u } from "./sidebar-styled.js";
6
+ import u from "./puzzles/puzzles.js";
7
+ import { SideBarContainer as s } from "./sidebar-styled.js";
8
8
  import x from "./tiles/tile.js";
9
9
  const S = ({ grade: m, hwRequests: t }) => {
10
10
  const [r, i] = d(), a = f(() => r === "tile" ? "300px" : r === "homework" ? "248px" : r === "puzzle" ? "650px" : "auto", [r]);
11
- return /* @__PURE__ */ e(u, { $activeSidebar: r, $width: a, children: /* @__PURE__ */ n(c, { $flexDirection: "row", children: [
11
+ return /* @__PURE__ */ e(s, { $activeSidebar: r, $width: a, children: /* @__PURE__ */ n(c, { $flexDirection: "row", children: [
12
12
  /* @__PURE__ */ e(x, { activeSidebar: r, setActiveSidebar: i }),
13
13
  /* @__PURE__ */ e(o, { width: 8 }),
14
- /* @__PURE__ */ e(s, { grade: m, activeSidebar: r, setActiveSidebar: i }),
14
+ /* @__PURE__ */ e(u, { grade: m, activeSidebar: r, setActiveSidebar: i }),
15
15
  /* @__PURE__ */ e(o, { width: 8 }),
16
16
  t && t.length > 0 && /* @__PURE__ */ e(
17
17
  l,
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.js","sources":["../../../../src/features/cue-canvas/sidebar/sidebar.tsx"],"sourcesContent":["import { memo, useMemo, useState, type FC } from 'react';\n\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport Homework from './homework/homework';\nimport type { IHomeWorkHelpRequestModelWithStudentName } from './homework/homework-types';\nimport Puzzles from './puzzles/puzzles';\nimport type { TActiveSidebar } from './puzzles/puzzles-type';\nimport { SideBarContainer } from './sidebar-styled';\nimport TileBar from './tiles/tile';\n\ninterface ISidebar {\n grade?: string;\n hwRequests?: IHomeWorkHelpRequestModelWithStudentName[];\n}\n\nconst Sidebar: FC<ISidebar> = ({ grade, hwRequests }) => {\n const [activeSidebar, setActiveSidebar] = useState<TActiveSidebar | undefined>();\n\n const width = useMemo(() => {\n if (activeSidebar === 'tile') {\n return '300px';\n }\n\n if (activeSidebar === 'homework') {\n return '248px';\n }\n\n if (activeSidebar === 'puzzle') {\n return '650px';\n }\n\n return 'auto';\n }, [activeSidebar]);\n\n return (\n <SideBarContainer $activeSidebar={activeSidebar} $width={width}>\n <FlexView $flexDirection=\"row\">\n <TileBar activeSidebar={activeSidebar} setActiveSidebar={setActiveSidebar} />\n <Separator width={8} />\n <Puzzles grade={grade} activeSidebar={activeSidebar} setActiveSidebar={setActiveSidebar} />\n <Separator width={8} />\n\n {hwRequests && hwRequests.length > 0 && (\n <Homework\n activeSidebar={activeSidebar}\n setActiveSidebar={setActiveSidebar}\n hwRequests={hwRequests}\n />\n )}\n </FlexView>\n </SideBarContainer>\n );\n};\n\nexport default memo(Sidebar);\n"],"names":["Sidebar","grade","hwRequests","activeSidebar","setActiveSidebar","useState","width","useMemo","jsx","SideBarContainer","jsxs","FlexView","TileBar","Separator","Puzzles","Homework","sidebar","memo"],"mappings":";;;;;;;;AAgBA,MAAMA,IAAwB,CAAC,EAAE,OAAAC,GAAO,YAAAC,QAAiB;AACvD,QAAM,CAACC,GAAeC,CAAgB,IAAIC,EAAqC,GAEzEC,IAAQC,EAAQ,MAChBJ,MAAkB,SACb,UAGLA,MAAkB,aACb,UAGLA,MAAkB,WACb,UAGF,QACN,CAACA,CAAa,CAAC;AAGhB,SAAA,gBAAAK,EAACC,KAAiB,gBAAgBN,GAAe,QAAQG,GACvD,UAAA,gBAAAI,EAACC,GAAS,EAAA,gBAAe,OACvB,UAAA;AAAA,IAAC,gBAAAH,EAAAI,GAAA,EAAQ,eAAAT,GAA8B,kBAAAC,EAAoC,CAAA;AAAA,IAC3E,gBAAAI,EAACK,GAAU,EAAA,OAAO,EAAG,CAAA;AAAA,IACpB,gBAAAL,EAAAM,GAAA,EAAQ,OAAAb,GAAc,eAAAE,GAA8B,kBAAAC,EAAoC,CAAA;AAAA,IACzF,gBAAAI,EAACK,GAAU,EAAA,OAAO,EAAG,CAAA;AAAA,IAEpBX,KAAcA,EAAW,SAAS,KACjC,gBAAAM;AAAA,MAACO;AAAA,MAAA;AAAA,QACC,eAAAZ;AAAA,QACA,kBAAAC;AAAA,QACA,YAAAF;AAAA,MAAA;AAAA,IACF;AAAA,EAAA,EAEJ,CAAA,EACF,CAAA;AAEJ,GAEec,IAAAC,EAAKjB,CAAO;"}
1
+ {"version":3,"file":"sidebar.js","sources":["../../../../src/features/cue-canvas/sidebar/sidebar.tsx"],"sourcesContent":["import { memo, useMemo, useState, type FC } from 'react';\n\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport Homework from './homework/homework';\nimport type { IHomeWorkHelpRequestModelWithStudentName } from './homework/homework-types';\nimport Puzzles from './puzzles/puzzles';\nimport type { TActiveSidebar } from './puzzles/puzzles-type';\nimport { SideBarContainer } from './sidebar-styled';\nimport TileBar from './tiles/tile';\n\ninterface ISidebar {\n grade?: string;\n hwRequests?: IHomeWorkHelpRequestModelWithStudentName[];\n}\n\nconst Sidebar: FC<ISidebar> = ({ grade, hwRequests }) => {\n const [activeSidebar, setActiveSidebar] = useState<TActiveSidebar | undefined>();\n\n const width = useMemo(() => {\n if (activeSidebar === 'tile') {\n return '300px';\n }\n\n if (activeSidebar === 'homework') {\n return '248px';\n }\n\n if (activeSidebar === 'puzzle') {\n return '650px';\n }\n\n return 'auto';\n }, [activeSidebar]);\n\n return (\n <SideBarContainer $activeSidebar={activeSidebar} $width={width}>\n <FlexView $flexDirection=\"row\">\n <TileBar activeSidebar={activeSidebar} setActiveSidebar={setActiveSidebar} />\n <Separator width={8} />\n <Puzzles grade={grade} activeSidebar={activeSidebar} setActiveSidebar={setActiveSidebar} />\n <Separator width={8} />\n\n {hwRequests && hwRequests.length > 0 && (\n <Homework\n activeSidebar={activeSidebar}\n setActiveSidebar={setActiveSidebar}\n hwRequests={hwRequests}\n />\n )}\n </FlexView>\n </SideBarContainer>\n );\n};\n\nexport default memo(Sidebar);\n"],"names":["Sidebar","grade","hwRequests","activeSidebar","setActiveSidebar","useState","width","useMemo","jsx","SideBarContainer","jsxs","FlexView","TileBar","Separator","Puzzles","Homework","Sidebar$1","memo"],"mappings":";;;;;;;;AAgBA,MAAMA,IAAwB,CAAC,EAAE,OAAAC,GAAO,YAAAC,QAAiB;AACvD,QAAM,CAACC,GAAeC,CAAgB,IAAIC,EAAqC,GAEzEC,IAAQC,EAAQ,MAChBJ,MAAkB,SACb,UAGLA,MAAkB,aACb,UAGLA,MAAkB,WACb,UAGF,QACN,CAACA,CAAa,CAAC;AAGhB,SAAA,gBAAAK,EAACC,KAAiB,gBAAgBN,GAAe,QAAQG,GACvD,UAAA,gBAAAI,EAACC,GAAS,EAAA,gBAAe,OACvB,UAAA;AAAA,IAAC,gBAAAH,EAAAI,GAAA,EAAQ,eAAAT,GAA8B,kBAAAC,EAAoC,CAAA;AAAA,IAC3E,gBAAAI,EAACK,GAAU,EAAA,OAAO,EAAG,CAAA;AAAA,IACpB,gBAAAL,EAAAM,GAAA,EAAQ,OAAAb,GAAc,eAAAE,GAA8B,kBAAAC,EAAoC,CAAA;AAAA,IACzF,gBAAAI,EAACK,GAAU,EAAA,OAAO,EAAG,CAAA;AAAA,IAEpBX,KAAcA,EAAW,SAAS,KACjC,gBAAAM;AAAA,MAACO;AAAA,MAAA;AAAA,QACC,eAAAZ;AAAA,QACA,kBAAAC;AAAA,QACA,YAAAF;AAAA,MAAA;AAAA,IACF;AAAA,EAAA,EAEJ,CAAA,EACF,CAAA;AAEJ,GAEec,IAAAC,EAAKjB,CAAO;"}
@@ -1,21 +1,25 @@
1
- import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
- import { memo as c, useEffect as l } from "react";
3
- import f from "../../ui/layout/flex-view.js";
4
- import { getUserTools as u } from "../cue-canvas-helpers.js";
5
- import { useCueCanvasActions as p } from "../hooks/use-cue-canvas-actions.js";
6
- import C from "./color-picker-menu.js";
7
- import b from "./tool.js";
8
- import v from "./whiteboard-toolbar.js";
9
- const x = c(function({ userType: t, renderAs: e }) {
10
- const i = u(t, e), { activeInstance: o, activeTool: a, activeColor: m } = p();
11
- return l(() => {
12
- o && (o.setColor(m), o.setTool(a));
13
- }, [o]), e === "whiteboard" ? /* @__PURE__ */ r(v, { tools: i, userType: t }) : /* @__PURE__ */ s(f, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", $flexGapX: 0.25, children: [
14
- i.map((n) => /* @__PURE__ */ r(b, { tool: n, shouldAnimate: !0 }, n)),
15
- /* @__PURE__ */ r(C, { userType: t, renderAs: "canvas" })
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { memo as l, useEffect as f } from "react";
3
+ import u from "../../ui/layout/flex-view.js";
4
+ import { getUserTools as p } from "../cue-canvas-helpers.js";
5
+ import { useCueCanvasActions as C } from "../hooks/use-cue-canvas-actions.js";
6
+ import b from "./color-picker-menu.js";
7
+ import v from "./tool.js";
8
+ import x from "./whiteboard-toolbar.js";
9
+ const T = l(function({
10
+ userType: t,
11
+ renderAs: e,
12
+ withGutter: a = !0
13
+ }) {
14
+ const i = p(t, e), { activeInstance: o, activeTool: m, activeColor: s } = C();
15
+ return f(() => {
16
+ o && (o.setColor(s), o.setTool(m));
17
+ }, [o]), e === "whiteboard" ? /* @__PURE__ */ r(x, { tools: i, userType: t, withGutter: a }) : /* @__PURE__ */ c(u, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", $flexGapX: 0.25, children: [
18
+ i.map((n) => /* @__PURE__ */ r(v, { tool: n, shouldAnimate: !0 }, n)),
19
+ /* @__PURE__ */ r(b, { userType: t, renderAs: "canvas" })
16
20
  ] });
17
- }), k = x;
21
+ }), D = T;
18
22
  export {
19
- k as default
23
+ D as default
20
24
  };
21
25
  //# sourceMappingURL=toolbar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar.js","sources":["../../../../src/features/cue-canvas/toolbar/toolbar.tsx"],"sourcesContent":["import { memo, useEffect, type FC } from 'react';\n\nimport FlexView from '../../ui/layout/flex-view';\nimport { getUserTools } from '../cue-canvas-helpers';\nimport { useCueCanvasActions } from '../hooks/use-cue-canvas-actions';\nimport type { IToolbarProps } from '../types/toolbar';\nimport ColorPickerMenu from './color-picker-menu';\nimport Tool from './tool';\nimport WhiteboardToolbar from './whiteboard-toolbar';\n\nconst Toolbar: FC<IToolbarProps> = memo(function Toolbar({ userType, renderAs }) {\n const tools = getUserTools(userType, renderAs);\n const { activeInstance: cueCanvas, activeTool, activeColor } = useCueCanvasActions();\n\n // This effect ensures that the selected tool and color are applied to the cueCanvas instance\n // whenever it changes. For example, if a user selects a tool and color, then navigates to a\n // different question (causing a new cueCanvas instance), the same tool and color will be set\n // on the new instance.\n // Disabling the exhaustive-deps rule here because we want to run this effect only\n // when the cueCanvas instance is set, not on every tool & color change.\n useEffect(() => {\n if (cueCanvas) {\n cueCanvas.setColor(activeColor);\n\n cueCanvas.setTool(activeTool);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [cueCanvas]);\n\n if (renderAs === 'whiteboard') {\n return <WhiteboardToolbar tools={tools} userType={userType} />;\n }\n\n return (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\" $flexGapX={0.25}>\n {tools.map(tool => (\n <Tool tool={tool} key={tool} shouldAnimate />\n ))}\n <ColorPickerMenu userType={userType} renderAs=\"canvas\" />\n </FlexView>\n );\n});\n\nexport default Toolbar;\n"],"names":["Toolbar","memo","userType","renderAs","tools","getUserTools","cueCanvas","activeTool","activeColor","useCueCanvasActions","useEffect","jsx","WhiteboardToolbar","jsxs","FlexView","Tool","tool","ColorPickerMenu","Toolbar$1"],"mappings":";;;;;;;;AAUA,MAAMA,IAA6BC,EAAK,SAAiB,EAAE,UAAAC,GAAU,UAAAC,KAAY;AACzE,QAAAC,IAAQC,EAAaH,GAAUC,CAAQ,GACvC,EAAE,gBAAgBG,GAAW,YAAAC,GAAY,aAAAC,EAAA,IAAgBC;AAiB/D,SATAC,EAAU,MAAM;AACd,IAAIJ,MACFA,EAAU,SAASE,CAAW,GAE9BF,EAAU,QAAQC,CAAU;AAAA,EAC9B,GAEC,CAACD,CAAS,CAAC,GAEVH,MAAa,eACR,gBAAAQ,EAACC,GAAkB,EAAA,OAAAR,GAAc,UAAAF,EAAoB,CAAA,IAI5D,gBAAAW,EAACC,KAAS,gBAAe,OAAM,aAAY,UAAS,iBAAgB,UAAS,WAAW,MACrF,UAAA;AAAA,IAAMV,EAAA,IAAI,OACR,gBAAAO,EAAAI,GAAA,EAAK,MAAAC,GAAuB,eAAa,GAAA,GAAnBA,CAAoB,CAC5C;AAAA,IACA,gBAAAL,EAAAM,GAAA,EAAgB,UAAAf,GAAoB,UAAS,SAAS,CAAA;AAAA,EACzD,EAAA,CAAA;AAEJ,CAAC,GAEDgB,IAAelB;"}
1
+ {"version":3,"file":"toolbar.js","sources":["../../../../src/features/cue-canvas/toolbar/toolbar.tsx"],"sourcesContent":["import { memo, useEffect, type FC } from 'react';\n\nimport FlexView from '../../ui/layout/flex-view';\nimport { getUserTools } from '../cue-canvas-helpers';\nimport { useCueCanvasActions } from '../hooks/use-cue-canvas-actions';\nimport type { IToolbarProps } from '../types/toolbar';\nimport ColorPickerMenu from './color-picker-menu';\nimport Tool from './tool';\nimport WhiteboardToolbar from './whiteboard-toolbar';\n\nconst Toolbar: FC<IToolbarProps> = memo(function Toolbar({\n userType,\n renderAs,\n withGutter = true,\n}) {\n const tools = getUserTools(userType, renderAs);\n const { activeInstance: cueCanvas, activeTool, activeColor } = useCueCanvasActions();\n\n // This effect ensures that the selected tool and color are applied to the cueCanvas instance\n // whenever it changes. For example, if a user selects a tool and color, then navigates to a\n // different question (causing a new cueCanvas instance), the same tool and color will be set\n // on the new instance.\n // Disabling the exhaustive-deps rule here because we want to run this effect only\n // when the cueCanvas instance is set, not on every tool & color change.\n useEffect(() => {\n if (cueCanvas) {\n cueCanvas.setColor(activeColor);\n\n cueCanvas.setTool(activeTool);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [cueCanvas]);\n\n if (renderAs === 'whiteboard') {\n return <WhiteboardToolbar tools={tools} userType={userType} withGutter={withGutter} />;\n }\n\n return (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\" $flexGapX={0.25}>\n {tools.map(tool => (\n <Tool tool={tool} key={tool} shouldAnimate />\n ))}\n <ColorPickerMenu userType={userType} renderAs=\"canvas\" />\n </FlexView>\n );\n});\n\nexport default Toolbar;\n"],"names":["Toolbar","memo","userType","renderAs","withGutter","tools","getUserTools","cueCanvas","activeTool","activeColor","useCueCanvasActions","useEffect","jsx","WhiteboardToolbar","jsxs","FlexView","Tool","tool","ColorPickerMenu","Toolbar$1"],"mappings":";;;;;;;;AAUA,MAAMA,IAA6BC,EAAK,SAAiB;AAAA,EACvD,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC,IAAa;AACf,GAAG;AACK,QAAAC,IAAQC,EAAaJ,GAAUC,CAAQ,GACvC,EAAE,gBAAgBI,GAAW,YAAAC,GAAY,aAAAC,EAAA,IAAgBC;AAiB/D,SATAC,EAAU,MAAM;AACd,IAAIJ,MACFA,EAAU,SAASE,CAAW,GAE9BF,EAAU,QAAQC,CAAU;AAAA,EAC9B,GAEC,CAACD,CAAS,CAAC,GAEVJ,MAAa,eACP,gBAAAS,EAAAC,GAAA,EAAkB,OAAAR,GAAc,UAAAH,GAAoB,YAAAE,EAAwB,CAAA,IAIpF,gBAAAU,EAACC,KAAS,gBAAe,OAAM,aAAY,UAAS,iBAAgB,UAAS,WAAW,MACrF,UAAA;AAAA,IAAMV,EAAA,IAAI,OACR,gBAAAO,EAAAI,GAAA,EAAK,MAAAC,GAAuB,eAAa,GAAA,GAAnBA,CAAoB,CAC5C;AAAA,IACA,gBAAAL,EAAAM,GAAA,EAAgB,UAAAhB,GAAoB,UAAS,SAAS,CAAA;AAAA,EACzD,EAAA,CAAA;AAEJ,CAAC,GAEDiB,IAAenB;"}
@@ -1,20 +1,30 @@
1
- import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
- import { memo as a } from "react";
3
- import l from "../../ui/layout/flex-view.js";
4
- import c from "./color-picker-menu.js";
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { memo as l } from "react";
3
+ import c from "../../ui/layout/flex-view.js";
4
+ import p from "./color-picker-menu.js";
5
5
  import i from "./tool.js";
6
- const b = a(function({
6
+ const T = l(function({
7
7
  tools: e,
8
- userType: t
8
+ userType: t,
9
+ withGutter: m
9
10
  }) {
10
- const m = e.slice(0, 4), n = e.slice(4);
11
- return /* @__PURE__ */ s(l, { $flexDirection: "row", $alignItems: "center", $position: "relative", $flexGapX: 0.25, children: [
12
- m.map((o) => /* @__PURE__ */ r(i, { tool: o, shouldAnimate: !0 }, o)),
13
- /* @__PURE__ */ r(c, { userType: t, renderAs: "whiteboard" }),
14
- n.map((o) => /* @__PURE__ */ r(i, { tool: o }, o))
15
- ] });
11
+ const n = e.slice(0, 4), s = e.slice(4);
12
+ return /* @__PURE__ */ a(
13
+ c,
14
+ {
15
+ $flexDirection: "row",
16
+ $alignItems: "center",
17
+ $position: "relative",
18
+ $flexGapX: m ? 0.25 : 0,
19
+ children: [
20
+ n.map((o) => /* @__PURE__ */ r(i, { tool: o, shouldAnimate: !0 }, o)),
21
+ /* @__PURE__ */ r(p, { userType: t, renderAs: "whiteboard" }),
22
+ s.map((o) => /* @__PURE__ */ r(i, { tool: o }, o))
23
+ ]
24
+ }
25
+ );
16
26
  });
17
27
  export {
18
- b as default
28
+ T as default
19
29
  };
20
30
  //# sourceMappingURL=whiteboard-toolbar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"whiteboard-toolbar.js","sources":["../../../../src/features/cue-canvas/toolbar/whiteboard-toolbar.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport FlexView from '../../ui/layout/flex-view';\nimport type { IWhiteboardToolbar } from '../types/toolbar';\nimport ColorPickerMenu from './color-picker-menu';\nimport Tool from './tool';\n\nconst WhiteboardToolbar: FC<IWhiteboardToolbar> = memo(function WhiteboardToolbar({\n tools,\n userType,\n}) {\n const writingTools = tools.slice(0, 4);\n const otherTools = tools.slice(4);\n\n return (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $position=\"relative\" $flexGapX={0.25}>\n {writingTools.map(tool => (\n <Tool tool={tool} key={tool} shouldAnimate={true} />\n ))}\n <ColorPickerMenu userType={userType} renderAs=\"whiteboard\" />\n {otherTools.map(tool => (\n <Tool tool={tool} key={tool} />\n ))}\n </FlexView>\n );\n});\n\nexport default WhiteboardToolbar;\n"],"names":["WhiteboardToolbar","memo","tools","userType","writingTools","otherTools","jsxs","FlexView","jsx","Tool","tool","ColorPickerMenu"],"mappings":";;;;;AAOM,MAAAA,IAA4CC,EAAK,SAA2B;AAAA,EAChF,OAAAC;AAAA,EACA,UAAAC;AACF,GAAG;AACD,QAAMC,IAAeF,EAAM,MAAM,GAAG,CAAC,GAC/BG,IAAaH,EAAM,MAAM,CAAC;AAG9B,SAAA,gBAAAI,EAACC,KAAS,gBAAe,OAAM,aAAY,UAAS,WAAU,YAAW,WAAW,MACjF,UAAA;AAAA,IAAaH,EAAA,IAAI,OACf,gBAAAI,EAAAC,GAAA,EAAK,MAAAC,GAAuB,eAAe,GAAA,GAArBA,CAA2B,CACnD;AAAA,IACA,gBAAAF,EAAAG,GAAA,EAAgB,UAAAR,GAAoB,UAAS,aAAa,CAAA;AAAA,IAC1DE,EAAW,IAAI,CAAAK,wBACbD,GAAK,EAAA,MAAAC,KAAiBA,CAAM,CAC9B;AAAA,EACH,EAAA,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"whiteboard-toolbar.js","sources":["../../../../src/features/cue-canvas/toolbar/whiteboard-toolbar.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport FlexView from '../../ui/layout/flex-view';\nimport type { IWhiteboardToolbar } from '../types/toolbar';\nimport ColorPickerMenu from './color-picker-menu';\nimport Tool from './tool';\n\nconst WhiteboardToolbar: FC<IWhiteboardToolbar> = memo(function WhiteboardToolbar({\n tools,\n userType,\n withGutter,\n}) {\n const writingTools = tools.slice(0, 4);\n const otherTools = tools.slice(4);\n\n return (\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $position=\"relative\"\n $flexGapX={withGutter ? 0.25 : 0}\n >\n {writingTools.map(tool => (\n <Tool tool={tool} key={tool} shouldAnimate={true} />\n ))}\n <ColorPickerMenu userType={userType} renderAs=\"whiteboard\" />\n {otherTools.map(tool => (\n <Tool tool={tool} key={tool} />\n ))}\n </FlexView>\n );\n});\n\nexport default WhiteboardToolbar;\n"],"names":["WhiteboardToolbar","memo","tools","userType","withGutter","writingTools","otherTools","jsxs","FlexView","jsx","Tool","tool","ColorPickerMenu"],"mappings":";;;;;AAOM,MAAAA,IAA4CC,EAAK,SAA2B;AAAA,EAChF,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AACF,GAAG;AACD,QAAMC,IAAeH,EAAM,MAAM,GAAG,CAAC,GAC/BI,IAAaJ,EAAM,MAAM,CAAC;AAG9B,SAAA,gBAAAK;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAe;AAAA,MACf,aAAY;AAAA,MACZ,WAAU;AAAA,MACV,WAAWJ,IAAa,OAAO;AAAA,MAE9B,UAAA;AAAA,QAAaC,EAAA,IAAI,OACf,gBAAAI,EAAAC,GAAA,EAAK,MAAAC,GAAuB,eAAe,GAAA,GAArBA,CAA2B,CACnD;AAAA,QACA,gBAAAF,EAAAG,GAAA,EAAgB,UAAAT,GAAoB,UAAS,aAAa,CAAA;AAAA,QAC1DG,EAAW,IAAI,CAAAK,wBACbD,GAAK,EAAA,MAAAC,KAAiBA,CAAM,CAC9B;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"milestone-config.js","sources":["../../../../../src/features/milestone/create/api/milestone-config.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V3 } from '../../../../constants/api';\nimport { stringify } from '../../../../helpers/query-string';\nimport type { IMilestoneConfig } from '../milestone-create-types';\n\nconst { useGet: useGetMileStoneConfig } = createGetAPI<\n IMilestoneConfig,\n { demo_type?: 'TRIAL_V3' } | undefined\n>({\n getURL: (_, query) => `${BASE_URL_V3}/milestone/config/${query ? `?${stringify(query)}` : ''}`,\n});\n\nexport { useGetMileStoneConfig };\n"],"names":["useGetMileStoneConfig","createGetAPI","_","query","BASE_URL_V3","stringify"],"mappings":";;;AAMA,MAAM,EAAE,QAAQA,EAAsB,IAAIC,EAGxC;AAAA,EACA,QAAQ,CAACC,GAAGC,MAAU,GAAGC,CAAW,qBAAqBD,IAAQ,IAAIE,EAAUF,CAAK,CAAC,KAAK,EAAE;AAC9F,CAAC;"}
1
+ {"version":3,"file":"milestone-config.js","sources":["../../../../../src/features/milestone/create/api/milestone-config.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V3 } from '../../../../constants/api';\nimport { stringify } from '../../../../helpers/query-string';\nimport type { IMilestoneConfig } from '../milestone-create-types';\n\nconst { useGet: useGetMileStoneConfig } = createGetAPI<\n IMilestoneConfig,\n { demo_type?: string } | undefined\n>({\n getURL: (_, query) => `${BASE_URL_V3}/milestone/config/${query ? `?${stringify(query)}` : ''}`,\n});\n\nexport { useGetMileStoneConfig };\n"],"names":["useGetMileStoneConfig","createGetAPI","_","query","BASE_URL_V3","stringify"],"mappings":";;;AAMA,MAAM,EAAE,QAAQA,EAAsB,IAAIC,EAGxC;AAAA,EACA,QAAQ,CAACC,GAAGC,MAAU,GAAGC,CAAW,qBAAqBD,IAAQ,IAAIE,EAAUF,CAAK,CAAC,KAAK,EAAE;AAC9F,CAAC;"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { memo as p, useCallback as f, useEffect as d } from "react";
3
- import { useGetSessionReports as u } from "../../../trial-session/api/trial-home.js";
3
+ import { useGetSessionReports as u } from "../../../trial-session/api/trial-session-report.js";
4
4
  import l from "../../../trial-session/comps/session-report/report-information/report-information.js";
5
5
  import c from "../../../ui/error/error.js";
6
6
  import h from "../../../ui/loader/app-loader/app-loader.js";
@@ -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-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;"}
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-session-report';\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;"}
@@ -1,20 +1,14 @@
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)}`
1
+ import { createGetAPI as r, createPatchAPI as a } from "@cuemath/rest-api";
2
+ import { BASE_URL_V1 as e } from "../../../constants/api.js";
3
+ import { stringify as i } from "../../../helpers/query-string.js";
4
+ const { useGet: s, invalidate: h } = r({
5
+ getURL: (o, t) => `${e}/trial/home/v2/?${i(t)}`
6
+ }), { usePatch: n } = a({
7
+ getURL: () => `${e}/trial/home/v2/`
12
8
  });
13
9
  export {
14
- l as invalidateTrialHome,
15
- g as useGetSessionInsights,
16
- $ as useGetSessionReports,
17
- u as useGetTrialHome,
18
- p as usePatchTrialHome
10
+ h as invalidateTrialHome,
11
+ s as useGetTrialHome,
12
+ n as usePatchTrialHome
19
13
  };
20
14
  //# 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, 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
+ {"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\nexport { useGetTrialHome, usePatchTrialHome, invalidateTrialHome };\n"],"names":["useGetTrialHome","invalidateTrialHome","createGetAPI","_","query","BASE_URL_V1","stringify","usePatchTrialHome","createPatchAPI"],"mappings":";;;AAYA,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;"}
@@ -0,0 +1,16 @@
1
+ import { createGetAPI as s } from "@cuemath/rest-api";
2
+ import { BASE_URL_V2 as r } from "../../../constants/api.js";
3
+ import { stringify as o } from "../../../helpers/query-string.js";
4
+ const { useGet: a } = s({
5
+ getURL: (t) => `${r}/user-attempts/${t}/trial-diagnostic/report`
6
+ }), { useGet: g } = s({
7
+ getURL: (t, e) => `${r}/user-attempts/${t}/trial-diagnostic/report/v2/?${o(e)}`
8
+ }), { useGet: m } = s({
9
+ getURL: (t, e) => `${r}/user-attempts/${t}/trial-diagnostic/report/v3/?${o(e)}`
10
+ });
11
+ export {
12
+ a as useGetSessionInsights,
13
+ m as useGetSessionProgressReports,
14
+ g as useGetSessionReports
15
+ };
16
+ //# sourceMappingURL=trial-session-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trial-session-report.js","sources":["../../../../src/features/trial-session/api/trial-session-report.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V2 } from '../../../constants/api';\nimport { type TSessionInsightsData } from '../comps/session-insights/session-insights-types';\nimport { type TSessionReportData } from '../comps/session-report/session-report-types';\nimport { stringify } from '../../../helpers/query-string';\nimport { type ISessionProgressSummary } from '../comps/session-progress-summary/session-progress-summary-types';\n\ninterface ISessionInsightsQuery {\n student_level: string;\n student_name: string;\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\nconst { useGet: useGetSessionProgressReports } = createGetAPI<\n ISessionProgressSummary,\n { student_name: string }\n>({\n getURL: (userAttemptId, query) =>\n `${BASE_URL_V2}/user-attempts/${userAttemptId}/trial-diagnostic/report/v3/?${stringify(query)}`,\n});\n\nexport { useGetSessionReports, useGetSessionInsights, useGetSessionProgressReports };\n"],"names":["useGetSessionInsights","createGetAPI","userAttemptId","BASE_URL_V2","useGetSessionReports","query","stringify","useGetSessionProgressReports"],"mappings":";;;AAaA,MAAM,EAAE,QAAQA,EAAsB,IAAIC,EAAmC;AAAA,EAC3E,QAAQ,CAAAC,MAAiB,GAAGC,CAAW,kBAAkBD,CAAa;AACxE,CAAC,GAEK,EAAE,QAAQE,EAAqB,IAAIH,EAAwD;AAAA,EAC/F,QAAQ,CAACC,GAAeG,MACtB,GAAGF,CAAW,kBAAkBD,CAAa,gCAAgCI,EAAUD,CAAK,CAAC;AACjG,CAAC,GAEK,EAAE,QAAQE,EAA6B,IAAIN,EAG/C;AAAA,EACA,QAAQ,CAACC,GAAeG,MACtB,GAAGF,CAAW,kBAAkBD,CAAa,gCAAgCI,EAAUD,CAAK,CAAC;AACjG,CAAC;"}
@@ -0,0 +1,9 @@
1
+ import { createGetAPI as t } from "@cuemath/rest-api";
2
+ import { BASE_URL_V1 as e } from "../../../constants/api.js";
3
+ const { useGet: i } = t({
4
+ getURL: () => `${e}/configs/trial_v3_topics`
5
+ });
6
+ export {
7
+ i as useGetTrialTopics
8
+ };
9
+ //# sourceMappingURL=trial-topics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trial-topics.js","sources":["../../../../src/features/trial-session/api/trial-topics.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\n\ninterface ITrialTopicsData {\n [countryCode: string]: {\n [grade: number]: {\n [course: string]: {\n topic_image_url: string;\n topic_name: string;\n };\n };\n };\n}\n\nconst { useGet: useGetTrialTopics } = createGetAPI<ITrialTopicsData>({\n getURL: () => `${BASE_URL_V1}/configs/trial_v3_topics`,\n});\n\nexport { useGetTrialTopics };\n"],"names":["useGetTrialTopics","createGetAPI","BASE_URL_V1"],"mappings":";;AAeA,MAAM,EAAE,QAAQA,EAAkB,IAAIC,EAA+B;AAAA,EACnE,QAAQ,MAAM,GAAGC,CAAW;AAC9B,CAAC;"}
@@ -1,33 +1,33 @@
1
- import { getTheme as O } from "../../../ui/theme/get-theme.js";
1
+ import { getTheme as I } from "../../../ui/theme/get-theme.js";
2
2
  import { TrialPageId as x } from "../../trial-session-constants.js";
3
- const I = O(), {
4
- BLACK_T_08: l,
5
- WHITE_3: b,
3
+ const R = I(), {
4
+ BLACK_T_08: g,
5
+ WHITE_3: l,
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: 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 ? {
11
+ ORANGE_2: T,
12
+ BLUE_1: S,
13
+ BLUE_2: b,
14
+ BLUE_3: N,
15
+ PURPLE_1: y,
16
+ PURPLE_2: O,
17
+ YELLOW_1: r,
18
+ YELLOW_2: E
19
+ } = R.colors, U = (_) => _ ? {
20
20
  [x.SESSION_OVERVIEW]: [
21
- { xAxis: 2, yAxis: 1, bgColor: _ },
21
+ { xAxis: 2, yAxis: 1, bgColor: E },
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: 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 }
27
+ { xAxis: 3, yAxis: 1, bgColor: l },
28
+ { xAxis: 14, yAxis: 1, bgColor: g },
29
+ { xAxis: 1, yAxis: 7, bgColor: g },
30
+ { xAxis: 17, yAxis: 9, bgColor: l }
31
31
  ],
32
32
  [x.LEARNING_LEVEL]: [
33
33
  { xAxis: 3, yAxis: 0, bgColor: s },
@@ -42,21 +42,21 @@ const I = O(), {
42
42
  { xAxis: 17, yAxis: 6, bgColor: o }
43
43
  ],
44
44
  [x.SCHOOL_GOALS]: [
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 }
45
+ { xAxis: 2, yAxis: 1, bgColor: O },
46
+ { xAxis: 16, yAxis: 0, bgColor: y },
47
+ { xAxis: 0, yAxis: 8, bgColor: y },
48
+ { xAxis: 17, yAxis: 10, bgColor: O }
49
49
  ],
50
50
  [x.TEST_PREP]: [
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 }
51
+ { xAxis: 3, yAxis: 0, bgColor: S },
52
+ { xAxis: 16, yAxis: 1, bgColor: b },
53
+ { xAxis: 0, yAxis: 9, bgColor: b },
54
+ { xAxis: 18, yAxis: 8, bgColor: S }
55
55
  ],
56
56
  [x.STUDENT_ENRICHMENT]: [
57
57
  { xAxis: 0, yAxis: 1, bgColor: C },
58
- { xAxis: 14, yAxis: 1, bgColor: N },
59
- { xAxis: 3, yAxis: 11, bgColor: N },
58
+ { xAxis: 14, yAxis: 1, bgColor: T },
59
+ { xAxis: 3, yAxis: 11, bgColor: T },
60
60
  { xAxis: 12, yAxis: 12, bgColor: C }
61
61
  ],
62
62
  [x.STUDENT_PERSONALIZATION]: [
@@ -65,26 +65,38 @@ const I = O(), {
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
+ ],
68
74
  [x.ADDITIONAL_INFO]: [
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 }
75
+ { xAxis: 2, yAxis: 1, bgColor: g },
76
+ { xAxis: 13, yAxis: 0, bgColor: l },
77
+ { xAxis: 2, yAxis: 12, bgColor: g },
78
+ { xAxis: 13, yAxis: 11, bgColor: l }
73
79
  ],
74
80
  [x.STUDENT_PROFILE]: [
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 }
81
+ { xAxis: 3, yAxis: 1, bgColor: l },
82
+ { xAxis: 14, yAxis: 1, bgColor: g },
83
+ { xAxis: 1, yAxis: 7, bgColor: g },
84
+ { xAxis: 17, yAxis: 9, bgColor: l }
79
85
  ],
80
86
  [x.PARENT_APP]: [
81
87
  { xAxis: 1, yAxis: 1, bgColor: s },
82
88
  { xAxis: 14, yAxis: 0, bgColor: C },
83
- { xAxis: 1, yAxis: 10, bgColor: L },
84
- { xAxis: 17, yAxis: 9, bgColor: g }
89
+ { xAxis: 1, yAxis: 10, bgColor: N },
90
+ { xAxis: 17, yAxis: 9, bgColor: r }
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 }
85
97
  ],
86
98
  [x.SESSION_SUMMARY]: [
87
- { xAxis: 2, yAxis: 1, bgColor: _ },
99
+ { xAxis: 2, yAxis: 1, bgColor: E },
88
100
  { xAxis: 14, yAxis: 1, bgColor: o },
89
101
  { xAxis: 2, yAxis: 10, bgColor: o },
90
102
  { xAxis: 16, yAxis: 8, bgColor: C }
@@ -96,22 +108,22 @@ const I = O(), {
96
108
  { xAxis: 17, yAxis: 8, bgColor: s }
97
109
  ],
98
110
  [x.SESSION_INSIGHTS]: [
99
- { xAxis: 1, yAxis: 1, bgColor: r },
100
- { xAxis: 16, yAxis: 1, bgColor: g },
111
+ { xAxis: 1, yAxis: 1, bgColor: b },
112
+ { xAxis: 16, yAxis: 1, bgColor: r },
101
113
  { xAxis: 1, yAxis: 9, bgColor: C },
102
- { xAxis: 17, yAxis: 8, bgColor: E }
114
+ { xAxis: 17, yAxis: 8, bgColor: y }
103
115
  ],
104
116
  [x.SESSION_REPORT]: [
105
- { xAxis: 1, yAxis: 1, bgColor: r },
106
- { xAxis: 16, yAxis: 1, bgColor: g },
117
+ { xAxis: 1, yAxis: 1, bgColor: b },
118
+ { xAxis: 16, yAxis: 1, bgColor: r },
107
119
  { xAxis: 1, yAxis: 9, bgColor: C },
108
- { xAxis: 17, yAxis: 8, bgColor: E }
120
+ { xAxis: 17, yAxis: 8, bgColor: y }
109
121
  ],
110
122
  [x.CLASS_PREFERENCE]: [
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 }
123
+ { xAxis: 2, yAxis: 1, bgColor: r },
124
+ { xAxis: 16, yAxis: 1, bgColor: E },
125
+ { xAxis: 2, yAxis: 9, bgColor: r },
126
+ { xAxis: 17, yAxis: 8, bgColor: r }
115
127
  ],
116
128
  [x.WELCOME_CUEMATH]: [
117
129
  { xAxis: 2, yAxis: 0, bgColor: A },
@@ -149,7 +161,7 @@ const I = O(), {
149
161
  { xAxis: 3, yAxis: 9, bgColor: i },
150
162
  { xAxis: 17, yAxis: 10, bgColor: A }
151
163
  ]
152
- }[T] : void 0;
164
+ }[_] : void 0;
153
165
  export {
154
166
  U as getColoredBoxPosition
155
167
  };
@@ -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: 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,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,SAASR,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OAAO,GAAG,OAAO,GAAG,SAASA,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,IAAI,SAASD,EAAQ;AAAA,EAC3C;AAAA,EACA,CAACe,EAAY,YAAY,GAAG;AAAA,IAC1B,EAAE,OAAO,GAAG,OAAO,GAAG,SAASf,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASC,EAAQ;AAAA,IACxC,EAAE,OAAO,GAAG,OAAO,GAAG,SAASA,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,IAAI,SAASD,EAAQ;AAAA,EAC3C;AAAA,EACA,CAACe,EAAY,SAAS,GAAG;AAAA,IACvB,EAAE,OAAO,GAAG,OAAO,GAAG,SAASf,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASC,EAAQ;AAAA,IACxC,EAAE,OAAO,GAAG,OAAO,GAAG,SAASA,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,IAAI,SAASD,EAAQ;AAAA,EAC3C;AAAA,EAGec,CAAO,IAzIV;"}
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,EAC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vC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASC,EAAQ;AAAA,IACxC,EAAE,OAAO,GAAG,OAAO,GAAG,SAASA,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,IAAI,SAASD,EAAQ;AAAA,EAC3C;AAAA,EACA,CAACe,EAAY,SAAS,GAAG;AAAA,IACvB,EAAE,OAAO,GAAG,OAAO,GAAG,SAASf,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASC,EAAQ;AAAA,IACxC,EAAE,OAAO,GAAG,OAAO,GAAG,SAASA,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,IAAI,SAASD,EAAQ;AAAA,EAC3C;AAAA,EAGec,CAAO,IArJV;"}
@@ -1,15 +1,8 @@
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(
1
+ import o from "styled-components";
2
+ import { RIGHT_PANEL_CONTENT_WIDTH as r } from "../../trial-session-constants.js";
3
+ const i = o.div(
11
4
  ({ theme: t }) => `
12
- width: 600px;
5
+ width: ${r - 150}px;
13
6
  height: ${t.layout.gutter * 2.25}px;
14
7
  position: absolute;
15
8
  top: -${t.layout.gutter * 1.25}px;
@@ -19,8 +12,6 @@ const e = r.div`
19
12
  `
20
13
  );
21
14
  export {
22
- e as Container,
23
- p as FixedLineSeparator,
24
- n as PreferenceWrapper
15
+ i as FixedLineSeparator
25
16
  };
26
17
  //# 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 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;"}
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 { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\n\nconst FixedLineSeparator = styled.div(\n ({ theme }) => `\n width: ${RIGHT_PANEL_CONTENT_WIDTH - 150}px;\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 { FixedLineSeparator };\n"],"names":["FixedLineSeparator","styled","theme","RIGHT_PANEL_CONTENT_WIDTH"],"mappings":";;AAIA,MAAMA,IAAqBC,EAAO;AAAA,EAChC,CAAC,EAAE,OAAAC,EAAA,MAAY;AAAA,WACNC,IAA4B,GAAG;AAAA,YAC9BD,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;"}