@cuemath/leap 2.9.8-as1 → 2.9.8-as11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +9 -9
- package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
- package/dist/features/chapters-v2/utils/index.js +19 -12
- package/dist/features/chapters-v2/utils/index.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +40 -48
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +157 -0
- package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -0
- package/dist/features/homework/hw-card-list/hw-card-list.js +58 -182
- package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
- package/dist/features/homework/styles.js +24 -24
- package/dist/features/homework/styles.js.map +1 -1
- package/dist/features/journey/comps/coachmark/coachmark-styled.js +5 -12
- package/dist/features/journey/comps/coachmark/coachmark-styled.js.map +1 -1
- package/dist/features/journey/hooks/use-chapter-journey.js +20 -20
- package/dist/features/journey/hooks/use-chapter-journey.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +268 -0
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -0
- package/dist/features/journey/hooks/use-home-page-journey/recent-chapters-mock.js +513 -0
- package/dist/features/journey/hooks/use-home-page-journey/recent-chapters-mock.js.map +1 -0
- package/dist/features/journey/hooks/use-home-page-journey/styles.js +23 -0
- package/dist/features/journey/hooks/use-home-page-journey/styles.js.map +1 -0
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +22 -0
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js.map +1 -0
- package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js +270 -0
- package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js.map +1 -0
- package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +0 -3
- package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/chapter-selection/chapter-item/chapter-item.js.map +1 -1
- package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
- package/dist/index.d.ts +10 -25
- package/dist/index.js +495 -505
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/line-icons/icons/alarm.js +0 -41
- package/dist/assets/line-icons/icons/alarm.js.map +0 -1
- package/dist/assets/line-icons/icons/dart.js +0 -23
- package/dist/assets/line-icons/icons/dart.js.map +0 -1
- package/dist/assets/line-icons/icons/puzzle.js +0 -25
- package/dist/assets/line-icons/icons/puzzle.js.map +0 -1
- package/dist/assets/line-icons/icons/recap.js +0 -32
- package/dist/assets/line-icons/icons/recap.js.map +0 -1
- package/dist/assets/line-icons/icons/testtube.js +0 -33
- package/dist/assets/line-icons/icons/testtube.js.map +0 -1
- package/dist/features/journey/hooks/use-home-page-journey.js +0 -189
- package/dist/features/journey/hooks/use-home-page-journey.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-chapter-journey.js","sources":["../../../../src/features/journey/hooks/use-chapter-journey.tsx"],"sourcesContent":["import type { IUserChapterData } from '../../chapters-v2/chapter-details/chapter-details-types';\nimport type { IArrowTooltipProps } from '../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { TUserTypes } from '../../ui/types';\nimport type { ICoachmarkProps } from '../use-journey/journey-context-types';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport BlockSections from '../../chapters-v2/chapter-details/block-sections/block-sections';\nimport ChapterBanner from '../../chapters-v2/chapter-details/chapter-banner/chapter-banner';\nimport ChapterDetails from '../../chapters-v2/chapter-details/chapter-details';\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport { JOURNEY_ID_STUDENT } from '../journey-id/journey-id-student';\nimport { BLOCK_MOCKS, PROGRESS_STAT_MOCK } from '../mocks/chapter-page-journey-mock-data';\nimport { IndicatorType } from '../use-journey/constants';\nimport { useJourney } from '../use-journey/use-journey';\n\ninterface IChapterStartJourneyProps {\n chapterDetails: IUserChapterData;\n userChapterId: string;\n studentId: string;\n userType: TUserTypes;\n}\n\nexport const useChapterPageJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.CHAPTER_PAGE_JOURNEY;\n\n const chapterPageRef = useRef<HTMLDivElement>(null);\n const bannerRef = useRef<HTMLDivElement>(null);\n const coreBlocksRef = useRef<HTMLDivElement>(null);\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n const { nextCoachmark, setJourney, endJourney } = useJourney();\n\n const handleNextCoachmark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, true);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(\n ({ chapterDetails, userChapterId, studentId, userType }: IChapterStartJourneyProps) => {\n const { name, image_hue: imageHue, image_url: imageUrl } = chapterDetails;\n\n if (!chapterPageRef?.current || !bannerRef?.current || !coreBlocksRef.current) {\n return;\n }\n\n const chapterPageRect = chapterPageRef.current.getBoundingClientRect();\n\n const chapterPageSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: chapterPageRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: (\n <ChapterDetails\n userChapterId={userChapterId}\n studentId={studentId}\n userType={userType}\n onBlockSkipUnskip={() => null}\n onNodeAttempt={() => null}\n onNodeAttemptLocationChange={() => null}\n onNodeMarkAsDone={() => null}\n onNodeReattempt={() => null}\n onNodeReview={() => null}\n onNodeView={() => null}\n onExit={() => null}\n />\n ),\n indicator: {\n position: 'left',\n tooltipYCoOrdinates: -(chapterPageRect.height / 2) + 178,\n backgroundColor: 'BLUE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">Welcome to the all new chapter experience.</Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n },\n {\n originalElementToHighlightRef: bannerRef,\n elementToHighlight: (\n <ChapterBanner\n title={name}\n progressStats={PROGRESS_STAT_MOCK}\n imageUrl={imageUrl}\n imageHue={imageHue}\n />\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'bottom',\n tooltipXCoOrdinates: -45,\n tooltipYCoOrdinates: -40,\n backgroundColor: 'ORANGE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n width: 264,\n arrowSize: 12,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">\n A chapter is divided into *core sheets (compulsory), and supplementary sheets.\n </Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: bannerRef,\n elementToHighlight: (\n <ChapterBanner\n title={name}\n progressStats={PROGRESS_STAT_MOCK}\n imageUrl={imageUrl}\n imageHue={imageHue}\n />\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'bottom',\n tooltipXCoOrdinates: -275,\n tooltipYCoOrdinates: -15,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">Easily track the progress of the core sheets.</Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: coreBlocksRef,\n elementToHighlight: (\n <FlexView $widthX={50}>\n <BlockSections userType={userType} blocks={BLOCK_MOCKS} imageHue={imageHue} />\n </FlexView>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -150,\n tooltipYCoOrdinates: -260,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">Easily track the progress of the core sheets.</Text>\n <Button\n label=\"Got it\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleEndJourney}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, chapterPageSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n handleNextCoachmark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n },\n [handleNextCoachmark, handleEndJourney, setJourney, journeyId],\n );\n\n const data = useMemo(\n () => ({\n chapterPageRef,\n bannerRef,\n coreBlocksRef,\n startJourney,\n }),\n [startJourney],\n );\n\n useEffect(() => {\n return () => {\n timerRefs.current.forEach(timer => clearTimeout(timer));\n timerRefs.current = [];\n };\n }, []);\n\n return data;\n};\n"],"names":["useChapterPageJourney","journeyId","JOURNEY_ID_STUDENT","chapterPageRef","useRef","bannerRef","coreBlocksRef","timerRefs","nextCoachmark","setJourney","endJourney","useJourney","handleNextCoachmark","useCallback","handleEndJourney","startJourney","chapterDetails","userChapterId","studentId","userType","name","imageHue","imageUrl","chapterPageRect","chapterPageSteps","IndicatorType","jsx","ChapterDetails","jsxs","FlexView","Text","Button","ChapterBanner","PROGRESS_STAT_MOCK","BlockSections","BLOCK_MOCKS","delayBeforeStart","data","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BAACK;AAAA,gBAAA;AAAA,kBACC,OAAM;AAAA,kBACN,MAAK;AAAA,kBACL,QAAQ;AAAA,kBACR,UAAS;AAAA,kBACT,SAASjB;AAAA,gBAAA;AAAA,cACX;AAAA,YAAA,GACF;AAAA,UAEJ;AAAA,UACA,UAAU;AAAA,QACZ;AAAA,MAAA;AAGF,MAAAL,EAAWR,GAAWuB,CAAgB;AAEhC,YAAAY,IAAmB,WAAW,MAAM;AACxC,qBAAaA,CAAgB,GACTxB;SACnB,GAAG;AAEI,MAAAL,EAAA,QAAQ,KAAK6B,CAAgB;AAAA,IACzC;AAAA,IACA,CAACxB,GAAqBE,GAAkBL,GAAYR,CAAS;AAAA,EAAA,GAGzDoC,IAAOC;AAAA,IACX,OAAO;AAAA,MACL,gBAAAnC;AAAA,MACA,WAAAE;AAAA,MACA,eAAAC;AAAA,MACA,cAAAS;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAGf,SAAAwB,EAAU,MACD,MAAM;AACX,IAAAhC,EAAU,QAAQ,QAAQ,CAASiC,MAAA,aAAaA,CAAK,CAAC,GACtDjC,EAAU,UAAU;EAAC,GAEtB,CAAE,CAAA,GAEE8B;AACT;"}
|
1
|
+
{"version":3,"file":"use-chapter-journey.js","sources":["../../../../src/features/journey/hooks/use-chapter-journey.tsx"],"sourcesContent":["import type { IUserChapterData } from '../../chapters-v2/chapter-details/chapter-details-types';\nimport type { IArrowTooltipProps } from '../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { TUserTypes } from '../../ui/types';\nimport type { ICoachmarkProps } from '../use-journey/journey-context-types';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport BlockSections from '../../chapters-v2/chapter-details/block-sections/block-sections';\nimport ChapterBanner from '../../chapters-v2/chapter-details/chapter-banner/chapter-banner';\nimport ChapterDetails from '../../chapters-v2/chapter-details/chapter-details';\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport { JOURNEY_ID_STUDENT } from '../journey-id/journey-id-student';\nimport { BLOCK_MOCKS, PROGRESS_STAT_MOCK } from '../mocks/chapter-page-journey-mock-data';\nimport { IndicatorType } from '../use-journey/constants';\nimport { useJourney } from '../use-journey/use-journey';\n\ninterface IChapterStartJourneyProps {\n chapterDetails: IUserChapterData;\n userChapterId: string;\n studentId: string;\n userType: TUserTypes;\n}\n\nexport const useChapterPageJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.CHAPTER_PAGE_JOURNEY;\n\n const chapterPageRef = useRef<HTMLDivElement>(null);\n const bannerRef = useRef<HTMLDivElement>(null);\n const coreBlocksRef = useRef<HTMLDivElement>(null);\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n const { nextCoachmark, setJourney, endJourney } = useJourney();\n\n const handleNextCoachmark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, true);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(\n ({ chapterDetails, userChapterId, studentId, userType }: IChapterStartJourneyProps) => {\n const { name, image_hue: imageHue, image_url: imageUrl } = chapterDetails;\n\n if (!chapterPageRef?.current || !bannerRef?.current || !coreBlocksRef.current) {\n return;\n }\n\n const chapterPageRect = chapterPageRef.current.getBoundingClientRect();\n\n const chapterPageSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: chapterPageRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: (\n <ChapterDetails\n userChapterId={userChapterId}\n studentId={studentId}\n userType={userType}\n onBlockSkipUnskip={() => null}\n onNodeAttempt={() => null}\n onNodeAttemptLocationChange={() => null}\n onNodeMarkAsDone={() => null}\n onNodeReattempt={() => null}\n onNodeReview={() => null}\n onNodeView={() => null}\n onExit={() => null}\n />\n ),\n indicator: {\n position: 'left',\n tooltipYCoOrdinates: -(chapterPageRect.height / 2) + 178,\n backgroundColor: 'BLUE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">Welcome to the all new chapter experience.</Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n },\n {\n originalElementToHighlightRef: bannerRef,\n elementToHighlight: (\n <ChapterBanner\n title={name}\n progressStats={PROGRESS_STAT_MOCK}\n imageUrl={imageUrl}\n imageHue={imageHue}\n />\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'bottom',\n tooltipXCoOrdinates: -45,\n tooltipYCoOrdinates: -40,\n backgroundColor: 'ORANGE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n width: 264,\n arrowSize: 12,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">\n A chapter is divided into *core sheets (compulsory), and supplementary sheets.\n </Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: bannerRef,\n elementToHighlight: (\n <ChapterBanner\n title={name}\n progressStats={PROGRESS_STAT_MOCK}\n imageUrl={imageUrl}\n imageHue={imageHue}\n />\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'bottom',\n tooltipXCoOrdinates: -275,\n tooltipYCoOrdinates: -15,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">Easily track the progress of the core sheets.</Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: coreBlocksRef,\n elementToHighlight: (\n <FlexView $widthX={50}>\n <BlockSections userType={userType} blocks={BLOCK_MOCKS} imageHue={imageHue} />\n </FlexView>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -150,\n tooltipYCoOrdinates: -260,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">Easily track the progress of the core sheets.</Text>\n <Button\n label=\"Got it\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleEndJourney}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, chapterPageSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n window.scrollTo(0, 0);\n document.body.style.overflow = 'hidden';\n handleNextCoachmark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n },\n [handleNextCoachmark, handleEndJourney, setJourney, journeyId],\n );\n\n const data = useMemo(\n () => ({\n chapterPageRef,\n bannerRef,\n coreBlocksRef,\n startJourney,\n }),\n [startJourney],\n );\n\n useEffect(() => {\n return () => {\n timerRefs.current.forEach(timer => clearTimeout(timer));\n timerRefs.current = [];\n };\n }, []);\n\n return data;\n};\n"],"names":["useChapterPageJourney","journeyId","JOURNEY_ID_STUDENT","chapterPageRef","useRef","bannerRef","coreBlocksRef","timerRefs","nextCoachmark","setJourney","endJourney","useJourney","handleNextCoachmark","useCallback","handleEndJourney","startJourney","chapterDetails","userChapterId","studentId","userType","name","imageHue","imageUrl","chapterPageRect","chapterPageSteps","IndicatorType","jsx","ChapterDetails","jsxs","FlexView","Text","Button","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AAC,gBAAAH,EAAAI,GAAA,EAAK,WAAU,YAAW,UAA6C,iDAAA;AAAA,cACxE,gBAAAJ;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,OAAM;AAAA,kBACN,MAAK;AAAA,kBACL,QAAQ;AAAA,kBACR,UAAS;AAAA,kBACT,SAASjB;AAAA,gBAAA;AAAA,cACX;AAAA,YAAA,GACF;AAAA,UAEJ;AAAA,UACA,UAAU;AAAA,QACZ;AAAA,MAAA;AAGF,MAAAL,EAAWR,GAAWuB,CAAgB;AAEhC,YAAAY,IAAmB,WAAW,MAAM;AACxC,qBAAaA,CAAgB,GACtB,OAAA,SAAS,GAAG,CAAC,GACX,SAAA,KAAK,MAAM,WAAW,UACXxB;SACnB,GAAG;AAEI,MAAAL,EAAA,QAAQ,KAAK6B,CAAgB;AAAA,IACzC;AAAA,IACA,CAACxB,GAAqBE,GAAkBL,GAAYR,CAAS;AAAA,EAAA,GAGzDoC,IAAOC;AAAA,IACX,OAAO;AAAA,MACL,gBAAAnC;AAAA,MACA,WAAAE;AAAA,MACA,eAAAC;AAAA,MACA,cAAAS;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAGf,SAAAwB,EAAU,MACD,MAAM;AACX,IAAAhC,EAAU,QAAQ,QAAQ,CAASiC,MAAA,aAAaA,CAAK,CAAC,GACtDjC,EAAU,UAAU;EAAC,GAEtB,CAAE,CAAA,GAEE8B;AACT;"}
|
@@ -0,0 +1,268 @@
|
|
1
|
+
const e = Math.floor(Date.now() / 1e3), a = e + 5 * 24 * 60 * 60, _ = [
|
2
|
+
{
|
3
|
+
accuracy: null,
|
4
|
+
attempt_location: "ANY",
|
5
|
+
attempt_state: null,
|
6
|
+
block_id: "23a4e676-7094-11ed-87bc-6ec30f5d70bb",
|
7
|
+
break_interval: 0,
|
8
|
+
card_header: "PUZZLE",
|
9
|
+
ceremony_completed_on_ts: null,
|
10
|
+
chapter_id: "8b0d5af7-3d47-4888-acef-920069c6ae13",
|
11
|
+
completed_on_ts: null,
|
12
|
+
course_type: "PROGRAM",
|
13
|
+
desmos_calculator_enabled: !1,
|
14
|
+
due_date_ts: 1748241531,
|
15
|
+
generic_node_type: null,
|
16
|
+
homework_created_on_ts: 1747636732547152e-6,
|
17
|
+
homework_id: "ede761ea-347b-11f0-b9d2-5e3c498fca42",
|
18
|
+
image_hue: "BLUE",
|
19
|
+
image_url: "https://dw7j1ezsvbafb.cloudfront.net/media/chapter-images/Default.jpg",
|
20
|
+
is_core_lesson_node: null,
|
21
|
+
is_irrelevant: !1,
|
22
|
+
is_lesson_primary_node: null,
|
23
|
+
is_lesson_v3_enabled: !1,
|
24
|
+
is_optional: !0,
|
25
|
+
is_timed: !1,
|
26
|
+
is_worksheet_v3: null,
|
27
|
+
learnosity_activity_ref: "CR_G4L1 Sum of Three Cubes",
|
28
|
+
lesson_id: null,
|
29
|
+
marked_as_completed: !1,
|
30
|
+
mini_goal_code: null,
|
31
|
+
node_group: null,
|
32
|
+
node_id: "1de6ac4a-8e41-4446-9a07-a93d5713a2ff",
|
33
|
+
node_sub_group: null,
|
34
|
+
node_type: "PUZZLE_EASY",
|
35
|
+
permissions: {
|
36
|
+
can_assign_as_homework: !1,
|
37
|
+
can_attempt: !1,
|
38
|
+
can_change_attempt_location: !1,
|
39
|
+
can_mark_familiar: !1,
|
40
|
+
can_reattempt: !1,
|
41
|
+
can_reset: !1,
|
42
|
+
can_resume: !1,
|
43
|
+
can_review: !1,
|
44
|
+
can_start: !0,
|
45
|
+
can_teacher_review: !1,
|
46
|
+
can_teacher_score: !1,
|
47
|
+
can_unassign: !1,
|
48
|
+
can_unlock: !1,
|
49
|
+
can_view_solution: !1,
|
50
|
+
is_review_disabled: !1
|
51
|
+
},
|
52
|
+
position: 7,
|
53
|
+
program_id: "1f7eee07-9e8f-423f-8c3a-690c42cdb6b6",
|
54
|
+
rewards: [],
|
55
|
+
scheduled_end_ts: null,
|
56
|
+
scheduled_start_ts: null,
|
57
|
+
sheet_statement: "Yet to start",
|
58
|
+
sheet_time: 2400,
|
59
|
+
started_on_ts: null,
|
60
|
+
state: "NOT_STARTED",
|
61
|
+
subtext: "Puzzle Cards",
|
62
|
+
target_accuracy: 100,
|
63
|
+
timer_type: null,
|
64
|
+
title: "Sum of Three Cubes",
|
65
|
+
total_questions: 0,
|
66
|
+
unlocked_on_ts: 1747636731,
|
67
|
+
user_attempt_id: null,
|
68
|
+
user_block_id: "a021e0e2-b6f6-4bf0-84d2-dd7b603b89d4",
|
69
|
+
user_milestone_id: null,
|
70
|
+
user_node_id: "147520a0-2f62-11f0-876b-da0546594b04",
|
71
|
+
worksheet_id: "c4e1035a-d3e5-11eb-8971-6296551a51ec"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
accuracy: null,
|
75
|
+
attempt_location: "ANY",
|
76
|
+
attempt_state: null,
|
77
|
+
block_id: "",
|
78
|
+
break_interval: 0,
|
79
|
+
card_header: "SMART PRACTICE",
|
80
|
+
ceremony_completed_on_ts: null,
|
81
|
+
chapter_id: null,
|
82
|
+
completed_on_ts: null,
|
83
|
+
course_type: "PROGRAM",
|
84
|
+
desmos_calculator_enabled: !1,
|
85
|
+
due_date_ts: a,
|
86
|
+
generic_node_type: null,
|
87
|
+
homework_created_on_ts: 1747751314184602e-6,
|
88
|
+
homework_id: "b5e1bf00-3586-11f0-a22a-9207bc065284",
|
89
|
+
image_hue: "PURPLE",
|
90
|
+
image_url: null,
|
91
|
+
is_core_lesson_node: null,
|
92
|
+
is_irrelevant: !1,
|
93
|
+
is_lesson_primary_node: null,
|
94
|
+
is_lesson_v3_enabled: !1,
|
95
|
+
is_optional: !1,
|
96
|
+
is_timed: !1,
|
97
|
+
is_worksheet_v3: null,
|
98
|
+
learnosity_activity_ref: "mastery-6f8b199b-9c54-40dc-833e-69db342fec26",
|
99
|
+
lesson_id: null,
|
100
|
+
marked_as_completed: !1,
|
101
|
+
mini_goal_code: null,
|
102
|
+
node_group: null,
|
103
|
+
node_id: "307b7775-98fd-4831-bd2f-e87403db7da7",
|
104
|
+
node_sub_group: null,
|
105
|
+
node_type: "MASTERY",
|
106
|
+
permissions: {
|
107
|
+
can_assign_as_homework: !1,
|
108
|
+
can_attempt: !1,
|
109
|
+
can_change_attempt_location: !1,
|
110
|
+
can_mark_familiar: !1,
|
111
|
+
can_reattempt: !1,
|
112
|
+
can_reset: !1,
|
113
|
+
can_resume: !1,
|
114
|
+
can_review: !1,
|
115
|
+
can_start: !0,
|
116
|
+
can_teacher_review: !1,
|
117
|
+
can_teacher_score: !1,
|
118
|
+
can_unassign: !1,
|
119
|
+
can_unlock: !1,
|
120
|
+
can_view_solution: !1,
|
121
|
+
is_review_disabled: !1
|
122
|
+
},
|
123
|
+
position: 1,
|
124
|
+
program_id: null,
|
125
|
+
rewards: [],
|
126
|
+
scheduled_end_ts: null,
|
127
|
+
scheduled_start_ts: null,
|
128
|
+
sheet_statement: "Yet to start",
|
129
|
+
sheet_time: 0,
|
130
|
+
started_on_ts: null,
|
131
|
+
state: "IN_PROGRESS",
|
132
|
+
subtext: "10 Questions",
|
133
|
+
target_accuracy: null,
|
134
|
+
timer_type: null,
|
135
|
+
title: "Identify Types of Polygons • Understand Decimal Numbers • Convert Improper Fractions to Decimals",
|
136
|
+
total_questions: 10,
|
137
|
+
unlocked_on_ts: 1747751086,
|
138
|
+
user_attempt_id: null,
|
139
|
+
user_block_id: null,
|
140
|
+
user_milestone_id: null,
|
141
|
+
user_node_id: "2e715efe-3586-11f0-be8b-526b31ab17cd",
|
142
|
+
worksheet_id: "b70c4195-2727-415e-b3a0-f9c0672103dc"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
accuracy: null,
|
146
|
+
attempt_location: "ANY",
|
147
|
+
attempt_state: null,
|
148
|
+
block_id: "6c30d4f0-4bb0-4fc2-9dac-f7016f1bd589",
|
149
|
+
break_interval: 0,
|
150
|
+
card_header: "LEARN",
|
151
|
+
ceremony_completed_on_ts: null,
|
152
|
+
chapter_id: "8ac6c4a0-931c-4bd3-80f4-30b1c13cb8f4",
|
153
|
+
completed_on_ts: null,
|
154
|
+
course_type: "PROGRAM",
|
155
|
+
desmos_calculator_enabled: !1,
|
156
|
+
due_date_ts: 1747765021,
|
157
|
+
generic_node_type: null,
|
158
|
+
homework_created_on_ts: 1747763568498342e-6,
|
159
|
+
homework_id: "3e05a164-35a3-11f0-b52f-9207bc065284",
|
160
|
+
image_hue: "BLUE",
|
161
|
+
image_url: "https://dw7j1ezsvbafb.cloudfront.net/media/chapter-images/Measurement_G4.jpg",
|
162
|
+
is_core_lesson_node: null,
|
163
|
+
is_irrelevant: !1,
|
164
|
+
is_lesson_primary_node: null,
|
165
|
+
is_lesson_v3_enabled: !1,
|
166
|
+
is_optional: !1,
|
167
|
+
is_timed: !1,
|
168
|
+
is_worksheet_v3: null,
|
169
|
+
learnosity_activity_ref: "G4-Length-Weight-Capacity-W01.vxp",
|
170
|
+
lesson_id: null,
|
171
|
+
marked_as_completed: !1,
|
172
|
+
mini_goal_code: "MEA059-A",
|
173
|
+
node_group: null,
|
174
|
+
node_id: "ee7b2e69-fd74-4311-a378-8bb4e45449a6",
|
175
|
+
node_sub_group: null,
|
176
|
+
node_type: "LEARNING",
|
177
|
+
permissions: {
|
178
|
+
can_assign_as_homework: !1,
|
179
|
+
can_attempt: !1,
|
180
|
+
can_change_attempt_location: !1,
|
181
|
+
can_mark_familiar: !0,
|
182
|
+
can_reattempt: !1,
|
183
|
+
can_reset: !1,
|
184
|
+
can_resume: !1,
|
185
|
+
can_review: !1,
|
186
|
+
can_start: !0,
|
187
|
+
can_teacher_review: !1,
|
188
|
+
can_teacher_score: !1,
|
189
|
+
can_unassign: !1,
|
190
|
+
can_unlock: !1,
|
191
|
+
can_view_solution: !1,
|
192
|
+
is_review_disabled: !1
|
193
|
+
},
|
194
|
+
position: 1,
|
195
|
+
program_id: "1f7eee07-9e8f-423f-8c3a-690c42cdb6b6",
|
196
|
+
rewards: [],
|
197
|
+
scheduled_end_ts: null,
|
198
|
+
scheduled_start_ts: null,
|
199
|
+
sheet_statement: "Yet to start",
|
200
|
+
sheet_time: 0,
|
201
|
+
started_on_ts: null,
|
202
|
+
state: "NOT_STARTED",
|
203
|
+
subtext: "Measurement",
|
204
|
+
target_accuracy: 0,
|
205
|
+
timer_type: null,
|
206
|
+
title: "Solve Problems on Conversion of Units of Length",
|
207
|
+
total_questions: 34,
|
208
|
+
unlocked_on_ts: 1747160221,
|
209
|
+
user_attempt_id: null,
|
210
|
+
user_block_id: "83d76c9d-5d2f-49a9-9a3e-fed0293a08ab",
|
211
|
+
user_milestone_id: null,
|
212
|
+
user_node_id: "76f860b0-3026-11f0-8945-925795afcf7c",
|
213
|
+
worksheet_id: "8b9bc1d6-0d7b-11ed-bf5b-4eea17b71ce5"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
accuracy: null,
|
217
|
+
attempt_location: "ANY",
|
218
|
+
block_id: "",
|
219
|
+
card_header: "TEST",
|
220
|
+
chapter_id: null,
|
221
|
+
course_type: "EXAM",
|
222
|
+
desmos_calculator_enabled: !1,
|
223
|
+
due_date_ts: 1748368416713071e-6,
|
224
|
+
homework_id: "5ac50966-35a3-11f0-b52f-9207bc065284",
|
225
|
+
image_hue: "YELLOW",
|
226
|
+
image_url: null,
|
227
|
+
is_lesson_v3_enabled: !1,
|
228
|
+
is_optional: !1,
|
229
|
+
is_timed: !0,
|
230
|
+
is_worksheet_v3: null,
|
231
|
+
learnosity_activity_ref: null,
|
232
|
+
marked_as_completed: !1,
|
233
|
+
node_id: "bbcb2c1a-3289-11ed-b746-6237f2d293d9",
|
234
|
+
node_type: "DYNAMIC",
|
235
|
+
permissions: {
|
236
|
+
can_assign_as_homework: !1,
|
237
|
+
can_attempt: !1,
|
238
|
+
can_change_attempt_location: !1,
|
239
|
+
can_mark_familiar: !1,
|
240
|
+
can_reattempt: !1,
|
241
|
+
can_reset: !1,
|
242
|
+
can_resume: !1,
|
243
|
+
can_review: !1,
|
244
|
+
can_start: !0,
|
245
|
+
can_teacher_review: !1,
|
246
|
+
can_teacher_score: !1,
|
247
|
+
can_unassign: !1,
|
248
|
+
can_unlock: !1,
|
249
|
+
can_view_solution: !1,
|
250
|
+
is_review_disabled: !1
|
251
|
+
},
|
252
|
+
sheet_statement: "Yet to start",
|
253
|
+
sheet_time: 2700,
|
254
|
+
state: "NOT_STARTED",
|
255
|
+
subtext: "17 Questions, 45 Mins",
|
256
|
+
title: "Factors, Multiples, and Primes • Time • An Introduction to Decimal Numbers • Fractions",
|
257
|
+
total_questions: 17,
|
258
|
+
unlocked_on_ts: 1747763616713071e-6,
|
259
|
+
user_attempt_id: null,
|
260
|
+
user_milestone_id: "f091d182-30fa-44b6-b7c5-6ecdc2c1592a",
|
261
|
+
user_node_id: "5ac2b404-35a3-11f0-b52f-9207bc065284",
|
262
|
+
worksheet_id: "bbbfd900-3289-11ed-b746-6237f2d293d9"
|
263
|
+
}
|
264
|
+
];
|
265
|
+
export {
|
266
|
+
_ as HOMEWORK_DETAILS
|
267
|
+
};
|
268
|
+
//# sourceMappingURL=home-page-homeworks-mock.js.map
|
@@ -0,0 +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 { INodeDataProps } from '../../../chapters-v2/comps/node-card/node-card-types';\n\nconst now = Math.floor(Date.now() / 1000); // current epoch in seconds\nconst fiveDaysLater = now + 5 * 24 * 60 * 60;\n\nconst HOMEWORK_DETAILS = [\n {\n accuracy: null,\n attempt_location: 'ANY',\n attempt_state: null,\n block_id: '23a4e676-7094-11ed-87bc-6ec30f5d70bb',\n break_interval: 0,\n card_header: 'PUZZLE',\n ceremony_completed_on_ts: null,\n chapter_id: '8b0d5af7-3d47-4888-acef-920069c6ae13',\n completed_on_ts: null,\n course_type: 'PROGRAM',\n desmos_calculator_enabled: false,\n due_date_ts: 1748241531,\n generic_node_type: null,\n homework_created_on_ts: 1747636732.547152,\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_core_lesson_node: null,\n is_irrelevant: false,\n is_lesson_primary_node: null,\n is_lesson_v3_enabled: false,\n is_optional: true,\n is_timed: false,\n is_worksheet_v3: null,\n learnosity_activity_ref: 'CR_G4L1 Sum of Three Cubes',\n lesson_id: null,\n marked_as_completed: false,\n mini_goal_code: null,\n node_group: null,\n node_id: '1de6ac4a-8e41-4446-9a07-a93d5713a2ff',\n node_sub_group: null,\n node_type: 'PUZZLE_EASY',\n permissions: {\n can_assign_as_homework: false,\n can_attempt: 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_teacher_score: false,\n can_unassign: false,\n can_unlock: false,\n can_view_solution: false,\n is_review_disabled: false,\n },\n position: 7,\n program_id: '1f7eee07-9e8f-423f-8c3a-690c42cdb6b6',\n rewards: [],\n scheduled_end_ts: null,\n scheduled_start_ts: null,\n sheet_statement: 'Yet to start',\n sheet_time: 2400,\n started_on_ts: null,\n state: 'NOT_STARTED',\n subtext: 'Puzzle Cards',\n target_accuracy: 100,\n timer_type: null,\n title: 'Sum of Three Cubes',\n total_questions: 0,\n unlocked_on_ts: 1747636731,\n user_attempt_id: null,\n user_block_id: 'a021e0e2-b6f6-4bf0-84d2-dd7b603b89d4',\n user_milestone_id: null,\n user_node_id: '147520a0-2f62-11f0-876b-da0546594b04',\n worksheet_id: 'c4e1035a-d3e5-11eb-8971-6296551a51ec',\n },\n {\n accuracy: null,\n attempt_location: 'ANY',\n attempt_state: null,\n block_id: '',\n break_interval: 0,\n card_header: 'SMART PRACTICE',\n ceremony_completed_on_ts: null,\n chapter_id: null,\n completed_on_ts: null,\n course_type: 'PROGRAM',\n desmos_calculator_enabled: false,\n due_date_ts: fiveDaysLater,\n generic_node_type: null,\n homework_created_on_ts: 1747751314.184602,\n homework_id: 'b5e1bf00-3586-11f0-a22a-9207bc065284',\n image_hue: 'PURPLE',\n image_url: null,\n is_core_lesson_node: null,\n is_irrelevant: false,\n is_lesson_primary_node: null,\n is_lesson_v3_enabled: false,\n is_optional: false,\n is_timed: false,\n is_worksheet_v3: null,\n learnosity_activity_ref: 'mastery-6f8b199b-9c54-40dc-833e-69db342fec26',\n lesson_id: null,\n marked_as_completed: false,\n mini_goal_code: null,\n node_group: null,\n node_id: '307b7775-98fd-4831-bd2f-e87403db7da7',\n node_sub_group: null,\n node_type: 'MASTERY',\n permissions: {\n can_assign_as_homework: false,\n can_attempt: 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_teacher_score: false,\n can_unassign: false,\n can_unlock: false,\n can_view_solution: false,\n is_review_disabled: false,\n },\n position: 1,\n program_id: null,\n rewards: [],\n scheduled_end_ts: null,\n scheduled_start_ts: null,\n sheet_statement: 'Yet to start',\n sheet_time: 0,\n started_on_ts: null,\n state: 'IN_PROGRESS',\n subtext: '10 Questions',\n target_accuracy: null,\n timer_type: null,\n title:\n 'Identify Types of Polygons \\u2022 Understand Decimal Numbers \\u2022 Convert Improper Fractions to Decimals',\n total_questions: 10,\n unlocked_on_ts: 1747751086,\n user_attempt_id: null,\n user_block_id: null,\n user_milestone_id: null,\n user_node_id: '2e715efe-3586-11f0-be8b-526b31ab17cd',\n worksheet_id: 'b70c4195-2727-415e-b3a0-f9c0672103dc',\n },\n {\n accuracy: null,\n attempt_location: 'ANY',\n attempt_state: null,\n block_id: '6c30d4f0-4bb0-4fc2-9dac-f7016f1bd589',\n break_interval: 0,\n card_header: 'LEARN',\n ceremony_completed_on_ts: null,\n chapter_id: '8ac6c4a0-931c-4bd3-80f4-30b1c13cb8f4',\n completed_on_ts: null,\n course_type: 'PROGRAM',\n desmos_calculator_enabled: false,\n due_date_ts: 1747765021,\n generic_node_type: null,\n homework_created_on_ts: 1747763568.498342,\n homework_id: '3e05a164-35a3-11f0-b52f-9207bc065284',\n image_hue: 'BLUE',\n image_url: 'https://dw7j1ezsvbafb.cloudfront.net/media/chapter-images/Measurement_G4.jpg',\n is_core_lesson_node: null,\n is_irrelevant: false,\n is_lesson_primary_node: null,\n is_lesson_v3_enabled: false,\n is_optional: false,\n is_timed: false,\n is_worksheet_v3: null,\n learnosity_activity_ref: 'G4-Length-Weight-Capacity-W01.vxp',\n lesson_id: null,\n marked_as_completed: false,\n mini_goal_code: 'MEA059-A',\n node_group: null,\n node_id: 'ee7b2e69-fd74-4311-a378-8bb4e45449a6',\n node_sub_group: null,\n node_type: 'LEARNING',\n permissions: {\n can_assign_as_homework: false,\n can_attempt: false,\n can_change_attempt_location: false,\n can_mark_familiar: true,\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_teacher_score: false,\n can_unassign: false,\n can_unlock: false,\n can_view_solution: false,\n is_review_disabled: false,\n },\n position: 1,\n program_id: '1f7eee07-9e8f-423f-8c3a-690c42cdb6b6',\n rewards: [],\n scheduled_end_ts: null,\n scheduled_start_ts: null,\n sheet_statement: 'Yet to start',\n sheet_time: 0,\n started_on_ts: null,\n state: 'NOT_STARTED',\n subtext: 'Measurement',\n target_accuracy: 0,\n timer_type: null,\n title: 'Solve Problems on Conversion of Units of Length',\n total_questions: 34,\n unlocked_on_ts: 1747160221,\n user_attempt_id: null,\n user_block_id: '83d76c9d-5d2f-49a9-9a3e-fed0293a08ab',\n user_milestone_id: null,\n user_node_id: '76f860b0-3026-11f0-8945-925795afcf7c',\n worksheet_id: '8b9bc1d6-0d7b-11ed-bf5b-4eea17b71ce5',\n },\n {\n accuracy: null,\n attempt_location: 'ANY',\n block_id: '',\n card_header: 'TEST',\n chapter_id: null,\n course_type: 'EXAM',\n desmos_calculator_enabled: false,\n due_date_ts: 1748368416.713071,\n homework_id: '5ac50966-35a3-11f0-b52f-9207bc065284',\n image_hue: 'YELLOW',\n image_url: null,\n is_lesson_v3_enabled: false,\n is_optional: false,\n is_timed: true,\n is_worksheet_v3: null,\n learnosity_activity_ref: null,\n marked_as_completed: false,\n node_id: 'bbcb2c1a-3289-11ed-b746-6237f2d293d9',\n node_type: 'DYNAMIC',\n permissions: {\n can_assign_as_homework: false,\n can_attempt: 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_teacher_score: false,\n can_unassign: false,\n can_unlock: false,\n can_view_solution: false,\n is_review_disabled: false,\n },\n sheet_statement: 'Yet to start',\n sheet_time: 2700,\n state: 'NOT_STARTED',\n subtext: '17 Questions, 45 Mins',\n title:\n 'Factors, Multiples, and Primes \\u2022 Time \\u2022 An Introduction to Decimal Numbers \\u2022 Fractions',\n total_questions: 17,\n unlocked_on_ts: 1747763616.713071,\n user_attempt_id: null,\n user_milestone_id: 'f091d182-30fa-44b6-b7c5-6ecdc2c1592a',\n user_node_id: '5ac2b404-35a3-11f0-b52f-9207bc065284',\n worksheet_id: 'bbbfd900-3289-11ed-b746-6237f2d293d9',\n },\n] as unknown as INodeDataProps[];\n\nexport { HOMEWORK_DETAILS };\n"],"names":["now","fiveDaysLater","HOMEWORK_DETAILS"],"mappings":"AAEA,MAAMA,IAAM,KAAK,MAAM,KAAK,IAAA,IAAQ,GAAI,GAClCC,IAAgBD,IAAM,IAAI,KAAK,KAAK,IAEpCE,IAAmB;AAAA,EACvB;AAAA,IACE,UAAU;AAAA,IACV,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,0BAA0B;AAAA,IAC1B,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,aAAa;AAAA,IACb,2BAA2B;AAAA,IAC3B,aAAa;AAAA,IACb,mBAAmB;AAAA,IACnB,wBAAwB;AAAA,IACxB,a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