@cuemath/leap 4.1.1-beta.5 → 4.1.1-link.0
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/chapters-list/chapter-item/chapter-item.js +27 -25
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
- package/dist/features/chapters/chapters-list/chapters-list.js +53 -43
- package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
- package/dist/features/chapters-v2/chapter-details/chapter-details.js +70 -68
- package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-teacher.js +1 -1
- package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
- package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +1 -1
- package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +105 -93
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +44 -43
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +36 -34
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +126 -107
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +107 -95
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list-container.js +116 -104
- package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
- package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +100 -93
- package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +81 -76
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -1
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report-types.js.map +1 -1
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report.js +97 -113
- package/dist/features/timeline/monthly-timeline/ptm-report/ptm-report.js.map +1 -1
- package/dist/features/trial-session/comps/learning-plan/goal-edit-sync.js +40 -0
- package/dist/features/trial-session/comps/learning-plan/goal-edit-sync.js.map +1 -0
- package/dist/features/trial-session/comps/learning-plan/learning-assign-resource-sync.js +55 -0
- package/dist/features/trial-session/comps/learning-plan/learning-assign-resource-sync.js.map +1 -0
- package/dist/features/trial-session/comps/learning-plan/learning-chapter-details.js +48 -0
- package/dist/features/trial-session/comps/learning-plan/learning-chapter-details.js.map +1 -0
- package/dist/features/trial-session/comps/learning-plan/learning-milestone-sync.js +145 -0
- package/dist/features/trial-session/comps/learning-plan/learning-milestone-sync.js.map +1 -0
- package/dist/features/trial-session/comps/learning-plan/learning-plan-helpers.js +30 -0
- package/dist/features/trial-session/comps/learning-plan/learning-plan-helpers.js.map +1 -0
- package/dist/features/trial-session/comps/learning-plan/learning-plan-view.js +17 -0
- package/dist/features/trial-session/comps/learning-plan/learning-plan-view.js.map +1 -0
- package/dist/features/trial-session/comps/learning-plan/learning-plan.js +93 -0
- package/dist/features/trial-session/comps/learning-plan/learning-plan.js.map +1 -0
- package/dist/features/trial-session/comps/learning-plan/learning-preview-worksheet.js +81 -0
- package/dist/features/trial-session/comps/learning-plan/learning-preview-worksheet.js.map +1 -0
- package/dist/features/trial-session/comps/learning-plan/learning-test-creation-sync.js +41 -0
- package/dist/features/trial-session/comps/learning-plan/learning-test-creation-sync.js.map +1 -0
- package/dist/features/trial-session/hooks/use-chapter-details-journey.js +97 -0
- package/dist/features/trial-session/hooks/use-chapter-details-journey.js.map +1 -0
- package/dist/features/trial-session/hooks/use-learning-plan-journey.js +105 -0
- package/dist/features/trial-session/hooks/use-learning-plan-journey.js.map +1 -0
- package/dist/features/trial-session/hooks/use-resource-assignment-journey.js +64 -0
- package/dist/features/trial-session/hooks/use-resource-assignment-journey.js.map +1 -0
- package/dist/features/trial-session/hooks/use-test-creation-journey.js +64 -0
- package/dist/features/trial-session/hooks/use-test-creation-journey.js.map +1 -0
- package/dist/features/trial-session/hooks/use-worksheet-preview-journey.js +65 -0
- package/dist/features/trial-session/hooks/use-worksheet-preview-journey.js.map +1 -0
- package/dist/features/trial-session/right-panel/slide-components-map.js +1 -1
- package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +47 -34
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +43 -42
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +28 -26
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
- package/dist/index.d.ts +42 -4
- package/package.json +1 -1
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/ptm-feedback/ptm-feedback-styled.js +0 -16
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/ptm-feedback/ptm-feedback-styled.js.map +0 -1
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/ptm-feedback/ptm-feedback.js +0 -56
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/ptm-feedback/ptm-feedback.js.map +0 -1
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/sticky-footer/sticky-footer-styled.js +0 -22
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/sticky-footer/sticky-footer-styled.js.map +0 -1
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/sticky-footer/sticky-footer.js +0 -14
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/sticky-footer/sticky-footer.js.map +0 -1
- package/dist/features/trial-session/comps/learning-plan/index.js +0 -355
- package/dist/features/trial-session/comps/learning-plan/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1361,6 +1361,8 @@ declare interface IChapterDetails extends IBlockSectionsCallbacks {
|
|
|
1361
1361
|
canStartChallengeArenaJourney?: boolean;
|
|
1362
1362
|
canStartDownloadNodeJourney?: boolean;
|
|
1363
1363
|
canStartDownloadBlockJourney?: boolean;
|
|
1364
|
+
nodeCardsRef?: React.RefObject<HTMLDivElement>;
|
|
1365
|
+
backButtonRef?: React.RefObject<HTMLDivElement>;
|
|
1364
1366
|
}
|
|
1365
1367
|
|
|
1366
1368
|
declare interface IChapterModel {
|
|
@@ -1429,6 +1431,9 @@ declare interface IChaptersListProps {
|
|
|
1429
1431
|
canUpdatePlan: boolean;
|
|
1430
1432
|
isMilestoneActive: boolean;
|
|
1431
1433
|
isGoalCreation: boolean;
|
|
1434
|
+
firstChapterRef?: RefObject<HTMLDivElement>;
|
|
1435
|
+
canStartJourney?: boolean;
|
|
1436
|
+
startJourney?: () => void;
|
|
1432
1437
|
}
|
|
1433
1438
|
|
|
1434
1439
|
declare interface IChapterStartJourneyProps {
|
|
@@ -1799,6 +1804,9 @@ declare interface IDynamicWorksheetPreview {
|
|
|
1799
1804
|
actionBarRightElement?: ReactElement;
|
|
1800
1805
|
onOpenQuestionFeedbackModal?: (itemRef: string) => void;
|
|
1801
1806
|
userType?: TUserTypes;
|
|
1807
|
+
worksheetBackIconRef?: React.RefObject<HTMLDivElement>;
|
|
1808
|
+
canStartJourney?: boolean;
|
|
1809
|
+
startJourney?: () => void;
|
|
1802
1810
|
}
|
|
1803
1811
|
|
|
1804
1812
|
declare interface IEditMilestoneModalProps extends IMilestoneEditProps {
|
|
@@ -2957,6 +2965,12 @@ declare interface IMilestoneContainerProps extends Omit<IMilestoneWidgetResource
|
|
|
2957
2965
|
onWidgetStateChange?: (milestoneId: string, milestoneState: IMilestoneWidgetState) => void;
|
|
2958
2966
|
isDraftModeEnabled?: boolean;
|
|
2959
2967
|
defaultVisibleTab?: IMilestoneTabsProps['defaultVisibleTab'];
|
|
2968
|
+
editButtonRef?: RefObject<HTMLDivElement>;
|
|
2969
|
+
firstChapterRef?: RefObject<HTMLDivElement>;
|
|
2970
|
+
createTestButtonRef?: RefObject<HTMLDivElement>;
|
|
2971
|
+
assignResourceButtonRef?: RefObject<HTMLDivElement>;
|
|
2972
|
+
canStartJourney?: boolean;
|
|
2973
|
+
startJourney?: () => void;
|
|
2960
2974
|
}
|
|
2961
2975
|
|
|
2962
2976
|
export declare type IMileStoneCreateContainerProps = Omit<IMileStoneCreateProps, 'config' | 'learningConfig' | 'journeyCodesToInclude' | 'flow'>;
|
|
@@ -3108,7 +3122,7 @@ declare interface IMilestoneTabConfig {
|
|
|
3108
3122
|
};
|
|
3109
3123
|
}
|
|
3110
3124
|
|
|
3111
|
-
declare interface IMilestoneTabsProps extends Pick<IChaptersListProps, 'chapters' | 'onAddChapter' | 'onChapterClick' | 'isGoalCreation'>, Pick<IMilestoneWidgetResourcesProps, 'onAssignResources' | 'isDraftMilestone'>, ITestsListProps, INodeCardCallbacks {
|
|
3125
|
+
declare interface IMilestoneTabsProps extends Pick<IChaptersListProps, 'chapters' | 'onAddChapter' | 'onChapterClick' | 'isGoalCreation' | 'firstChapterRef'>, Pick<IMilestoneWidgetResourcesProps, 'onAssignResources' | 'isDraftMilestone' | 'assignResourceButtonRef'>, ITestsListProps, INodeCardCallbacks {
|
|
3112
3126
|
isPlanAvailable: boolean;
|
|
3113
3127
|
isMilestoneActive: boolean;
|
|
3114
3128
|
goalCategory: IMilestoneData['goal_category'];
|
|
@@ -3121,6 +3135,8 @@ declare interface IMilestoneTabsProps extends Pick<IChaptersListProps, 'chapters
|
|
|
3121
3135
|
selectedTabName?: TMilestoneTabName;
|
|
3122
3136
|
isDraftModeEnabled?: boolean;
|
|
3123
3137
|
defaultVisibleTab?: TMilestoneTabName;
|
|
3138
|
+
canStartJourney?: boolean;
|
|
3139
|
+
startJourney?: () => void;
|
|
3124
3140
|
}
|
|
3125
3141
|
|
|
3126
3142
|
declare interface IMilestoneWidgetProps extends Omit<IMilestoneWidgetResourcesProps, 'userMilestoneId' | 'onChangeLocation'>, Omit<ITestsListProps, 'userMilestoneId'> {
|
|
@@ -3147,6 +3163,11 @@ declare interface IMilestoneWidgetProps extends Omit<IMilestoneWidgetResourcesPr
|
|
|
3147
3163
|
courseStream: TCourseStream;
|
|
3148
3164
|
widgetState?: IMilestoneWidgetState;
|
|
3149
3165
|
onWidgetStateChange?: (milestoneId: string, milestoneState: IMilestoneWidgetState) => void;
|
|
3166
|
+
editButtonRef?: RefObject<HTMLDivElement>;
|
|
3167
|
+
firstChapterRef?: RefObject<HTMLDivElement>;
|
|
3168
|
+
createTestButtonRef?: RefObject<HTMLDivElement>;
|
|
3169
|
+
canStartJourney?: boolean;
|
|
3170
|
+
startJourney?: () => void;
|
|
3150
3171
|
defaultVisibleTab?: IMilestoneTabsProps['defaultVisibleTab'];
|
|
3151
3172
|
}
|
|
3152
3173
|
|
|
@@ -3159,6 +3180,9 @@ declare interface IMilestoneWidgetResourcesProps extends INodeCardCallbacks {
|
|
|
3159
3180
|
isDraftMilestone?: boolean;
|
|
3160
3181
|
canUpdatePlan?: boolean;
|
|
3161
3182
|
allowResourceAssignInDraft?: boolean;
|
|
3183
|
+
assignResourceButtonRef?: RefObject<HTMLDivElement>;
|
|
3184
|
+
canStartJourney?: boolean;
|
|
3185
|
+
startJourney?: () => void;
|
|
3162
3186
|
}
|
|
3163
3187
|
|
|
3164
3188
|
declare interface IMilestoneWidgetState {
|
|
@@ -3654,6 +3678,9 @@ declare interface IPreviewWorksheetProps {
|
|
|
3654
3678
|
topOffset?: number;
|
|
3655
3679
|
behaviorOverride?: Partial<IWorksheetBehavior>;
|
|
3656
3680
|
layoutOverride?: Partial<IWorksheetLayout>;
|
|
3681
|
+
worksheetBackIconRef?: RefObject<HTMLDivElement>;
|
|
3682
|
+
canStartJourney?: boolean;
|
|
3683
|
+
startJourney?: () => void;
|
|
3657
3684
|
}
|
|
3658
3685
|
|
|
3659
3686
|
declare interface IProgramOption {
|
|
@@ -3725,8 +3752,6 @@ declare interface IProjects_2 {
|
|
|
3725
3752
|
declare interface IPTMReportProps {
|
|
3726
3753
|
ptmId: string;
|
|
3727
3754
|
onAPIComplete?: (success: boolean) => void;
|
|
3728
|
-
onFeedback?: (feedbackType: 'positive' | 'negative', ptmId: string, teacherName: string) => void;
|
|
3729
|
-
showFeedback?: boolean;
|
|
3730
3755
|
}
|
|
3731
3756
|
|
|
3732
3757
|
declare interface IPublishData {
|
|
@@ -4741,6 +4766,9 @@ declare interface ITestsListProps {
|
|
|
4741
4766
|
type: ECardType;
|
|
4742
4767
|
state: TSheetStates;
|
|
4743
4768
|
}) => void;
|
|
4769
|
+
createTestButtonRef?: RefObject<HTMLDivElement>;
|
|
4770
|
+
canStartJourney?: boolean;
|
|
4771
|
+
startJourney?: () => void;
|
|
4744
4772
|
}
|
|
4745
4773
|
|
|
4746
4774
|
declare interface ITextButtonProps extends IClickableAnalyticsProps {
|
|
@@ -4914,6 +4942,11 @@ export declare interface ITrialSessionFormFields {
|
|
|
4914
4942
|
learningPlanChapterId?: string;
|
|
4915
4943
|
learningPlanActiveMilestoneId?: string;
|
|
4916
4944
|
learningPlanWorksheetData?: ILearningPlanWorksheetData;
|
|
4945
|
+
previewWorksheetJourneyCompleted?: boolean;
|
|
4946
|
+
learningPlanJourneyCompleted?: boolean;
|
|
4947
|
+
learningChapterCompleted?: boolean;
|
|
4948
|
+
testCreationJourneyCompleted?: boolean;
|
|
4949
|
+
resourceAssignmentJourneyCompleted?: boolean;
|
|
4917
4950
|
}
|
|
4918
4951
|
|
|
4919
4952
|
declare interface ITrialSessionMetadata {
|
|
@@ -5587,7 +5620,12 @@ export declare enum JOURNEY_ID_TEACHER {
|
|
|
5587
5620
|
PUZZLE_PROGRESS_JOURNEY = "PUZZLE_PROGRESS_JOURNEY",
|
|
5588
5621
|
PUZZLE_UNASSIGN_JOURNEY = "PUZZLE_UNASSIGN_JOURNEY",
|
|
5589
5622
|
STICKERS_INTRO_JOURNEY = "STICKERS_INTRO_JOURNEY",
|
|
5590
|
-
MATHFIT_TEST_ASSIGNED_JOURNEY = "MATHFIT_TEST_ASSIGNED_JOURNEY1"
|
|
5623
|
+
MATHFIT_TEST_ASSIGNED_JOURNEY = "MATHFIT_TEST_ASSIGNED_JOURNEY1",
|
|
5624
|
+
LEARNING_PLAN_INTRO_JOURNEY = "LEARNING_PLAN_INTRO_JOURNEY",
|
|
5625
|
+
CHAPTER_DETAILS_INTRO_JOURNEY = "CHAPTER_DETAILS_INTRO_JOURNEY",
|
|
5626
|
+
WORKSHEET_PREVIEW_INTRO_JOURNEY = "WORKSHEET_PREVIEW_INTRO_JOURNEY",
|
|
5627
|
+
TEST_CREATION_INTRO_JOURNEY = "TEST_CREATION_INTRO_JOURNEY",
|
|
5628
|
+
RESOURCE_ASSIGNMENT_INTRO_JOURNEY = "RESOURCE_ASSIGNMENT_INTRO_JOURNEY"
|
|
5591
5629
|
}
|
|
5592
5630
|
|
|
5593
5631
|
export declare const JourneyProvider: FC<IJourneyProviderProps>;
|
package/package.json
CHANGED
package/dist/features/timeline/monthly-timeline/ptm-report/comps/ptm-feedback/ptm-feedback-styled.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import o from "styled-components";
|
|
2
|
-
import t from "../../../../../ui/layout/flex-view.js";
|
|
3
|
-
const p = o(t)`
|
|
4
|
-
width: 100%;
|
|
5
|
-
`, d = o(t)`
|
|
6
|
-
${({ theme: r }) => `
|
|
7
|
-
width: 64px;
|
|
8
|
-
height: 64px;
|
|
9
|
-
border: 1px solid ${r.colors.BLACK_1};
|
|
10
|
-
`}
|
|
11
|
-
`;
|
|
12
|
-
export {
|
|
13
|
-
p as Container,
|
|
14
|
-
d as ThumbButton
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=ptm-feedback-styled.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ptm-feedback-styled.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/ptm-feedback/ptm-feedback-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n width: 100%;\n`;\n\nexport const ThumbButton = styled(FlexView)<{ selected?: boolean }>`\n ${({ theme }: { theme: any }) => `\n width: 64px;\n height: 64px;\n border: 1px solid ${theme.colors.BLACK_1};\n`}\n`;\n"],"names":["Container","styled","FlexView","ThumbButton","theme"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,GAI3BC,IAAcF,EAAOC,CAAQ;AAAA,IACtC,CAAC,EAAE,OAAAE,EAAA,MAA4B;AAAA;AAAA;AAAA,sBAGbA,EAAM,OAAO,OAAO;AAAA,CACzC;AAAA;"}
|
package/dist/features/timeline/monthly-timeline/ptm-report/comps/ptm-feedback/ptm-feedback.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as d, useCallback as i } from "react";
|
|
3
|
-
import { ILLUSTRATIONS as o } from "../../../../../../assets/illustrations/illustrations.js";
|
|
4
|
-
import n from "../../../../../ui/layout/flex-view.js";
|
|
5
|
-
import h from "../../../../../ui/image/image.js";
|
|
6
|
-
import a from "../../../../../ui/separator/separator.js";
|
|
7
|
-
import $ from "../../../../../ui/text/text.js";
|
|
8
|
-
import { Container as u, ThumbButton as c } from "./ptm-feedback-styled.js";
|
|
9
|
-
const I = d(function({ studentName: l, onFeedback: t }) {
|
|
10
|
-
const m = i(() => {
|
|
11
|
-
t("positive");
|
|
12
|
-
}, [t]), s = i(() => {
|
|
13
|
-
t("negative");
|
|
14
|
-
}, [t]);
|
|
15
|
-
return /* @__PURE__ */ r(u, { $gapX: 1.25, $background: "WHITE_1", $gutterX: 2, children: [
|
|
16
|
-
/* @__PURE__ */ e(n, { $gutterX: 1, children: /* @__PURE__ */ r($, { $renderAs: "ab2-black", $color: "BLACK_1", $align: "center", children: [
|
|
17
|
-
"Are you happy with ",
|
|
18
|
-
l,
|
|
19
|
-
"'s PTM?"
|
|
20
|
-
] }) }),
|
|
21
|
-
/* @__PURE__ */ e(a, { heightX: 1.5 }),
|
|
22
|
-
/* @__PURE__ */ r(n, { $flexDirection: "row", $flexGapX: 3, $alignItems: "center", $justifyContent: "center", children: [
|
|
23
|
-
/* @__PURE__ */ e(
|
|
24
|
-
c,
|
|
25
|
-
{
|
|
26
|
-
$widthX: 5,
|
|
27
|
-
$heightX: 5,
|
|
28
|
-
$alignItems: "center",
|
|
29
|
-
$justifyContent: "center",
|
|
30
|
-
$borderRadiusX: 2.5,
|
|
31
|
-
$borderColor: "BLACK_1",
|
|
32
|
-
onClick: m,
|
|
33
|
-
children: /* @__PURE__ */ e(h, { src: o.THUMPS_UP, alt: "Thumbs up", width: 32, height: 32 })
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ e(
|
|
37
|
-
c,
|
|
38
|
-
{
|
|
39
|
-
$widthX: 5,
|
|
40
|
-
$heightX: 5,
|
|
41
|
-
$alignItems: "center",
|
|
42
|
-
$justifyContent: "center",
|
|
43
|
-
$borderColor: "BLACK_1",
|
|
44
|
-
$borderRadiusX: 2.5,
|
|
45
|
-
onClick: s,
|
|
46
|
-
children: /* @__PURE__ */ e(h, { src: o.THUMPS_DOWN, alt: "Thumbs down", width: 32, height: 32 })
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
] }),
|
|
50
|
-
/* @__PURE__ */ e(a, { heightX: 1.5 })
|
|
51
|
-
] });
|
|
52
|
-
});
|
|
53
|
-
export {
|
|
54
|
-
I as default
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=ptm-feedback.js.map
|
package/dist/features/timeline/monthly-timeline/ptm-report/comps/ptm-feedback/ptm-feedback.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ptm-feedback.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/ptm-feedback/ptm-feedback.tsx"],"sourcesContent":["import { memo, useCallback, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../../../assets/illustrations/illustrations';\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport Image from '../../../../../ui/image/image';\nimport Separator from '../../../../../ui/separator/separator';\nimport Text from '../../../../../ui/text/text';\nimport type { IPTMFeedbackProps } from './ptm-feedback-types';\nimport * as Styled from './ptm-feedback-styled';\n\nconst PTMFeedback: FC<IPTMFeedbackProps> = memo(function PTMFeedback({ studentName, onFeedback }) {\n const handlePositiveFeedback = useCallback(() => {\n onFeedback('positive');\n }, [onFeedback]);\n\n const handleNegativeFeedback = useCallback(() => {\n onFeedback('negative');\n }, [onFeedback]);\n\n return (\n <Styled.Container $gapX={1.25} $background=\"WHITE_1\" $gutterX={2}>\n <FlexView $gutterX={1}>\n <Text $renderAs=\"ab2-black\" $color=\"BLACK_1\" $align=\"center\">\n Are you happy with {studentName}'s PTM?\n </Text>\n </FlexView>\n <Separator heightX={1.5} />\n <FlexView $flexDirection=\"row\" $flexGapX={3} $alignItems=\"center\" $justifyContent=\"center\">\n <Styled.ThumbButton\n $widthX={5}\n $heightX={5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $borderRadiusX={2.5}\n $borderColor=\"BLACK_1\"\n onClick={handlePositiveFeedback}\n >\n <Image src={ILLUSTRATIONS.THUMPS_UP} alt=\"Thumbs up\" width={32} height={32} />\n </Styled.ThumbButton>\n <Styled.ThumbButton\n $widthX={5}\n $heightX={5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $borderColor=\"BLACK_1\"\n $borderRadiusX={2.5}\n onClick={handleNegativeFeedback}\n >\n <Image src={ILLUSTRATIONS.THUMPS_DOWN} alt=\"Thumbs down\" width={32} height={32} />\n </Styled.ThumbButton>\n </FlexView>\n <Separator heightX={1.5} />\n </Styled.Container>\n );\n});\n\nexport default PTMFeedback;\n"],"names":["PTMFeedback","memo","studentName","onFeedback","handlePositiveFeedback","useCallback","handleNegativeFeedback","jsxs","Styled.Container","jsx","FlexView","Text","Separator","Styled.ThumbButton","Image","ILLUSTRATIONS"],"mappings":";;;;;;;;AAUA,MAAMA,IAAqCC,EAAK,SAAqB,EAAE,aAAAC,GAAa,YAAAC,KAAc;AAC1F,QAAAC,IAAyBC,EAAY,MAAM;AAC/C,IAAAF,EAAW,UAAU;AAAA,EAAA,GACpB,CAACA,CAAU,CAAC,GAETG,IAAyBD,EAAY,MAAM;AAC/C,IAAAF,EAAW,UAAU;AAAA,EAAA,GACpB,CAACA,CAAU,CAAC;AAGb,SAAA,gBAAAI,EAACC,GAAA,EAAiB,OAAO,MAAM,aAAY,WAAU,UAAU,GAC7D,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAS,UAAU,GAClB,UAAC,gBAAAH,EAAAI,GAAA,EAAK,WAAU,aAAY,QAAO,WAAU,QAAO,UAAS,UAAA;AAAA,MAAA;AAAA,MACvCT;AAAA,MAAY;AAAA,IAAA,EAAA,CAClC,EACF,CAAA;AAAA,IACA,gBAAAO,EAACG,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,IACzB,gBAAAL,EAACG,KAAS,gBAAe,OAAM,WAAW,GAAG,aAAY,UAAS,iBAAgB,UAChF,UAAA;AAAA,MAAA,gBAAAD;AAAA,QAACI;AAAAA,QAAA;AAAA,UACC,SAAS;AAAA,UACT,UAAU;AAAA,UACV,aAAY;AAAA,UACZ,iBAAgB;AAAA,UAChB,gBAAgB;AAAA,UAChB,cAAa;AAAA,UACb,SAAST;AAAA,UAET,UAAA,gBAAAK,EAACK,GAAM,EAAA,KAAKC,EAAc,WAAW,KAAI,aAAY,OAAO,IAAI,QAAQ,GAAI,CAAA;AAAA,QAAA;AAAA,MAC9E;AAAA,MACA,gBAAAN;AAAA,QAACI;AAAAA,QAAA;AAAA,UACC,SAAS;AAAA,UACT,UAAU;AAAA,UACV,aAAY;AAAA,UACZ,iBAAgB;AAAA,UAChB,cAAa;AAAA,UACb,gBAAgB;AAAA,UAChB,SAASP;AAAA,UAET,UAAA,gBAAAG,EAACK,GAAM,EAAA,KAAKC,EAAc,aAAa,KAAI,eAAc,OAAO,IAAI,QAAQ,GAAI,CAAA;AAAA,QAAA;AAAA,MAClF;AAAA,IAAA,GACF;AAAA,IACA,gBAAAN,EAACG,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,EAC3B,EAAA,CAAA;AAEJ,CAAC;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import t from "styled-components";
|
|
2
|
-
import r from "../../../../../ui/layout/flex-view.js";
|
|
3
|
-
const x = t(r)(
|
|
4
|
-
({ theme: o }) => `
|
|
5
|
-
position: fixed;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
width: 100%;
|
|
8
|
-
background-color: ${o.colors.WHITE_3};
|
|
9
|
-
border: 1px solid ${o.colors.BLACK_5};
|
|
10
|
-
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
|
|
11
|
-
z-index: 100;
|
|
12
|
-
max-width: 480px;
|
|
13
|
-
`
|
|
14
|
-
), p = t(r)`
|
|
15
|
-
width: 100%;
|
|
16
|
-
max-width: 100%;
|
|
17
|
-
`;
|
|
18
|
-
export {
|
|
19
|
-
p as ContentWrapper,
|
|
20
|
-
x as StickyContainer
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=sticky-footer-styled.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sticky-footer-styled.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/sticky-footer/sticky-footer-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\n\nexport const StickyContainer = styled(FlexView)(\n ({ theme }) => `\n position: fixed;\n bottom: 0;\n width: 100%;\n background-color: ${theme.colors.WHITE_3};\n border: 1px solid ${theme.colors.BLACK_5};\n box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);\n z-index: 100;\n max-width: 480px;\n `,\n);\n\nexport const ContentWrapper = styled(FlexView)`\n width: 100%;\n max-width: 100%;\n`;\n"],"names":["StickyContainer","styled","FlexView","theme","ContentWrapper"],"mappings":";;AAIa,MAAAA,IAAkBC,EAAOC,CAAQ;AAAA,EAC5C,CAAC,EAAE,OAAAC,EAAA,MAAY;AAAA;AAAA;AAAA;AAAA,wBAIOA,EAAM,OAAO,OAAO;AAAA,wBACpBA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAK5C,GAEaC,IAAiBH,EAAOC,CAAQ;AAAA;AAAA;AAAA;"}
|
package/dist/features/timeline/monthly-timeline/ptm-report/comps/sticky-footer/sticky-footer.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { memo as e } from "react";
|
|
3
|
-
import i from "../ptm-feedback/ptm-feedback.js";
|
|
4
|
-
import { StickyContainer as m, ContentWrapper as n } from "./sticky-footer-styled.js";
|
|
5
|
-
const k = e(function({
|
|
6
|
-
studentName: r,
|
|
7
|
-
onFeedback: t
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(n, { children: /* @__PURE__ */ o(i, { studentName: r, onFeedback: t }) }) });
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
k as default
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=sticky-footer.js.map
|
package/dist/features/timeline/monthly-timeline/ptm-report/comps/sticky-footer/sticky-footer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sticky-footer.js","sources":["../../../../../../../src/features/timeline/monthly-timeline/ptm-report/comps/sticky-footer/sticky-footer.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport PTMFeedback from '../ptm-feedback/ptm-feedback';\nimport type { IStickyFooterProps } from './sticky-footer-types';\nimport * as Styled from './sticky-footer-styled';\n\nconst StickyFooter: FC<IStickyFooterProps> = memo(function StickyFooter({\n studentName,\n onFeedback,\n}) {\n return (\n <Styled.StickyContainer>\n <Styled.ContentWrapper>\n <PTMFeedback studentName={studentName} onFeedback={onFeedback} />\n </Styled.ContentWrapper>\n </Styled.StickyContainer>\n );\n});\n\nexport default StickyFooter;\n"],"names":["StickyFooter","memo","studentName","onFeedback","jsx","Styled.StickyContainer","Styled.ContentWrapper","PTMFeedback"],"mappings":";;;;AAMM,MAAAA,IAAuCC,EAAK,SAAsB;AAAA,EACtE,aAAAC;AAAA,EACA,YAAAC;AACF,GAAG;AACD,SACG,gBAAAC,EAAAC,GAAA,EACC,UAAC,gBAAAD,EAAAE,GAAA,EACC,UAAC,gBAAAF,EAAAG,GAAA,EAAY,aAAAL,GAA0B,YAAAC,EAAA,CAAwB,GACjE,EACF,CAAA;AAEJ,CAAC;"}
|
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as ce, useMemo as w, useCallback as s, useEffect as q } from "react";
|
|
3
|
-
import { ErrorBoundary as de } from "react-error-boundary";
|
|
4
|
-
import ue from "../../../chapters-v2/chapter-details/chapter-details.js";
|
|
5
|
-
import me from "../../../milestone/edit/goal-draft-edit-sync.js";
|
|
6
|
-
import Ee from "../../../milestone/milestone-list-container/milestone-list-sync.js";
|
|
7
|
-
import _e from "../../../milestone/milestone-resources/resources-assign/resource-assign-sync.js";
|
|
8
|
-
import pe from "../../../milestone/milestone-tests/tests-creation/tests-creation-sync.js";
|
|
9
|
-
import Te from "../../../worksheet/worksheet-preview/worksheet-preview.js";
|
|
10
|
-
import { useTrialSessionContext as Pe } from "../../context/use-trial-session-context.js";
|
|
11
|
-
import { isPLASource as ge } from "../../helper.js";
|
|
12
|
-
import { useLearningPlanScrollSync as fe } from "../../hooks/use-learning-plan-scroll-sync.js";
|
|
13
|
-
import { ELearningPlanView as r } from "../../trial-session-types.js";
|
|
14
|
-
import { TrialPageId as J } from "../../trial-session-constants.js";
|
|
15
|
-
import { Container as he, Wrapper as Ie } from "./learning-plan-styled.js";
|
|
16
|
-
import ye from "../../../ui/error/error.js";
|
|
17
|
-
import { useUIContext as Ae } from "../../../ui/context/context.js";
|
|
18
|
-
import { NODE_TYPE as b } from "../../../sheets/constants/sheet.js";
|
|
19
|
-
import { checkIfPPTNodeType as Re } from "../../../chapters/lpar-chapter/utils/index.js";
|
|
20
|
-
import ve from "../../../worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js";
|
|
21
|
-
import { useGetAllMilestonesdata as Se } from "../../../milestone/milestone-list-container/api/get-milestones.js";
|
|
22
|
-
const Je = () => {
|
|
23
|
-
const {
|
|
24
|
-
trialHomeData: z,
|
|
25
|
-
studentId: c,
|
|
26
|
-
formData: _,
|
|
27
|
-
isTeacher: n,
|
|
28
|
-
updateSlideConfig: t,
|
|
29
|
-
slideConfig: g,
|
|
30
|
-
onRemoveOptionalSlides: y
|
|
31
|
-
} = Pe(), { onEvent: A } = Ae(), {
|
|
32
|
-
demo_info: { student_classroom_id: p, stream: h, region_data: Q },
|
|
33
|
-
intel_student: D,
|
|
34
|
-
student: X
|
|
35
|
-
} = z || {}, { opportunity_country: L = "US" } = Q || {}, { enrollment_type: W } = X || {}, {
|
|
36
|
-
name: R = "",
|
|
37
|
-
grade: M = "",
|
|
38
|
-
learningPlanView: d,
|
|
39
|
-
learningPlanChapterId: T,
|
|
40
|
-
learningPlanActiveMilestoneId: i
|
|
41
|
-
} = _ || {}, H = ce(null), O = ge(D == null ? void 0 : D.source), u = n ? "TEACHER" : "STUDENT", { resetScrollPosition: m, closeScrollChannel: $ } = fe({
|
|
42
|
-
studentClassroomId: p,
|
|
43
|
-
containerRef: H,
|
|
44
|
-
isTeacher: n
|
|
45
|
-
}), Z = w(
|
|
46
|
-
() => ({
|
|
47
|
-
milestone_state_group: "DRAFT",
|
|
48
|
-
course_stream: "MATH",
|
|
49
|
-
student_id: c
|
|
50
|
-
}),
|
|
51
|
-
[c]
|
|
52
|
-
), { data: v, isProcessed: x } = Se(Z), U = s(
|
|
53
|
-
(e) => {
|
|
54
|
-
n && t({
|
|
55
|
-
learningPlanView: r.VIEW_CHAPTER_DETAILS,
|
|
56
|
-
learningPlanChapterId: e.id
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
[n, t]
|
|
60
|
-
), G = s(
|
|
61
|
-
(e) => {
|
|
62
|
-
n && t({
|
|
63
|
-
learningPlanView: r.ADD_RESOURCE,
|
|
64
|
-
learningPlanActiveMilestoneId: e
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
[n, t]
|
|
68
|
-
), F = s(
|
|
69
|
-
(e) => {
|
|
70
|
-
n && t({
|
|
71
|
-
learningPlanView: r.ADD_TEST,
|
|
72
|
-
learningPlanActiveMilestoneId: e
|
|
73
|
-
});
|
|
74
|
-
},
|
|
75
|
-
[n, t]
|
|
76
|
-
), B = s(
|
|
77
|
-
(e) => {
|
|
78
|
-
n && t({
|
|
79
|
-
learningPlanView: r.EDIT_MILESTONE,
|
|
80
|
-
learningPlanActiveMilestoneId: e.milestoneId
|
|
81
|
-
});
|
|
82
|
-
},
|
|
83
|
-
[n, t]
|
|
84
|
-
), K = s(() => {
|
|
85
|
-
n && (t({
|
|
86
|
-
learningPlanView: void 0,
|
|
87
|
-
learningPlanChapterId: void 0,
|
|
88
|
-
learningPlanWorksheetData: void 0
|
|
89
|
-
}), m());
|
|
90
|
-
}, [n, t, m]), N = s(() => {
|
|
91
|
-
if (!n) return;
|
|
92
|
-
const e = i ? r.ADD_RESOURCE : void 0;
|
|
93
|
-
t({
|
|
94
|
-
learningPlanView: T ? r.VIEW_CHAPTER_DETAILS : e,
|
|
95
|
-
learningPlanWorksheetData: void 0
|
|
96
|
-
}), m();
|
|
97
|
-
}, [
|
|
98
|
-
n,
|
|
99
|
-
i,
|
|
100
|
-
t,
|
|
101
|
-
T,
|
|
102
|
-
m
|
|
103
|
-
]), P = s(() => {
|
|
104
|
-
n && (t({
|
|
105
|
-
learningPlanView: void 0,
|
|
106
|
-
learningPlanActiveMilestoneId: void 0
|
|
107
|
-
}), m());
|
|
108
|
-
}, [n, t, m]);
|
|
109
|
-
q(() => () => {
|
|
110
|
-
$();
|
|
111
|
-
}, [$]), q(() => {
|
|
112
|
-
if (x && v && n) {
|
|
113
|
-
const e = v.some((E) => {
|
|
114
|
-
var o;
|
|
115
|
-
const a = ((o = E.permissions) == null ? void 0 : o.visible_tabs) || [];
|
|
116
|
-
return a.length === 0 || a.includes("TESTS");
|
|
117
|
-
}), f = v.some((E) => {
|
|
118
|
-
var o;
|
|
119
|
-
const a = ((o = E.permissions) == null ? void 0 : o.visible_tabs) || [];
|
|
120
|
-
return a.length === 0 || a.includes("RESOURCES");
|
|
121
|
-
});
|
|
122
|
-
y == null || y({
|
|
123
|
-
hasTestsTab: e,
|
|
124
|
-
hasResourcesTab: f
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}, [x, v, n, y]);
|
|
128
|
-
const I = w(
|
|
129
|
-
() => _ == null ? void 0 : _.learningPlanWorksheetData,
|
|
130
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
131
|
-
[JSON.stringify(_ == null ? void 0 : _.learningPlanWorksheetData)]
|
|
132
|
-
), k = s(
|
|
133
|
-
(e) => {
|
|
134
|
-
A("LEARNING_PLAN_SLIDE_ERROR", { message: e });
|
|
135
|
-
},
|
|
136
|
-
[A]
|
|
137
|
-
), S = s(
|
|
138
|
-
(e) => {
|
|
139
|
-
if (!n || !e) return;
|
|
140
|
-
const {
|
|
141
|
-
title: f,
|
|
142
|
-
activity_type: E,
|
|
143
|
-
items: a,
|
|
144
|
-
node_type: o,
|
|
145
|
-
learnosity_activity_ref: V,
|
|
146
|
-
is_turing: C,
|
|
147
|
-
image_hue: te,
|
|
148
|
-
user_node_id: ie
|
|
149
|
-
} = e, re = (a == null ? void 0 : a.map((le) => le.ref)) || [], oe = o === b.HIDDEN_BASIC, se = o === b.PDF, ae = Re(o);
|
|
150
|
-
C || ae || se || oe || t({
|
|
151
|
-
learningPlanView: r.VIEW_WORKSHEET,
|
|
152
|
-
learningPlanWorksheetData: {
|
|
153
|
-
itemRefs: re,
|
|
154
|
-
activityReference: V,
|
|
155
|
-
nodeType: o,
|
|
156
|
-
worksheetName: f,
|
|
157
|
-
activityType: E,
|
|
158
|
-
imageHue: te,
|
|
159
|
-
userNodeId: ie
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
},
|
|
163
|
-
[n, t]
|
|
164
|
-
), ee = s(() => {
|
|
165
|
-
A("TRIAL_V3_LEARNING_PLAN_SLIDE_APP_CRASHED", {
|
|
166
|
-
learning_plan_view: d,
|
|
167
|
-
learning_plan_chapter_id: T,
|
|
168
|
-
learning_plan_active_milestone_id: i,
|
|
169
|
-
learning_plan_worksheet_data: I
|
|
170
|
-
}), t({
|
|
171
|
-
learningPlanView: void 0,
|
|
172
|
-
learningPlanChapterId: void 0,
|
|
173
|
-
learningPlanActiveMilestoneId: void 0,
|
|
174
|
-
learningPlanWorksheetData: void 0
|
|
175
|
-
}), m();
|
|
176
|
-
}, [
|
|
177
|
-
A,
|
|
178
|
-
d,
|
|
179
|
-
T,
|
|
180
|
-
i,
|
|
181
|
-
I,
|
|
182
|
-
t,
|
|
183
|
-
m
|
|
184
|
-
]), Y = s(
|
|
185
|
-
(e) => {
|
|
186
|
-
!n || !e.learnosity_activity_ref || t({
|
|
187
|
-
learningPlanView: r.VIEW_WORKSHEET,
|
|
188
|
-
learningPlanWorksheetData: {
|
|
189
|
-
itemRefs: [],
|
|
190
|
-
activityReference: e.learnosity_activity_ref,
|
|
191
|
-
nodeType: e.node_type,
|
|
192
|
-
worksheetName: e.name,
|
|
193
|
-
activityType: e.activity_type
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
},
|
|
197
|
-
[n, t]
|
|
198
|
-
), j = w(() => {
|
|
199
|
-
const e = g == null ? void 0 : g.id;
|
|
200
|
-
return e === J.LEARNING_PLAN_TESTS ? "tests" : e === J.LEARNING_PLAN_RESOURCES ? "resources" : "chapters";
|
|
201
|
-
}, [g == null ? void 0 : g.id]), ne = s(() => {
|
|
202
|
-
if (d === r.VIEW_WORKSHEET && I) {
|
|
203
|
-
const {
|
|
204
|
-
itemRefs: e,
|
|
205
|
-
activityReference: f,
|
|
206
|
-
nodeType: E,
|
|
207
|
-
worksheetName: a,
|
|
208
|
-
activityType: o,
|
|
209
|
-
imageHue: V,
|
|
210
|
-
userNodeId: C
|
|
211
|
-
} = I;
|
|
212
|
-
return (!f || E === b.DYNAMIC) && C ? /* @__PURE__ */ l(
|
|
213
|
-
ve,
|
|
214
|
-
{
|
|
215
|
-
userNodeId: C,
|
|
216
|
-
studentId: c,
|
|
217
|
-
studentName: R,
|
|
218
|
-
onBackIconClick: N,
|
|
219
|
-
userType: u
|
|
220
|
-
}
|
|
221
|
-
) : /* @__PURE__ */ l(
|
|
222
|
-
Te,
|
|
223
|
-
{
|
|
224
|
-
activityReference: f,
|
|
225
|
-
mode: "preview",
|
|
226
|
-
nodeType: E,
|
|
227
|
-
activityType: o,
|
|
228
|
-
userType: u,
|
|
229
|
-
studentId: c ?? "student-id",
|
|
230
|
-
worksheetName: a,
|
|
231
|
-
onBackIconClick: N,
|
|
232
|
-
items: e,
|
|
233
|
-
behaviorOverride: { navigationMode: "OPEN" },
|
|
234
|
-
layoutOverride: { containerWidth: "100%" },
|
|
235
|
-
imageHue: V ?? void 0
|
|
236
|
-
}
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
return d === r.VIEW_CHAPTER_DETAILS && T ? /* @__PURE__ */ l(
|
|
240
|
-
ue,
|
|
241
|
-
{
|
|
242
|
-
userChapterId: T,
|
|
243
|
-
studentId: c,
|
|
244
|
-
userType: u,
|
|
245
|
-
onExit: K,
|
|
246
|
-
onNodeView: S
|
|
247
|
-
}
|
|
248
|
-
) : d === r.ADD_RESOURCE && i ? /* @__PURE__ */ l(
|
|
249
|
-
_e,
|
|
250
|
-
{
|
|
251
|
-
channelId: `a-r-s-${p}-${i}`,
|
|
252
|
-
stream: h,
|
|
253
|
-
studentId: c,
|
|
254
|
-
userMilestoneId: i,
|
|
255
|
-
userType: u,
|
|
256
|
-
onResourceAssign: P,
|
|
257
|
-
onExitResourceAssign: P,
|
|
258
|
-
onViewResource: Y,
|
|
259
|
-
onError: k
|
|
260
|
-
}
|
|
261
|
-
) : d === r.ADD_TEST && i ? /* @__PURE__ */ l(
|
|
262
|
-
pe,
|
|
263
|
-
{
|
|
264
|
-
channelId: `a-t-s-${p}-${i}`,
|
|
265
|
-
courseStream: h,
|
|
266
|
-
milestoneId: i,
|
|
267
|
-
studentId: c,
|
|
268
|
-
testNumber: 1,
|
|
269
|
-
userType: u,
|
|
270
|
-
onTestAssign: P,
|
|
271
|
-
onExit: P,
|
|
272
|
-
onError: k,
|
|
273
|
-
useAbsoluteFooter: !0
|
|
274
|
-
}
|
|
275
|
-
) : d === r.EDIT_MILESTONE && i ? /* @__PURE__ */ l(
|
|
276
|
-
me,
|
|
277
|
-
{
|
|
278
|
-
channelId: `e-m-s-${p}-${i}`,
|
|
279
|
-
studentId: c,
|
|
280
|
-
height: "100%",
|
|
281
|
-
grade: M || "",
|
|
282
|
-
currentCountryCode: L,
|
|
283
|
-
studentName: R,
|
|
284
|
-
onExit: P,
|
|
285
|
-
onPreSubmit: P,
|
|
286
|
-
userType: u,
|
|
287
|
-
milestoneId: i,
|
|
288
|
-
isGoalCreation: !1,
|
|
289
|
-
courseStream: h,
|
|
290
|
-
classRatio: 1,
|
|
291
|
-
enrollmentType: W,
|
|
292
|
-
useAbsoluteFooter: !0,
|
|
293
|
-
disablePublish: !0
|
|
294
|
-
}
|
|
295
|
-
) : /* @__PURE__ */ l(
|
|
296
|
-
Ee,
|
|
297
|
-
{
|
|
298
|
-
channelId: `milestone-list-sync-${p}`,
|
|
299
|
-
userType: u,
|
|
300
|
-
studentName: R,
|
|
301
|
-
studentId: c,
|
|
302
|
-
studentClassroomId: p,
|
|
303
|
-
milestoneType: O ? "ACTIVE" : "DRAFT",
|
|
304
|
-
onChapterClick: U,
|
|
305
|
-
onAssignResources: G,
|
|
306
|
-
onCreateMilestoneTest: F,
|
|
307
|
-
onEdit: B,
|
|
308
|
-
courseStream: h,
|
|
309
|
-
onNodeView: S,
|
|
310
|
-
onTestPreview: S,
|
|
311
|
-
isDraftModeEnabled: !0,
|
|
312
|
-
defaultVisibleTab: j
|
|
313
|
-
}
|
|
314
|
-
);
|
|
315
|
-
}, [
|
|
316
|
-
d,
|
|
317
|
-
I,
|
|
318
|
-
T,
|
|
319
|
-
i,
|
|
320
|
-
p,
|
|
321
|
-
u,
|
|
322
|
-
R,
|
|
323
|
-
c,
|
|
324
|
-
O,
|
|
325
|
-
U,
|
|
326
|
-
G,
|
|
327
|
-
F,
|
|
328
|
-
B,
|
|
329
|
-
h,
|
|
330
|
-
S,
|
|
331
|
-
N,
|
|
332
|
-
K,
|
|
333
|
-
P,
|
|
334
|
-
Y,
|
|
335
|
-
k,
|
|
336
|
-
M,
|
|
337
|
-
L,
|
|
338
|
-
W,
|
|
339
|
-
j
|
|
340
|
-
]);
|
|
341
|
-
return /* @__PURE__ */ l(he, { ref: H, $isScrollable: n, children: /* @__PURE__ */ l(
|
|
342
|
-
Ie,
|
|
343
|
-
{
|
|
344
|
-
$clickable: n,
|
|
345
|
-
$isScrollable: n,
|
|
346
|
-
id: "milestone-list-element-container",
|
|
347
|
-
$height: "100%",
|
|
348
|
-
children: /* @__PURE__ */ l(de, { fallback: /* @__PURE__ */ l(ye, { onTryAgain: ee }), children: ne() })
|
|
349
|
-
}
|
|
350
|
-
) });
|
|
351
|
-
};
|
|
352
|
-
export {
|
|
353
|
-
Je as default
|
|
354
|
-
};
|
|
355
|
-
//# sourceMappingURL=index.js.map
|