@cuemath/leap 3.5.69-as1 → 3.5.69-as3
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/analytics-events/platform-events-student.js +1 -1
- package/dist/features/analytics-events/platform-events-student.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/node-card-types.js.map +1 -1
- package/dist/features/chapters-v2/constants/node-constants.js +5 -4
- package/dist/features/chapters-v2/constants/node-constants.js.map +1 -1
- package/dist/features/cue-canvas/bottombar/homework-controls.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/sidebar.js +4 -4
- package/dist/features/cue-canvas/sidebar/sidebar.js.map +1 -1
- package/dist/features/cue-canvas/toolbar/toolbar.js +21 -17
- package/dist/features/cue-canvas/toolbar/toolbar.js.map +1 -1
- package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js +23 -13
- package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js.map +1 -1
- package/dist/features/homework/homework-card.js +168 -161
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +96 -95
- package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
- package/dist/features/homework/utils.js +65 -41
- package/dist/features/homework/utils.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +10 -5
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js +2 -1
- package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js.map +1 -1
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-helpers.js +35 -26
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-helpers.js.map +1 -1
- package/dist/features/math-fit/math-fit-overview/math-fit-overview.js +70 -49
- package/dist/features/math-fit/math-fit-overview/math-fit-overview.js.map +1 -1
- package/dist/features/math-fit/math-fit-report/comps/report-header/report-header.js +4 -4
- package/dist/features/math-fit/math-fit-report/comps/report-header/report-header.js.map +1 -1
- package/dist/features/math-fit/math-fit-report/math-fit-report.js +40 -31
- package/dist/features/math-fit/math-fit-report/math-fit-report.js.map +1 -1
- package/dist/features/math-fit/mathfit-events.js +7 -0
- package/dist/features/math-fit/mathfit-events.js.map +1 -0
- package/dist/features/milestone/create/api/milestone-config.js.map +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +40 -36
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -1
- package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js.map +1 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +1 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +1 -1
- package/dist/features/sheet-v2/resource-list/resource-list.js +39 -35
- package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -1
- package/dist/features/trial-session/api/trial-home.js +10 -16
- package/dist/features/trial-session/api/trial-home.js.map +1 -1
- package/dist/features/trial-session/api/trial-session-report.js +16 -0
- package/dist/features/trial-session/api/trial-session-report.js.map +1 -0
- package/dist/features/trial-session/api/trial-topics.js +9 -0
- package/dist/features/trial-session/api/trial-topics.js.map +1 -0
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +62 -50
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
- package/dist/features/trial-session/comps/class-preference/class-preference-styled.js +5 -14
- package/dist/features/trial-session/comps/class-preference/class-preference-styled.js.map +1 -1
- package/dist/features/trial-session/comps/class-preference/class-preference.js +55 -53
- package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
- package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js +3 -2
- package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js.map +1 -1
- package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js +27 -26
- package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js.map +1 -1
- package/dist/features/trial-session/comps/learning-session/learning-session-styled.js +19 -18
- package/dist/features/trial-session/comps/learning-session/learning-session-styled.js.map +1 -1
- package/dist/features/trial-session/comps/learning-session/learning-session.js +34 -43
- package/dist/features/trial-session/comps/learning-session/learning-session.js.map +1 -1
- package/dist/features/trial-session/comps/navigation-bar/index.js +56 -58
- package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +29 -6
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
- package/dist/features/trial-session/comps/offering-information/offering-information.js +74 -64
- package/dist/features/trial-session/comps/offering-information/offering-information.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js +10 -9
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js +40 -39
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals.js +39 -37
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/session-insights/session-insights-styled.js +12 -20
- package/dist/features/trial-session/comps/session-insights/session-insights-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-insights/session-insights.js +64 -63
- package/dist/features/trial-session/comps/session-insights/session-insights.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview-styled.js +13 -13
- package/dist/features/trial-session/comps/session-overview/session-overview-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview-utils.js +23 -4
- package/dist/features/trial-session/comps/session-overview/session-overview-utils.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview.js +20 -20
- package/dist/features/trial-session/comps/session-overview/session-overview.js.map +1 -1
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js +64 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js.map +1 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js +5 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js.map +1 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js +135 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js.map +1 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js +53 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js +15 -16
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/session-report.js +35 -33
- package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js +9 -16
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +39 -37
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
- package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js +10 -9
- package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-info/student-info-constants.js +35 -0
- package/dist/features/trial-session/comps/student-info/student-info-constants.js.map +1 -0
- package/dist/features/trial-session/comps/student-info/student-info-helpers.js +12 -0
- package/dist/features/trial-session/comps/student-info/student-info-helpers.js.map +1 -0
- package/dist/features/trial-session/comps/student-info/student-info-styled.js +26 -11
- package/dist/features/trial-session/comps/student-info/student-info-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-info/student-info.js +121 -75
- package/dist/features/trial-session/comps/student-info/student-info.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +3 -12
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js +34 -33
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/student-profile.js +45 -44
- package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +9 -8
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep-styled.js +11 -19
- package/dist/features/trial-session/comps/test-prep/test-prep-styled.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep.js +31 -29
- package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
- package/dist/features/trial-session/comps/topic-selection/topic-item.js +39 -0
- package/dist/features/trial-session/comps/topic-selection/topic-item.js.map +1 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection-helpers.js +10 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection-helpers.js.map +1 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js +42 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js.map +1 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection.js +48 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection.js.map +1 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js +21 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js.map +1 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard.js +99 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard.js.map +1 -0
- package/dist/features/trial-session/comps/worksheet/worksheet.js +35 -33
- package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
- package/dist/features/trial-session/context/trial-session-context.js +6 -4
- package/dist/features/trial-session/context/trial-session-context.js.map +1 -1
- package/dist/features/trial-session/helper.js +107 -65
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +198 -165
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/right-panel/right-panel-styled.js +8 -8
- package/dist/features/trial-session/right-panel/right-panel-styled.js.map +1 -1
- package/dist/features/trial-session/right-panel/slide-components-map.js +42 -36
- package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
- package/dist/features/trial-session/trial-session-constants.js +29 -16
- package/dist/features/trial-session/trial-session-constants.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/trial-session/trial-session-view.js +87 -79
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/trial-session/trial-session.js +68 -58
- package/dist/features/trial-session/trial-session.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input/checkbox-input.js +21 -21
- package/dist/features/ui/inputs/checkbox-input/checkbox-input.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +12 -12
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
- package/dist/features/ui/theme/clrs.js +1 -0
- package/dist/features/ui/theme/clrs.js.map +1 -1
- package/dist/features/worksheet/worksheet/mocks/activity.js +6 -0
- package/dist/features/worksheet/worksheet/mocks/activity.js.map +1 -0
- package/dist/features/worksheet/worksheet/mocks/signed-requests.js +5 -0
- package/dist/features/worksheet/worksheet/mocks/signed-requests.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js +57 -0
- package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js +263 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-student.js +177 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-student.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js +268 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +38 -37
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/index.d.ts +17 -6
- package/dist/index.js +384 -380
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,89 +1,99 @@
|
|
|
1
|
-
import { jsxs as e, jsx as r, Fragment as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { ILLUSTRATIONS as
|
|
1
|
+
import { jsxs as e, jsx as r, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { memo as N, useMemo as O } from "react";
|
|
3
|
+
import { ILLUSTRATIONS as D } from "../../../../assets/illustrations/illustrations.js";
|
|
4
4
|
import c from "../../../ui/image/image.js";
|
|
5
|
-
import
|
|
5
|
+
import b from "../../../ui/layout/flex-view.js";
|
|
6
6
|
import o from "../../../ui/separator/separator.js";
|
|
7
|
-
import
|
|
7
|
+
import w from "../../../ui/text/text.js";
|
|
8
8
|
import { useTrialSessionContext as x } from "../../context/use-trial-session-context.js";
|
|
9
|
-
import { TrialPageId as t } from "../../trial-session-constants.js";
|
|
10
|
-
import
|
|
11
|
-
import { goalDetails as
|
|
12
|
-
import { Container as
|
|
13
|
-
const
|
|
14
|
-
const { slideConfig:
|
|
9
|
+
import { TrialPageId as t, RIGHT_PANEL_CONTENT_WIDTH as d } from "../../trial-session-constants.js";
|
|
10
|
+
import R from "../slide-header/index.js";
|
|
11
|
+
import { goalPlans as S, goalDetails as W, parentAppDetails as k, circleDetails as H } from "./offering-information-constants.js";
|
|
12
|
+
import { Container as B, Wrapper as p, AnimationWrapper as j, DetailsWrapper as F, TextElement as h, RefundImageWrapper as G } from "./offering-information-styled.js";
|
|
13
|
+
const rr = N(function() {
|
|
14
|
+
const { slideConfig: f } = x(), { id: i } = f, a = O(() => {
|
|
15
15
|
switch (i) {
|
|
16
16
|
case t.CIRCLE_INFORMATION:
|
|
17
|
-
return
|
|
17
|
+
return H;
|
|
18
18
|
case t.PARENT_APP:
|
|
19
|
-
return
|
|
19
|
+
return k;
|
|
20
20
|
case t.GOAL_DETAILS:
|
|
21
|
-
return
|
|
21
|
+
return W;
|
|
22
|
+
case t.GOAL_PLANS:
|
|
23
|
+
return S;
|
|
22
24
|
default:
|
|
23
25
|
return [];
|
|
24
26
|
}
|
|
25
27
|
}, [i]);
|
|
26
|
-
return /* @__PURE__ */ e(
|
|
28
|
+
return /* @__PURE__ */ e(B, { children: [
|
|
27
29
|
/* @__PURE__ */ r(o, { height: 60 }),
|
|
28
|
-
/* @__PURE__ */ r(
|
|
29
|
-
/* @__PURE__ */ r(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
30
|
+
/* @__PURE__ */ r(R, {}),
|
|
31
|
+
/* @__PURE__ */ r(
|
|
32
|
+
p,
|
|
33
|
+
{
|
|
34
|
+
$width: d,
|
|
35
|
+
$flexDirection: "row",
|
|
36
|
+
$justifyContent: "center",
|
|
37
|
+
children: a.length > 0 ? a.map((g, u, $) => {
|
|
38
|
+
const {
|
|
39
|
+
title: l,
|
|
40
|
+
description: n,
|
|
41
|
+
animationBackground: A,
|
|
42
|
+
infoBackground: L,
|
|
43
|
+
animationSource: I,
|
|
44
|
+
animationPadding: T,
|
|
45
|
+
dimension: _
|
|
46
|
+
} = g || {}, [C, E] = _ || [], s = u === $.length - 1;
|
|
47
|
+
return /* @__PURE__ */ e(b, { $flex: 1, children: [
|
|
48
|
+
/* @__PURE__ */ r(
|
|
49
|
+
j,
|
|
50
|
+
{
|
|
51
|
+
$justifyContent: "center",
|
|
52
|
+
$alignItems: "center",
|
|
53
|
+
$borderColor: "BLACK_1",
|
|
54
|
+
$background: A,
|
|
55
|
+
$gap: T,
|
|
56
|
+
$isLastElement: s,
|
|
57
|
+
children: /* @__PURE__ */ r(c, { src: I, width: C, height: E, withLoader: !0 })
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ e(
|
|
61
|
+
F,
|
|
62
|
+
{
|
|
63
|
+
$background: L,
|
|
64
|
+
$gapX: 1.375,
|
|
65
|
+
$gutterX: 2,
|
|
66
|
+
$borderColor: "BLACK_1",
|
|
67
|
+
$isLastElement: s,
|
|
68
|
+
$inherit: !0,
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ r(h, { $renderAs: "ac2-black", children: l }),
|
|
71
|
+
/* @__PURE__ */ r(o, { heightX: 1 }),
|
|
72
|
+
/* @__PURE__ */ r(h, { $renderAs: "ab3", children: typeof n == "string" ? n : n.map((m) => /* @__PURE__ */ r("li", { children: m }, m)) })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
] }, `offering-${l}`);
|
|
77
|
+
}) : null
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
i === t.PARENT_APP && /* @__PURE__ */ e(P, { children: [
|
|
71
81
|
/* @__PURE__ */ r(o, { height: 50 }),
|
|
72
82
|
/* @__PURE__ */ e(
|
|
73
|
-
|
|
83
|
+
p,
|
|
74
84
|
{
|
|
75
|
-
$width:
|
|
85
|
+
$width: d - 200,
|
|
76
86
|
$gap: 14,
|
|
77
87
|
$gutter: 30,
|
|
78
88
|
$background: "YELLOW_1",
|
|
79
89
|
$borderColor: "BLACK_T_15",
|
|
80
90
|
$position: "relative",
|
|
81
91
|
children: [
|
|
82
|
-
/* @__PURE__ */ r(
|
|
83
|
-
/* @__PURE__ */ r(
|
|
92
|
+
/* @__PURE__ */ r(w, { $renderAs: "ab2", children: "Get 24/7 customer support through this app." }),
|
|
93
|
+
/* @__PURE__ */ r(G, { children: /* @__PURE__ */ r(
|
|
84
94
|
c,
|
|
85
95
|
{
|
|
86
|
-
src:
|
|
96
|
+
src: D.REFUND_POLICY_WITH_HEADPHONE,
|
|
87
97
|
width: 135,
|
|
88
98
|
height: 80,
|
|
89
99
|
withLoader: !0
|
|
@@ -96,6 +106,6 @@ const Q = P(function() {
|
|
|
96
106
|
] });
|
|
97
107
|
});
|
|
98
108
|
export {
|
|
99
|
-
|
|
109
|
+
rr as default
|
|
100
110
|
};
|
|
101
111
|
//# sourceMappingURL=offering-information.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offering-information.js","sources":["../../../../../src/features/trial-session/comps/offering-information/offering-information.tsx"],"sourcesContent":["import { memo, useMemo } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { TrialPageId } from '../../trial-session-constants';\nimport SlideHeader from '../slide-header';\nimport {
|
|
1
|
+
{"version":3,"file":"offering-information.js","sources":["../../../../../src/features/trial-session/comps/offering-information/offering-information.tsx"],"sourcesContent":["import { memo, useMemo } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { RIGHT_PANEL_CONTENT_WIDTH, TrialPageId } from '../../trial-session-constants';\nimport SlideHeader from '../slide-header';\nimport {\n circleDetails,\n goalDetails,\n goalPlans,\n parentAppDetails,\n} from './offering-information-constants';\nimport * as Styled from './offering-information-styled';\n\nconst OfferingInformation = memo(function OfferingInformation() {\n const { slideConfig } = useTrialSessionContext();\n const { id } = slideConfig;\n\n const offeringDetails = useMemo(() => {\n switch (id) {\n case TrialPageId.CIRCLE_INFORMATION:\n return circleDetails;\n case TrialPageId.PARENT_APP:\n return parentAppDetails;\n case TrialPageId.GOAL_DETAILS:\n return goalDetails;\n case TrialPageId.GOAL_PLANS:\n return goalPlans;\n default:\n return [];\n }\n }, [id]);\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.Wrapper\n $width={RIGHT_PANEL_CONTENT_WIDTH}\n $flexDirection=\"row\"\n $justifyContent=\"center\"\n >\n {offeringDetails.length > 0\n ? offeringDetails.map((details, index, detailsArray) => {\n const {\n title,\n description,\n animationBackground,\n infoBackground,\n animationSource,\n animationPadding,\n dimension,\n } = details || {};\n const [width, height] = dimension || [];\n const lastElement = index === detailsArray.length - 1;\n\n return (\n <FlexView key={`offering-${title}`} $flex={1}>\n <Styled.AnimationWrapper\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $borderColor=\"BLACK_1\"\n $background={animationBackground}\n $gap={animationPadding}\n $isLastElement={lastElement}\n >\n <Image src={animationSource} width={width} height={height} withLoader />\n </Styled.AnimationWrapper>\n <Styled.DetailsWrapper\n $background={infoBackground}\n $gapX={1.375}\n $gutterX={2}\n $borderColor=\"BLACK_1\"\n $isLastElement={lastElement}\n $inherit\n >\n <Styled.TextElement $renderAs=\"ac2-black\">{title}</Styled.TextElement>\n <Separator heightX={1} />\n <Styled.TextElement $renderAs=\"ab3\">\n {typeof description === 'string'\n ? description\n : description.map(desc => <li key={desc}>{desc}</li>)}\n </Styled.TextElement>\n </Styled.DetailsWrapper>\n </FlexView>\n );\n })\n : null}\n </Styled.Wrapper>\n {id === TrialPageId.PARENT_APP && (\n <>\n <Separator height={50} />\n <Styled.Wrapper\n $width={RIGHT_PANEL_CONTENT_WIDTH - 200}\n $gap={14}\n $gutter={30}\n $background=\"YELLOW_1\"\n $borderColor=\"BLACK_T_15\"\n $position=\"relative\"\n >\n <Text $renderAs=\"ab2\">Get 24/7 customer support through this app.</Text>\n <Styled.RefundImageWrapper>\n <Image\n src={ILLUSTRATIONS.REFUND_POLICY_WITH_HEADPHONE}\n width={135}\n height={80}\n withLoader\n />\n </Styled.RefundImageWrapper>\n </Styled.Wrapper>\n </>\n )}\n </Styled.Container>\n );\n});\n\nexport default OfferingInformation;\n"],"names":["OfferingInformation","memo","slideConfig","useTrialSessionContext","id","offeringDetails","useMemo","TrialPageId","circleDetails","parentAppDetails","goalDetails","goalPlans","jsxs","Styled.Container","jsx","Separator","SlideHeader","Styled.Wrapper","RIGHT_PANEL_CONTENT_WIDTH","details","index","detailsArray","title","description","animationBackground","infoBackground","animationSource","animationPadding","dimension","width","height","lastElement","FlexView","Styled.AnimationWrapper","Image","Styled.DetailsWrapper","Styled.TextElement","desc","Fragment","Text","Styled.RefundImageWrapper","ILLUSTRATIONS"],"mappings":"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"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import o from "styled-components";
|
|
2
2
|
import r from "../../../ui/layout/flex-view.js";
|
|
3
|
-
|
|
3
|
+
import { RIGHT_PANEL_CONTENT_WIDTH as i } from "../../trial-session-constants.js";
|
|
4
|
+
const a = o.div`
|
|
4
5
|
width: 100%;
|
|
5
6
|
height: 100%;
|
|
6
|
-
`,
|
|
7
|
+
`, l = o(r)(
|
|
7
8
|
({ $readOnly: t }) => `
|
|
8
|
-
width:
|
|
9
|
+
width: ${i}px;
|
|
9
10
|
margin: auto;
|
|
10
11
|
${t ? "pointer-events: none;" : ""}
|
|
11
12
|
`
|
|
12
|
-
),
|
|
13
|
+
), g = o.div(
|
|
13
14
|
({ theme: t }) => `
|
|
14
15
|
position: relative;
|
|
15
16
|
width: ${t.layout.gutter * 18.75}px;
|
|
@@ -23,14 +24,14 @@ const n = o.div`
|
|
|
23
24
|
bottom: 0;
|
|
24
25
|
}
|
|
25
26
|
`
|
|
26
|
-
),
|
|
27
|
+
), s = o(r)`
|
|
27
28
|
flex-grow: 1;
|
|
28
29
|
border-left: none;
|
|
29
30
|
`;
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
a as Container,
|
|
33
|
+
l as ContentWrapper,
|
|
34
|
+
g as ImageWrapper,
|
|
35
|
+
s as InputContainer
|
|
35
36
|
};
|
|
36
37
|
//# sourceMappingURL=school-goals-styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"school-goals-styled.js","sources":["../../../../../src/features/trial-session/comps/school-goals/school-goals-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n`;\n\nconst ContentWrapper = styled(FlexView)<{ $readOnly: boolean }>(\n ({ $readOnly }) => `\n width:
|
|
1
|
+
{"version":3,"file":"school-goals-styled.js","sources":["../../../../../src/features/trial-session/comps/school-goals/school-goals-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n`;\n\nconst ContentWrapper = styled(FlexView)<{ $readOnly: boolean }>(\n ({ $readOnly }) => `\n width: ${RIGHT_PANEL_CONTENT_WIDTH}px;\n margin: auto;\n ${$readOnly ? `pointer-events: none;` : ''}\n`,\n);\n\nconst ImageWrapper = styled.div(\n ({ theme }) => `\n position: relative;\n width: ${theme.layout.gutter * 18.75}px;\n height: ${theme.layout.gutter * 25}px;\n border: 1px solid ${theme.colors.BLACK_1};\n .image {\n position: absolute;\n top: -${theme.layout.gutter * 0.15625}px;\n left: -${theme.layout.gutter * 0.125}px;\n right: 0;\n bottom: 0;\n }\n`,\n);\n\nconst InputContainer = styled(FlexView)`\n flex-grow: 1;\n border-left: none;\n`;\n\nexport { Container, ContentWrapper, ImageWrapper, InputContainer };\n"],"names":["Container","styled","ContentWrapper","FlexView","$readOnly","RIGHT_PANEL_CONTENT_WIDTH","ImageWrapper","theme","InputContainer"],"mappings":";;;AAKA,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA,GAKnBC,IAAiBD,EAAOE,CAAQ;AAAA,EACpC,CAAC,EAAE,WAAAC,EAAA,MAAgB;AAAA,WACVC,CAAyB;AAAA;AAAA,IAEhCD,IAAY,0BAA0B,EAAE;AAAA;AAE5C,GAEME,IAAeL,EAAO;AAAA,EAC1B,CAAC,EAAE,OAAAM,EAAA,MAAY;AAAA;AAAA,WAENA,EAAM,OAAO,SAAS,KAAK;AAAA,YAC1BA,EAAM,OAAO,SAAS,EAAE;AAAA,sBACdA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,YAG9BA,EAAM,OAAO,SAAS,OAAO;AAAA,aAC5BA,EAAM,OAAO,SAAS,KAAK;AAAA;AAAA;AAAA;AAAA;AAKxC,GAEMC,IAAiBP,EAAOE,CAAQ;AAAA;AAAA;AAAA;"}
|
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { Container as S, ContentWrapper as
|
|
3
|
-
import
|
|
2
|
+
import { Container as S, ContentWrapper as L, ImageWrapper as $, InputContainer as x } from "./school-goals-styled.js";
|
|
3
|
+
import y from "../../../ui/layout/flex-view.js";
|
|
4
4
|
import G from "../../../ui/image/image.js";
|
|
5
|
-
import
|
|
5
|
+
import I from "../../../ui/inputs/searchable-select-input/searchable-select-input.js";
|
|
6
6
|
import n from "../../../ui/inputs/select-input/select-input.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { GIF as
|
|
7
|
+
import w from "../../../ui/separator/separator.js";
|
|
8
|
+
import A from "../slide-header/index.js";
|
|
9
|
+
import T from "../../../ui/inputs/text-input/text-input.js";
|
|
10
|
+
import { GIF as v } from "../../../../assets/gif/gif.js";
|
|
11
11
|
const F = (o) => {
|
|
12
12
|
const {
|
|
13
13
|
name: i,
|
|
14
14
|
grade: a,
|
|
15
15
|
grades: s,
|
|
16
|
-
|
|
16
|
+
demoType: l,
|
|
17
|
+
goalsList: m,
|
|
17
18
|
curriculum: t,
|
|
18
|
-
buttonState:
|
|
19
|
-
selectedGoal:
|
|
20
|
-
numberInNameError:
|
|
21
|
-
curriculumStandards:
|
|
22
|
-
onNameChange:
|
|
23
|
-
onGoalChange:
|
|
24
|
-
onGradeChange:
|
|
25
|
-
onCurriculumChange:
|
|
19
|
+
buttonState: d,
|
|
20
|
+
selectedGoal: p,
|
|
21
|
+
numberInNameError: u,
|
|
22
|
+
curriculumStandards: h,
|
|
23
|
+
onNameChange: c,
|
|
24
|
+
onGoalChange: g,
|
|
25
|
+
onGradeChange: C,
|
|
26
|
+
onCurriculumChange: f
|
|
26
27
|
} = o, {
|
|
27
|
-
right: { isLoading:
|
|
28
|
-
} =
|
|
28
|
+
right: { isLoading: b = !1 }
|
|
29
|
+
} = d || {};
|
|
29
30
|
return /* @__PURE__ */ r(S, { children: [
|
|
30
|
-
/* @__PURE__ */ e(
|
|
31
|
-
/* @__PURE__ */ e(
|
|
32
|
-
/* @__PURE__ */ r(
|
|
33
|
-
/* @__PURE__ */ e($, { children: /* @__PURE__ */ e(G, { withLoader: !0, height: 402, width: 302, src:
|
|
31
|
+
/* @__PURE__ */ e(w, { height: 60 }),
|
|
32
|
+
/* @__PURE__ */ e(A, {}),
|
|
33
|
+
/* @__PURE__ */ r(L, { $readOnly: b, $flexDirection: "row", $justifyContent: "center", children: [
|
|
34
|
+
/* @__PURE__ */ e($, { children: /* @__PURE__ */ e(G, { withLoader: !0, height: 402, width: 302, src: v.SCHOOL_SUCCESS, className: "image" }) }),
|
|
34
35
|
/* @__PURE__ */ r(
|
|
35
36
|
x,
|
|
36
37
|
{
|
|
@@ -41,31 +42,31 @@ const F = (o) => {
|
|
|
41
42
|
$gapX: 2.5,
|
|
42
43
|
$gutterX: 2.5,
|
|
43
44
|
children: [
|
|
44
|
-
/* @__PURE__ */ r(
|
|
45
|
-
/* @__PURE__ */ e(
|
|
46
|
-
|
|
45
|
+
/* @__PURE__ */ r(y, { $flexDirection: "row", $flexColumnGapX: 1.5, children: [
|
|
46
|
+
l === "TRIAL_V3" ? /* @__PURE__ */ e(
|
|
47
|
+
T,
|
|
47
48
|
{
|
|
48
49
|
renderAs: "primary",
|
|
49
|
-
label: "
|
|
50
|
+
label: "Name",
|
|
50
51
|
value: i,
|
|
51
52
|
type: "text",
|
|
52
53
|
name: "name",
|
|
53
54
|
shape: "borderLess",
|
|
54
|
-
onChange:
|
|
55
|
+
onChange: c,
|
|
55
56
|
width: "100%",
|
|
56
57
|
isTransparent: !0,
|
|
57
|
-
errorMessage:
|
|
58
|
+
errorMessage: u ? "Please enter a valid name" : void 0
|
|
58
59
|
}
|
|
59
|
-
),
|
|
60
|
+
) : null,
|
|
60
61
|
/* @__PURE__ */ e(
|
|
61
62
|
n,
|
|
62
63
|
{
|
|
63
64
|
renderAs: "primary",
|
|
64
|
-
label: "
|
|
65
|
+
label: "Grade",
|
|
65
66
|
value: a,
|
|
66
67
|
options: s,
|
|
67
68
|
shape: "borderLess",
|
|
68
|
-
onChange:
|
|
69
|
+
onChange: C,
|
|
69
70
|
theme: "dark",
|
|
70
71
|
widthX: 10,
|
|
71
72
|
isTransparent: !0
|
|
@@ -76,27 +77,27 @@ const F = (o) => {
|
|
|
76
77
|
n,
|
|
77
78
|
{
|
|
78
79
|
renderAs: "primary",
|
|
79
|
-
label: "
|
|
80
|
+
label: "Curriculum",
|
|
80
81
|
value: t,
|
|
81
|
-
options:
|
|
82
|
+
options: h,
|
|
82
83
|
disabled: !a,
|
|
83
84
|
shape: "borderLess",
|
|
84
85
|
renderOptionsAs: "section-list",
|
|
85
86
|
theme: "dark",
|
|
86
|
-
onChange:
|
|
87
|
+
onChange: f,
|
|
87
88
|
isTransparent: !0
|
|
88
89
|
}
|
|
89
90
|
),
|
|
90
91
|
/* @__PURE__ */ e(
|
|
91
|
-
|
|
92
|
+
I,
|
|
92
93
|
{
|
|
93
94
|
renderAs: "primary",
|
|
94
|
-
label: "
|
|
95
|
-
value:
|
|
96
|
-
options:
|
|
95
|
+
label: "Goal",
|
|
96
|
+
value: p,
|
|
97
|
+
options: m,
|
|
97
98
|
shape: "borderLess",
|
|
98
99
|
theme: "dark",
|
|
99
|
-
onChange:
|
|
100
|
+
onChange: g,
|
|
100
101
|
isTransparent: !0,
|
|
101
102
|
disabled: !a || !t
|
|
102
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"school-goals-view.js","sources":["../../../../../src/features/trial-session/comps/school-goals/school-goals-view.tsx"],"sourcesContent":["import type { ChangeEvent } from 'react';\n\nimport * as Styled from './school-goals-styled';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Image from '../../../ui/image/image';\nimport SearchableSelectInput from '../../../ui/inputs/searchable-select-input/searchable-select-input';\nimport SelectInput from '../../../ui/inputs/select-input/select-input';\nimport Separator from '../../../ui/separator/separator';\nimport SlideHeader from '../slide-header';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport type { IButtonState } from '../../trial-session-types';\nimport type { ISectionOption } from '../../../ui/section-list/section-list-types';\nimport type { ISelectOption } from '../../../ui/inputs/base-select-input/base-select-input-types';\nimport type { TCurriculumStandardOption } from '../../../milestone/create/milestone-create-types';\nimport { GIF } from '../../../../assets/gif/gif';\n\ninterface ISchoolGoals {\n header?: string;\n name?: string;\n grade?: string;\n curriculum?: string;\n grades: ISelectOption<string>[];\n curriculumStandards: ISectionOption<TCurriculumStandardOption>[];\n goalsList: ISelectOption<string>[];\n selectedGoal?: string;\n numberInNameError?: boolean;\n buttonState: { left: IButtonState; right: IButtonState };\n onNameChange: (event: ChangeEvent<HTMLInputElement>) => void;\n onGradeChange: (value: string) => void;\n onCurriculumChange: (value: string) => void;\n onGoalChange: (value: string, option: ISelectOption<string | number>) => void;\n}\n\nconst SchoolGoalsView = (props: ISchoolGoals) => {\n const {\n name,\n grade,\n grades,\n goalsList,\n curriculum,\n buttonState,\n selectedGoal,\n numberInNameError,\n curriculumStandards,\n onNameChange,\n onGoalChange,\n onGradeChange,\n onCurriculumChange,\n } = props;\n\n const {\n right: { isLoading = false },\n } = buttonState || {};\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.ContentWrapper $readOnly={isLoading} $flexDirection=\"row\" $justifyContent=\"center\">\n <Styled.ImageWrapper>\n <Image withLoader height={402} width={302} src={GIF.SCHOOL_SUCCESS} className=\"image\" />\n </Styled.ImageWrapper>\n <Styled.InputContainer\n $flexGap={24}\n $justifyContent=\"center\"\n $background=\"PURPLE_1\"\n $borderColor=\"BLACK_1\"\n $gapX={2.5}\n $gutterX={2.5}\n >\n <FlexView $flexDirection=\"row\" $flexColumnGapX={1.5}>\n <TextInput\n
|
|
1
|
+
{"version":3,"file":"school-goals-view.js","sources":["../../../../../src/features/trial-session/comps/school-goals/school-goals-view.tsx"],"sourcesContent":["import type { ChangeEvent } from 'react';\n\nimport * as Styled from './school-goals-styled';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Image from '../../../ui/image/image';\nimport SearchableSelectInput from '../../../ui/inputs/searchable-select-input/searchable-select-input';\nimport SelectInput from '../../../ui/inputs/select-input/select-input';\nimport Separator from '../../../ui/separator/separator';\nimport SlideHeader from '../slide-header';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport type { IButtonState } from '../../trial-session-types';\nimport type { ISectionOption } from '../../../ui/section-list/section-list-types';\nimport type { ISelectOption } from '../../../ui/inputs/base-select-input/base-select-input-types';\nimport type { TCurriculumStandardOption } from '../../../milestone/create/milestone-create-types';\nimport { GIF } from '../../../../assets/gif/gif';\nimport { type DemoType } from '../../trial-session-constants';\n\ninterface ISchoolGoals {\n header?: string;\n name?: string;\n grade?: string;\n curriculum?: string;\n grades: ISelectOption<string>[];\n demoType: DemoType;\n curriculumStandards: ISectionOption<TCurriculumStandardOption>[];\n goalsList: ISelectOption<string>[];\n selectedGoal?: string;\n numberInNameError?: boolean;\n buttonState: { left: IButtonState; right: IButtonState };\n onNameChange: (event: ChangeEvent<HTMLInputElement>) => void;\n onGradeChange: (value: string) => void;\n onCurriculumChange: (value: string) => void;\n onGoalChange: (value: string, option: ISelectOption<string | number>) => void;\n}\n\nconst SchoolGoalsView = (props: ISchoolGoals) => {\n const {\n name,\n grade,\n grades,\n demoType,\n goalsList,\n curriculum,\n buttonState,\n selectedGoal,\n numberInNameError,\n curriculumStandards,\n onNameChange,\n onGoalChange,\n onGradeChange,\n onCurriculumChange,\n } = props;\n\n const {\n right: { isLoading = false },\n } = buttonState || {};\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.ContentWrapper $readOnly={isLoading} $flexDirection=\"row\" $justifyContent=\"center\">\n <Styled.ImageWrapper>\n <Image withLoader height={402} width={302} src={GIF.SCHOOL_SUCCESS} className=\"image\" />\n </Styled.ImageWrapper>\n <Styled.InputContainer\n $flexGap={24}\n $justifyContent=\"center\"\n $background=\"PURPLE_1\"\n $borderColor=\"BLACK_1\"\n $gapX={2.5}\n $gutterX={2.5}\n >\n <FlexView $flexDirection=\"row\" $flexColumnGapX={1.5}>\n {demoType === 'TRIAL_V3' ? (\n <TextInput\n renderAs=\"primary\"\n label=\"Name\"\n value={name}\n type=\"text\"\n name=\"name\"\n shape=\"borderLess\"\n onChange={onNameChange}\n width=\"100%\"\n isTransparent\n errorMessage={numberInNameError ? 'Please enter a valid name' : undefined}\n />\n ) : null}\n <SelectInput\n renderAs=\"primary\"\n label=\"Grade\"\n value={grade}\n options={grades}\n shape=\"borderLess\"\n onChange={onGradeChange}\n theme=\"dark\"\n widthX={10}\n isTransparent\n />\n </FlexView>\n <SelectInput\n renderAs=\"primary\"\n label=\"Curriculum\"\n value={curriculum}\n options={curriculumStandards}\n disabled={!grade}\n shape=\"borderLess\"\n renderOptionsAs=\"section-list\"\n theme=\"dark\"\n onChange={onCurriculumChange}\n isTransparent\n />\n <SearchableSelectInput\n renderAs=\"primary\"\n label=\"Goal\"\n value={selectedGoal}\n options={goalsList}\n shape=\"borderLess\"\n theme=\"dark\"\n onChange={onGoalChange}\n isTransparent\n disabled={!grade || !curriculum}\n />\n </Styled.InputContainer>\n </Styled.ContentWrapper>\n </Styled.Container>\n );\n};\n\nexport default SchoolGoalsView;\n"],"names":["SchoolGoalsView","props","name","grade","grades","demoType","goalsList","curriculum","buttonState","selectedGoal","numberInNameError","curriculumStandards","onNameChange","onGoalChange","onGradeChange","onCurriculumChange","isLoading","jsxs","Styled.Container","jsx","Separator","SlideHeader","Styled.ContentWrapper","Styled.ImageWrapper","Image","GIF","Styled.InputContainer","FlexView","TextInput","SelectInput","SearchableSelectInput"],"mappings":";;;;;;;;;;AAmCM,MAAAA,IAAkB,CAACC,MAAwB;AACzC,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,oBAAAC;AAAA,EACE,IAAAd,GAEE;AAAA,IACJ,OAAO,EAAE,WAAAe,IAAY,GAAM;AAAA,EAAA,IACzBR,KAAe,CAAA;AAGjB,SAAA,gBAAAS,EAACC,GAAA,EACC,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,sBACtBC,GAAY,EAAA;AAAA,IACb,gBAAAJ,EAACK,GAAA,EAAsB,WAAWN,GAAW,gBAAe,OAAM,iBAAgB,UAChF,UAAA;AAAA,MAAA,gBAAAG,EAACI,GAAA,EACC,UAAC,gBAAAJ,EAAAK,GAAA,EAAM,YAAU,IAAC,QAAQ,KAAK,OAAO,KAAK,KAAKC,EAAI,gBAAgB,WAAU,QAAQ,CAAA,GACxF;AAAA,MACA,gBAAAR;AAAA,QAACS;AAAAA,QAAA;AAAA,UACC,UAAU;AAAA,UACV,iBAAgB;AAAA,UAChB,aAAY;AAAA,UACZ,cAAa;AAAA,UACb,OAAO;AAAA,UACP,UAAU;AAAA,UAEV,UAAA;AAAA,YAAA,gBAAAT,EAACU,GAAS,EAAA,gBAAe,OAAM,iBAAiB,KAC7C,UAAA;AAAA,cAAAtB,MAAa,aACZ,gBAAAc;AAAA,gBAACS;AAAA,gBAAA;AAAA,kBACC,UAAS;AAAA,kBACT,OAAM;AAAA,kBACN,OAAO1B;AAAA,kBACP,MAAK;AAAA,kBACL,MAAK;AAAA,kBACL,OAAM;AAAA,kBACN,UAAUU;AAAA,kBACV,OAAM;AAAA,kBACN,eAAa;AAAA,kBACb,cAAcF,IAAoB,8BAA8B;AAAA,gBAAA;AAAA,cAAA,IAEhE;AAAA,cACJ,gBAAAS;AAAA,gBAACU;AAAA,gBAAA;AAAA,kBACC,UAAS;AAAA,kBACT,OAAM;AAAA,kBACN,OAAO1B;AAAA,kBACP,SAASC;AAAA,kBACT,OAAM;AAAA,kBACN,UAAUU;AAAA,kBACV,OAAM;AAAA,kBACN,QAAQ;AAAA,kBACR,eAAa;AAAA,gBAAA;AAAA,cACf;AAAA,YAAA,GACF;AAAA,YACA,gBAAAK;AAAA,cAACU;AAAA,cAAA;AAAA,gBACC,UAAS;AAAA,gBACT,OAAM;AAAA,gBACN,OAAOtB;AAAA,gBACP,SAASI;AAAA,gBACT,UAAU,CAACR;AAAA,gBACX,OAAM;AAAA,gBACN,iBAAgB;AAAA,gBAChB,OAAM;AAAA,gBACN,UAAUY;AAAA,gBACV,eAAa;AAAA,cAAA;AAAA,YACf;AAAA,YACA,gBAAAI;AAAA,cAACW;AAAA,cAAA;AAAA,gBACC,UAAS;AAAA,gBACT,OAAM;AAAA,gBACN,OAAOrB;AAAA,gBACP,SAASH;AAAA,gBACT,OAAM;AAAA,gBACN,OAAM;AAAA,gBACN,UAAUO;AAAA,gBACV,eAAa;AAAA,gBACb,UAAU,CAACV,KAAS,CAACI;AAAA,cAAA;AAAA,YACvB;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { GOAL_CATEGORY as n, ENROLLMENT_TYPES as
|
|
4
|
-
import { getCategorizedCurriculumStandards as
|
|
5
|
-
import { getGradesFromConfig as
|
|
1
|
+
import { jsx as q } from "react/jsx-runtime";
|
|
2
|
+
import { memo as z, useMemo as h, useCallback as g, useEffect as E } from "react";
|
|
3
|
+
import { GOAL_CATEGORY as n, ENROLLMENT_TYPES as L } from "../../../milestone/constants.js";
|
|
4
|
+
import { getCategorizedCurriculumStandards as V } from "../../../milestone/create/comps/class-details-step/class-details-utils.js";
|
|
5
|
+
import { getGradesFromConfig as J, getGoalsFromConfig as K } from "../../../milestone/create/milestone-create-helpers.js";
|
|
6
6
|
import { epochTimestampAfterOneYear as H } from "../../../utils/utils.js";
|
|
7
|
-
import { useTrialSessionContext as
|
|
8
|
-
import { isPLASource as
|
|
9
|
-
import
|
|
10
|
-
import { HIGH_ENROLLMENT_PROGRAMS_MAP as
|
|
11
|
-
const
|
|
7
|
+
import { useTrialSessionContext as Q } from "../../context/use-trial-session-context.js";
|
|
8
|
+
import { isPLASource as W, updateGoalInFormData as b } from "../../helper.js";
|
|
9
|
+
import X from "./school-goals-view.js";
|
|
10
|
+
import { HIGH_ENROLLMENT_PROGRAMS_MAP as Z } from "../../trial-session-constants.js";
|
|
11
|
+
const co = z(function() {
|
|
12
12
|
const {
|
|
13
|
+
demoType: U,
|
|
13
14
|
milestoneConfig: a,
|
|
14
|
-
formData:
|
|
15
|
+
formData: A,
|
|
15
16
|
updateSlideConfig: e,
|
|
16
17
|
updateButtonState: G,
|
|
17
18
|
onRemoveOptionalSlides: C,
|
|
18
|
-
trialHomeData:
|
|
19
|
-
buttonState:
|
|
20
|
-
} =
|
|
21
|
-
() =>
|
|
19
|
+
trialHomeData: N,
|
|
20
|
+
buttonState: I
|
|
21
|
+
} = Q(), { name: O, grade: t, goals: r, curriculum: l, numberInNameError: P } = A || {}, { demo_info: R, intel_student: p, student: v } = N, { enrollment_type: s } = v || {}, { stream: m, region_data: D } = R || {}, { opportunity_country: i = "US" } = D || {}, M = J(a), c = W(p == null ? void 0 : p.source), S = Object.keys(Z), F = h(
|
|
22
|
+
() => V(a, {
|
|
22
23
|
countryCode: i,
|
|
23
24
|
grade: t ?? "",
|
|
24
25
|
goalCategory: n.SCHOOL_SUCCESS,
|
|
@@ -28,7 +29,7 @@ const io = q(function() {
|
|
|
28
29
|
}),
|
|
29
30
|
[a, i, t, m, s]
|
|
30
31
|
), d = h(
|
|
31
|
-
() =>
|
|
32
|
+
() => K(a, {
|
|
32
33
|
countryCode: i,
|
|
33
34
|
grade: t ?? "",
|
|
34
35
|
goalCategory: n.SCHOOL_SUCCESS,
|
|
@@ -40,7 +41,7 @@ const io = q(function() {
|
|
|
40
41
|
), { goal_code: u } = h(
|
|
41
42
|
() => (r == null ? void 0 : r.find((o) => o.goal_category === n.SCHOOL_SUCCESS)) ?? {},
|
|
42
43
|
[r]
|
|
43
|
-
), T = !!(O && t && l && u),
|
|
44
|
+
), T = !!(O && t && l && u), x = g(
|
|
44
45
|
(o) => {
|
|
45
46
|
e({
|
|
46
47
|
name: o.target.value,
|
|
@@ -48,25 +49,25 @@ const io = q(function() {
|
|
|
48
49
|
});
|
|
49
50
|
},
|
|
50
51
|
[e]
|
|
51
|
-
),
|
|
52
|
+
), Y = g(
|
|
52
53
|
(o, f) => {
|
|
53
|
-
const { label: _, programCode:
|
|
54
|
+
const { label: _, programCode: y } = f, w = b(r, n.SCHOOL_SUCCESS, {
|
|
54
55
|
goal_code: o,
|
|
55
56
|
milestone_name: _,
|
|
56
57
|
milestone_date_ts: H(),
|
|
57
58
|
publish: c,
|
|
58
|
-
program_code:
|
|
59
|
-
}),
|
|
59
|
+
program_code: y
|
|
60
|
+
}), B = S.includes(y) ? L.HIGH : void 0;
|
|
60
61
|
e({
|
|
61
|
-
goals:
|
|
62
|
-
enrollmentType:
|
|
62
|
+
goals: w,
|
|
63
|
+
enrollmentType: B
|
|
63
64
|
});
|
|
64
65
|
},
|
|
65
66
|
[r, c, e, S]
|
|
66
|
-
),
|
|
67
|
+
), j = g(
|
|
67
68
|
(o) => e({ curriculum: o, goals: [], enrollmentType: void 0 }),
|
|
68
69
|
[e]
|
|
69
|
-
),
|
|
70
|
+
), k = g(
|
|
70
71
|
(o) => {
|
|
71
72
|
e({ grade: o, curriculum: "", goals: [], enrollmentType: void 0 });
|
|
72
73
|
},
|
|
@@ -85,32 +86,33 @@ const io = q(function() {
|
|
|
85
86
|
milestone_date_ts: H(),
|
|
86
87
|
publish: c,
|
|
87
88
|
program_code: o.programCode
|
|
88
|
-
}), _ = S.includes((o == null ? void 0 : o.programCode) ?? "") ?
|
|
89
|
+
}), _ = S.includes((o == null ? void 0 : o.programCode) ?? "") ? L.HIGH : void 0;
|
|
89
90
|
e({
|
|
90
91
|
goals: f,
|
|
91
92
|
enrollmentType: _
|
|
92
93
|
});
|
|
93
94
|
}
|
|
94
|
-
}, [d, c]), /* @__PURE__ */
|
|
95
|
-
|
|
95
|
+
}, [d, c]), /* @__PURE__ */ q(
|
|
96
|
+
X,
|
|
96
97
|
{
|
|
97
98
|
name: O,
|
|
98
99
|
grade: t,
|
|
99
|
-
grades:
|
|
100
|
-
|
|
100
|
+
grades: M,
|
|
101
|
+
demoType: U,
|
|
102
|
+
buttonState: I,
|
|
101
103
|
goalsList: d,
|
|
102
104
|
curriculum: l,
|
|
103
105
|
selectedGoal: u,
|
|
104
|
-
numberInNameError:
|
|
105
|
-
curriculumStandards:
|
|
106
|
-
onNameChange:
|
|
107
|
-
onGoalChange:
|
|
108
|
-
onGradeChange:
|
|
109
|
-
onCurriculumChange:
|
|
106
|
+
numberInNameError: P,
|
|
107
|
+
curriculumStandards: F,
|
|
108
|
+
onNameChange: x,
|
|
109
|
+
onGoalChange: Y,
|
|
110
|
+
onGradeChange: k,
|
|
111
|
+
onCurriculumChange: j
|
|
110
112
|
}
|
|
111
113
|
);
|
|
112
114
|
});
|
|
113
115
|
export {
|
|
114
|
-
|
|
116
|
+
co as default
|
|
115
117
|
};
|
|
116
118
|
//# sourceMappingURL=school-goals.js.map
|