@cuemath/leap 3.5.59 → 3.5.60-link0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/chapters-v2/utils/node-card-utils.js +24 -24
- package/dist/features/chapters-v2/utils/node-card-utils.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-view.js +43 -43
- package/dist/features/homework/homework-card-view.js.map +1 -1
- package/dist/features/homework/homework-card.js +44 -46
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +39 -41
- package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
- package/dist/features/journey/tracking-id/tracking-id-student.js +1 -1
- package/dist/features/journey/tracking-id/tracking-id-student.js.map +1 -1
- package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js +43 -43
- package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js.map +1 -1
- package/dist/features/milestone/create/api/milestone-config.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/sheets/constants/sheet.js +1 -0
- package/dist/features/sheets/constants/sheet.js.map +1 -1
- package/dist/features/sheets/utils/is-v3-worksheet.js +3 -2
- package/dist/features/sheets/utils/is-v3-worksheet.js.map +1 -1
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.js +1 -1
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.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 -27
- 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 -12
- 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 +21 -5
- 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 +61 -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 +113 -78
- 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-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 +84 -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 +2 -0
- package/dist/features/trial-session/context/trial-session-context.js.map +1 -1
- package/dist/features/trial-session/helper.js +70 -64
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +201 -164
- 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 +22 -18
- 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 +82 -77
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/trial-session/trial-session.js +38 -38
- 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 +267 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +2 -6
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +38 -37
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-computed-properties.js +36 -35
- package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-computed-properties.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-questions-from-items.js +61 -58
- package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-questions-from-items.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +35 -28
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/index.d.ts +13 -5
- package/dist/index.js +1 -1
- package/dist/node_modules/query-string/base.js +1 -1
- package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/dist/types/models/worksheet.js +1 -1
- package/dist/types/models/worksheet.js.map +1 -1
- package/package.json +1 -1
- package/dist/node_modules/decode-uri-component/index.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
- /package/dist/node_modules/{decode-uri-component → query-string/node_modules/decode-uri-component}/index.js +0 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as T, useState as h, useEffect as
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as T, useState as h, useEffect as w } from "react";
|
|
3
3
|
import c from "../../../ui/image/image.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import w from "../../../ui/theme/clrs.js";
|
|
4
|
+
import o from "../../../ui/layout/flex-view.js";
|
|
5
|
+
import E from "../../../ui/separator/separator.js";
|
|
7
6
|
import { useTrialSessionContext as S } from "../../context/use-trial-session-context.js";
|
|
8
|
-
import { TrialPageId as
|
|
9
|
-
import
|
|
10
|
-
import { learningSessionImages as s, sessionPerks as
|
|
11
|
-
import { Container as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
import { TrialPageId as _ } from "../../trial-session-constants.js";
|
|
8
|
+
import k from "../slide-header/index.js";
|
|
9
|
+
import { learningSessionImages as s, sessionPerks as L } from "./learning-session-constants.js";
|
|
10
|
+
import { Container as x, FlexRelative as A, FloatingElement as R, ImageWrapper as j, GreenTick as $, TextElement as K, Slider as B, SliderContent as H, MathText as W } from "./learning-session-styled.js";
|
|
11
|
+
import v from "../communication-slide/index.js";
|
|
12
|
+
const Q = T(function() {
|
|
13
|
+
const { slideConfig: m } = S(), { id: g, renderAVIn: u, enableSessionPerk: f } = m, d = g === _.COMPLETED_WORKSHEET, [n, a] = h(0), [p, l] = h(!0);
|
|
14
|
+
return w(() => {
|
|
15
|
+
n === s.length - 1 && setTimeout(() => {
|
|
16
|
+
l(!1), a(0);
|
|
17
17
|
}, 500);
|
|
18
18
|
const t = setInterval(() => {
|
|
19
|
-
|
|
19
|
+
l(!0), a((r) => (r + 1) % s.length);
|
|
20
20
|
}, 1e3);
|
|
21
21
|
return () => clearInterval(t);
|
|
22
|
-
}, [
|
|
23
|
-
/* @__PURE__ */ e(
|
|
24
|
-
/* @__PURE__ */ e(
|
|
25
|
-
/* @__PURE__ */ e(
|
|
22
|
+
}, [n]), u === "right" ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ i(x, { children: [
|
|
23
|
+
/* @__PURE__ */ e(E, { height: 60 }),
|
|
24
|
+
/* @__PURE__ */ e(k, {}),
|
|
25
|
+
/* @__PURE__ */ e(o, { $alignItems: "center", children: /* @__PURE__ */ i(
|
|
26
26
|
A,
|
|
27
27
|
{
|
|
28
28
|
$width: 550,
|
|
@@ -33,10 +33,10 @@ const { GREEN_4: m } = w(), Q = T(function() {
|
|
|
33
33
|
$alignItems: "center",
|
|
34
34
|
$justifyContent: "center",
|
|
35
35
|
children: [
|
|
36
|
-
f &&
|
|
36
|
+
f && L.map((t) => {
|
|
37
37
|
const { title: r, image: C, position: b, backgroundColor: I } = t;
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
|
|
38
|
+
return /* @__PURE__ */ i(
|
|
39
|
+
R,
|
|
40
40
|
{
|
|
41
41
|
$width: 104,
|
|
42
42
|
$height: 104,
|
|
@@ -47,27 +47,18 @@ const { GREEN_4: m } = w(), Q = T(function() {
|
|
|
47
47
|
$background: I,
|
|
48
48
|
$position: b,
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
52
|
-
$,
|
|
53
|
-
{
|
|
54
|
-
width: 24,
|
|
55
|
-
height: 28,
|
|
56
|
-
color: m,
|
|
57
|
-
$top: -15,
|
|
58
|
-
$right: -20
|
|
59
|
-
}
|
|
60
|
-
) : null,
|
|
50
|
+
/* @__PURE__ */ i(j, { children: [
|
|
51
|
+
d ? /* @__PURE__ */ e($, { width: 24, height: 28, $top: -15, $right: -20 }) : null,
|
|
61
52
|
/* @__PURE__ */ e(c, { withLoader: !0, height: 56, width: 56, src: C })
|
|
62
53
|
] }),
|
|
63
|
-
/* @__PURE__ */ e(
|
|
54
|
+
/* @__PURE__ */ e(K, { $renderAs: "ac4-black", $align: "center", children: r })
|
|
64
55
|
]
|
|
65
56
|
},
|
|
66
57
|
r
|
|
67
58
|
);
|
|
68
59
|
}),
|
|
69
60
|
/* @__PURE__ */ e(
|
|
70
|
-
|
|
61
|
+
o,
|
|
71
62
|
{
|
|
72
63
|
$width: 470,
|
|
73
64
|
$height: 470,
|
|
@@ -76,8 +67,8 @@ const { GREEN_4: m } = w(), Q = T(function() {
|
|
|
76
67
|
$borderColor: "BLACK_T_08",
|
|
77
68
|
$alignItems: "center",
|
|
78
69
|
$justifyContent: "center",
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
-
|
|
70
|
+
children: /* @__PURE__ */ i(
|
|
71
|
+
o,
|
|
81
72
|
{
|
|
82
73
|
$width: 370,
|
|
83
74
|
$height: 370,
|
|
@@ -88,18 +79,18 @@ const { GREEN_4: m } = w(), Q = T(function() {
|
|
|
88
79
|
$justifyContent: "center",
|
|
89
80
|
$position: "relative",
|
|
90
81
|
children: [
|
|
91
|
-
|
|
82
|
+
d ? /* @__PURE__ */ e($, { width: 60, height: 72, $top: 40, $right: 60 }) : null,
|
|
92
83
|
/* @__PURE__ */ e(
|
|
93
|
-
|
|
84
|
+
B,
|
|
94
85
|
{
|
|
95
86
|
$width: 270,
|
|
96
87
|
$height: 270,
|
|
97
88
|
$borderRadius: 270,
|
|
98
89
|
$borderColor: "BLACK_T_87",
|
|
99
90
|
children: s.map((t, r) => /* @__PURE__ */ e(
|
|
100
|
-
|
|
91
|
+
H,
|
|
101
92
|
{
|
|
102
|
-
$offset: r -
|
|
93
|
+
$offset: r - n,
|
|
103
94
|
$transitionEnabled: p,
|
|
104
95
|
children: /* @__PURE__ */ e(
|
|
105
96
|
c,
|
|
@@ -112,11 +103,11 @@ const { GREEN_4: m } = w(), Q = T(function() {
|
|
|
112
103
|
}
|
|
113
104
|
)
|
|
114
105
|
},
|
|
115
|
-
|
|
106
|
+
t
|
|
116
107
|
))
|
|
117
108
|
}
|
|
118
109
|
),
|
|
119
|
-
/* @__PURE__ */ e(
|
|
110
|
+
/* @__PURE__ */ e(W, { $renderAs: "ac3-black", children: "School Math" })
|
|
120
111
|
]
|
|
121
112
|
}
|
|
122
113
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"learning-session.js","sources":["../../../../../src/features/trial-session/comps/learning-session/learning-session.tsx"],"sourcesContent":["import { memo, useEffect, useState } from 'react';\n\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport
|
|
1
|
+
{"version":3,"file":"learning-session.js","sources":["../../../../../src/features/trial-session/comps/learning-session/learning-session.tsx"],"sourcesContent":["import { memo, useEffect, useState } from 'react';\n\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { TrialPageId } from '../../trial-session-constants';\nimport SlideHeader from '../slide-header';\nimport { learningSessionImages, sessionPerks } from './learning-session-constants';\nimport * as Styled from './learning-session-styled';\nimport CommunicationSlide from '../communication-slide';\n\nconst LearningSession = memo(function LearningSession() {\n const { slideConfig } = useTrialSessionContext();\n const { id, renderAVIn, enableSessionPerk } = slideConfig;\n\n const worksheetCompleted = id === TrialPageId.COMPLETED_WORKSHEET;\n\n const [currentIndex, setCurrentIndex] = useState(0);\n const [transitionEnabled, setTransitionEnabled] = useState(true);\n\n useEffect(() => {\n if (currentIndex === learningSessionImages.length - 1) {\n setTimeout(() => {\n setTransitionEnabled(false);\n setCurrentIndex(0);\n }, 500);\n }\n\n const timer = setInterval(() => {\n setTransitionEnabled(true);\n setCurrentIndex(prevIndex => (prevIndex + 1) % learningSessionImages.length);\n }, 1000);\n\n return () => clearInterval(timer);\n }, [currentIndex]);\n\n if (renderAVIn === 'right') return <CommunicationSlide />;\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <FlexView $alignItems=\"center\">\n <Styled.FlexRelative\n $width={550}\n $height={549}\n $borderRadius={550}\n $background=\"WHITE_1\"\n $borderColor=\"BLACK_T_04\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n {enableSessionPerk &&\n sessionPerks.map(sessionPerk => {\n const { title, image, position, backgroundColor } = sessionPerk;\n\n return (\n <Styled.FloatingElement\n key={title}\n $width={104}\n $height={104}\n $borderRadius={104}\n $borderColor=\"BLACK_1\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background={backgroundColor}\n $position={position}\n >\n <Styled.ImageWrapper>\n {worksheetCompleted ? (\n <Styled.GreenTick width={24} height={28} $top={-15} $right={-20} />\n ) : null}\n <Image withLoader height={56} width={56} src={image} />\n </Styled.ImageWrapper>\n <Styled.TextElement $renderAs=\"ac4-black\" $align=\"center\">\n {title}\n </Styled.TextElement>\n </Styled.FloatingElement>\n );\n })}\n\n <FlexView\n $width={470}\n $height={470}\n $borderRadius={470}\n $background=\"WHITE_2\"\n $borderColor=\"BLACK_T_08\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <FlexView\n $width={370}\n $height={370}\n $borderRadius={370}\n $background=\"WHITE_3\"\n $borderColor=\"BLACK_T_15\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $position=\"relative\"\n >\n {worksheetCompleted ? (\n <Styled.GreenTick width={60} height={72} $top={40} $right={60} />\n ) : null}\n <Styled.Slider\n $width={270}\n $height={270}\n $borderRadius={270}\n $borderColor=\"BLACK_T_87\"\n >\n {learningSessionImages.map((imageUrl, index) => {\n return (\n <Styled.SliderContent\n key={imageUrl}\n $offset={index - currentIndex}\n $transitionEnabled={transitionEnabled}\n >\n <Image\n withLoader\n src={imageUrl}\n width={270}\n height={270}\n alt={`slide-${index}`}\n />\n </Styled.SliderContent>\n );\n })}\n </Styled.Slider>\n <Styled.MathText $renderAs=\"ac3-black\">School Math</Styled.MathText>\n </FlexView>\n </FlexView>\n </Styled.FlexRelative>\n </FlexView>\n </Styled.Container>\n );\n});\n\nexport default LearningSession;\n"],"names":["LearningSession","memo","slideConfig","useTrialSessionContext","id","renderAVIn","enableSessionPerk","worksheetCompleted","TrialPageId","currentIndex","setCurrentIndex","useState","transitionEnabled","setTransitionEnabled","useEffect","learningSessionImages","timer","prevIndex","jsx","CommunicationSlide","jsxs","Styled.Container","Separator","SlideHeader","FlexView","Styled.FlexRelative","sessionPerks","sessionPerk","title","image","position","backgroundColor","Styled.FloatingElement","Styled.ImageWrapper","Styled.GreenTick","Image","Styled.TextElement","Styled.Slider","imageUrl","index","Styled.SliderContent","Styled.MathText"],"mappings":";;;;;;;;;;;AAYM,MAAAA,IAAkBC,EAAK,WAA2B;AAChD,QAAA,EAAE,aAAAC,MAAgBC,KAClB,EAAE,IAAAC,GAAI,YAAAC,GAAY,mBAAAC,EAAA,IAAsBJ,GAExCK,IAAqBH,MAAOI,EAAY,qBAExC,CAACC,GAAcC,CAAe,IAAIC,EAAS,CAAC,GAC5C,CAACC,GAAmBC,CAAoB,IAAIF,EAAS,EAAI;AAkB/D,SAhBAG,EAAU,MAAM;AACV,IAAAL,MAAiBM,EAAsB,SAAS,KAClD,WAAW,MAAM;AACf,MA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A;AAAA,oBACH;AAAA,sCACCG,GAAA,EAAgB,WAAU,aAAY,UAAW,eAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACpD;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,GAEJ;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
|
|
@@ -1,104 +1,102 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useTrialSessionContext as
|
|
9
|
-
import { isPLASource as
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as c, useCallback as I } from "react";
|
|
3
|
+
import k from "../../../ui/arrow-tooltip/arrow-tooltip.js";
|
|
4
|
+
import M from "../../../ui/buttons/button/button.js";
|
|
5
|
+
import h from "../../../ui/buttons/icon-button/icon-button.js";
|
|
6
|
+
import C from "../../../ui/layout/flex-view.js";
|
|
7
|
+
import L from "../../../ui/text/text.js";
|
|
8
|
+
import { useTrialSessionContext as z } from "../../context/use-trial-session-context.js";
|
|
9
|
+
import { isPLASource as O } from "../../helper.js";
|
|
10
10
|
import { useTrialSessionNavigation as F } from "../../hooks/use-trial-session-navigation.js";
|
|
11
11
|
import { Container as G, ForwardArrow as K } from "./navigation-bar-styled.js";
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
import { TrialPageId as R, MAXIMUM_TOPICS_TO_SELECT as x } from "../../trial-session-constants.js";
|
|
13
|
+
import X from "../../../../assets/line-icons/icons/back2.js";
|
|
14
|
+
const re = () => {
|
|
15
|
+
var g;
|
|
15
16
|
const {
|
|
16
|
-
slideConfig:
|
|
17
|
-
buttonState:
|
|
18
|
-
openEndClassModal:
|
|
17
|
+
slideConfig: $,
|
|
18
|
+
buttonState: A,
|
|
19
|
+
openEndClassModal: B,
|
|
19
20
|
studentAbsentInClass: e,
|
|
20
|
-
trialHomeData:
|
|
21
|
-
formData:
|
|
22
|
-
} =
|
|
23
|
-
left: { isDisabled: m, isLoading:
|
|
24
|
-
right: { isDisabled: p, isLoading:
|
|
25
|
-
} =
|
|
26
|
-
() => p || e ||
|
|
27
|
-
[p, e,
|
|
28
|
-
),
|
|
21
|
+
trialHomeData: s,
|
|
22
|
+
formData: T
|
|
23
|
+
} = z(), { handleNavigation: n } = F(), {
|
|
24
|
+
left: { isDisabled: m, isLoading: y },
|
|
25
|
+
right: { isDisabled: p, isLoading: P }
|
|
26
|
+
} = A || {}, { id: f, prevPage: v, nextPage: w } = $ || {}, { buttonLabel: a, pageId: o } = v || {}, { buttonLabel: l, pageId: r } = w || {}, { numberInNameError: i, selectedTopics: u = [] } = T || {}, D = o && !r, _ = O((g = s == null ? void 0 : s.intel_student) == null ? void 0 : g.source), E = c(
|
|
27
|
+
() => p || e || i,
|
|
28
|
+
[p, e, i]
|
|
29
|
+
), S = c(
|
|
29
30
|
() => m || e,
|
|
30
31
|
[m, e]
|
|
31
|
-
),
|
|
32
|
-
()
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
o("prev", r);
|
|
38
|
-
}, [o, r]);
|
|
39
|
-
return /* @__PURE__ */ c(
|
|
32
|
+
), b = c(() => i ? "Please enter a valid name" : f === R.TOPIC_SELECTION && u.length < x ? `Select any ${x} topics to proceed` : e ? "Waiting for student to join..." : "", [f, i, u.length, e]), j = I(() => {
|
|
33
|
+
n("next", r);
|
|
34
|
+
}, [n, r]), N = I(() => {
|
|
35
|
+
n("prev", o);
|
|
36
|
+
}, [n, o]);
|
|
37
|
+
return /* @__PURE__ */ d(
|
|
40
38
|
G,
|
|
41
39
|
{
|
|
42
40
|
$flexDirection: "row-reverse",
|
|
43
41
|
$justifyContent: "space-between",
|
|
44
42
|
$alignItems: "center",
|
|
45
43
|
children: [
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
D && /* @__PURE__ */ t(
|
|
45
|
+
M,
|
|
48
46
|
{
|
|
49
47
|
renderAs: "tertiary",
|
|
50
48
|
size: "small",
|
|
51
|
-
label:
|
|
49
|
+
label: _ ? "End the session" : "End the class",
|
|
52
50
|
shape: "square",
|
|
53
|
-
onClick:
|
|
51
|
+
onClick: B
|
|
54
52
|
}
|
|
55
53
|
),
|
|
56
|
-
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
54
|
+
r && l && /* @__PURE__ */ d(C, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", $flexGap: 12, children: [
|
|
55
|
+
/* @__PURE__ */ t(L, { $renderAs: "ab2", $color: "BLACK_T_60", children: l }),
|
|
56
|
+
/* @__PURE__ */ t(
|
|
57
|
+
k,
|
|
60
58
|
{
|
|
61
59
|
widthX: 8,
|
|
62
60
|
zIndex: 2,
|
|
63
61
|
position: "top-left",
|
|
64
62
|
renderAs: "primary",
|
|
65
|
-
tooltipItem:
|
|
66
|
-
hidden: !
|
|
67
|
-
children: /* @__PURE__ */
|
|
68
|
-
|
|
63
|
+
tooltipItem: b,
|
|
64
|
+
hidden: !b,
|
|
65
|
+
children: /* @__PURE__ */ t(
|
|
66
|
+
h,
|
|
69
67
|
{
|
|
70
68
|
Icon: K,
|
|
71
69
|
renderAs: "primary",
|
|
72
|
-
analyticsLabel:
|
|
70
|
+
analyticsLabel: l,
|
|
73
71
|
size: "small",
|
|
74
|
-
onClick:
|
|
75
|
-
disabled:
|
|
76
|
-
busy:
|
|
72
|
+
onClick: j,
|
|
73
|
+
disabled: E,
|
|
74
|
+
busy: P
|
|
77
75
|
}
|
|
78
76
|
)
|
|
79
77
|
}
|
|
80
78
|
)
|
|
81
79
|
] }),
|
|
82
|
-
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
|
|
80
|
+
o && a && /* @__PURE__ */ d(C, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", $flexGap: 12, children: [
|
|
81
|
+
/* @__PURE__ */ t(
|
|
82
|
+
h,
|
|
85
83
|
{
|
|
86
|
-
Icon:
|
|
84
|
+
Icon: X,
|
|
87
85
|
renderAs: "secondary",
|
|
88
|
-
analyticsLabel:
|
|
86
|
+
analyticsLabel: a,
|
|
89
87
|
size: "small",
|
|
90
88
|
onClick: N,
|
|
91
|
-
disabled:
|
|
92
|
-
busy:
|
|
89
|
+
disabled: S,
|
|
90
|
+
busy: y
|
|
93
91
|
}
|
|
94
92
|
),
|
|
95
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ t(L, { $renderAs: "ab2", $color: "BLACK_T_60", children: a })
|
|
96
94
|
] })
|
|
97
95
|
]
|
|
98
96
|
}
|
|
99
97
|
);
|
|
100
98
|
};
|
|
101
99
|
export {
|
|
102
|
-
|
|
100
|
+
re as default
|
|
103
101
|
};
|
|
104
102
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/features/trial-session/comps/navigation-bar/index.tsx"],"sourcesContent":["import { useCallback, useMemo, type FC } from 'react';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport Button from '../../../ui/buttons/button/button';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { isPLASource } from '../../helper';\nimport { useTrialSessionNavigation } from '../../hooks/use-trial-session-navigation';\nimport * as Styled from './navigation-bar-styled';\n\nconst NavigationBar: FC = () => {\n const {\n slideConfig,\n buttonState,\n openEndClassModal,\n studentAbsentInClass,\n trialHomeData,\n formData,\n } = useTrialSessionContext();\n\n const { handleNavigation } = useTrialSessionNavigation();\n\n const {\n left: { isDisabled: isLeftBtnDisabled, isLoading: isLeftBtnLoading },\n right: { isDisabled: isRightBtnDisabled, isLoading: isRightBtnLoading },\n } = buttonState || {};\n\n const { prevPage, nextPage } = slideConfig || {};\n const { buttonLabel: prevButtonLabel, pageId: prevPageId } = prevPage || {};\n const { buttonLabel: nextButtonLabel, pageId: nextPageId } = nextPage || {};\n const { numberInNameError } = formData || {};\n\n const isLastPage = prevPageId && !nextPageId;\n const isPLA = isPLASource(trialHomeData?.intel_student?.source);\n\n const nextButtonDisabled = useMemo(\n () => isRightBtnDisabled || studentAbsentInClass || numberInNameError,\n [isRightBtnDisabled, studentAbsentInClass, numberInNameError],\n );\n const prevButtonDisabled = useMemo(\n () => isLeftBtnDisabled || studentAbsentInClass,\n [isLeftBtnDisabled, studentAbsentInClass],\n );\n\n const tooltipContent = useMemo(() => {\n if (numberInNameError) return 'Please enter a valid name';\n\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/features/trial-session/comps/navigation-bar/index.tsx"],"sourcesContent":["import { useCallback, useMemo, type FC } from 'react';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport Button from '../../../ui/buttons/button/button';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { isPLASource } from '../../helper';\nimport { useTrialSessionNavigation } from '../../hooks/use-trial-session-navigation';\nimport * as Styled from './navigation-bar-styled';\nimport { MAXIMUM_TOPICS_TO_SELECT, TrialPageId } from '../../trial-session-constants';\n\nconst NavigationBar: FC = () => {\n const {\n slideConfig,\n buttonState,\n openEndClassModal,\n studentAbsentInClass,\n trialHomeData,\n formData,\n } = useTrialSessionContext();\n\n const { handleNavigation } = useTrialSessionNavigation();\n\n const {\n left: { isDisabled: isLeftBtnDisabled, isLoading: isLeftBtnLoading },\n right: { isDisabled: isRightBtnDisabled, isLoading: isRightBtnLoading },\n } = buttonState || {};\n\n const { id, prevPage, nextPage } = slideConfig || {};\n const { buttonLabel: prevButtonLabel, pageId: prevPageId } = prevPage || {};\n const { buttonLabel: nextButtonLabel, pageId: nextPageId } = nextPage || {};\n const { numberInNameError, selectedTopics = [] } = formData || {};\n\n const isLastPage = prevPageId && !nextPageId;\n const isPLA = isPLASource(trialHomeData?.intel_student?.source);\n\n const nextButtonDisabled = useMemo(\n () => isRightBtnDisabled || studentAbsentInClass || numberInNameError,\n [isRightBtnDisabled, studentAbsentInClass, numberInNameError],\n );\n const prevButtonDisabled = useMemo(\n () => isLeftBtnDisabled || studentAbsentInClass,\n [isLeftBtnDisabled, studentAbsentInClass],\n );\n\n const tooltipContent = useMemo(() => {\n if (numberInNameError) return 'Please enter a valid name';\n\n if (id === TrialPageId.TOPIC_SELECTION && selectedTopics.length < MAXIMUM_TOPICS_TO_SELECT)\n return `Select any ${MAXIMUM_TOPICS_TO_SELECT} topics to proceed`;\n\n if (studentAbsentInClass) return 'Waiting for student to join...';\n\n return '';\n }, [id, numberInNameError, selectedTopics.length, studentAbsentInClass]);\n\n const handleNext = useCallback(() => {\n handleNavigation('next', nextPageId);\n }, [handleNavigation, nextPageId]);\n\n const handlePrev = useCallback(() => {\n handleNavigation('prev', prevPageId);\n }, [handleNavigation, prevPageId]);\n\n return (\n <Styled.Container\n $flexDirection=\"row-reverse\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n >\n {isLastPage && (\n <Button\n renderAs=\"tertiary\"\n size=\"small\"\n label={isPLA ? 'End the session' : 'End the class'}\n shape=\"square\"\n onClick={openEndClassModal}\n />\n )}\n {nextPageId && nextButtonLabel && (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\" $flexGap={12}>\n <Text $renderAs=\"ab2\" $color=\"BLACK_T_60\">\n {nextButtonLabel}\n </Text>\n <ArrowTooltip\n widthX={8}\n zIndex={2}\n position=\"top-left\"\n renderAs=\"primary\"\n tooltipItem={tooltipContent}\n hidden={!tooltipContent}\n >\n <IconButton\n Icon={Styled.ForwardArrow}\n renderAs=\"primary\"\n analyticsLabel={nextButtonLabel}\n size=\"small\"\n onClick={handleNext}\n disabled={nextButtonDisabled}\n busy={isRightBtnLoading}\n />\n </ArrowTooltip>\n </FlexView>\n )}\n {prevPageId && prevButtonLabel && (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\" $flexGap={12}>\n <IconButton\n Icon={Styled.BackwardArrow}\n renderAs=\"secondary\"\n analyticsLabel={prevButtonLabel}\n size=\"small\"\n onClick={handlePrev}\n disabled={prevButtonDisabled}\n busy={isLeftBtnLoading}\n />\n <Text $renderAs=\"ab2\" $color=\"BLACK_T_60\">\n {prevButtonLabel}\n </Text>\n </FlexView>\n )}\n </Styled.Container>\n );\n};\n\nexport default NavigationBar;\n"],"names":["NavigationBar","slideConfig","buttonState","openEndClassModal","studentAbsentInClass","trialHomeData","formData","useTrialSessionContext","handleNavigation","useTrialSessionNavigation","isLeftBtnDisabled","isLeftBtnLoading","isRightBtnDisabled","isRightBtnLoading","id","prevPage","nextPage","prevButtonLabel","prevPageId","nextButtonLabel","nextPageId","numberInNameError","selectedTopics","isLastPage","isPLA","isPLASource","_a","nextButtonDisabled","useMemo","prevButtonDisabled","tooltipContent","TrialPageId","MAXIMUM_TOPICS_TO_SELECT","handleNext","useCallback","handlePrev","jsxs","Styled.Container","jsx","Button","FlexView","Text","ArrowTooltip","IconButton","Styled.ForwardArrow","Styled.BackwardArrow"],"mappings":";;;;;;;;;;;;;AAaA,MAAMA,KAAoB,MAAM;;AACxB,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,MACEC,EAAuB,GAErB,EAAE,kBAAAC,MAAqBC,KAEvB;AAAA,IACJ,MAAM,EAAE,YAAYC,GAAmB,WAAWC,EAAiB;AAAA,IACnE,OAAO,EAAE,YAAYC,GAAoB,WAAWC,EAAkB;AAAA,EAAA,IACpEX,KAAe,CAAA,GAEb,EAAE,IAAAY,GAAI,UAAAC,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ACX;AAAA,QAEDiB,KAAcD,KACb,gBAAAiB,EAACI,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,iBAAgB,UAAS,UAAU,IACrF,UAAA;AAAA,UAAA,gBAAAF,EAACG,GAAK,EAAA,WAAU,OAAM,QAAO,cAC1B,UACHtB,GAAA;AAAA,UACA,gBAAAmB;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,QAAQ;AAAA,cACR,QAAQ;AAAA,cACR,UAAS;AAAA,cACT,UAAS;AAAA,cACT,aAAaZ;AAAA,cACb,QAAQ,CAACA;AAAA,cAET,UAAA,gBAAAQ;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,MAAMC;AAAAA,kBACN,UAAS;AAAA,kBACT,gBAAgBzB;AAAA,kBAChB,MAAK;AAAA,kBACL,SAASc;AAAA,kBACT,UAAUN;AAAA,kBACV,MAAMd;AAAA,gBAAA;AAAA,cACR;AAAA,YAAA;AAAA,UACF;AAAA,QAAA,GACF;AAAA,QAEDK,KAAcD,KACb,gBAAAmB,EAACI,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,iBAAgB,UAAS,UAAU,IACrF,UAAA;AAAA,UAAA,gBAAAF;AAAA,YAACK;AAAA,YAAA;AAAA,cACC,MAAME;AAAAA,cACN,UAAS;AAAA,cACT,gBAAgB5B;AAAA,cAChB,MAAK;AAAA,cACL,SAASkB;AAAA,cACT,UAAUN;AAAA,cACV,MAAMlB;AAAA,YAAA;AAAA,UACR;AAAA,4BACC8B,GAAK,EAAA,WAAU,OAAM,QAAO,cAC1B,UACHxB,GAAA;AAAA,QAAA,GACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
package/dist/features/trial-session/comps/offering-information/offering-information-constants.js
CHANGED
|
@@ -22,6 +22,28 @@ const o = [
|
|
|
22
22
|
dimension: ["100%", "100%"]
|
|
23
23
|
}
|
|
24
24
|
], e = [
|
|
25
|
+
{
|
|
26
|
+
title: "School Success",
|
|
27
|
+
description: "Keep in sync with school, get help with homework, and prepare for school tests.",
|
|
28
|
+
infoBackground: "PURPLE_1",
|
|
29
|
+
animationSource: n.SCHOOL_SUCCESS_MINI,
|
|
30
|
+
dimension: ["100%", "100%"]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: "Test Prep",
|
|
34
|
+
description: "Prepare for contests and standardized tests, like the AMC, Math Kangaroo, SAT, CogAT, NJSLA, etc.",
|
|
35
|
+
infoBackground: "BLUE_1",
|
|
36
|
+
animationSource: n.TEST_PREP_MINI,
|
|
37
|
+
dimension: ["100%", "100%"]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: "Enrichment",
|
|
41
|
+
description: "Explore beyond-school topics like Financial Math, Data Science, etc.",
|
|
42
|
+
infoBackground: "ORANGE_1",
|
|
43
|
+
animationSource: n.ENRICHMENT_MINI,
|
|
44
|
+
dimension: ["100%", "100%"]
|
|
45
|
+
}
|
|
46
|
+
], a = [
|
|
25
47
|
{
|
|
26
48
|
title: `stay
|
|
27
49
|
connected`,
|
|
@@ -29,7 +51,7 @@ connected`,
|
|
|
29
51
|
receive real-time updates.`,
|
|
30
52
|
infoBackground: "BLUE_1",
|
|
31
53
|
animationSource: n.STAY_CONNECTED,
|
|
32
|
-
dimension: [
|
|
54
|
+
dimension: [233, 250]
|
|
33
55
|
},
|
|
34
56
|
{
|
|
35
57
|
title: `track
|
|
@@ -38,7 +60,7 @@ progress`,
|
|
|
38
60
|
areas of improvement.`,
|
|
39
61
|
infoBackground: "PURPLE_1",
|
|
40
62
|
animationSource: n.TRACK_PROGRESS,
|
|
41
|
-
dimension: [
|
|
63
|
+
dimension: [233, 250]
|
|
42
64
|
},
|
|
43
65
|
{
|
|
44
66
|
title: `easy
|
|
@@ -47,9 +69,9 @@ rescheduling`,
|
|
|
47
69
|
your class timings.`,
|
|
48
70
|
infoBackground: "GREEN_1",
|
|
49
71
|
animationSource: n.EASY_RESCHEDULING,
|
|
50
|
-
dimension: [
|
|
72
|
+
dimension: [233, 250]
|
|
51
73
|
}
|
|
52
|
-
],
|
|
74
|
+
], t = [
|
|
53
75
|
{
|
|
54
76
|
title: `mental
|
|
55
77
|
math`,
|
|
@@ -85,8 +107,9 @@ and stay sharp.`,
|
|
|
85
107
|
}
|
|
86
108
|
];
|
|
87
109
|
export {
|
|
88
|
-
|
|
110
|
+
t as circleDetails,
|
|
89
111
|
o as goalDetails,
|
|
90
|
-
e as
|
|
112
|
+
e as goalPlans,
|
|
113
|
+
a as parentAppDetails
|
|
91
114
|
};
|
|
92
115
|
//# sourceMappingURL=offering-information-constants.js.map
|
package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offering-information-constants.js","sources":["../../../../../src/features/trial-session/comps/offering-information/offering-information-constants.ts"],"sourcesContent":["import { GIF } from '../../../../assets/gif/gif';\nimport type { TColorNames } from '../../../ui/types';\n\ntype TCircleDetails = {\n title: string;\n description: string | string[];\n animationBackground?: TColorNames;\n infoBackground: TColorNames;\n animationSource: string;\n animationPadding?: number;\n dimension?: (number | string | undefined)[];\n coverAnimation?: boolean;\n}[];\n\nconst goalDetails: TCircleDetails = [\n {\n title: 'Personalized Sessions',\n description: 'Aligned with school curriculum or specific needs',\n infoBackground: 'YELLOW_1',\n animationSource: GIF.PERSONALIZED_SESSION,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Regular Practice',\n description: 'Homework assignments plus daily practice on app',\n infoBackground: 'PURPLE_1',\n animationSource: GIF.REGULAR_PRACTICE,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Parent-tutor conference',\n description: 'Progress review and approach adjustment',\n infoBackground: 'GREEN_1',\n animationSource: GIF.STEPUP,\n dimension: ['100%', '100%'],\n },\n];\n\nconst parentAppDetails: TCircleDetails = [\n {\n title: 'stay \\nconnected',\n description: 'Chat with your tutor and \\nreceive real-time updates.',\n infoBackground: 'BLUE_1',\n animationSource: GIF.STAY_CONNECTED,\n dimension: [
|
|
1
|
+
{"version":3,"file":"offering-information-constants.js","sources":["../../../../../src/features/trial-session/comps/offering-information/offering-information-constants.ts"],"sourcesContent":["import { GIF } from '../../../../assets/gif/gif';\nimport type { TColorNames } from '../../../ui/types';\n\ntype TCircleDetails = {\n title: string;\n description: string | string[];\n animationBackground?: TColorNames;\n infoBackground: TColorNames;\n animationSource: string;\n animationPadding?: number;\n dimension?: (number | string | undefined)[];\n coverAnimation?: boolean;\n}[];\n\nconst goalDetails: TCircleDetails = [\n {\n title: 'Personalized Sessions',\n description: 'Aligned with school curriculum or specific needs',\n infoBackground: 'YELLOW_1',\n animationSource: GIF.PERSONALIZED_SESSION,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Regular Practice',\n description: 'Homework assignments plus daily practice on app',\n infoBackground: 'PURPLE_1',\n animationSource: GIF.REGULAR_PRACTICE,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Parent-tutor conference',\n description: 'Progress review and approach adjustment',\n infoBackground: 'GREEN_1',\n animationSource: GIF.STEPUP,\n dimension: ['100%', '100%'],\n },\n];\n\nconst goalPlans: TCircleDetails = [\n {\n title: 'School Success',\n description: 'Keep in sync with school, get help with homework, and prepare for school tests.',\n infoBackground: 'PURPLE_1',\n animationSource: GIF.SCHOOL_SUCCESS_MINI,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Test Prep',\n description:\n 'Prepare for contests and standardized tests, like the AMC, Math Kangaroo, SAT, CogAT, NJSLA, etc.',\n infoBackground: 'BLUE_1',\n animationSource: GIF.TEST_PREP_MINI,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Enrichment',\n description: 'Explore beyond-school topics like Financial Math, Data Science, etc.',\n infoBackground: 'ORANGE_1',\n animationSource: GIF.ENRICHMENT_MINI,\n dimension: ['100%', '100%'],\n },\n];\n\nconst parentAppDetails: TCircleDetails = [\n {\n title: 'stay \\nconnected',\n description: 'Chat with your tutor and \\nreceive real-time updates.',\n infoBackground: 'BLUE_1',\n animationSource: GIF.STAY_CONNECTED,\n dimension: [233, 250],\n },\n {\n title: 'track \\nprogress',\n description: 'Progress, strengths, and \\nareas of improvement.',\n infoBackground: 'PURPLE_1',\n animationSource: GIF.TRACK_PROGRESS,\n dimension: [233, 250],\n },\n {\n title: 'easy \\nrescheduling',\n description: 'Conveniently change \\nyour class timings.',\n infoBackground: 'GREEN_1',\n animationSource: GIF.EASY_RESCHEDULING,\n dimension: [233, 250],\n },\n];\n\nconst circleDetails: TCircleDetails = [\n {\n title: 'mental \\nmath',\n description: 'Get faster and stay \\nahead in school.',\n animationBackground: 'YELLOW_4',\n infoBackground: 'YELLOW_1',\n animationSource: GIF.SKILLS,\n animationPadding: 25,\n dimension: [200, 200],\n },\n {\n title: 'strategy \\ngames',\n description: 'Train to think deeper \\nand plan ahead',\n animationBackground: 'BLUE_4',\n infoBackground: 'BLUE_1',\n animationSource: GIF.GAMES,\n animationPadding: 25,\n dimension: [200, 200],\n },\n {\n title: 'logic \\npuzzles',\n description: 'Think in new ways, \\nand stay sharp.',\n animationBackground: 'ORANGE_4',\n infoBackground: 'ORANGE_1',\n animationSource: GIF.PUZZLES,\n animationPadding: 25,\n dimension: [200, 200],\n },\n];\n\nexport { goalDetails, goalPlans, parentAppDetails, circleDetails };\n"],"names":["goalDetails","GIF","goalPlans","parentAppDetails","circleDetails"],"mappings":";AAcA,MAAMA,IAA8B;AAAA,EAClC;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,iBAAiBC,EAAI;AAAA,IACrB,WAAW,CAAC,QAAQ,MAAM;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,iBAAiBA,EAAI;AAAA,IACrB,WAAW,CAAC,QAAQ,MAAM;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,iBAAiBA,EAAI;AAAA,IACrB,WA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