@cuemath/leap 3.5.51-as2 → 3.5.51-as4

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 (35) hide show
  1. package/dist/features/homework/homework-card.js +96 -96
  2. package/dist/features/homework/homework-card.js.map +1 -1
  3. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -1
  4. package/dist/features/homework/hw-card-list/hw-card-list-view.js +36 -27
  5. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
  6. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +4 -5
  7. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -1
  8. package/dist/features/math-fit/math-fit/math-fit.js +1 -15
  9. package/dist/features/math-fit/math-fit/math-fit.js.map +1 -1
  10. package/dist/features/math-fit/math-fit-card/math-fit-card.js +32 -31
  11. package/dist/features/math-fit/math-fit-card/math-fit-card.js.map +1 -1
  12. package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card-types.js +5 -0
  13. package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card-types.js.map +1 -0
  14. package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card.js +66 -57
  15. package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card.js.map +1 -1
  16. package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item-styled.js +3 -3
  17. package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item-styled.js.map +1 -1
  18. package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item.js +13 -11
  19. package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item.js.map +1 -1
  20. package/dist/features/math-fit/math-fit-overview/math-fit-overview-helpers.js +60 -0
  21. package/dist/features/math-fit/math-fit-overview/math-fit-overview-helpers.js.map +1 -0
  22. package/dist/features/math-fit/math-fit-overview/math-fit-overview-types.js +3 -2
  23. package/dist/features/math-fit/math-fit-overview/math-fit-overview-types.js.map +1 -1
  24. package/dist/features/math-fit/math-fit-overview/math-fit-overview.js +37 -43
  25. package/dist/features/math-fit/math-fit-overview/math-fit-overview.js.map +1 -1
  26. package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js +38 -36
  27. package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js.map +1 -1
  28. package/dist/features/math-fit/math-fit-report/math-fit-report-helpers.js +16 -15
  29. package/dist/features/math-fit/math-fit-report/math-fit-report-helpers.js.map +1 -1
  30. package/dist/features/math-fit/math-fit-report/math-fit-report.js +19 -25
  31. package/dist/features/math-fit/math-fit-report/math-fit-report.js.map +1 -1
  32. package/dist/index.d.ts +7 -2
  33. package/package.json +1 -1
  34. package/dist/features/math-fit/math-fit-overview/helpers.js +0 -46
  35. package/dist/features/math-fit/math-fit-overview/helpers.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"hw-card-list-view.js","sources":["../../../../src/features/homework/hw-card-list/hw-card-list-view.tsx"],"sourcesContent":["import { memo, useCallback, useMemo, type FC } from 'react';\n\nimport ChevronLeftIcon from '../../../assets/line-icons/icons/chevron-left';\nimport ChevronRightIcon from '../../../assets/line-icons/icons/chevron-right';\nimport { NODE_TYPE } from '../../sheets/constants/sheet';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport HomeworkCard from '../homework-card';\nimport type { IHomeworkItem } from './api/get-homeworks';\nimport * as Styled from './hw-card-list-styled';\nimport type { IHwCardListView } from './hw-card-list-types';\nimport { getWaitForReviewSheetsCount } from './hw-card-list-utils';\nimport { useScrollButtons } from './hooks/use-scroll-buttons';\n\nconst HwCardListView: FC<IHwCardListView> = ({\n userType,\n studentId,\n isHwProcessing,\n hwDetails,\n onTestStart,\n onNodeAttempt,\n onTestPreview,\n onNodeView,\n onTestReview,\n onNodeReview,\n onNodeUnassign,\n onMathFitClick,\n puzzleHWCardRef,\n}) => {\n const homeworkData = useMemo(() => {\n const assignedHomeworks = hwDetails?.assigned_homeworks || [];\n const queuedHomeworks = hwDetails?.queued_homeworks || [];\n const totalCount = assignedHomeworks.length + queuedHomeworks.length;\n const waitForReviewCount = getWaitForReviewSheetsCount(hwDetails);\n\n return {\n assignedHomeworks,\n queuedHomeworks,\n totalCount,\n waitForReviewCount,\n };\n }, [hwDetails]);\n\n const {\n scrollRef,\n showLeftButton,\n showRightButton,\n handleMouseEnter,\n handleMouseLeave,\n handleScrollLeft,\n handleScrollRight,\n } = useScrollButtons({\n totalCount: homeworkData.totalCount,\n });\n\n const renderHomeworkCard = useCallback(\n (item: IHomeworkItem, idx: number, isQueued = false) => {\n const { entity_id: entityId, sheets, subtext, entity_type: entitYType, state, score } = item;\n const sheet = sheets[0];\n const isDynamicSheet = sheet?.node_type === NODE_TYPE.DYNAMIC;\n\n return (\n <FlexView\n key={`${entityId}_${idx}_${isQueued ? 'queued' : 'assigned'}`}\n $flexDirection=\"row\"\n $flexGapX={1}\n >\n {isQueued && idx === 0 && (\n <Styled.QueueWrapper\n $background=\"BLACK_4\"\n $justifyContent=\"center\"\n $gutter={4}\n $gap={8}\n >\n <Styled.QueueText $renderAs=\"ac3\" $color=\"WHITE\">\n In Queue\n </Styled.QueueText>\n </Styled.QueueWrapper>\n )}\n\n {sheet && (\n <HomeworkCard\n isInQueue={isQueued}\n userType={userType}\n header={sheet.title}\n subHeader={subtext || ''}\n nodeData={sheet}\n renderAs=\"homework\"\n studentId={studentId}\n onNodeAttempt={isDynamicSheet ? onTestStart : onNodeAttempt}\n shouldOpenOnRight={true}\n onNodeView={isDynamicSheet ? onTestPreview : onNodeView}\n onNodeReview={isDynamicSheet ? onTestReview : onNodeReview}\n onNodeUnassign={onNodeUnassign}\n puzzleHWCardRef={isQueued ? undefined : puzzleHWCardRef}\n // homeworkItem={item}\n onMathFitClick={onMathFitClick}\n entityType={entitYType}\n entityId={entityId}\n state={state}\n score={score}\n />\n )}\n </FlexView>\n );\n },\n [\n userType,\n studentId,\n onTestStart,\n onNodeAttempt,\n onTestPreview,\n onNodeView,\n onTestReview,\n onNodeReview,\n onNodeUnassign,\n onMathFitClick,\n puzzleHWCardRef,\n ],\n );\n\n const homeworkCards = useMemo(() => {\n if (homeworkData.totalCount === 0) return [];\n\n const assignedCards = homeworkData.assignedHomeworks.map((sheet, idx) =>\n renderHomeworkCard(sheet, idx, false),\n );\n\n const queuedCards = homeworkData.queuedHomeworks.map((sheet, idx) =>\n renderHomeworkCard(sheet, idx, true),\n );\n\n return [...assignedCards, ...queuedCards];\n }, [\n homeworkData.assignedHomeworks,\n homeworkData.queuedHomeworks,\n renderHomeworkCard,\n homeworkData.totalCount,\n ]);\n\n if (homeworkData.totalCount === 0) {\n return (\n <FlexView $flexRowGapX={1}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Homework (0)\n </Text>\n <Text $renderAs=\"ab2\" $color=\"BLACK_T_60\">\n No Homework assigned yet\n </Text>\n </FlexView>\n );\n }\n\n return (\n <Styled.ContentWrapper $flexRowGapX={1} $disablePointerEvents={isHwProcessing}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Homework ({homeworkData.waitForReviewCount}/{homeworkData.totalCount})\n </Text>\n <FlexView\n $position=\"relative\"\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <Styled.ScrollButton\n $position=\"absolute\"\n $background=\"BLACK_T_60\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $height=\"100%\"\n onClick={handleScrollLeft}\n $visible={showLeftButton}\n left=\"0px\"\n right=\"auto\"\n >\n <ChevronLeftIcon width={24} height={24} />\n </Styled.ScrollButton>\n\n <Styled.ScrollContainer ref={scrollRef}>\n <FlexView $flexDirection=\"row\" $flexGapX={1}>\n {homeworkCards}\n </FlexView>\n </Styled.ScrollContainer>\n\n <Styled.ScrollButton\n $position=\"absolute\"\n $width=\"60px\"\n $height=\"100%\"\n $background=\"BLACK_T_60\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n onClick={handleScrollRight}\n $visible={showRightButton}\n left=\"auto\"\n right=\"0px\"\n >\n <ChevronRightIcon width={24} height={24} />\n </Styled.ScrollButton>\n </FlexView>\n </Styled.ContentWrapper>\n );\n};\n\nexport default memo(HwCardListView);\n"],"names":["HwCardListView","userType","studentId","isHwProcessing","hwDetails","onTestStart","onNodeAttempt","onTestPreview","onNodeView","onTestReview","onNodeReview","onNodeUnassign","onMathFitClick","puzzleHWCardRef","homeworkData","useMemo","assignedHomeworks","queuedHomeworks","totalCount","waitForReviewCount","getWaitForReviewSheetsCount","scrollRef","showLeftButton","showRightButton","handleMouseEnter","handleMouseLeave","handleScrollLeft","handleScrollRight","useScrollButtons","renderHomeworkCard","useCallback","item","idx","isQueued","entityId","sheets","subtext","entitYType","state","score","sheet","isDynamicSheet","NODE_TYPE","jsxs","FlexView","jsx","Styled.QueueWrapper","Styled.QueueText","HomeworkCard","homeworkCards","assignedCards","queuedCards","Text","Styled.ContentWrapper","Styled.ScrollButton","ChevronLeftIcon","Styled.ScrollContainer","ChevronRightIcon","HwCardListView$1","memo"],"mappings":";;;;;;;;;;;AAcA,MAAMA,IAAsC,CAAC;AAAA,EAC3C,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,YAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AACF,MAAM;AACE,QAAAC,IAAeC,EAAQ,MAAM;AAC3B,UAAAC,KAAoBZ,KAAA,gBAAAA,EAAW,uBAAsB,IACrDa,KAAkBb,KAAA,gBAAAA,EAAW,qBAAoB,IACjDc,IAAaF,EAAkB,SAASC,EAAgB,QACxDE,IAAqBC,EAA4BhB,CAAS;AAEzD,WAAA;AAAA,MACL,mBAAAY;AAAA,MACA,iBAAAC;AAAA,MACA,YAAAC;AAAA,MACA,oBAAAC;AAAA,IA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AA,MAAA;AAAA,MACnCtC,EAAa;AAAA,MAAmB;AAAA,MAAEA,EAAa;AAAA,MAAW;AAAA,IAAA,GACvE;AAAA,IACA,gBAAA6B;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,cAAcpB;AAAA,QACd,cAAcC;AAAA,QAEd,UAAA;AAAA,UAAA,gBAAAoB;AAAA,YAACS;AAAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAChB,aAAY;AAAA,cACZ,SAAQ;AAAA,cACR,SAAS5B;AAAA,cACT,UAAUJ;AAAA,cACV,MAAK;AAAA,cACL,OAAM;AAAA,cAEN,UAAC,gBAAAuB,EAAAU,GAAA,EAAgB,OAAO,IAAI,QAAQ,IAAI;AAAA,YAAA;AAAA,UAC1C;AAAA,UAEC,gBAAAV,EAAAW,GAAA,EAAuB,KAAKnC,GAC3B,UAAC,gBAAAwB,EAAAD,GAAA,EAAS,gBAAe,OAAM,WAAW,GACvC,YACH,CAAA,GACF;AAAA,UAEA,gBAAAC;AAAA,YAACS;AAAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,QAAO;AAAA,cACP,SAAQ;AAAA,cACR,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAChB,aAAY;AAAA,cACZ,SAAS3B;AAAA,cACT,UAAUJ;AAAA,cACV,MAAK;AAAA,cACL,OAAM;AAAA,cAEN,UAAC,gBAAAsB,EAAAY,GAAA,EAAiB,OAAO,IAAI,QAAQ,IAAI;AAAA,YAAA;AAAA,UAC3C;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF,EAAA,CAAA;AAEJ,GAEeC,KAAAC,EAAK3D,CAAc;"}
1
+ {"version":3,"file":"hw-card-list-view.js","sources":["../../../../src/features/homework/hw-card-list/hw-card-list-view.tsx"],"sourcesContent":["import { memo, useCallback, useMemo, type FC } from 'react';\n\nimport ChevronLeftIcon from '../../../assets/line-icons/icons/chevron-left';\nimport ChevronRightIcon from '../../../assets/line-icons/icons/chevron-right';\nimport { NODE_TYPE } from '../../sheets/constants/sheet';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport HomeworkCard from '../homework-card';\nimport type { IHomeworkItem } from './api/get-homeworks';\nimport * as Styled from './hw-card-list-styled';\nimport type { IHwCardListView } from './hw-card-list-types';\nimport { getWaitForReviewSheetsCount } from './hw-card-list-utils';\nimport { useScrollButtons } from './hooks/use-scroll-buttons';\n\nconst HwCardListView: FC<IHwCardListView> = ({\n userType,\n studentId,\n isHwProcessing,\n hwDetails,\n onTestStart,\n onNodeAttempt,\n onTestPreview,\n onNodeView,\n onTestReview,\n onNodeReview,\n onNodeUnassign,\n onMathFitClick,\n puzzleHWCardRef,\n}) => {\n const homeworkData = useMemo(() => {\n const assignedHomeworks = hwDetails?.assigned_homeworks || [];\n const queuedHomeworks = hwDetails?.queued_homeworks || [];\n const totalCount = assignedHomeworks.length + queuedHomeworks.length;\n const waitForReviewCount = getWaitForReviewSheetsCount(hwDetails);\n\n return {\n assignedHomeworks,\n queuedHomeworks,\n totalCount,\n waitForReviewCount,\n };\n }, [hwDetails]);\n\n const {\n scrollRef,\n showLeftButton,\n showRightButton,\n handleMouseEnter,\n handleMouseLeave,\n handleScrollLeft,\n handleScrollRight,\n } = useScrollButtons({\n totalCount: homeworkData.totalCount,\n });\n\n const renderHomeworkCard = useCallback(\n (item: IHomeworkItem, idx: number, isQueued = false) => {\n const {\n entity_id: entityId,\n sheets,\n subtext,\n entity_type: entitYType,\n state,\n score,\n id,\n } = item;\n const sheet = sheets[0];\n const isDynamicSheet = sheet?.node_type === NODE_TYPE.DYNAMIC;\n\n return (\n <FlexView\n key={`${entityId}_${idx}_${isQueued ? 'queued' : 'assigned'}`}\n $flexDirection=\"row\"\n $flexGapX={1}\n >\n {isQueued && idx === 0 && (\n <Styled.QueueWrapper\n $background=\"BLACK_4\"\n $justifyContent=\"center\"\n $gutter={4}\n $gap={8}\n >\n <Styled.QueueText $renderAs=\"ac3\" $color=\"WHITE\">\n In Queue\n </Styled.QueueText>\n </Styled.QueueWrapper>\n )}\n\n {sheet && (\n <HomeworkCard\n isInQueue={isQueued}\n userType={userType}\n header={sheet.title}\n subHeader={subtext || ''}\n nodeData={sheet}\n renderAs=\"homework\"\n studentId={studentId}\n onNodeAttempt={isDynamicSheet ? onTestStart : onNodeAttempt}\n shouldOpenOnRight={true}\n onNodeView={isDynamicSheet ? onTestPreview : onNodeView}\n onNodeReview={isDynamicSheet ? onTestReview : onNodeReview}\n onNodeUnassign={onNodeUnassign}\n puzzleHWCardRef={isQueued ? undefined : puzzleHWCardRef}\n // homeworkItem={item}\n onMathFitClick={onMathFitClick}\n entityType={entitYType}\n entityId={entityId}\n state={state}\n score={score}\n homeworkId={id}\n />\n )}\n </FlexView>\n );\n },\n [\n userType,\n studentId,\n onTestStart,\n onNodeAttempt,\n onTestPreview,\n onNodeView,\n onTestReview,\n onNodeReview,\n onNodeUnassign,\n onMathFitClick,\n puzzleHWCardRef,\n ],\n );\n\n const homeworkCards = useMemo(() => {\n if (homeworkData.totalCount === 0) return [];\n\n const assignedCards = homeworkData.assignedHomeworks.map((sheet, idx) =>\n renderHomeworkCard(sheet, idx, false),\n );\n\n const queuedCards = homeworkData.queuedHomeworks.map((sheet, idx) =>\n renderHomeworkCard(sheet, idx, true),\n );\n\n return [...assignedCards, ...queuedCards];\n }, [\n homeworkData.assignedHomeworks,\n homeworkData.queuedHomeworks,\n renderHomeworkCard,\n homeworkData.totalCount,\n ]);\n\n if (homeworkData.totalCount === 0) {\n return (\n <FlexView $flexRowGapX={1}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Homework (0)\n </Text>\n <Text $renderAs=\"ab2\" $color=\"BLACK_T_60\">\n No Homework assigned yet\n </Text>\n </FlexView>\n );\n }\n\n return (\n <Styled.ContentWrapper $flexRowGapX={1} $disablePointerEvents={isHwProcessing}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Homework ({homeworkData.waitForReviewCount}/{homeworkData.totalCount})\n </Text>\n <FlexView\n $position=\"relative\"\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <Styled.ScrollButton\n $position=\"absolute\"\n $background=\"BLACK_T_60\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $height=\"100%\"\n onClick={handleScrollLeft}\n $visible={showLeftButton}\n left=\"0px\"\n right=\"auto\"\n >\n <ChevronLeftIcon width={24} height={24} />\n </Styled.ScrollButton>\n\n <Styled.ScrollContainer ref={scrollRef}>\n <FlexView $flexDirection=\"row\" $flexGapX={1}>\n {homeworkCards}\n </FlexView>\n </Styled.ScrollContainer>\n\n <Styled.ScrollButton\n $position=\"absolute\"\n $width=\"60px\"\n $height=\"100%\"\n $background=\"BLACK_T_60\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n onClick={handleScrollRight}\n $visible={showRightButton}\n left=\"auto\"\n right=\"0px\"\n >\n <ChevronRightIcon width={24} height={24} />\n </Styled.ScrollButton>\n </FlexView>\n </Styled.ContentWrapper>\n );\n};\n\nexport default memo(HwCardListView);\n"],"names":["HwCardListView","userType","studentId","isHwProcessing","hwDetails","onTestStart","onNodeAttempt","onTestPreview","onNodeView","onTestReview","onNodeReview","onNodeUnassign","onMathFitClick","puzzleHWCardRef","homeworkData","useMemo","assignedHomeworks","queuedHomeworks","totalCount","waitForReviewCount","getWaitForReviewSheetsCount","scrollRef","showLeftButton","showRightButton","handleMouseEnter","handleMouseLeave","handleScrollLeft","handleScrollRight","useScrollButtons","renderHomeworkCard","useCallback","item","idx","isQueued","entityId","sheets","subtext","entitYType","state","score","id","sheet","isDynamicSheet","NODE_TYPE","jsxs","FlexView","jsx","Styled.QueueWrapper","Styled.QueueText","HomeworkCard","homeworkCards","assignedCards","queuedCards","Text","Styled.ContentWrapper","Styled.ScrollButton","ChevronLeftIcon","Styled.ScrollContainer","ChevronRightIcon","HwCardListView$1","memo"],"mapp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AAC,gBAAAyB,EAAAD,GAAA,EAAS,gBAAe,OAAM,WAAW,GACvC,YACH,CAAA,GACF;AAAA,UAEA,gBAAAC;AAAA,YAACS;AAAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,QAAO;AAAA,cACP,SAAQ;AAAA,cACR,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAChB,aAAY;AAAA,cACZ,SAAS5B;AAAA,cACT,UAAUJ;AAAA,cACV,MAAK;AAAA,cACL,OAAM;AAAA,cAEN,UAAC,gBAAAuB,EAAAY,GAAA,EAAiB,OAAO,IAAI,QAAQ,IAAI;AAAA,YAAA;AAAA,UAC3C;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF,EAAA,CAAA;AAEJ,GAEeC,KAAAC,EAAK5D,CAAc;"}
@@ -13,6 +13,7 @@ const t = Math.floor(Date.now() / 1e3), e = t + 5 * 24 * 60 * 60, _ = {
13
13
  state: "NOT_STARTED",
14
14
  due_date_ts: 1748241531,
15
15
  position: 0,
16
+ id: "ede761ea-347b-11f0-b9d2-5e3c498fca42",
16
17
  score: null,
17
18
  sheets: [
18
19
  {
@@ -24,7 +25,6 @@ const t = Math.floor(Date.now() / 1e3), e = t + 5 * 24 * 60 * 60, _ = {
24
25
  course_type: "PROGRAM",
25
26
  desmos_calculator_enabled: !1,
26
27
  due_date_ts: 1748241531,
27
- homework_id: "ede761ea-347b-11f0-b9d2-5e3c498fca42",
28
28
  image_hue: "BLUE",
29
29
  image_url: "https://dw7j1ezsvbafb.cloudfront.net/media/chapter-images/Default.jpg",
30
30
  is_optional: !0,
@@ -84,6 +84,7 @@ const t = Math.floor(Date.now() / 1e3), e = t + 5 * 24 * 60 * 60, _ = {
84
84
  due_date_ts: e,
85
85
  position: 1,
86
86
  score: null,
87
+ id: "50bfb9e6-f984-11ee-bcfc-d6332bd3e75f",
87
88
  sheets: [
88
89
  {
89
90
  accuracy: null,
@@ -94,7 +95,6 @@ const t = Math.floor(Date.now() / 1e3), e = t + 5 * 24 * 60 * 60, _ = {
94
95
  course_type: "PROGRAM",
95
96
  desmos_calculator_enabled: !1,
96
97
  due_date_ts: e,
97
- homework_id: "50bfb9e6-f984-11ee-bcfc-d6332bd3e75f",
98
98
  image_hue: "GREEN",
99
99
  image_url: null,
100
100
  is_optional: !1,
@@ -149,6 +149,7 @@ const t = Math.floor(Date.now() / 1e3), e = t + 5 * 24 * 60 * 60, _ = {
149
149
  homework_created_on_ts: t,
150
150
  user_milestone_id: null,
151
151
  card_header: "MATHFIT ASSESSMENT",
152
+ id: "hw-mathfit-456",
152
153
  subtext: "25 Questions • 75 mins",
153
154
  image_hue: "PURPLE",
154
155
  state: "NOT_STARTED",
@@ -207,7 +208,6 @@ const t = Math.floor(Date.now() / 1e3), e = t + 5 * 24 * 60 * 60, _ = {
207
208
  user_chapter_id: null,
208
209
  user_milestone_id: void 0,
209
210
  due_date_ts: e,
210
- homework_id: "hw-mathfit-456",
211
211
  activity_type: null
212
212
  },
213
213
  {
@@ -260,7 +260,6 @@ const t = Math.floor(Date.now() / 1e3), e = t + 5 * 24 * 60 * 60, _ = {
260
260
  user_chapter_id: null,
261
261
  user_milestone_id: void 0,
262
262
  due_date_ts: e,
263
- homework_id: "hw-mathfit-456",
264
263
  unlocked_on_ts: null,
265
264
  activity_type: null
266
265
  }
@@ -279,6 +278,7 @@ const t = Math.floor(Date.now() / 1e3), e = t + 5 * 24 * 60 * 60, _ = {
279
278
  due_date_ts: e,
280
279
  position: 3,
281
280
  score: null,
281
+ id: "hw-lesson-123",
282
282
  sheets: [
283
283
  {
284
284
  accuracy: 50,
@@ -289,7 +289,6 @@ const t = Math.floor(Date.now() / 1e3), e = t + 5 * 24 * 60 * 60, _ = {
289
289
  course_type: "PROGRAM",
290
290
  desmos_calculator_enabled: !1,
291
291
  due_date_ts: e,
292
- homework_id: "hw-lesson-123",
293
292
  image_hue: "ORANGE",
294
293
  image_url: "https://dw7j1ezsvbafb.cloudfront.net/media/chapter-images/fractions.jpg",
295
294
  is_optional: !1,
@@ -1 +1 @@
1
- {"version":3,"file":"home-page-homeworks-mock.js","sources":["../../../../../src/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.ts"],"sourcesContent":["import type { IHomeworkDetails } from '../../../homework/hw-card-list/api/get-homeworks';\nimport { HW_CARD_LIST_ENTITY_TYPE } from '../../../homework/hw-card-list/hw-card-list-types';\n\nconst now = Math.floor(Date.now() / 1000); // current epoch in seconds\nconst fiveDaysLater = now + 5 * 24 * 60 * 60;\n\nconst HOMEWORK_DETAILS: IHomeworkDetails = {\n assigned_homeworks: [\n // Puzzle Card\n {\n entity_type: HW_CARD_LIST_ENTITY_TYPE.USER_NODE,\n entity_id: '147520a0-2f62-11f0-876b-da0546594b04',\n user_node_id: '147520a0-2f62-11f0-876b-da0546594b04',\n homework_id: 'ede761ea-347b-11f0-b9d2-5e3c498fca42',\n card_header: 'PUZZLE',\n subtext: 'Puzzle Cards',\n image_hue: 'BLUE',\n state: 'NOT_STARTED',\n due_date_ts: 1748241531,\n position: 0,\n score: null,\n sheets: [\n {\n accuracy: null,\n attempt_location: 'ANY',\n block_id: '23a4e676-7094-11ed-87bc-6ec30f5d70bb',\n card_header: 'PUZZLE',\n chapter_id: '8b0d5af7-3d47-4888-acef-920069c6ae13',\n course_type: 'PROGRAM',\n desmos_calculator_enabled: false,\n due_date_ts: 1748241531,\n homework_id: 'ede761ea-347b-11f0-b9d2-5e3c498fca42',\n image_hue: 'BLUE',\n image_url: 'https://dw7j1ezsvbafb.cloudfront.net/media/chapter-images/Default.jpg',\n is_optional: true,\n is_timed: false,\n is_worksheet_v3: null,\n learnosity_activity_ref: 'CR_G4L1 Sum of Three Cubes',\n marked_as_completed: false,\n node_id: '1de6ac4a-8e41-4446-9a07-a93d5713a2ff',\n node_type: 'PUZZLE_EASY',\n permissions: {\n can_assign_as_homework: false,\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: false,\n can_resume: false,\n can_review: false,\n can_start: true,\n can_teacher_review: false,\n can_unassign: false,\n can_unlock: false,\n can_un_skip: false,\n can_skip: false,\n },\n sheet_statement: 'Yet to start',\n sheet_time: 2400,\n state: 'NOT_STARTED',\n title: 'Sum of Three Cubes',\n total_questions: 0,\n unlocked_on_ts: 1747636731,\n user_attempt_id: null,\n user_node_id: '147520a0-2f62-11f0-876b-da0546594b04',\n worksheet_id: 'c4e1035a-d3e5-11eb-8971-6296551a51ec',\n complete_status: false,\n id: '',\n user_chapter_id: null,\n is_turing: false,\n student_instructions_ref: null,\n instructions_ref: null,\n user_block_id: null,\n user_milestone_id: undefined,\n subtext: null,\n activity_type: null,\n },\n ],\n },\n // Smart Practice (Dynamic)\n {\n entity_type: HW_CARD_LIST_ENTITY_TYPE.USER_NODE,\n entity_id: 'c2d38bf6-306d-11f0-a23f-126d2a0e16e8',\n user_node_id: 'c2d38bf6-306d-11f0-a23f-126d2a0e16e8',\n homework_id: '50bfb9e6-f984-11ee-bcfc-d6332bd3e75f',\n card_header: 'SMART PRACTICE',\n subtext: '5 Questions · 15 mins',\n image_hue: 'GREEN',\n state: 'NOT_STARTED',\n due_date_ts: fiveDaysLater,\n position: 1,\n score: null,\n sheets: [\n {\n accuracy: null,\n attempt_location: 'ANY',\n block_id: '',\n card_header: 'SMART PRACTICE',\n chapter_id: null,\n course_type: 'PROGRAM',\n desmos_calculator_enabled: false,\n due_date_ts: fiveDaysLater,\n homework_id: '50bfb9e6-f984-11ee-bcfc-d6332bd3e75f',\n image_hue: 'GREEN',\n image_url: null,\n is_optional: false,\n is_timed: false,\n is_worksheet_v3: true,\n learnosity_activity_ref: 'Subtraction-practice-G1W1',\n marked_as_completed: false,\n node_id: 'a0c8b6d4-306c-11f0-a23f-126d2a0e16e8',\n node_type: 'DYNAMIC',\n permissions: {\n can_assign_as_homework: false,\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: false,\n can_resume: false,\n can_review: false,\n can_start: true,\n can_teacher_review: false,\n can_unassign: false,\n can_unlock: false,\n can_un_skip: false,\n can_skip: false,\n },\n sheet_statement: '',\n sheet_time: 900,\n state: 'NOT_STARTED',\n title: 'Smart Practice',\n total_questions: 5,\n unlocked_on_ts: now,\n user_attempt_id: null,\n user_node_id: 'c2d38bf6-306d-11f0-a23f-126d2a0e16e8',\n worksheet_id: 'worksheet-456',\n complete_status: false,\n id: '',\n user_chapter_id: null,\n is_turing: false,\n student_instructions_ref: null,\n instructions_ref: null,\n user_block_id: null,\n user_milestone_id: undefined,\n subtext: null,\n activity_type: null,\n },\n ],\n },\n // MathFit Assessment\n {\n entity_type: HW_CARD_LIST_ENTITY_TYPE.MATHFIT_TEST,\n entity_id: 'mathfit-assessment-id-456',\n homework_id: 'hw-mathfit-456',\n homework_created_on_ts: now,\n user_milestone_id: null,\n card_header: 'MATHFIT ASSESSMENT',\n subtext: '25 Questions • 75 mins',\n image_hue: 'PURPLE',\n state: 'NOT_STARTED',\n due_date_ts: fiveDaysLater,\n position: 2,\n score: null,\n sheets: [\n {\n user_node_id: 'mathfit-section1-uuid',\n node_id: 'mathfit-section-1-node',\n worksheet_id: 'mathfit-section-1-ws',\n node_type: 'DYNAMIC',\n course_type: 'MATHFIT',\n title: 'Understanding',\n card_header: 'MATHFIT • SECTION 1',\n subtext: '15 Questions • 45 mins',\n state: 'NOT_STARTED',\n accuracy: null,\n total_questions: 15,\n sheet_time: 2700,\n unlocked_on_ts: now,\n user_attempt_id: null,\n permissions: {\n can_review: false,\n can_start: true,\n can_resume: false,\n can_reattempt: false,\n can_reset: false,\n can_assign_as_homework: false,\n can_teacher_review: false,\n can_unassign: false,\n can_unlock: false,\n can_mark_familiar: false,\n can_change_attempt_location: false,\n can_un_skip: false,\n can_skip: false,\n },\n image_url: null,\n image_hue: 'PURPLE',\n attempt_location: 'ANY',\n block_id: '',\n chapter_id: null,\n complete_status: false,\n desmos_calculator_enabled: false,\n id: 'mathfit-section1-uuid',\n is_optional: false,\n is_timed: true,\n is_worksheet_v3: true,\n is_turing: false,\n learnosity_activity_ref: 'mathfit-section-1-activity',\n marked_as_completed: false,\n sheet_statement: '',\n student_instructions_ref: null,\n instructions_ref: null,\n user_block_id: null,\n user_chapter_id: null,\n user_milestone_id: undefined,\n due_date_ts: fiveDaysLater,\n homework_id: 'hw-mathfit-456',\n activity_type: null,\n },\n {\n user_node_id: 'mathfit-section2-uuid',\n node_id: 'mathfit-section-2-node',\n worksheet_id: 'mathfit-section-2-ws',\n node_type: 'DYNAMIC',\n course_type: 'MATHFIT',\n title: 'Application',\n card_header: 'MATHFIT • SECTION 2',\n subtext: '10 Questions • 30 mins',\n state: 'LOCKED',\n accuracy: null,\n total_questions: 10,\n sheet_time: 1800,\n user_attempt_id: null,\n permissions: {\n can_start: false,\n can_review: false,\n can_resume: false,\n can_reattempt: false,\n can_reset: false,\n can_assign_as_homework: false,\n can_teacher_review: false,\n can_unassign: false,\n can_unlock: false,\n can_mark_familiar: false,\n can_change_attempt_location: false,\n can_un_skip: false,\n can_skip: false,\n },\n image_url: null,\n image_hue: 'PURPLE',\n attempt_location: 'ANY',\n block_id: '',\n chapter_id: null,\n complete_status: false,\n desmos_calculator_enabled: false,\n id: 'mathfit-section2-uuid',\n is_optional: false,\n is_timed: true,\n is_worksheet_v3: true,\n is_turing: false,\n learnosity_activity_ref: 'mathfit-section-2-activity',\n marked_as_completed: false,\n sheet_statement: '',\n student_instructions_ref: null,\n instructions_ref: null,\n user_block_id: null,\n user_chapter_id: null,\n user_milestone_id: undefined,\n due_date_ts: fiveDaysLater,\n homework_id: 'hw-mathfit-456',\n unlocked_on_ts: null,\n activity_type: null,\n },\n ],\n },\n // Lesson Node\n {\n entity_type: HW_CARD_LIST_ENTITY_TYPE.USER_NODE,\n entity_id: 'lesson-node-uuid-123',\n user_node_id: 'lesson-node-uuid-123',\n homework_id: 'hw-lesson-123',\n card_header: 'LESSON',\n subtext: '8 Questions · 25 mins',\n image_hue: 'ORANGE',\n state: 'IN_PROGRESS',\n due_date_ts: fiveDaysLater,\n position: 3,\n score: null,\n sheets: [\n {\n accuracy: 50,\n attempt_location: 'ANY',\n block_id: 'block-lesson-123',\n card_header: 'LESSON',\n chapter_id: 'chapter-fractions-101',\n course_type: 'PROGRAM',\n desmos_calculator_enabled: false,\n due_date_ts: fiveDaysLater,\n homework_id: 'hw-lesson-123',\n image_hue: 'ORANGE',\n image_url: 'https://dw7j1ezsvbafb.cloudfront.net/media/chapter-images/fractions.jpg',\n is_optional: false,\n is_timed: false,\n is_worksheet_v3: true,\n learnosity_activity_ref: 'intro-to-fractions-G3W1',\n marked_as_completed: false,\n node_id: 'lesson-node-id-123',\n permissions: {\n can_assign_as_homework: false,\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: false,\n can_resume: true,\n can_review: false,\n can_start: false,\n can_teacher_review: false,\n can_unassign: true,\n can_unlock: false,\n can_un_skip: false,\n can_skip: false,\n },\n sheet_statement: '',\n sheet_time: 1500,\n state: 'IN_PROGRESS',\n title: 'Introduction to Fractions',\n total_questions: 8,\n unlocked_on_ts: now - 86400, // 1 day ago\n user_attempt_id: 'attempt-lesson-123',\n user_node_id: 'lesson-node-uuid-123',\n worksheet_id: 'worksheet-lesson-123',\n complete_status: false,\n id: '',\n user_chapter_id: 'chapter-fractions-101',\n is_turing: false,\n student_instructions_ref: null,\n instructions_ref: null,\n user_block_id: 'block-lesson-123',\n user_milestone_id: undefined,\n node_type: 'REMEDIAL',\n subtext: null,\n activity_type: null,\n },\n ],\n },\n ],\n queued_homeworks: [],\n};\n\nexport { HOMEWORK_DETAILS };\n"],"names":["now","fiveDaysLater","HOMEWORK_DETAILS","HW_CARD_LIST_ENTITY_TYPE"],"mappings":";AAGA,MAAMA,IAAM,KAAK,MAAM,KAAK,IAAA,IAAQ,GAAI,GAClCC,IAAgBD,IAAM,IAAI,KAAK,KAAK,IAEpCE,IAAqC;AAAA,EACzC,oBAAoB;AAAA;AAAA,IAElB;AAAA,MACE,aAAaC,EAAyB;AAAA,MACtC,WAAW;A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UACb,YAAY;AAAA,UACZ,aAAa;AAAA,UACb,2BAA2B;AAAA,UAC3B,aAAaA;AAAA,UACb,aAAa;AAAA,UACb,WAAW;AAAA,UACX,WAAW;AAAA,UACX,aAAa;AAAA,UACb,UAAU;AAAA,UACV,iBAAiB;AAAA,UACjB,yBAAyB;AAAA,UACzB,qBAAqB;AAAA,UACrB,SAAS;AAAA,UACT,aAAa;AAAA,YACX,wBAAwB;AAAA,YACxB,6BAA6B;AAAA,YAC7B,mBAAmB;AAAA,YACnB,eAAe;AAAA,YACf,WAAW;AAAA,YACX,YAAY;AAAA,YACZ,YAAY;AAAA,YACZ,WAAW;AAAA,YACX,oBAAoB;AAAA,YACpB,cAAc;AAAA,YACd,YAAY;AAAA,YACZ,aAAa;AAAA,YACb,UAAU;AAAA,UACZ;AAAA,UACA,iBAAiB;AAAA,UACjB,YAAY;AAAA,UACZ,OAAO;AAAA,UACP,OAAO;AAAA,UACP,iBAAiB;AAAA,UACjB,gBAAgBD,IAAM;AAAA;AAAA,UACtB,iBAAiB;AAAA,UACjB,cAAc;AAAA,UACd,cAAc;AAAA,UACd,iBAAiB;AAAA,UACjB,IAAI;AAAA,UACJ,iBAAiB;AAAA,UACjB,WAAW;AAAA,UACX,0BAA0B;AAAA,UAC1B,kBAAkB;AAAA,UAClB,eAAe;AAAA,UACf,mBAAmB;AAAA,UACnB,WAAW;AAAA,UACX,SAAS;AAAA,UACT,eAAe;AAAA,QACjB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,kBAAkB,CAAC;AACrB;"}
1
+ {"version":3,"file":"home-page-homeworks-mock.js","sources":["../../../../../src/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.ts"],"sourcesContent":["import type { IHomeworkDetails } from '../../../homework/hw-card-list/api/get-homeworks';\nimport { HW_CARD_LIST_ENTITY_TYPE } from '../../../homework/hw-card-list/hw-card-list-types';\n\nconst now = Math.floor(Date.now() / 1000); // current epoch in seconds\nconst fiveDaysLater = now + 5 * 24 * 60 * 60;\n\nconst HOMEWORK_DETAILS: IHomeworkDetails = {\n assigned_homeworks: [\n // Puzzle Card\n {\n entity_type: HW_CARD_LIST_ENTITY_TYPE.USER_NODE,\n entity_id: '147520a0-2f62-11f0-876b-da0546594b04',\n user_node_id: '147520a0-2f62-11f0-876b-da0546594b04',\n homework_id: 'ede761ea-347b-11f0-b9d2-5e3c498fca42',\n card_header: 'PUZZLE',\n subtext: 'Puzzle Cards',\n image_hue: 'BLUE',\n state: 'NOT_STARTED',\n due_date_ts: 1748241531,\n position: 0,\n id: 'ede761ea-347b-11f0-b9d2-5e3c498fca42',\n score: null,\n sheets: [\n {\n accuracy: null,\n attempt_location: 'ANY',\n block_id: '23a4e676-7094-11ed-87bc-6ec30f5d70bb',\n card_header: 'PUZZLE',\n chapter_id: '8b0d5af7-3d47-4888-acef-920069c6ae13',\n course_type: 'PROGRAM',\n desmos_calculator_enabled: false,\n due_date_ts: 1748241531,\n image_hue: 'BLUE',\n image_url: 'https://dw7j1ezsvbafb.cloudfront.net/media/chapter-images/Default.jpg',\n is_optional: true,\n is_timed: false,\n is_worksheet_v3: null,\n learnosity_activity_ref: 'CR_G4L1 Sum of Three Cubes',\n marked_as_completed: false,\n node_id: '1de6ac4a-8e41-4446-9a07-a93d5713a2ff',\n node_type: 'PUZZLE_EASY',\n permissions: {\n can_assign_as_homework: false,\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: false,\n can_resume: false,\n can_review: false,\n can_start: true,\n can_teacher_review: false,\n can_unassign: false,\n can_unlock: false,\n can_un_skip: false,\n can_skip: false,\n },\n sheet_statement: 'Yet to start',\n sheet_time: 2400,\n state: 'NOT_STARTED',\n title: 'Sum of Three Cubes',\n total_questions: 0,\n unlocked_on_ts: 1747636731,\n user_attempt_id: null,\n user_node_id: '147520a0-2f62-11f0-876b-da0546594b04',\n worksheet_id: 'c4e1035a-d3e5-11eb-8971-6296551a51ec',\n complete_status: false,\n id: '',\n user_chapter_id: null,\n is_turing: false,\n student_instructions_ref: null,\n instructions_ref: null,\n user_block_id: null,\n user_milestone_id: undefined,\n subtext: null,\n activity_type: null,\n },\n ],\n },\n // Smart Practice (Dynamic)\n {\n entity_type: HW_CARD_LIST_ENTITY_TYPE.USER_NODE,\n entity_id: 'c2d38bf6-306d-11f0-a23f-126d2a0e16e8',\n user_node_id: 'c2d38bf6-306d-11f0-a23f-126d2a0e16e8',\n homework_id: '50bfb9e6-f984-11ee-bcfc-d6332bd3e75f',\n card_header: 'SMART PRACTICE',\n subtext: '5 Questions · 15 mins',\n image_hue: 'GREEN',\n state: 'NOT_STARTED',\n due_date_ts: fiveDaysLater,\n position: 1,\n score: null,\n id: '50bfb9e6-f984-11ee-bcfc-d6332bd3e75f',\n sheets: [\n {\n accuracy: null,\n attempt_location: 'ANY',\n block_id: '',\n card_header: 'SMART PRACTICE',\n chapter_id: null,\n course_type: 'PROGRAM',\n desmos_calculator_enabled: false,\n due_date_ts: fiveDaysLater,\n image_hue: 'GREEN',\n image_url: null,\n is_optional: false,\n is_timed: false,\n is_worksheet_v3: true,\n learnosity_activity_ref: 'Subtraction-practice-G1W1',\n marked_as_completed: false,\n node_id: 'a0c8b6d4-306c-11f0-a23f-126d2a0e16e8',\n node_type: 'DYNAMIC',\n permissions: {\n can_assign_as_homework: false,\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: false,\n can_resume: false,\n can_review: false,\n can_start: true,\n can_teacher_review: false,\n can_unassign: false,\n can_unlock: false,\n can_un_skip: false,\n can_skip: false,\n },\n sheet_statement: '',\n sheet_time: 900,\n state: 'NOT_STARTED',\n title: 'Smart Practice',\n total_questions: 5,\n unlocked_on_ts: now,\n user_attempt_id: null,\n user_node_id: 'c2d38bf6-306d-11f0-a23f-126d2a0e16e8',\n worksheet_id: 'worksheet-456',\n complete_status: false,\n id: '',\n user_chapter_id: null,\n is_turing: false,\n student_instructions_ref: null,\n instructions_ref: null,\n user_block_id: null,\n user_milestone_id: undefined,\n subtext: null,\n activity_type: null,\n },\n ],\n },\n // MathFit Assessment\n {\n entity_type: HW_CARD_LIST_ENTITY_TYPE.MATHFIT_TEST,\n entity_id: 'mathfit-assessment-id-456',\n homework_id: 'hw-mathfit-456',\n homework_created_on_ts: now,\n user_milestone_id: null,\n card_header: 'MATHFIT ASSESSMENT',\n id: 'hw-mathfit-456',\n subtext: '25 Questions • 75 mins',\n image_hue: 'PURPLE',\n state: 'NOT_STARTED',\n due_date_ts: fiveDaysLater,\n position: 2,\n score: null,\n sheets: [\n {\n user_node_id: 'mathfit-section1-uuid',\n node_id: 'mathfit-section-1-node',\n worksheet_id: 'mathfit-section-1-ws',\n node_type: 'DYNAMIC',\n course_type: 'MATHFIT',\n title: 'Understanding',\n card_header: 'MATHFIT • SECTION 1',\n subtext: '15 Questions • 45 mins',\n state: 'NOT_STARTED',\n accuracy: null,\n total_questions: 15,\n sheet_time: 2700,\n unlocked_on_ts: now,\n user_attempt_id: null,\n permissions: {\n can_review: false,\n can_start: true,\n can_resume: false,\n can_reattempt: false,\n can_reset: false,\n can_assign_as_homework: false,\n can_teacher_review: false,\n can_unassign: false,\n can_unlock: false,\n can_mark_familiar: false,\n can_change_attempt_location: false,\n can_un_skip: false,\n can_skip: false,\n },\n image_url: null,\n image_hue: 'PURPLE',\n attempt_location: 'ANY',\n block_id: '',\n chapter_id: null,\n complete_status: false,\n desmos_calculator_enabled: false,\n id: 'mathfit-section1-uuid',\n is_optional: false,\n is_timed: true,\n is_worksheet_v3: true,\n is_turing: false,\n learnosity_activity_ref: 'mathfit-section-1-activity',\n marked_as_completed: false,\n sheet_statement: '',\n student_instructions_ref: null,\n instructions_ref: null,\n user_block_id: null,\n user_chapter_id: null,\n user_milestone_id: undefined,\n due_date_ts: fiveDaysLater,\n activity_type: null,\n },\n {\n user_node_id: 'mathfit-section2-uuid',\n node_id: 'mathfit-section-2-node',\n worksheet_id: 'mathfit-section-2-ws',\n node_type: 'DYNAMIC',\n course_type: 'MATHFIT',\n title: 'Application',\n card_header: 'MATHFIT • SECTION 2',\n subtext: '10 Questions • 30 mins',\n state: 'LOCKED',\n accuracy: null,\n total_questions: 10,\n sheet_time: 1800,\n user_attempt_id: null,\n permissions: {\n can_start: false,\n can_review: false,\n can_resume: false,\n can_reattempt: false,\n can_reset: false,\n can_assign_as_homework: false,\n can_teacher_review: false,\n can_unassign: false,\n can_unlock: false,\n can_mark_familiar: false,\n can_change_attempt_location: false,\n can_un_skip: false,\n can_skip: false,\n },\n image_url: null,\n image_hue: 'PURPLE',\n attempt_location: 'ANY',\n block_id: '',\n chapter_id: null,\n complete_status: false,\n desmos_calculator_enabled: false,\n id: 'mathfit-section2-uuid',\n is_optional: false,\n is_timed: true,\n is_worksheet_v3: true,\n is_turing: false,\n learnosity_activity_ref: 'mathfit-section-2-activity',\n marked_as_completed: false,\n sheet_statement: '',\n student_instructions_ref: null,\n instructions_ref: null,\n user_block_id: null,\n user_chapter_id: null,\n user_milestone_id: undefined,\n due_date_ts: fiveDaysLater,\n unlocked_on_ts: null,\n activity_type: null,\n },\n ],\n },\n // Lesson Node\n {\n entity_type: HW_CARD_LIST_ENTITY_TYPE.USER_NODE,\n entity_id: 'lesson-node-uuid-123',\n user_node_id: 'lesson-node-uuid-123',\n homework_id: 'hw-lesson-123',\n card_header: 'LESSON',\n subtext: '8 Questions · 25 mins',\n image_hue: 'ORANGE',\n state: 'IN_PROGRESS',\n due_date_ts: fiveDaysLater,\n position: 3,\n score: null,\n id: 'hw-lesson-123',\n sheets: [\n {\n accuracy: 50,\n attempt_location: 'ANY',\n block_id: 'block-lesson-123',\n card_header: 'LESSON',\n chapter_id: 'chapter-fractions-101',\n course_type: 'PROGRAM',\n desmos_calculator_enabled: false,\n due_date_ts: fiveDaysLater,\n image_hue: 'ORANGE',\n image_url: 'https://dw7j1ezsvbafb.cloudfront.net/media/chapter-images/fractions.jpg',\n is_optional: false,\n is_timed: false,\n is_worksheet_v3: true,\n learnosity_activity_ref: 'intro-to-fractions-G3W1',\n marked_as_completed: false,\n node_id: 'lesson-node-id-123',\n permissions: {\n can_assign_as_homework: false,\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: false,\n can_resume: true,\n can_review: false,\n can_start: false,\n can_teacher_review: false,\n can_unassign: true,\n can_unlock: false,\n can_un_skip: false,\n can_skip: false,\n },\n sheet_statement: '',\n sheet_time: 1500,\n state: 'IN_PROGRESS',\n title: 'Introduction to Fractions',\n total_questions: 8,\n unlocked_on_ts: now - 86400, // 1 day ago\n user_attempt_id: 'attempt-lesson-123',\n user_node_id: 'lesson-node-uuid-123',\n worksheet_id: 'worksheet-lesson-123',\n complete_status: false,\n id: '',\n user_chapter_id: 'chapter-fractions-101',\n is_turing: false,\n student_instructions_ref: null,\n instructions_ref: null,\n user_block_id: 'block-lesson-123',\n user_milestone_id: undefined,\n node_type: 'REMEDIAL',\n subtext: null,\n activity_type: null,\n },\n ],\n },\n ],\n queued_homeworks: [],\n};\n\nexport { HOMEWORK_DETAILS };\n"],"names":["now","fiveDaysLater","HOMEWORK_DETAILS","HW_CARD_LIST_ENTITY_TYPE"],"mappings":";AAGA,MAAMA,IAAM,KAAK,MAAM,KAAK,IAAA,IAAQ,GAAI,GAClCC,IAAgBD,IAAM,IAAI,KAAK,KAAK,IAEpCE,IAAqC;AAAA,EACzC,oBAAoB;AAAA;AAAA,IAElB;AAAA,MACE,aAAaC,EAAyB;AAAA,MACtC,WAAW;AAAA,MACX,cAAc;AAAA,MACd,aAAa;AAAA,MACb,aAAa;AAAA,MACb,SAAS;AAAA,MACT,WAAW;AAAA,MACX,OAAO;AAAA,MACP,aAAa;AAAA,MACb,UAAU;AAAA,MACV,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,QAAQ;AAAA,QACN;AAAA,UACE,UAAU;AAAA,UACV,kBAAkB;AAAA,UAClB,UAAU;AAAA,UACV,aAAa;AAAA,UACb,YAAY;AAAA,UACZ,aAAa;AAAA,UACb,2BAA2B;AAAA,UAC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AAAA,YACX,YAAY;AAAA,YACZ,YAAY;AAAA,YACZ,WAAW;AAAA,YACX,oBAAoB;AAAA,YACpB,cAAc;AAAA,YACd,YAAY;AAAA,YACZ,aAAa;AAAA,YACb,UAAU;AAAA,UACZ;AAAA,UACA,iBAAiB;AAAA,UACjB,YAAY;AAAA,UACZ,OAAO;AAAA,UACP,OAAO;AAAA,UACP,iBAAiB;AAAA,UACjB,gBAAgBD,IAAM;AAAA;AAAA,UACtB,iBAAiB;AAAA,UACjB,cAAc;AAAA,UACd,cAAc;AAAA,UACd,iBAAiB;AAAA,UACjB,IAAI;AAAA,UACJ,iBAAiB;AAAA,UACjB,WAAW;AAAA,UACX,0BAA0B;AAAA,UAC1B,kBAAkB;AAAA,UAClB,eAAe;AAAA,UACf,mBAAmB;AAAA,UACnB,WAAW;AAAA,UACX,SAAS;AAAA,UACT,eAAe;AAAA,QACjB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,kBAAkB,CAAC;AACrB;"}
@@ -18,21 +18,7 @@ const P = u(function({
18
18
  }, [s, e, i]);
19
19
  return M(() => {
20
20
  o();
21
- }, [o]), h ? /* @__PURE__ */ r(d, { height: "100dvh" }) : p || c && !t ? /* @__PURE__ */ r(E, { onTryAgain: o, height: "100dvh" }) : t ? t.state === "COMPLETED" ? /* @__PURE__ */ r(
22
- v,
23
- {
24
- data: t,
25
- onReviewClick: n,
26
- studentName: f
27
- }
28
- ) : /* @__PURE__ */ r(
29
- l,
30
- {
31
- data: t,
32
- onResumeClick: a,
33
- onDoLater: m
34
- }
35
- ) : null;
21
+ }, [o]), h ? /* @__PURE__ */ r(d, { height: "100dvh" }) : p || c && !t ? /* @__PURE__ */ r(E, { onTryAgain: o, height: "100dvh" }) : t ? t.state === "COMPLETED" ? /* @__PURE__ */ r(v, { data: t, onReviewClick: n, studentName: f }) : /* @__PURE__ */ r(l, { data: t, onResumeClick: a, onDoLater: m }) : null;
36
22
  }), k = P;
37
23
  export {
38
24
  k as default
@@ -1 +1 @@
1
- {"version":3,"file":"math-fit.js","sources":["../../../../src/features/math-fit/math-fit/math-fit.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, type FC } from 'react';\n\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport { useGetMathFitAssessment } from '../api/get-mathfit-assessment';\nimport type { IMathFitProps } from '../math-fit-overview/math-fit-overview-types';\nimport MathFitOverview from '../math-fit-overview/math-fit-overview';\nimport MathFitReport from '../math-fit-report/math-fit-report';\nimport Error from '../../ui/error/error';\n\nconst MathFit: FC<IMathFitProps> = memo(function MathFit({\n mathfitTestId,\n userId,\n onResumeClick,\n onReviewClick,\n onDoLater,\n studentName,\n}) {\n const { get, data, isProcessing, isProcessed, isProcessingFailed } = useGetMathFitAssessment();\n\n const fetchData = useCallback(() => {\n get(userId, undefined, { mathfitTestId });\n }, [get, userId, mathfitTestId]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n if (isProcessing) {\n return <AppLoader height=\"100dvh\" />;\n }\n\n if (isProcessingFailed || (isProcessed && !data)) {\n return <Error onTryAgain={fetchData} height=\"100dvh\" />;\n }\n\n if (!data) return null;\n\n if (data.state === 'COMPLETED') {\n return (\n <MathFitReport\n data={data}\n onReviewClick={onReviewClick}\n studentName={studentName}\n />\n );\n }\n\n return (\n <MathFitOverview\n data={data}\n onResumeClick={onResumeClick}\n onDoLater={onDoLater}\n />\n );\n});\n\nexport default MathFit;\n"],"names":["MathFit","memo","mathfitTestId","userId","onResumeClick","onReviewClick","onDoLater","studentName","get","data","isProcessing","isProcessed","isProcessingFailed","useGetMathFitAssessment","fetchData","useCallback","useEffect","jsx","AppLoader","Error","MathFitReport","MathFitOverview","MathFit$1"],"mappings":";;;;;;;AASA,MAAMA,IAA6BC,EAAK,SAAiB;AAAA,EACvD,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AACF,GAAG;AACD,QAAM,EAAE,KAAAC,GAAK,MAAAC,GAAM,cAAAC,GAAc,aAAAC,GAAa,oBAAAC,EAAA,IAAuBC,KAE/DC,IAAYC,EAAY,MAAM;AAClC,IAAAP,EAAIL,GAAQ,QAAW,EAAE,eAAAD,EAAe,CAAA;AAAA,EACvC,GAAA,CAACM,GAAKL,GAAQD,CAAa,CAAC;AAM/B,SAJAc,EAAU,MAAM;AACJ,IAAAF;EAAA,GACT,CAACA,CAAS,CAAC,GAEVJ,IACK,gBAAAO,EAACC,GAAU,EAAA,QAAO,SAAS,CAAA,IAGhCN,KAAuBD,KAAe,CAACF,IACjC,gBAAAQ,EAAAE,GAAA,EAAM,YAAYL,GAAW,QAAO,SAAS,CAAA,IAGlDL,IAEDA,EAAK,UAAU,cAEf,gBAAAQ;AAAA,IAACG;AAAA,IAAA;AAAA,MACC,MAAAX;AAAA,MACA,eAAAJ;AAAA,MACA,aAAAE;AAAA,IAAA;AAAA,EAAA,IAMJ,gBAAAU;AAAA,IAACI;AAAA,IAAA;AAAA,MACC,MAAAZ;AAAA,MACA,eAAAL;AAAA,MACA,WAAAE;AAAA,IAAA;AAAA,EAAA,IAhBc;AAmBpB,CAAC,GAEDgB,IAAetB;"}
1
+ {"version":3,"file":"math-fit.js","sources":["../../../../src/features/math-fit/math-fit/math-fit.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, type FC } from 'react';\n\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport { useGetMathFitAssessment } from '../api/get-mathfit-assessment';\nimport type { IMathFitProps } from '../math-fit-overview/math-fit-overview-types';\nimport MathFitOverview from '../math-fit-overview/math-fit-overview';\nimport MathFitReport from '../math-fit-report/math-fit-report';\nimport Error from '../../ui/error/error';\n\nconst MathFit: FC<IMathFitProps> = memo(function MathFit({\n mathfitTestId,\n userId,\n onResumeClick,\n onReviewClick,\n onDoLater,\n studentName,\n}) {\n const { get, data, isProcessing, isProcessed, isProcessingFailed } = useGetMathFitAssessment();\n\n const fetchData = useCallback(() => {\n get(userId, undefined, { mathfitTestId });\n }, [get, userId, mathfitTestId]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n if (isProcessing) {\n return <AppLoader height=\"100dvh\" />;\n }\n\n if (isProcessingFailed || (isProcessed && !data)) {\n return <Error onTryAgain={fetchData} height=\"100dvh\" />;\n }\n\n if (!data) return null;\n\n if (data.state === 'COMPLETED') {\n return <MathFitReport data={data} onReviewClick={onReviewClick} studentName={studentName} />;\n }\n\n return <MathFitOverview data={data} onResumeClick={onResumeClick} onDoLater={onDoLater} />;\n});\n\nexport default MathFit;\n"],"names":["MathFit","memo","mathfitTestId","userId","onResumeClick","onReviewClick","onDoLater","studentName","get","data","isProcessing","isProcessed","isProcessingFailed","useGetMathFitAssessment","fetchData","useCallback","useEffect","jsx","AppLoader","Error","MathFitReport","MathFitOverview","MathFit$1"],"mappings":";;;;;;;AASA,MAAMA,IAA6BC,EAAK,SAAiB;AAAA,EACvD,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AACF,GAAG;AACD,QAAM,EAAE,KAAAC,GAAK,MAAAC,GAAM,cAAAC,GAAc,aAAAC,GAAa,oBAAAC,EAAA,IAAuBC,KAE/DC,IAAYC,EAAY,MAAM;AAClC,IAAAP,EAAIL,GAAQ,QAAW,EAAE,eAAAD,EAAe,CAAA;AAAA,EACvC,GAAA,CAACM,GAAKL,GAAQD,CAAa,CAAC;AAM/B,SAJAc,EAAU,MAAM;AACJ,IAAAF;EAAA,GACT,CAACA,CAAS,CAAC,GAEVJ,IACK,gBAAAO,EAACC,GAAU,EAAA,QAAO,SAAS,CAAA,IAGhCN,KAAuBD,KAAe,CAACF,IACjC,gBAAAQ,EAAAE,GAAA,EAAM,YAAYL,GAAW,QAAO,SAAS,CAAA,IAGlDL,IAEDA,EAAK,UAAU,cACT,gBAAAQ,EAAAG,GAAA,EAAc,MAAAX,GAAY,eAAAJ,GAA8B,aAAAE,EAA0B,CAAA,IAGpF,gBAAAU,EAAAI,GAAA,EAAgB,MAAAZ,GAAY,eAAAL,GAA8B,WAAAE,EAAsB,CAAA,IANtE;AAOpB,CAAC,GAEDgB,IAAetB;"}
@@ -1,26 +1,27 @@
1
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import { memo as s } from "react";
3
- import g from "../../chapters-v2/comps/node-card/node-card-tags.js";
4
- import C from "../../homework/node-progress.js";
1
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { memo as g } from "react";
3
+ import C from "../../chapters-v2/comps/node-card/node-card-tags.js";
4
+ import u from "../../homework/node-progress.js";
5
5
  import A from "../../ui/arrow-tooltip/arrow-tooltip.js";
6
6
  import T from "../../ui/layout/flex-view.js";
7
- import a from "../../ui/separator/separator.js";
7
+ import m from "../../ui/separator/separator.js";
8
8
  import d from "../../ui/text/text.js";
9
- import { MathFitCardContainer as u } from "./math-fit-card-styled.js";
10
- import { ILLUSTRATIONS as _ } from "../../../assets/illustrations/illustrations.js";
11
- const x = s(function({
9
+ import { MathFitCardContainer as _ } from "./math-fit-card-styled.js";
10
+ import { ILLUSTRATIONS as S } from "../../../assets/illustrations/illustrations.js";
11
+ const x = g(function({
12
12
  dueDateTs: o,
13
13
  isMathFitDisabled: t = !1,
14
14
  tooltipText: n = "",
15
- isMilestone: e = !1,
15
+ isMilestone: a = !1,
16
16
  nodeType: h,
17
- state: p,
18
- subHeader: f,
19
- unlockedOnTs: i,
20
- userType: c,
21
- score: $,
17
+ state: s,
18
+ subHeader: p,
19
+ unlockedOnTs: e,
20
+ userType: f,
21
+ score: c,
22
22
  studentContainerRef: l
23
23
  }) {
24
+ const $ = o && e;
24
25
  return /* @__PURE__ */ r(
25
26
  A,
26
27
  {
@@ -28,50 +29,50 @@ const x = s(function({
28
29
  tooltipItem: n,
29
30
  position: "bottom",
30
31
  hidden: !t,
31
- children: /* @__PURE__ */ m(
32
- u,
32
+ children: /* @__PURE__ */ i(
33
+ _,
33
34
  {
34
35
  ref: l,
35
36
  $widthX: 12.38,
36
37
  $position: "relative",
37
38
  $background: "BLUE_4",
38
- $bgImage: _.MATH_FIT_CARD_BG,
39
+ $bgImage: S.MATH_FIT_CARD_BG,
39
40
  $height: 159,
40
41
  $gutterX: 0.78125,
41
42
  $disabled: t,
42
43
  children: [
43
44
  /* @__PURE__ */ r(
44
- g,
45
+ C,
45
46
  {
46
47
  nodeType: h,
47
- state: p,
48
- accuracy: $ ?? 0,
48
+ state: s,
49
+ accuracy: c ?? 0,
49
50
  dueDateTs: o,
50
- isStudent: c === "STUDENT",
51
- isMilestone: e
51
+ isStudent: f === "STUDENT",
52
+ isMilestone: a
52
53
  }
53
54
  ),
54
- !e && o && i && /* @__PURE__ */ r(
55
- C,
55
+ $ && /* @__PURE__ */ r(
56
+ u,
56
57
  {
57
58
  dueDate: o * 1e3,
58
- unlockedOn: i * 1e3,
59
+ unlockedOn: e * 1e3,
59
60
  progressBg: "BLUE_2"
60
61
  }
61
62
  ),
62
- /* @__PURE__ */ m(T, { $justifyContent: "flex-end", $height: "100%", children: [
63
+ /* @__PURE__ */ i(T, { $justifyContent: "flex-end", $height: "100%", children: [
63
64
  /* @__PURE__ */ r(d, { $renderAs: "ac4", $color: "BLACK_1", children: "MathFit TEST" }),
64
- /* @__PURE__ */ r(a, { heightX: 0.5 }),
65
- /* @__PURE__ */ r(d, { $renderAs: "ub3", $color: "BLACK_T_60", $width: "100%", children: f }),
66
- /* @__PURE__ */ r(a, { heightX: 0.75 })
65
+ /* @__PURE__ */ r(m, { heightX: 0.5 }),
66
+ /* @__PURE__ */ r(d, { $renderAs: "ub3", $color: "BLACK_T_60", $width: "100%", children: p }),
67
+ /* @__PURE__ */ r(m, { heightX: 0.75 })
67
68
  ] })
68
69
  ]
69
70
  }
70
71
  )
71
72
  }
72
73
  );
73
- }), X = x;
74
+ }), j = x;
74
75
  export {
75
- X as default
76
+ j as default
76
77
  };
77
78
  //# sourceMappingURL=math-fit-card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"math-fit-card.js","sources":["../../../../src/features/math-fit/math-fit-card/math-fit-card.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport NodeCardTags from '../../chapters-v2/comps/node-card/node-card-tags';\nimport NodeProgress from '../../homework/node-progress';\nimport ArrowTooltip from '../../ui/arrow-tooltip/arrow-tooltip';\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport type { IMathFitCardProps } from './math-fit-card-types';\nimport * as Styled from './math-fit-card-styled';\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\n\nconst MathFitCard: FC<IMathFitCardProps> = memo(function MathFitCard({\n dueDateTs,\n isMathFitDisabled = false,\n tooltipText = '',\n isMilestone = false,\n nodeType,\n state,\n subHeader,\n unlockedOnTs,\n userType,\n score,\n studentContainerRef,\n}) {\n return (\n <ArrowTooltip\n renderAs=\"primary\"\n tooltipItem={tooltipText}\n position=\"bottom\"\n hidden={!isMathFitDisabled}\n >\n <Styled.MathFitCardContainer\n ref={studentContainerRef}\n $widthX={12.38}\n $position=\"relative\"\n $background=\"BLUE_4\"\n $bgImage={ILLUSTRATIONS.MATH_FIT_CARD_BG}\n $height={159}\n $gutterX={0.78125}\n $disabled={isMathFitDisabled}\n >\n <NodeCardTags\n nodeType={nodeType}\n state={state}\n accuracy={score ?? 0}\n dueDateTs={dueDateTs}\n isStudent={userType === 'STUDENT'}\n isMilestone={isMilestone}\n />\n {!isMilestone && dueDateTs && unlockedOnTs && (\n <NodeProgress\n dueDate={dueDateTs * 1000}\n unlockedOn={unlockedOnTs * 1000}\n progressBg=\"BLUE_2\"\n />\n )}\n <FlexView $justifyContent=\"flex-end\" $height=\"100%\">\n <Text $renderAs=\"ac4\" $color=\"BLACK_1\">\n MathFit TEST\n </Text>\n <Separator heightX={0.5} />\n <Text $renderAs=\"ub3\" $color=\"BLACK_T_60\" $width=\"100%\">\n {subHeader}\n </Text>\n <Separator heightX={0.75} />\n </FlexView>\n </Styled.MathFitCardContainer>\n </ArrowTooltip>\n );\n});\n\nexport default MathFitCard;\n"],"names":["MathFitCard","memo","dueDateTs","isMathFitDisabled","tooltipText","isMilestone","nodeType","state","subHeader","unlockedOnTs","userType","score","studentContainerRef","jsx","ArrowTooltip","jsxs","Styled.MathFitCardContainer","ILLUSTRATIONS","NodeCardTags","NodeProgress","FlexView","Text","Separator","MathFitCard$1"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAAqCC,EAAK,SAAqB;AAAA,EACnE,WAAAC;AAAA,EACA,mBAAAC,IAAoB;AAAA,EACpB,aAAAC,IAAc;AAAA,EACd,aAAAC,IAAc;AAAA,EACd,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,qBAAAC;AACF,GAAG;AAEC,SAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAS;AAAA,MACT,aAAaV;AAAA,MACb,UAAS;AAAA,MACT,QAAQ,CAACD;AAAA,MAET,UAAA,gBAAAY;AAAA,QAACC;AAAAA,QAAA;AAAA,UACC,KAAKJ;AAAA,UACL,SAAS;AAAA,UACT,WAAU;AAAA,UACV,aAAY;AAAA,UACZ,UAAUK,EAAc;AAAA,UACxB,SAAS;AAAA,UACT,UAAU;AAAA,UACV,WAAWd;AAAA,UAEX,UAAA;AAAA,YAAA,gBAAAU;AAAA,cAACK;AAAA,cAAA;AAAA,gBACC,UAAAZ;AAAA,gBACA,OAAAC;AAAA,gBACA,UAAUI,KAAS;AAAA,gBACnB,WAAAT;AAAA,gBACA,WAAWQ,MAAa;AAAA,gBACxB,aAAAL;AAAA,cAAA;AAAA,YACF;AAAA,YACC,CAACA,KAAeH,KAAaO,KAC5B,gBAAAI;AAAA,cAACM;AAAA,cAAA;AAAA,gBACC,SAASjB,IAAY;AAAA,gBACrB,YAAYO,IAAe;AAAA,gBAC3B,YAAW;AAAA,cAAA;AAAA,YACb;AAAA,YAED,gBAAAM,EAAAK,GAAA,EAAS,iBAAgB,YAAW,SAAQ,QAC3C,UAAA;AAAA,cAAA,gBAAAP,EAACQ,GAAK,EAAA,WAAU,OAAM,QAAO,WAAU,UAEvC,gBAAA;AAAA,cACA,gBAAAR,EAACS,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,cACzB,gBAAAT,EAACQ,KAAK,WAAU,OAAM,QAAO,cAAa,QAAO,QAC9C,UACHb,EAAA,CAAA;AAAA,cACA,gBAAAK,EAACS,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,YAAA,GAC5B;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC,GAEDC,IAAevB;"}
1
+ {"version":3,"file":"math-fit-card.js","sources":["../../../../src/features/math-fit/math-fit-card/math-fit-card.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport NodeCardTags from '../../chapters-v2/comps/node-card/node-card-tags';\nimport NodeProgress from '../../homework/node-progress';\nimport ArrowTooltip from '../../ui/arrow-tooltip/arrow-tooltip';\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport type { IMathFitCardProps } from './math-fit-card-types';\nimport * as Styled from './math-fit-card-styled';\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\n\nconst MathFitCard: FC<IMathFitCardProps> = memo(function MathFitCard({\n dueDateTs,\n isMathFitDisabled = false,\n tooltipText = '',\n isMilestone = false,\n nodeType,\n state,\n subHeader,\n unlockedOnTs,\n userType,\n score,\n studentContainerRef,\n}) {\n const shouldShowProgress = dueDateTs && unlockedOnTs;\n\n return (\n <ArrowTooltip\n renderAs=\"primary\"\n tooltipItem={tooltipText}\n position=\"bottom\"\n hidden={!isMathFitDisabled}\n >\n <Styled.MathFitCardContainer\n ref={studentContainerRef}\n $widthX={12.38}\n $position=\"relative\"\n $background=\"BLUE_4\"\n $bgImage={ILLUSTRATIONS.MATH_FIT_CARD_BG}\n $height={159}\n $gutterX={0.78125}\n $disabled={isMathFitDisabled}\n >\n <NodeCardTags\n nodeType={nodeType}\n state={state}\n accuracy={score ?? 0}\n dueDateTs={dueDateTs}\n isStudent={userType === 'STUDENT'}\n isMilestone={isMilestone}\n />\n {shouldShowProgress && (\n <NodeProgress\n dueDate={dueDateTs * 1000}\n unlockedOn={unlockedOnTs * 1000}\n progressBg=\"BLUE_2\"\n />\n )}\n <FlexView $justifyContent=\"flex-end\" $height=\"100%\">\n <Text $renderAs=\"ac4\" $color=\"BLACK_1\">\n MathFit TEST\n </Text>\n <Separator heightX={0.5} />\n <Text $renderAs=\"ub3\" $color=\"BLACK_T_60\" $width=\"100%\">\n {subHeader}\n </Text>\n <Separator heightX={0.75} />\n </FlexView>\n </Styled.MathFitCardContainer>\n </ArrowTooltip>\n );\n});\n\nexport default MathFitCard;\n"],"names":["MathFitCard","memo","dueDateTs","isMathFitDisabled","tooltipText","isMilestone","nodeType","state","subHeader","unlockedOnTs","userType","score","studentContainerRef","shouldShowProgress","jsx","ArrowTooltip","jsxs","Styled.MathFitCardContainer","ILLUSTRATIONS","NodeCardTags","NodeProgress","FlexView","Text","Separator","MathFitCard$1"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAAqCC,EAAK,SAAqB;AAAA,EACnE,WAAAC;AAAA,EACA,mBAAAC,IAAoB;AAAA,EACpB,aAAAC,IAAc;AAAA,EACd,aAAAC,IAAc;AAAA,EACd,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,qBAAAC;AACF,GAAG;AACD,QAAMC,IAAqBX,KAAaO;AAGtC,SAAA,gBAAAK;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAS;AAAA,MACT,aAAaX;AAAA,MACb,UAAS;AAAA,MACT,QAAQ,CAACD;AAAA,MAET,UAAA,gBAAAa;AAAA,QAACC;AAAAA,QAAA;AAAA,UACC,KAAKL;AAAA,UACL,SAAS;AAAA,UACT,WAAU;AAAA,UACV,aAAY;AAAA,UACZ,UAAUM,EAAc;AAAA,UACxB,SAAS;AAAA,UACT,UAAU;AAAA,UACV,WAAWf;AAAA,UAEX,UAAA;AAAA,YAAA,gBAAAW;AAAA,cAACK;AAAA,cAAA;AAAA,gBACC,UAAAb;AAAA,gBACA,OAAAC;AAAA,gBACA,UAAUI,KAAS;AAAA,gBACnB,WAAAT;AAAA,gBACA,WAAWQ,MAAa;AAAA,gBACxB,aAAAL;AAAA,cAAA;AAAA,YACF;AAAA,YACCQ,KACC,gBAAAC;AAAA,cAACM;AAAA,cAAA;AAAA,gBACC,SAASlB,IAAY;AAAA,gBACrB,YAAYO,IAAe;AAAA,gBAC3B,YAAW;AAAA,cAAA;AAAA,YACb;AAAA,YAED,gBAAAO,EAAAK,GAAA,EAAS,iBAAgB,YAAW,SAAQ,QAC3C,UAAA;AAAA,cAAA,gBAAAP,EAACQ,GAAK,EAAA,WAAU,OAAM,QAAO,WAAU,UAEvC,gBAAA;AAAA,cACA,gBAAAR,EAACS,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,cACzB,gBAAAT,EAACQ,KAAK,WAAU,OAAM,QAAO,cAAa,QAAO,QAC9C,UACHd,EAAA,CAAA;AAAA,cACA,gBAAAM,EAACS,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,YAAA,GAC5B;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC,GAEDC,IAAexB;"}
@@ -0,0 +1,5 @@
1
+ var D = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e.ACTIVE = "active", e.DISABLED = "disabled", e))(D || {});
2
+ export {
3
+ D as ESectionCardVariant
4
+ };
5
+ //# sourceMappingURL=section-card-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section-card-types.js","sources":["../../../../../../src/features/math-fit/math-fit-overview/comps/section-card/section-card-types.ts"],"sourcesContent":["import type { ESectionStatus } from '../../math-fit-overview-types';\n\nexport enum ESectionCardVariant {\n COMPLETED = 'completed',\n ACTIVE = 'active',\n DISABLED = 'disabled',\n}\n\nexport interface ISectionCardProps {\n title: string;\n questionsCount: number;\n timeInMinutes: number;\n status: ESectionStatus;\n showDivider?: boolean;\n}\n"],"names":["ESectionCardVariant"],"mappings":"AAEY,IAAAA,sBAAAA,OACVA,EAAA,YAAY,aACZA,EAAA,SAAS,UACTA,EAAA,WAAW,YAHDA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,35 +1,56 @@
1
- import { jsx as r, Fragment as h, jsxs as i } from "react/jsx-runtime";
2
- import { memo as g } from "react";
3
- import { ILLUSTRATIONS as m } from "../../../../../assets/illustrations/illustrations.js";
4
- import f from "../../../../../assets/line-icons/icons/check2.js";
5
- import p from "../../../../../assets/line-icons/icons/lock3.js";
6
- import t from "../../../../ui/layout/flex-view.js";
7
- import b from "../../../../ui/separator/separator.js";
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { memo as s, useMemo as d } from "react";
3
+ import { ILLUSTRATIONS as l } from "../../../../../assets/illustrations/illustrations.js";
4
+ import p from "../../../../../assets/line-icons/icons/check2.js";
5
+ import g from "../../../../../assets/line-icons/icons/lock3.js";
6
+ import e from "../../../../ui/layout/flex-view.js";
7
+ import E from "../../../../ui/separator/separator.js";
8
8
  import L from "../../../../ui/text/text.js";
9
- import T from "../../../../ui/theme/clrs.js";
10
- import { TSectionStatus as n } from "../../math-fit-overview-types.js";
11
- import { Container as _, Divider as u, StatusColumn as A } from "./section-card-styled.js";
12
- import c from "../stat-item/stat-item.js";
13
- import { getCardVariant as I, getBackgroundColor as X, getCardBackgroundColor as B, getCardBorderColor as E } from "../../helpers.js";
14
- const U = g(function({
15
- title: a,
16
- questionsCount: d,
17
- timeInMinutes: $,
18
- status: o,
19
- showDivider: C = !1
9
+ import S from "../../../../ui/theme/clrs.js";
10
+ import { ESectionStatus as i } from "../../math-fit-overview-types.js";
11
+ import { Container as b, Divider as I, StatusColumn as A } from "./section-card-styled.js";
12
+ import m from "../stat-item/stat-item.js";
13
+ import { getSectionStatusConfig as T } from "../../math-fit-overview-helpers.js";
14
+ import { ESectionCardVariant as u } from "./section-card-types.js";
15
+ const U = s(function({
16
+ title: $,
17
+ questionsCount: n,
18
+ timeInMinutes: C,
19
+ status: t,
20
+ showDivider: f = !1
20
21
  }) {
21
- const e = I(o), l = e === "completed" ? "BLACK_T_60" : e === "disabled" ? "BLACK_T_38" : "BLACK_1";
22
- return /* @__PURE__ */ r(h, { children: /* @__PURE__ */ i(
23
- _,
22
+ const o = T(t), a = d(() => {
23
+ switch (o.cardVariant) {
24
+ case u.COMPLETED:
25
+ return "BLACK_T_60";
26
+ case u.DISABLED:
27
+ return "BLACK_T_38";
28
+ default:
29
+ return "BLACK_1";
30
+ }
31
+ }, [o.cardVariant]), h = d(() => {
32
+ switch (t) {
33
+ case i.COMPLETED:
34
+ return /* @__PURE__ */ r(p, { width: 20, height: 20 });
35
+ case i.ACTIVE:
36
+ return /* @__PURE__ */ r(e, { $widthX: 0.75, $heightX: 0.75, $background: "BLACK_1", $borderRadiusX: 0.75 });
37
+ case i.LOCKED:
38
+ return /* @__PURE__ */ r(g, { color: S().BLACK_T_38 });
39
+ default:
40
+ return null;
41
+ }
42
+ }, [t]);
43
+ return /* @__PURE__ */ c(
44
+ b,
24
45
  {
25
46
  $flexDirection: "row",
26
47
  $alignItems: "center",
27
48
  $position: "relative",
28
49
  $flexColumnGapX: 1,
29
50
  children: [
30
- C && /* @__PURE__ */ r(u, {}),
31
- /* @__PURE__ */ r(A, { $widthX: 1.5, $heightX: 1.5, $background: "WHITE", children: /* @__PURE__ */ i(
32
- t,
51
+ f && /* @__PURE__ */ r(I, {}),
52
+ /* @__PURE__ */ r(A, { $widthX: 1.5, $heightX: 1.5, $background: "WHITE", children: /* @__PURE__ */ r(
53
+ e,
33
54
  {
34
55
  $position: "relative",
35
56
  $widthX: 1.5,
@@ -37,53 +58,41 @@ const U = g(function({
37
58
  $borderRadiusX: 0.75,
38
59
  $justifyContent: "center",
39
60
  $alignItems: "center",
40
- $background: X(o),
41
- $borderColor: o === n.ACTIVE ? "BLACK_1" : void 0,
42
- children: [
43
- o === n.COMPLETED && /* @__PURE__ */ r(f, { width: 20, height: 20 }),
44
- o === n.ACTIVE && /* @__PURE__ */ r(
45
- t,
46
- {
47
- $widthX: 0.75,
48
- $heightX: 0.75,
49
- $background: "BLACK_1",
50
- $borderRadiusX: 0.75
51
- }
52
- ),
53
- o === n.LOCKED && /* @__PURE__ */ r(p, { color: T().BLACK_T_38 })
54
- ]
61
+ $background: o.backgroundColor,
62
+ $borderColor: t === i.ACTIVE ? "BLACK_1" : void 0,
63
+ children: h
55
64
  }
56
65
  ) }),
57
- /* @__PURE__ */ i(
58
- t,
66
+ /* @__PURE__ */ c(
67
+ e,
59
68
  {
60
69
  $gapX: 0.75,
61
70
  $gutterX: 1,
62
- $background: B(o),
63
- $borderColor: E(o),
71
+ $background: o.cardBackgroundColor,
72
+ $borderColor: o.cardBorderColor,
64
73
  $width: "100%",
65
74
  children: [
66
- /* @__PURE__ */ r(L, { $renderAs: "ub2-bold", $color: l, children: a }),
67
- /* @__PURE__ */ r(b, { height: 8 }),
68
- /* @__PURE__ */ i(t, { $flexDirection: "row", children: [
75
+ /* @__PURE__ */ r(L, { $renderAs: "ub2-bold", $color: a, children: $ }),
76
+ /* @__PURE__ */ r(E, { height: 8 }),
77
+ /* @__PURE__ */ c(e, { $flexDirection: "row", children: [
69
78
  /* @__PURE__ */ r(
70
- c,
79
+ m,
71
80
  {
72
- icon: m.QUESTION_MARK_BLUE,
73
- value: d < 10 ? `0${d}` : d,
81
+ icon: l.QUESTION_MARK_BLUE,
82
+ value: n < 10 ? `0${n}` : n,
74
83
  label: "Questions",
75
- variant: e,
76
- textColor: l
84
+ variant: o.cardVariant,
85
+ textColor: a
77
86
  }
78
87
  ),
79
88
  /* @__PURE__ */ r(
80
- c,
89
+ m,
81
90
  {
82
- icon: m.CLOCK_GREEN,
83
- value: $,
91
+ icon: l.CLOCK_GREEN,
92
+ value: C,
84
93
  label: "Minutes",
85
- variant: e,
86
- textColor: l
94
+ variant: o.cardVariant,
95
+ textColor: a
87
96
  }
88
97
  )
89
98
  ] })
@@ -92,7 +101,7 @@ const U = g(function({
92
101
  )
93
102
  ]
94
103
  }
95
- ) });
104
+ );
96
105
  });
97
106
  export {
98
107
  U as default
@@ -1 +1 @@
1
- {"version":3,"file":"section-card.js","sources":["../../../../../../src/features/math-fit/math-fit-overview/comps/section-card/section-card.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport Check2Icon from '../../../../../assets/line-icons/icons/check2';\nimport Lock3Icon from '../../../../../assets/line-icons/icons/lock3';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport getColors from '../../../../ui/theme/clrs';\nimport { TSectionStatus } from '../../math-fit-overview-types';\nimport * as Styled from './section-card-styled';\nimport StatItem from '../stat-item/stat-item';\nimport {\n getBackgroundColor,\n getCardBackgroundColor,\n getCardBorderColor,\n getCardVariant,\n} from '../../helpers';\nimport type { ISectionCardProps } from './section-card-types';\n\nconst SectionCard: FC<ISectionCardProps> = memo(function SectionCard({\n title,\n questionsCount,\n timeInMinutes,\n status,\n showDivider = false,\n}) {\n const variant = getCardVariant(status);\n const textColor =\n variant === 'completed' ? 'BLACK_T_60' : variant === 'disabled' ? 'BLACK_T_38' : 'BLACK_1';\n\n return (\n <>\n <Styled.Container\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $position=\"relative\"\n $flexColumnGapX={1}\n >\n {showDivider && <Styled.Divider />}\n <Styled.StatusColumn $widthX={1.5} $heightX={1.5} $background=\"WHITE\">\n <FlexView\n $position=\"relative\"\n $widthX={1.5}\n $heightX={1.5}\n $borderRadiusX={0.75}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background={getBackgroundColor(status)}\n $borderColor={status === TSectionStatus.ACTIVE ? 'BLACK_1' : undefined}\n >\n {status === TSectionStatus.COMPLETED && <Check2Icon width={20} height={20} />}\n {status === TSectionStatus.ACTIVE && (\n <FlexView\n $widthX={0.75}\n $heightX={0.75}\n $background=\"BLACK_1\"\n $borderRadiusX={0.75}\n />\n )}\n {status === TSectionStatus.LOCKED && <Lock3Icon color={getColors().BLACK_T_38} />}\n </FlexView>\n </Styled.StatusColumn>\n <FlexView\n $gapX={0.75}\n $gutterX={1}\n $background={getCardBackgroundColor(status)}\n $borderColor={getCardBorderColor(status)}\n $width=\"100%\"\n >\n <Text $renderAs=\"ub2-bold\" $color={textColor}>\n {title}\n </Text>\n <Separator height={8} />\n <FlexView $flexDirection=\"row\">\n <StatItem\n icon={ILLUSTRATIONS.QUESTION_MARK_BLUE}\n value={questionsCount < 10 ? `0${questionsCount}` : questionsCount}\n label=\"Questions\"\n variant={variant}\n textColor={textColor}\n />\n <StatItem\n icon={ILLUSTRATIONS.CLOCK_GREEN}\n value={timeInMinutes}\n label=\"Minutes\"\n variant={variant}\n textColor={textColor}\n />\n </FlexView>\n </FlexView>\n </Styled.Container>\n </>\n );\n});\n\nexport default SectionCard;\n"],"names":["SectionCard","memo","title","questionsCount","timeInMinutes","status","showDivider","variant","getCardVariant","textColor","jsx","Fragment","jsxs","Styled.Container","Styled.Divider","Styled.StatusColumn","FlexView","getBackgroundColor","TSectionStatus","Check2Icon","Lock3Icon","getColors","getCardBackgroundColor","getCardBorderColor","Text","Separator","StatItem","ILLUSTRATIONS"],"mappings":";;;;;;;;;;;;;AAoBM,MAAAA,IAAqCC,EAAK,SAAqB;AAAA,EACnE,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC,IAAc;AAChB,GAAG;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AChC,UACHP,GAAA;AAAA,cACA,gBAAAQ,EAACe,GAAU,EAAA,QAAQ,EAAG,CAAA;AAAA,cACtB,gBAAAb,EAACI,GAAS,EAAA,gBAAe,OACvB,UAAA;AAAA,gBAAA,gBAAAN;AAAA,kBAACgB;AAAA,kBAAA;AAAA,oBACC,MAAMC,EAAc;AAAA,oBACpB,OAAOxB,IAAiB,KAAK,IAAIA,CAAc,KAAKA;AAAA,oBACpD,OAAM;AAAA,oBACN,SAAAI;AAAA,oBACA,WAAAE;AAAA,kBAAA;AAAA,gBACF;AAAA,gBACA,gBAAAC;AAAA,kBAACgB;AAAA,kBAAA;AAAA,oBACC,MAAMC,EAAc;AAAA,oBACpB,OAAOvB;AAAA,oBACP,OAAM;AAAA,oBACN,SAAAG;AAAA,oBACA,WAAAE;AAAA,kBAAA;AAAA,gBACF;AAAA,cAAA,GACF;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"section-card.js","sources":["../../../../../../src/features/math-fit/math-fit-overview/comps/section-card/section-card.tsx"],"sourcesContent":["import { memo, useMemo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport Check2Icon from '../../../../../assets/line-icons/icons/check2';\nimport Lock3Icon from '../../../../../assets/line-icons/icons/lock3';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport getColors from '../../../../ui/theme/clrs';\nimport { ESectionStatus } from '../../math-fit-overview-types';\nimport * as Styled from './section-card-styled';\nimport StatItem from '../stat-item/stat-item';\nimport { getSectionStatusConfig } from '../../math-fit-overview-helpers';\nimport { type ISectionCardProps, ESectionCardVariant } from './section-card-types';\n\nconst SectionCard: FC<ISectionCardProps> = memo(function SectionCard({\n title,\n questionsCount,\n timeInMinutes,\n status,\n showDivider = false,\n}) {\n const config = getSectionStatusConfig(status);\n\n const textColor = useMemo(() => {\n switch (config.cardVariant) {\n case ESectionCardVariant.COMPLETED:\n return 'BLACK_T_60';\n case ESectionCardVariant.DISABLED:\n return 'BLACK_T_38';\n default:\n return 'BLACK_1';\n }\n }, [config.cardVariant]);\n\n const statusIcon = useMemo(() => {\n switch (status) {\n case ESectionStatus.COMPLETED:\n return <Check2Icon width={20} height={20} />;\n case ESectionStatus.ACTIVE:\n return (\n <FlexView $widthX={0.75} $heightX={0.75} $background=\"BLACK_1\" $borderRadiusX={0.75} />\n );\n case ESectionStatus.LOCKED:\n return <Lock3Icon color={getColors().BLACK_T_38} />;\n default:\n return null;\n }\n }, [status]);\n\n return (\n <Styled.Container\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $position=\"relative\"\n $flexColumnGapX={1}\n >\n {showDivider && <Styled.Divider />}\n\n <Styled.StatusColumn $widthX={1.5} $heightX={1.5} $background=\"WHITE\">\n <FlexView\n $position=\"relative\"\n $widthX={1.5}\n $heightX={1.5}\n $borderRadiusX={0.75}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background={config.backgroundColor}\n $borderColor={status === ESectionStatus.ACTIVE ? 'BLACK_1' : undefined}\n >\n {statusIcon}\n </FlexView>\n </Styled.StatusColumn>\n\n <FlexView\n $gapX={0.75}\n $gutterX={1}\n $background={config.cardBackgroundColor}\n $borderColor={config.cardBorderColor}\n $width=\"100%\"\n >\n <Text $renderAs=\"ub2-bold\" $color={textColor}>\n {title}\n </Text>\n <Separator height={8} />\n <FlexView $flexDirection=\"row\">\n <StatItem\n icon={ILLUSTRATIONS.QUESTION_MARK_BLUE}\n value={questionsCount < 10 ? `0${questionsCount}` : questionsCount}\n label=\"Questions\"\n variant={config.cardVariant}\n textColor={textColor}\n />\n <StatItem\n icon={ILLUSTRATIONS.CLOCK_GREEN}\n value={timeInMinutes}\n label=\"Minutes\"\n variant={config.cardVariant}\n textColor={textColor}\n />\n </FlexView>\n </FlexView>\n </Styled.Container>\n );\n});\n\nexport default SectionCard;\n"],"names":["SectionCard","memo","title","questionsCount","timeInMinutes","status","showDivider","config","getSectionStatusConfig","textColor","useMemo","ESectionCardVariant","statusIcon","ESectionStatus","jsx","Check2Icon","FlexView","Lock3Icon","getColors","jsxs","Styled.Container","Styled.Divider","Styled.StatusColumn","Text","Separator","StatItem","ILLUSTRATIONS"],"mappings":";;;;;;;;;;;;;;AAeM,MAAAA,IAAqCC,EAAK,SAAqB;AAAA,EACnE,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC,IAAc;AAChB,GAAG;AACK,QAAAC,IAASC,EAAuBH,CAAM,GAEtCI,IAAYC,EAAQ,MAAM;AAC9B,YAAQH,EAAO,aAAa;AAAA,MAC1B,KAAKI,EAAoB;AAChB,eAAA;AAAA,MACT,KAAKA,EAAoB;AAChB,eAAA;AAAA,MACT;AACS,eAAA;AAAA,IACX;AAAA,EAAA,GACC,CAACJ,EAAO,WAAW,CAAC,GAEjBK,IAAaF,EAAQ,MAAM;AAC/B,YAAQL,GAAQ;AAAA,MACd,KAAKQ,EAAe;AAClB,eAAQ,gBAAAC,EAAAC,GAAA,EAAW,OAAO,IAAI,QAAQ,GAAI,CAAA;AAAA,MAC5C,KAAKF,EAAe;AAEhB,eAAA,gBAAAC,EAACE,KAAS,SAAS,MAAM,UAAU,MAAM,aAAY,WAAU,gBAAgB,KAAM,CAAA;AAAA,MAEzF,KAAKH,EAAe;AAClB,eAAQ,gBAAAC,EAAAG,GAAA,EAAU,OAAOC,IAAY,WAAY,CAAA;AAAA,MACnD;AACS,eAAA;AAAA,IACX;AAAA,EAAA,GACC,CAACb,CAAM,CAAC;AAGT,SAAA,gBAAAc;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,gBAAe;AAAA,MACf,aAAY;AAAA,MACZ,WAAU;AAAA,MACV,iBAAiB;AAAA,MAEhB,UAAA;AAAA,QAAed,KAAA,gBAAAQ,EAACO,G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