@cuemath/leap 3.3.12-j1 → 3.3.12-j2
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/auth/comps/pill-button/pill-button.js +19 -19
- package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
- package/dist/features/auth/pla-signup/pla-analytics-events.js +5 -4
- package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js +43 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js.map +1 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +59 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +1 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js +86 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js.map +1 -0
- package/dist/features/parent-dashboard/parent-dashboard-view.js +2 -2
- package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +68 -66
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { jsx as o, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import { memo as _, useState as L, useCallback as l, useEffect as j } from "react";
|
|
3
|
+
import { useTheme as k } from "styled-components";
|
|
4
|
+
import y from "../../../ui/arrow-tooltip/arrow-tooltip.js";
|
|
5
|
+
import B from "../../../ui/hooks/use-click-handler.js";
|
|
6
|
+
import O from "../../../ui/layout/flex-view.js";
|
|
7
7
|
import S from "../../../ui/lottie-animation/lottie-animation.js";
|
|
8
8
|
import { Wrapper as X, IconWrapper as Y, Label as D } from "./pill-button-styled.js";
|
|
9
9
|
const F = {
|
|
@@ -20,21 +20,21 @@ const F = {
|
|
|
20
20
|
onClick: c,
|
|
21
21
|
tooltip: f,
|
|
22
22
|
width: A,
|
|
23
|
-
analyticsLabel:
|
|
24
|
-
analyticsProps:
|
|
25
|
-
isTransparent:
|
|
23
|
+
analyticsLabel: $,
|
|
24
|
+
analyticsProps: g,
|
|
25
|
+
isTransparent: v = !1
|
|
26
26
|
}) => {
|
|
27
|
-
const [
|
|
27
|
+
const [C, h] = L(!1), [n, E] = L(!1), { colors: m } = k(), s = !!u, I = l(() => {
|
|
28
28
|
c(i);
|
|
29
|
-
}, [i, c]), { handleClick: w } =
|
|
30
|
-
|
|
29
|
+
}, [i, c]), { handleClick: w } = B({ label: a, analyticsLabel: $, analyticsProps: g }, I);
|
|
30
|
+
j(() => {
|
|
31
31
|
if (!s || e) return;
|
|
32
32
|
const M = setInterval(() => {
|
|
33
|
-
E((
|
|
33
|
+
E((P) => !P);
|
|
34
34
|
}, 1e3);
|
|
35
35
|
return () => clearInterval(M);
|
|
36
36
|
}, [e, s]);
|
|
37
|
-
const H = l(() => h(!0), []), T = l(() => h(!1), []), p = !!r && !e && (s || t ||
|
|
37
|
+
const H = l(() => h(!0), []), T = l(() => h(!1), []), p = !!r && !e && (s || t || C), W = m[n ? "YELLOW_4" : "WHITE_1"], b = m[n && !t ? "YELLOW_4" : "WHITE_1"], d = n ? u : a, x = /* @__PURE__ */ o(
|
|
38
38
|
X,
|
|
39
39
|
{
|
|
40
40
|
selected: t,
|
|
@@ -44,9 +44,9 @@ const F = {
|
|
|
44
44
|
onMouseLeave: T,
|
|
45
45
|
width: A,
|
|
46
46
|
borderColor: W,
|
|
47
|
-
isTransparent:
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
-
|
|
47
|
+
isTransparent: v,
|
|
48
|
+
children: /* @__PURE__ */ R(
|
|
49
|
+
O,
|
|
50
50
|
{
|
|
51
51
|
$flexDirection: "row",
|
|
52
52
|
$alignItems: "center",
|
|
@@ -71,8 +71,8 @@ const F = {
|
|
|
71
71
|
)
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
|
-
return e && f ? /* @__PURE__ */ o(
|
|
75
|
-
}, et =
|
|
74
|
+
return e && f ? /* @__PURE__ */ o(y, { renderAs: "primary", tooltipItem: f, position: "top", children: x }) : x;
|
|
75
|
+
}, et = _(G);
|
|
76
76
|
export {
|
|
77
77
|
et as default
|
|
78
78
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pill-button.js","sources":["../../../../../src/features/auth/comps/pill-button/pill-button.tsx"],"sourcesContent":["import type { IPillButtonProps } from './pill-button-types';\n\nimport { useCallback, useEffect, useState, type FC, memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport useClickHandler from '../../../ui/hooks/use-click-handler';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport * as Styled from './pill-button-styled';\n\nconst lottieSettings = {\n autoplay: true,\n loop: true,\n renderer: 'canvas',\n};\n\nconst PillButton: FC<IPillButtonProps> = ({\n id,\n label,\n selected = false,\n disabled = false,\n animatedLabel = '',\n icon,\n onClick,\n tooltip,\n width,\n analyticsLabel,\n analyticsProps,\n isTransparent = false,\n}) => {\n const [isHovered, setHovered] = useState(false);\n const [highlightPhase, setHighlightPhase] = useState(false);\n const { colors } = useTheme();\n const shouldAnimate = !!animatedLabel;\n\n const handleSelect = useCallback(() => {\n onClick(id);\n }, [id, onClick]);\n\n const { handleClick } = useClickHandler({ label, analyticsLabel, analyticsProps }, handleSelect);\n\n useEffect(() => {\n if (!shouldAnimate || disabled) return;\n\n const interval = setInterval(() => {\n setHighlightPhase(prev => !prev);\n }, 1000);\n\n return () => clearInterval(interval);\n }, [disabled, shouldAnimate]);\n\n const handleMouseEnter = useCallback(() => setHovered(true), []);\n const handleMouseLeave = useCallback(() => setHovered(false), []);\n\n const showLottie = !!icon && !disabled && (shouldAnimate || selected || isHovered);\n\n const borderColor = colors[highlightPhase ? 'YELLOW_4' : 'WHITE_1'];\n const textColor = colors[highlightPhase && !selected ? 'YELLOW_4' : 'WHITE_1'];\n const currentLabel = highlightPhase ? animatedLabel : label;\n const defaultTextRenderAs = selected ? 'ub2-bold' : 'ub2';\n const textRenderAs = highlightPhase ? (selected ? 'ub3-bold' : 'ub3') : defaultTextRenderAs;\n\n const ButtonContent = (\n <Styled.Wrapper\n selected={selected}\n disabled={disabled}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n width={width}\n borderColor={borderColor}\n isTransparent={isTransparent}\n >\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $flexColumnGapX={0.25}\n >\n {icon && (\n <Styled.IconWrapper $widthX={1} $heightX={1} $showLottie={showLottie}>\n <LottieAnimation src={icon} settings={lottieSettings} />\n </Styled.IconWrapper>\n )}\n <Styled.Label\n key={currentLabel}\n shouldOffsetLabel={showLottie || !icon}\n selected={selected}\n disabled={disabled}\n $renderAs={textRenderAs}\n textColor={textColor}\n >\n {currentLabel}\n </Styled.Label>\n </FlexView>\n </Styled.Wrapper>\n );\n\n return disabled && tooltip ? (\n <ArrowTooltip renderAs=\"primary\" tooltipItem={tooltip} position=\"top\">\n {ButtonContent}\n </ArrowTooltip>\n ) : (\n ButtonContent\n );\n};\n\nexport default memo(PillButton);\n"],"names":["lottieSettings","PillButton","id","label","selected","disabled","animatedLabel","icon","onClick","tooltip","width","analyticsLabel","analyticsProps","isTransparent","isHovered","setHovered","useState","highlightPhase","setHighlightPhase","colors","useTheme","shouldAnimate","handleSelect","useCallback","handleClick","useClickHandler","useEffect","interval","prev","handleMouseEnter","handleMouseLeave","showLottie","borderColor","textColor","currentLabel","ButtonContent","jsx","Styled.Wrapper","jsxs","FlexView","Styled.IconWrapper","LottieAnimation","Styled.Label","ArrowTooltip","
|
|
1
|
+
{"version":3,"file":"pill-button.js","sources":["../../../../../src/features/auth/comps/pill-button/pill-button.tsx"],"sourcesContent":["import type { IPillButtonProps } from './pill-button-types';\n\nimport { useCallback, useEffect, useState, type FC, memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport useClickHandler from '../../../ui/hooks/use-click-handler';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport * as Styled from './pill-button-styled';\n\nconst lottieSettings = {\n autoplay: true,\n loop: true,\n renderer: 'canvas',\n};\n\nconst PillButton: FC<IPillButtonProps> = ({\n id,\n label,\n selected = false,\n disabled = false,\n animatedLabel = '',\n icon,\n onClick,\n tooltip,\n width,\n analyticsLabel,\n analyticsProps,\n isTransparent = false,\n}) => {\n const [isHovered, setHovered] = useState(false);\n const [highlightPhase, setHighlightPhase] = useState(false);\n const { colors } = useTheme();\n const shouldAnimate = !!animatedLabel;\n\n const handleSelect = useCallback(() => {\n onClick(id);\n }, [id, onClick]);\n\n const { handleClick } = useClickHandler({ label, analyticsLabel, analyticsProps }, handleSelect);\n\n useEffect(() => {\n if (!shouldAnimate || disabled) return;\n\n const interval = setInterval(() => {\n setHighlightPhase(prev => !prev);\n }, 1000);\n\n return () => clearInterval(interval);\n }, [disabled, shouldAnimate]);\n\n const handleMouseEnter = useCallback(() => setHovered(true), []);\n const handleMouseLeave = useCallback(() => setHovered(false), []);\n\n const showLottie = !!icon && !disabled && (shouldAnimate || selected || isHovered);\n\n const borderColor = colors[highlightPhase ? 'YELLOW_4' : 'WHITE_1'];\n const textColor = colors[highlightPhase && !selected ? 'YELLOW_4' : 'WHITE_1'];\n const currentLabel = highlightPhase ? animatedLabel : label;\n const defaultTextRenderAs = selected ? 'ub2-bold' : 'ub2';\n const textRenderAs = highlightPhase ? (selected ? 'ub3-bold' : 'ub3') : defaultTextRenderAs;\n\n const ButtonContent = (\n <Styled.Wrapper\n selected={selected}\n disabled={disabled}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n width={width}\n borderColor={borderColor}\n isTransparent={isTransparent}\n >\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $flexColumnGapX={0.25}\n >\n {icon && (\n <Styled.IconWrapper $widthX={1} $heightX={1} $showLottie={showLottie}>\n <LottieAnimation src={icon} settings={lottieSettings} />\n </Styled.IconWrapper>\n )}\n <Styled.Label\n key={currentLabel}\n shouldOffsetLabel={showLottie || !icon}\n selected={selected}\n disabled={disabled}\n $renderAs={textRenderAs}\n textColor={textColor}\n >\n {currentLabel}\n </Styled.Label>\n </FlexView>\n </Styled.Wrapper>\n );\n\n return disabled && tooltip ? (\n <ArrowTooltip renderAs=\"primary\" tooltipItem={tooltip} position=\"top\">\n {ButtonContent}\n </ArrowTooltip>\n ) : (\n ButtonContent\n );\n};\n\nexport default memo(PillButton);\n"],"names":["lottieSettings","PillButton","id","label","selected","disabled","animatedLabel","icon","onClick","tooltip","width","analyticsLabel","analyticsProps","isTransparent","isHovered","setHovered","useState","highlightPhase","setHighlightPhase","colors","useTheme","shouldAnimate","handleSelect","useCallback","handleClick","useClickHandler","useEffect","interval","prev","handleMouseEnter","handleMouseLeave","showLottie","borderColor","textColor","currentLabel","ButtonContent","jsx","Styled.Wrapper","jsxs","FlexView","Styled.IconWrapper","LottieAnimation","Styled.Label","ArrowTooltip","PillButton$1","memo"],"mappings":";;;;;;;;AAWA,MAAMA,IAAiB;AAAA,EACrB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AACZ,GAEMC,IAAmC,CAAC;AAAA,EACxC,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,UAAAC,IAAW;AAAA,EACX,eAAAC,IAAgB;AAAA,EAChB,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,gBAA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AAAA,UACf,aAAY;AAAA,UACZ,iBAAgB;AAAA,UAChB,iBAAiB;AAAA,UAEhB,UAAA;AAAA,YAAAhC,uBACEiC,GAAA,EAAmB,SAAS,GAAG,UAAU,GAAG,aAAaT,GACxD,4BAACU,GAAgB,EAAA,KAAKlC,GAAM,UAAUP,EAAgB,CAAA,GACxD;AAAA,YAEF,gBAAAoC;AAAA,cAACM;AAAAA,cAAA;AAAA,gBAEC,mBAAmBX,KAAc,CAACxB;AAAA,gBAClC,UAAAH;AAAA,gBACA,UAAAC;AAAA,gBACA,WA7BaY,IAAkBb,IAAW,aAAa,QADnCA,IAAW,aAAa;AAAA,gBA+B5C,WAAA6B;AAAA,gBAEC,UAAAC;AAAA,cAAA;AAAA,cAPIA;AAAA,YAQP;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIG,SAAA7B,KAAYI,IACjB,gBAAA2B,EAACO,GAAa,EAAA,UAAS,WAAU,aAAalC,GAAS,UAAS,OAC7D,UAAA0B,EAAA,CACH,IAEAA;AAEJ,GAEeS,KAAAC,EAAK5C,CAAU;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PLUGINS as _ } from "../../../node_modules/@cuemath/analytics-v2/dist/constants.js";
|
|
2
|
-
var s = /* @__PURE__ */ ((e) => (e.START_SIGNUP_CTA_CLICKED = "start_signup_cta_clicked", e.ECNA_STEP_VIEWED = "ecna_step_viewed", e.ECNA_RESPONSE_RECORDED_DEBUG = "ecna_response_recorded_debug", e.PARENT_SIGNUP_CTA_CLICKED = "parent_signup_cta_clicked", e.PARENT_SIGNUP_SUCCESSFUL = "parent_signup_successful", e.PARENT_SIGNUP_FAILED = "parent_signup_failed", e.STUDENT_SIGNUP_SUCCESSFUL = "signup_successful", e.STUDENT_SIGNUP_FAILED = "signup_failed", e.SIGNUP_OTP_ENTERED = "signup_otp_entered", e.SIGNUP_OTP_VERIFIED = "signup_otp_verified", e.SIGNUP_OTP_FAILED = "signup_otp_failed", e.SLOTS_SHOWN = "slots_shown", e.SLOT_DATE_SELECTED = "slot_date_selected", e.SLOT_TIME_SELECTED = "slot_time_selected", e))(s || {});
|
|
3
|
-
const
|
|
2
|
+
var s = /* @__PURE__ */ ((e) => (e.START_SIGNUP_CTA_CLICKED = "start_signup_cta_clicked", e.ECNA_STEP_VIEWED = "ecna_step_viewed", e.ECNA_RESPONSE_RECORDED_DEBUG = "ecna_response_recorded_debug", e.PARENT_SIGNUP_CTA_CLICKED = "parent_signup_cta_clicked", e.PARENT_SIGNUP_SUCCESSFUL = "parent_signup_successful", e.PARENT_SIGNUP_FAILED = "parent_signup_failed", e.STUDENT_SIGNUP_SUCCESSFUL = "signup_successful", e.STUDENT_SIGNUP_FAILED = "signup_failed", e.SIGNUP_OTP_ENTERED = "signup_otp_entered", e.SIGNUP_OTP_VERIFIED = "signup_otp_verified", e.SIGNUP_OTP_FAILED = "signup_otp_failed", e.SLOTS_SHOWN = "slots_shown", e.SLOT_DATE_SELECTED = "slot_date_selected", e.SLOT_TIME_SELECTED = "slot_time_selected", e.TUTOR_CHANGE_REASON_SELECTED = "tutor_change_reason_selected", e))(s || {});
|
|
3
|
+
const n = {
|
|
4
4
|
start_signup_cta_clicked: [_.MIXPANEL],
|
|
5
5
|
ecna_step_viewed: [_.MIXPANEL],
|
|
6
6
|
ecna_response_recorded_debug: [_.MIXPANEL],
|
|
@@ -14,10 +14,11 @@ const i = {
|
|
|
14
14
|
signup_otp_failed: [_.MIXPANEL],
|
|
15
15
|
slots_shown: [_.MIXPANEL],
|
|
16
16
|
slot_date_selected: [_.MIXPANEL],
|
|
17
|
-
slot_time_selected: [_.MIXPANEL]
|
|
17
|
+
slot_time_selected: [_.MIXPANEL],
|
|
18
|
+
tutor_change_reason_selected: [_.MIXPANEL]
|
|
18
19
|
};
|
|
19
20
|
export {
|
|
20
21
|
s as PLA_ANALYTICS_EVENTS,
|
|
21
|
-
|
|
22
|
+
n as PLA_ANALYTICS_WHITELIST_EVENTS
|
|
22
23
|
};
|
|
23
24
|
//# sourceMappingURL=pla-analytics-events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pla-analytics-events.js","sources":["../../../../src/features/auth/pla-signup/pla-analytics-events.ts"],"sourcesContent":["import { PLUGINS } from '@cuemath/analytics-v2/dist/constants';\n\nexport enum PLA_ANALYTICS_EVENTS {\n START_SIGNUP_CTA_CLICKED = 'start_signup_cta_clicked',\n ECNA_STEP_VIEWED = 'ecna_step_viewed',\n ECNA_RESPONSE_RECORDED_DEBUG = 'ecna_response_recorded_debug',\n PARENT_SIGNUP_CTA_CLICKED = 'parent_signup_cta_clicked',\n PARENT_SIGNUP_SUCCESSFUL = 'parent_signup_successful',\n PARENT_SIGNUP_FAILED = 'parent_signup_failed',\n STUDENT_SIGNUP_SUCCESSFUL = 'signup_successful',\n STUDENT_SIGNUP_FAILED = 'signup_failed',\n SIGNUP_OTP_ENTERED = 'signup_otp_entered',\n SIGNUP_OTP_VERIFIED = 'signup_otp_verified',\n SIGNUP_OTP_FAILED = 'signup_otp_failed',\n SLOTS_SHOWN = 'slots_shown',\n SLOT_DATE_SELECTED = 'slot_date_selected',\n SLOT_TIME_SELECTED = 'slot_time_selected',\n}\n\nexport const PLA_ANALYTICS_WHITELIST_EVENTS = {\n [PLA_ANALYTICS_EVENTS.START_SIGNUP_CTA_CLICKED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.ECNA_STEP_VIEWED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.ECNA_RESPONSE_RECORDED_DEBUG]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_CTA_CLICKED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_SUCCESSFUL]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STUDENT_SIGNUP_SUCCESSFUL]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STUDENT_SIGNUP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_ENTERED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_VERIFIED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOTS_SHOWN]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOT_DATE_SELECTED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOT_TIME_SELECTED]: [PLUGINS.MIXPANEL],\n};\n"],"names":["PLA_ANALYTICS_EVENTS","PLA_ANALYTICS_WHITELIST_EVENTS","PLUGINS"],"mappings":";AAEY,IAAAA,sBAAAA,OACVA,EAAA,2BAA2B,4BAC3BA,EAAA,mBAAmB,oBACnBA,EAAA,+BAA+B,gCAC/BA,EAAA,4BAA4B,6BAC5BA,EAAA,2BAA2B,4BAC3BA,EAAA,uBAAuB,wBACvBA,EAAA,4BAA4B,qBAC5BA,EAAA,wBAAwB,iBACxBA,EAAA,qBAAqB,sBACrBA,EAAA,sBAAsB,uBACtBA,EAAA,oBAAoB,qBACpBA,EAAA,cAAc,eACdA,EAAA,qBAAqB,sBACrBA,EAAA,qBAAqB,
|
|
1
|
+
{"version":3,"file":"pla-analytics-events.js","sources":["../../../../src/features/auth/pla-signup/pla-analytics-events.ts"],"sourcesContent":["import { PLUGINS } from '@cuemath/analytics-v2/dist/constants';\n\nexport enum PLA_ANALYTICS_EVENTS {\n START_SIGNUP_CTA_CLICKED = 'start_signup_cta_clicked',\n ECNA_STEP_VIEWED = 'ecna_step_viewed',\n ECNA_RESPONSE_RECORDED_DEBUG = 'ecna_response_recorded_debug',\n PARENT_SIGNUP_CTA_CLICKED = 'parent_signup_cta_clicked',\n PARENT_SIGNUP_SUCCESSFUL = 'parent_signup_successful',\n PARENT_SIGNUP_FAILED = 'parent_signup_failed',\n STUDENT_SIGNUP_SUCCESSFUL = 'signup_successful',\n STUDENT_SIGNUP_FAILED = 'signup_failed',\n SIGNUP_OTP_ENTERED = 'signup_otp_entered',\n SIGNUP_OTP_VERIFIED = 'signup_otp_verified',\n SIGNUP_OTP_FAILED = 'signup_otp_failed',\n SLOTS_SHOWN = 'slots_shown',\n SLOT_DATE_SELECTED = 'slot_date_selected',\n SLOT_TIME_SELECTED = 'slot_time_selected',\n TUTOR_CHANGE_REASON_SELECTED = 'tutor_change_reason_selected',\n}\n\nexport const PLA_ANALYTICS_WHITELIST_EVENTS = {\n [PLA_ANALYTICS_EVENTS.START_SIGNUP_CTA_CLICKED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.ECNA_STEP_VIEWED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.ECNA_RESPONSE_RECORDED_DEBUG]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_CTA_CLICKED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_SUCCESSFUL]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STUDENT_SIGNUP_SUCCESSFUL]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STUDENT_SIGNUP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_ENTERED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_VERIFIED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_FAILED]: [PLUGINS.MIXP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D,aAAmC,CAACA,EAAQ,QAAQ;AAAA,EACpD,oBAA0C,CAACA,EAAQ,QAAQ;AAAA,EAC3D,oBAA0C,CAACA,EAAQ,QAAQ;AAAA,EAC3D,8BAAoD,CAACA,EAAQ,QAAQ;AACxE;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const N = {
|
|
2
|
+
CONFUSING_EXPLANATIONS: "CONFUSING_EXPLANATIONS",
|
|
3
|
+
WRONG_PACE: "WRONG_PACE",
|
|
4
|
+
NOT_ENGAGING: "NOT_ENGAGING",
|
|
5
|
+
PERSONALITY_MISMATCH: "PERSONALITY_MISMATCH",
|
|
6
|
+
IMPATIENT: "IMPATIENT",
|
|
7
|
+
UNCLEAR_COMMUNICATION: "UNCLEAR_COMMUNICATION",
|
|
8
|
+
OTHER: "OTHER"
|
|
9
|
+
}, A = [
|
|
10
|
+
{
|
|
11
|
+
id: N.CONFUSING_EXPLANATIONS,
|
|
12
|
+
label: "Explanations were confusing"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: N.WRONG_PACE,
|
|
16
|
+
label: "Moved too fast or slow"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: N.NOT_ENGAGING,
|
|
20
|
+
label: "Couldn’t keep my child engaged"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: N.PERSONALITY_MISMATCH,
|
|
24
|
+
label: "Personality didn't click with my child"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: N.IMPATIENT,
|
|
28
|
+
label: "Wasn’t patient enough"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: N.UNCLEAR_COMMUNICATION,
|
|
32
|
+
label: "Communication wasn't clear enough"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: N.OTHER,
|
|
36
|
+
label: "Something else"
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
export {
|
|
40
|
+
N as TUTOR_CHANGE_REASON_IDS,
|
|
41
|
+
A as changeTutorReasons
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=tutor-change-constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tutor-change-constants.js","sources":["../../../../../src/features/parent-dashboard/modals/tutor-change/tutor-change-constants.ts"],"sourcesContent":["export const TUTOR_CHANGE_REASON_IDS = {\n CONFUSING_EXPLANATIONS: 'CONFUSING_EXPLANATIONS',\n WRONG_PACE: 'WRONG_PACE',\n NOT_ENGAGING: 'NOT_ENGAGING',\n PERSONALITY_MISMATCH: 'PERSONALITY_MISMATCH',\n IMPATIENT: 'IMPATIENT',\n UNCLEAR_COMMUNICATION: 'UNCLEAR_COMMUNICATION',\n OTHER: 'OTHER',\n} as const;\n\nexport const changeTutorReasons = [\n {\n id: TUTOR_CHANGE_REASON_IDS.CONFUSING_EXPLANATIONS,\n label: 'Explanations were confusing',\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.WRONG_PACE,\n label: 'Moved too fast or slow',\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.NOT_ENGAGING,\n label: 'Couldn’t keep my child engaged',\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.PERSONALITY_MISMATCH,\n label: `Personality didn't click with my child`,\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.IMPATIENT,\n label: `Wasn’t patient enough`,\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.UNCLEAR_COMMUNICATION,\n label: `Communication wasn't clear enough`,\n },\n {\n id: TUTOR_CHANGE_REASON_IDS.OTHER,\n label: `Something else`,\n },\n];\n"],"names":["TUTOR_CHANGE_REASON_IDS","changeTutorReasons"],"mappings":"AAAO,MAAMA,IAA0B;AAAA,EACrC,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,WAAW;AAAA,EACX,uBAAuB;AAAA,EACvB,OAAO;AACT,GAEaC,IAAqB;AAAA,EAChC;AAAA,IACE,IAAID,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAIA,EAAwB;AAAA,IAC5B,OAAO;AAAA,EACT;AACF;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import o from "styled-components";
|
|
2
|
+
import t from "../../../ui/layout/flex-view.js";
|
|
3
|
+
const s = o(t)`
|
|
4
|
+
max-width: 560px;
|
|
5
|
+
border: ${({ theme: e }) => `1px solid ${e.colors.BLACK_5}`};
|
|
6
|
+
`, x = o(t)`
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
max-height: 468px;
|
|
9
|
+
${({ theme: e }) => e.mediaQueries.minWidthTablet} {
|
|
10
|
+
max-height: unset;
|
|
11
|
+
overflow-y: hidden;
|
|
12
|
+
})}
|
|
13
|
+
`, h = o(t)`
|
|
14
|
+
padding-top: 0;
|
|
15
|
+
${({ theme: e }) => e.mediaQueries.minWidthTablet} {
|
|
16
|
+
max-height: 300px;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
})}
|
|
19
|
+
`, m = o(t)`
|
|
20
|
+
padding-bottom: 24px;
|
|
21
|
+
${({ theme: e }) => e.mediaQueries.minWidthTablet} {
|
|
22
|
+
border-top: ${({ theme: e }) => `1px solid ${e.colors.BLACK_5}`};
|
|
23
|
+
padding-bottom: 40px;
|
|
24
|
+
})}
|
|
25
|
+
`, c = o.textarea(({ theme: e }) => {
|
|
26
|
+
const {
|
|
27
|
+
colors: { WHITE: i, WHITE_T_38: r, BLACK_2: n, BLACK_5: a },
|
|
28
|
+
layout: { gutter: p }
|
|
29
|
+
} = e;
|
|
30
|
+
return `border: 1px solid ${a};
|
|
31
|
+
width: 100%;
|
|
32
|
+
min-height: ${p * 5}px;
|
|
33
|
+
padding: 16px;
|
|
34
|
+
background-color: ${n};
|
|
35
|
+
white-space: pre-line;
|
|
36
|
+
font-family: 'Untitled Sans Regular';
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
line-height: 24px;
|
|
40
|
+
color: ${i};
|
|
41
|
+
resize: none;
|
|
42
|
+
outline: none;
|
|
43
|
+
&::placeholder {
|
|
44
|
+
color: ${r};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus {
|
|
48
|
+
outline: none;
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
s as Container,
|
|
54
|
+
h as ContentWrapper,
|
|
55
|
+
m as FooterWrapper,
|
|
56
|
+
x as OuterWrapper,
|
|
57
|
+
c as StyledTextArea
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=tutor-change-styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tutor-change-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/tutor-change/tutor-change-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n max-width: 560px;\n border: ${({ theme }) => `1px solid ${theme.colors.BLACK_5}`};\n`;\n\nexport const OuterWrapper = styled(FlexView)`\n overflow-y: auto;\n max-height: 468px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-height: unset;\n overflow-y: hidden;\n })}\n`;\n\nexport const ContentWrapper = styled(FlexView)`\n padding-top: 0;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-height: 300px;\n overflow-y: auto;\n })}\n`;\n\nexport const FooterWrapper = styled(FlexView)`\n padding-bottom: 24px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n border-top: ${({ theme }) => `1px solid ${theme.colors.BLACK_5}`};\n padding-bottom: 40px;\n })}\n`;\n\nexport const StyledTextArea = styled.textarea(({ theme }) => {\n const {\n colors: { WHITE, WHITE_T_38, BLACK_2, BLACK_5 },\n layout: { gutter },\n } = theme;\n\n return `border: 1px solid ${BLACK_5};\n width: 100%;\n min-height: ${gutter * 5}px;\n padding: 16px;\n background-color: ${BLACK_2};\n white-space: pre-line;\n font-family: 'Untitled Sans Regular';\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n color: ${WHITE};\n resize: none;\n outline: none;\n &::placeholder {\n color: ${WHITE_T_38};\n }\n\n &:focus {\n outline: none;\n }\n`;\n});\n"],"names":["Container","styled","FlexView","theme","OuterWrapper","ContentWrapper","FooterWrapper","StyledTextArea","WHITE","WHITE_T_38","BLACK_2","BLACK_5","gutter"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,YAE5B,CAAC,EAAE,OAAAC,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA,GAGjDC,IAAeH,EAAOC,CAAQ;AAAA;AAAA;AAAA,IAGvC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA,GAMvCE,IAAiBJ,EAAOC,CAAQ;AAAA;AAAA,IAEzC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA,GAMvCG,IAAgBL,EAAOC,CAAQ;AAAA;AAAA,IAExC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA,kBAClC,CAAC,EAAE,OAAAA,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA;AAAA;AAAA,GAKvDI,IAAiBN,EAAO,SAAS,CAAC,EAAE,OAAAE,QAAY;AACrD,QAAA;AAAA,IACJ,QAAQ,EAAE,OAAAK,GAAO,YAAAC,GAAY,SAAAC,GAAS,SAAAC,EAAQ;AAAA,IAC9C,QAAQ,EAAE,QAAAC,EAAO;AAAA,EACf,IAAAT;AAEJ,SAAO,qBAAqBQ,CAAO;AAAA;AAAA,gBAErBC,IAAS,CAAC;AAAA;AAAA,sBAEJF,CAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAMlBF,CAAK;AAAA;AAAA;AAAA;AAAA,aAIHC,CAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOvB,CAAC;"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useRef as R, useCallback as u, useEffect as w } from "react";
|
|
3
|
+
import { useTheme as A } from "styled-components";
|
|
4
|
+
import E from "../../../auth/comps/pill-button/pill-button.js";
|
|
5
|
+
import h from "../../../ui/buttons/text-button/text-button.js";
|
|
6
|
+
import O from "../../../ui/layout/flex-view.js";
|
|
7
|
+
import I from "../../../ui/modals/use-modal-actions.js";
|
|
8
|
+
import X from "../../../ui/modals/use-modal-params.js";
|
|
9
|
+
import S from "../../../ui/text/text.js";
|
|
10
|
+
import { EDeviceType as W } from "../../../ui/theme/constants.js";
|
|
11
|
+
import { changeTutorReasons as k, TUTOR_CHANGE_REASON_IDS as M } from "./tutor-change-constants.js";
|
|
12
|
+
import { Container as v, OuterWrapper as B, ContentWrapper as H, StyledTextArea as _, FooterWrapper as D } from "./tutor-change-styled.js";
|
|
13
|
+
const y = () => {
|
|
14
|
+
const { device: f } = A(), [n, $] = p(""), [l, C] = p(""), o = f <= W.MOBILE, { closeModal: c } = I(), a = R(null), { onContinue: m, demoId: d } = X(), x = u((e) => $(e), []), T = u((e) => {
|
|
15
|
+
C(e.target.value);
|
|
16
|
+
}, []), t = n === M.OTHER, b = !n || t && !l.trim(), g = u(() => {
|
|
17
|
+
c(), m(d, n, t ? l : "");
|
|
18
|
+
}, [c, m, d, n, t, l]);
|
|
19
|
+
return w(() => {
|
|
20
|
+
var e, s;
|
|
21
|
+
t && a.current && ((e = a.current) == null || e.scrollIntoView({ behavior: "smooth" }), (s = a.current) == null || s.focus());
|
|
22
|
+
}, [t]), /* @__PURE__ */ i(v, { $background: "BLACK_2", $width: "100%", $borderColor: "BLACK_5", children: [
|
|
23
|
+
/* @__PURE__ */ i(B, { $flex: 1, children: [
|
|
24
|
+
/* @__PURE__ */ r(O, { $gutterX: o ? 1 : 2.5, $gapX: o ? 1.5 : 2.5, children: /* @__PURE__ */ r(S, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "What didn't work well with the current tutor?" }) }),
|
|
25
|
+
/* @__PURE__ */ i(
|
|
26
|
+
H,
|
|
27
|
+
{
|
|
28
|
+
$flex: 1,
|
|
29
|
+
$gutterX: o ? 1 : 2.5,
|
|
30
|
+
$gapX: o ? 1 : 2.5,
|
|
31
|
+
$width: "100%",
|
|
32
|
+
$alignItems: "flex-start",
|
|
33
|
+
$flexRowGapX: 1,
|
|
34
|
+
children: [
|
|
35
|
+
k.map(({ id: e, label: s }) => /* @__PURE__ */ r(
|
|
36
|
+
E,
|
|
37
|
+
{
|
|
38
|
+
selected: n === e,
|
|
39
|
+
label: s,
|
|
40
|
+
id: e,
|
|
41
|
+
onClick: x,
|
|
42
|
+
isTransparent: !0
|
|
43
|
+
},
|
|
44
|
+
e
|
|
45
|
+
)),
|
|
46
|
+
t && /* @__PURE__ */ r(
|
|
47
|
+
_,
|
|
48
|
+
{
|
|
49
|
+
placeholder: "Tell us more about your experience...",
|
|
50
|
+
id: "text-area",
|
|
51
|
+
ref: a,
|
|
52
|
+
value: l,
|
|
53
|
+
onChange: T
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ i(
|
|
61
|
+
D,
|
|
62
|
+
{
|
|
63
|
+
$gutterX: o ? 1 : 2.5,
|
|
64
|
+
$gapX: o ? 1 : 2.5,
|
|
65
|
+
$flexDirection: "row",
|
|
66
|
+
$flexColumnGapX: 1.5,
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ r(
|
|
69
|
+
h,
|
|
70
|
+
{
|
|
71
|
+
label: "Continue",
|
|
72
|
+
onClick: g,
|
|
73
|
+
color: "WHITE",
|
|
74
|
+
disabled: b
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ r(h, { label: "Close", onClick: c, color: "WHITE" })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] });
|
|
82
|
+
}, Q = y;
|
|
83
|
+
export {
|
|
84
|
+
Q as default
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=tutor-change.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tutor-change.js","sources":["../../../../../src/features/parent-dashboard/modals/tutor-change/tutor-change.tsx"],"sourcesContent":["import type { ITutorChangeModalParams } from './tutor-change-types';\n\nimport { useCallback, useEffect, useRef, useState, type ChangeEvent } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport PillButton from '../../../auth/comps/pill-button/pill-button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport useModalActions from '../../../ui/modals/use-modal-actions';\nimport useModalParams from '../../../ui/modals/use-modal-params';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport { TUTOR_CHANGE_REASON_IDS, changeTutorReasons } from './tutor-change-constants';\nimport * as Styled from './tutor-change-styled';\n\nconst TutorChange = () => {\n const { device } = useTheme();\n const [reason, setReason] = useState('');\n const [otherReason, setOtherReason] = useState('');\n const isMobile = device <= EDeviceType.MOBILE;\n const { closeModal } = useModalActions();\n const textAreaRef = useRef<HTMLTextAreaElement | null>(null);\n const { onContinue, demoId } = useModalParams<ITutorChangeModalParams>();\n const handleSelectReason = useCallback((id: string) => setReason(id), []);\n\n const handleOtherReasonChange = useCallback((event: ChangeEvent<HTMLTextAreaElement>) => {\n setOtherReason(event.target.value);\n }, []);\n const isOtherReasonSelected = reason === TUTOR_CHANGE_REASON_IDS.OTHER;\n const isSubmitDisabled = !reason || (isOtherReasonSelected && !otherReason.trim());\n\n const handleContinue = useCallback(() => {\n closeModal();\n onContinue(demoId, reason, isOtherReasonSelected ? otherReason : '');\n }, [closeModal, onContinue, demoId, reason, isOtherReasonSelected, otherReason]);\n\n useEffect(() => {\n if (isOtherReasonSelected && textAreaRef.current) {\n textAreaRef.current?.scrollIntoView({ behavior: 'smooth' });\n textAreaRef.current?.focus();\n }\n }, [isOtherReasonSelected]);\n\n return (\n <Styled.Container $background=\"BLACK_2\" $width=\"100%\" $borderColor=\"BLACK_5\">\n <Styled.OuterWrapper $flex={1}>\n <FlexView $gutterX={isMobile ? 1 : 2.5} $gapX={isMobile ? 1.5 : 2.5}>\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n What didn't work well with the current tutor?\n </Text>\n </FlexView>\n <Styled.ContentWrapper\n $flex={1}\n $gutterX={isMobile ? 1 : 2.5}\n $gapX={isMobile ? 1 : 2.5}\n $width={'100%'}\n $alignItems=\"flex-start\"\n $flexRowGapX={1}\n >\n {changeTutorReasons.map(({ id, label }) => (\n <PillButton\n selected={reason === id}\n key={id}\n label={label}\n id={id}\n onClick={handleSelectReason}\n isTransparent\n />\n ))}\n {isOtherReasonSelected && (\n <Styled.StyledTextArea\n placeholder=\"Tell us more about your experience...\"\n id=\"text-area\"\n ref={textAreaRef}\n value={otherReason}\n onChange={handleOtherReasonChange}\n />\n )}\n </Styled.ContentWrapper>\n </Styled.OuterWrapper>\n <Styled.FooterWrapper\n $gutterX={isMobile ? 1 : 2.5}\n $gapX={isMobile ? 1 : 2.5}\n $flexDirection=\"row\"\n $flexColumnGapX={1.5}\n >\n <TextButton\n label=\"Continue\"\n onClick={handleContinue}\n color=\"WHITE\"\n disabled={isSubmitDisabled}\n />\n <TextButton label=\"Close\" onClick={closeModal} color=\"WHITE\" />\n </Styled.FooterWrapper>\n </Styled.Container>\n );\n};\n\nexport default TutorChange;\n"],"names":["TutorChange","device","useTheme","reason","setReason","useState","otherReason","setOtherReason","isMobile","EDeviceType","closeModal","useModalActions","textAreaRef","useRef","onContinue","demoId","useModalParams","handleSelectReason","useCallback","id","handleOtherReasonChange","event","isOtherReasonSelected","TUTOR_CHANGE_REASON_IDS","isSubmitDisabled","handleContinue","useEffect","_a","_b","jsxs","Styled.Container","Styled.OuterWrapper","jsx","FlexView","Text","Styled.ContentWrapper","changeTutorReasons","label","PillButton","Styled.StyledTextArea","Styled.FooterWrapper","TextButton","TutorChange$1"],"mappings":";;;;;;;;;;;;AAeA,MAAMA,IAAc,MAAM;AAClB,QAAA,EAAE,QAAAC,MAAWC,KACb,CAACC,GAAQC,CAAS,IAAIC,EAAS,EAAE,GACjC,CAACC,GAAaC,CAAc,IAAIF,EAAS,EAAE,GAC3CG,IAAWP,KAAUQ,EAAY,QACjC,EAAE,YAAAC,MAAeC,KACjBC,IAAcC,EAAmC,IAAI,GACrD,EAAE,YAAAC,GAAY,QAAAC,EAAO,IAAIC,EAAwC,GACjEC,IAAqBC,EAAY,CAACC,MAAef,EAAUe,CAAE,GAAG,CAAA,CAAE,GAElEC,IAA0BF,EAAY,CAACG,MAA4C;AACxE,IAAAd,EAAAc,EAAM,OAAO,KAAK;AAAA,EACnC,GAAG,CAAE,CAAA,GACCC,IAAwBnB,MAAWoB,EAAwB,OAC3DC,IAAmB,CAACrB,KAAWmB,KAAyB,CAAChB,EAAY,QAErEmB,IAAiBP,EAAY,MAAM;AAC5B,IAAAR,KACXI,EAAWC,GAAQZ,GAAQmB,IAAwBhB,IAAc,EAAE;AAAA,EAAA,GAClE,CAACI,GAAYI,GAAYC,GAAQZ,GAAQm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,gBAAAS;AAAA,MAACW;AAAAA,MAAA;AAAA,QACC,UAAUhC,IAAW,IAAI;AAAA,QACzB,OAAOA,IAAW,IAAI;AAAA,QACtB,gBAAe;AAAA,QACf,iBAAiB;AAAA,QAEjB,UAAA;AAAA,UAAA,gBAAAwB;AAAA,YAACS;AAAA,YAAA;AAAA,cACC,OAAM;AAAA,cACN,SAAShB;AAAA,cACT,OAAM;AAAA,cACN,UAAUD;AAAA,YAAA;AAAA,UACZ;AAAA,4BACCiB,GAAW,EAAA,OAAM,SAAQ,SAAS/B,GAAY,OAAM,SAAQ;AAAA,QAAA;AAAA,MAAA;AAAA,IAC/D;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAgC,IAAe1C;"}
|
|
@@ -128,7 +128,7 @@ const Ve = ee(
|
|
|
128
128
|
s,
|
|
129
129
|
c,
|
|
130
130
|
k
|
|
131
|
-
]), B = t(() => S ?
|
|
131
|
+
]), B = t(() => S ? /* @__PURE__ */ o(a, { children: [
|
|
132
132
|
/* @__PURE__ */ e(n, { height: r.separator.small }),
|
|
133
133
|
/* @__PURE__ */ o(a, { $flexDirection: "row", $flexColumnGapX: 0.25, children: [
|
|
134
134
|
/* @__PURE__ */ e(K, { $renderAs: "ub1", $renderOnMobileAs: "ub2", $color: "WHITE", children: "Not the right fit for your child?" }),
|
|
@@ -142,7 +142,7 @@ const Ve = ee(
|
|
|
142
142
|
}
|
|
143
143
|
)
|
|
144
144
|
] })
|
|
145
|
-
] }), [S, r.separator.small, I]), _ = t(() => i ? /* @__PURE__ */ o(a, { children: [
|
|
145
|
+
] }) : null, [S, r.separator.small, I]), _ = t(() => i ? /* @__PURE__ */ o(a, { children: [
|
|
146
146
|
/* @__PURE__ */ e(n, { height: r.separator.extraLarge }),
|
|
147
147
|
/* @__PURE__ */ e(K, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Know your tutor" }),
|
|
148
148
|
/* @__PURE__ */ e(n, { height: r.separator.medium }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parent-dashboard-view.js","sources":["../../../src/features/parent-dashboard/parent-dashboard-view.tsx"],"sourcesContent":["import type { ESummaryType, IParentDashboardProps, ISpacingConfig } from './parent-dashboard-types';\n\nimport React, { memo, useMemo, useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport OnboardingGuide from '../auth/pla-signup/onboarding-guide/onboarding-guide';\nimport SignupHeader from '../auth/pla-signup/signup-header/signup-header';\nimport NextSteps from '../trial-session/comps/pla/next-steps/next-steps';\nimport SessionStatus from '../trial-session/comps/pla/session-status/session-status';\nimport SessionSummary from '../trial-session/comps/pla/session-summary/session-summary';\nimport UpcomingSessions from '../trial-session/comps/pla/upcoming-sessions/upcoming-sessions';\nimport TeacherProfile from '../trial-session/comps/teacher-intro/teacher-profile/teacher-profile';\nimport Button from '../ui/buttons/button/button';\nimport TextButton from '../ui/buttons/text-button/text-button';\nimport Error from '../ui/error/error';\nimport FlexView from '../ui/layout/flex-view';\nimport AppLoader from '../ui/loader/app-loader/app-loader';\nimport Separator from '../ui/separator/separator';\nimport Text from '../ui/text/text';\nimport { EDeviceType } from '../ui/theme/constants';\nimport CompactHeader from './comps/compact-header/compact-header';\nimport CuemathAppFeatures from './comps/cuemath-app-features/cuemath-app-features';\nimport MathPractice from './comps/math-practice/math-practice';\nimport ParentDashboardFaqs from './comps/parent-dashboard-faqs/parent-dashboard-faqs';\nimport useParentHomeData from './hooks/use-parent-home-data';\nimport useStudentProfileSummaryData from './hooks/use-student-profile-summary-data';\nimport { DESKTOP_SPACING, MOBILE_SPACING } from './parent-dashboard-constants';\nimport * as Styled from './parent-dashboard-styled';\n\nconst ParentDashboardView: React.FC<IParentDashboardProps> = memo(\n ({\n studentName,\n studentId,\n onRescheduleDemo,\n onViewSummary,\n onGetStartedAgain,\n onChangeTutor,\n canChangeTutor,\n onSwitchUser,\n isSubscriptionCancelled,\n HeaderAvatar,\n }) => {\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n\n const {\n teacherDetails,\n teacherName,\n completedSessions,\n nextSessionStart,\n nextSessionEnd,\n classStatus,\n upcomingSessions,\n isDemoDone,\n isOnlyOneSessionCompleted,\n isMoreThanOneSessionCompleted,\n showLoading = false,\n demoId,\n fetchData: fetchParentHomeData,\n isProcessingFailed,\n userAttemptId,\n } = useParentHomeData(studentId);\n\n const { summaryInfo, fetchSummaryData } = useStudentProfileSummaryData(studentId);\n\n const handleTryAgain = useCallback(() => {\n fetchParentHomeData();\n fetchSummaryData();\n }, [fetchParentHomeData, fetchSummaryData]);\n\n const handleRescheduleDemo = useCallback(() => {\n onRescheduleDemo(demoId);\n }, [demoId, onRescheduleDemo]);\n\n const handleChangeTutor = useCallback(() => {\n if (demoId) {\n onChangeTutor(demoId);\n }\n }, [demoId, onChangeTutor]);\n\n const spacing: ISpacingConfig = useMemo(\n () => (isMobile ? MOBILE_SPACING : DESKTOP_SPACING),\n [isMobile],\n );\n\n const handleViewSummary = useCallback(\n (key: ESummaryType) => {\n onViewSummary?.(key, { ...summaryInfo, userAttemptId });\n },\n [onViewSummary, summaryInfo, userAttemptId],\n );\n\n const buttonWidth = isMobile ? '100%' : 200;\n\n const renderCancelledSubscriptionView = useCallback(\n () => (\n <FlexView>\n <SignupHeader />\n <Separator height={spacing.separator.extraLarge} />\n <OnboardingGuide orientation=\"horizontal\" />\n {onGetStartedAgain && (\n <FlexView>\n <Separator height={spacing.medium} />\n <Button\n label=\"Get Started\"\n renderAs=\"yellow-dark\"\n shape=\"square\"\n width={buttonWidth}\n onClick={onGetStartedAgain}\n />\n </FlexView>\n )}\n </FlexView>\n ),\n [spacing, buttonWidth, onGetStartedAgain],\n );\n\n const renderSessionStatusSection = useCallback(\n () => (\n <SessionStatus\n completedSessions={completedSessions}\n nextSessionStartTime={nextSessionStart}\n teacherName={teacherName}\n status={classStatus}\n nextSessionEndTime={nextSessionEnd}\n studentName={studentName}\n onRescheduleClick={handleRescheduleDemo}\n />\n ),\n [\n completedSessions,\n nextSessionStart,\n teacherName,\n classStatus,\n nextSessionEnd,\n studentName,\n handleRescheduleDemo,\n ],\n );\n\n const renderTeacherProfileSection = useCallback(() => {\n if (!teacherDetails || isDemoDone) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.large} />\n <TeacherProfile teacherProfile={teacherDetails} />\n </FlexView>\n );\n }, [teacherDetails, isDemoDone, spacing.separator.large]);\n\n const renderSessionSummarySection = useCallback(() => {\n if (isMoreThanOneSessionCompleted) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <SessionSummary\n isDemoDone={isDemoDone}\n studentName={studentName}\n onViewSummary={handleViewSummary}\n />\n </FlexView>\n );\n }, [\n isMoreThanOneSessionCompleted,\n spacing.separator.extraLarge,\n isDemoDone,\n studentName,\n handleViewSummary,\n ]);\n\n const renderTutorChangeSection = useCallback(() => {\n if (canChangeTutor) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.small} />\n <FlexView $flexDirection=\"row\" $flexColumnGapX={0.25}>\n <Text $renderAs=\"ub1\" $renderOnMobileAs=\"ub2\" $color=\"WHITE\">\n Not the right fit for your child?\n </Text>\n <TextButton\n color=\"WHITE_1\"\n sizeOnMobile=\"small\"\n label=\"Try another tutor\"\n onClick={handleChangeTutor}\n />\n </FlexView>\n </FlexView>\n );\n }, [canChangeTutor, spacing.separator.small, handleChangeTutor]);\n\n const renderTeacherDetailsSection = useCallback(() => {\n if (!teacherDetails) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n Know your tutor\n </Text>\n <Separator height={spacing.separator.medium} />\n <TeacherProfile teacherProfile={teacherDetails} />\n {renderTutorChangeSection()}\n </FlexView>\n );\n }, [teacherDetails, spacing.separator, renderTutorChangeSection]);\n\n const renderOnlyOneSessionSection = useCallback(() => {\n if (!isOnlyOneSessionCompleted) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <NextSteps />\n <Separator height={spacing.separator.extraLarge} />\n <UpcomingSessions sessions={upcomingSessions} />\n {renderTeacherDetailsSection()}\n </FlexView>\n );\n }, [\n isOnlyOneSessionCompleted,\n spacing.separator.extraLarge,\n upcomingSessions,\n renderTeacherDetailsSection,\n ]);\n\n const renderAppFeaturesSection = useCallback(() => {\n if (!isDemoDone) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <CuemathAppFeatures />\n </FlexView>\n );\n }, [isDemoDone, spacing.separator.extraLarge]);\n\n const renderMathPracticeSection = useCallback(() => {\n if (isMoreThanOneSessionCompleted) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <Styled.MathPracticeWrapper>\n <MathPractice onSwitchUser={onSwitchUser} />\n </Styled.MathPracticeWrapper>\n </FlexView>\n );\n }, [isMoreThanOneSessionCompleted, spacing.separator.extraLarge, onSwitchUser]);\n\n const renderMainContent = useCallback(\n () => (\n <FlexView>\n {renderSessionStatusSection()}\n {renderTeacherProfileSection()}\n {renderSessionSummarySection()}\n {renderOnlyOneSessionSection()}\n {renderAppFeaturesSection()}\n {renderMathPracticeSection()}\n </FlexView>\n ),\n [\n renderSessionStatusSection,\n renderTeacherProfileSection,\n renderSessionSummarySection,\n renderOnlyOneSessionSection,\n renderAppFeaturesSection,\n renderMathPracticeSection,\n ],\n );\n\n const renderFaqsSection = useCallback(\n () => (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <ParentDashboardFaqs />\n </FlexView>\n ),\n [spacing.separator.extraLarge],\n );\n\n if (showLoading) {\n return <AppLoader height=\"100vh\" />;\n }\n\n if (isProcessingFailed)\n return (\n <FlexView $flex={1} $alignItems=\"center\" $justifyContent=\"center\">\n <Error theme=\"dark\" onTryAgain={handleTryAgain} />\n </FlexView>\n );\n\n return (\n <Styled.Container>\n <CompactHeader HeaderAvatar={HeaderAvatar} />\n <Styled.ContentWrapper\n $flex={1}\n $width=\"100%\"\n $height=\"100%\"\n $background=\"BLACK_1\"\n $gap={spacing.medium}\n $gutter={spacing.small}\n >\n {isSubscriptionCancelled ? renderCancelledSubscriptionView() : renderMainContent()}\n {renderFaqsSection()}\n </Styled.ContentWrapper>\n </Styled.Container>\n );\n },\n);\n\nexport default ParentDashboardView;\n"],"names":["ParentDashboardView","memo","studentName","studentId","onRescheduleDemo","onViewSummary","onGetStartedAgain","onChangeTutor","canChangeTutor","onSwitchUser","isSubscriptionCancelled","HeaderAvatar","device","useTheme","isMobile","EDeviceType","teacherDetails","teacherName","completedSessions","nextSessionStart","nextSessionEnd","classStatus","upcomingSessions","isDemoDone","isOnlyOneSessionCompleted","isMoreThanOneSessionCompleted","showLoading","demoId","fetchParentHomeData","isProcessingFailed","userAttemptId","useParentHomeData","summaryInfo","fetchSummaryData","useStudentProfileSummaryData","handleTryAgain","useCallback","handleRescheduleDemo","handleChangeTutor","spacing","useMemo","MOBILE_SPACING","DESKTOP_SPACING","handleViewSummary","key","buttonWidth","renderCancelledSubscriptionView","FlexView","jsx","SignupHeader","Separator","OnboardingGuide","Button","renderSessionStatusSection","SessionStatus","renderTeacherProfileSection","TeacherProfile","renderSessionSummarySection","SessionSummary","renderTutorChangeSection","jsxs","Text","TextButton","renderTeacherDetailsSection","renderOnlyOneSessionSection","NextSteps","UpcomingSessions","renderAppFeaturesSection","CuemathAppFeatures","renderMathPracticeSection","Styled.MathPracticeWrapper","MathPractice","renderMainContent","renderFaqsSection","ParentDashboardFaqs","AppLoader","Error","Styled.Container","CompactHeader","Styled.ContentWrapper"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAMA,KAAuDC;AAAA,EAC3D,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,yBAAAC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,MACF;AAAA,IAAA,GAGII,IAAoBrC;AAAA,MACxB,wBACGW,GACC,EAAA,UAAA;AAAA,QAAA,gBAAAC,EAACE,GAAU,EAAA,QAAQX,EAAQ,UAAU,YAAY;AAAA,0BAChDmC,IAAoB,EAAA;AAAA,MAAA,GACvB;AAAA,MAEF,CAACnC,EAAQ,UAAU,UAAU;AAAA,IAAA;AAG/B,WAAIb,IACK,gBAAAsB,EAAC2B,IAAU,EAAA,QAAO,QAAQ,CAAA,IAG/B9C,IAEC,gBAAAmB,EAAAD,GAAA,EAAS,OAAO,GAAG,aAAY,UAAS,iBAAgB,UACvD,UAAA,gBAAAC,EAAC4B,IAAM,EAAA,OAAM,QAAO,YAAYzC,GAAgB,EAClD,CAAA,IAIF,gBAAAyB,EAACiB,IAAA,EACC,UAAA;AAAA,MAAA,gBAAA7B,EAAC8B,MAAc,cAAAnE,GAA4B;AAAA,MAC3C,gBAAAiD;AAAA,QAACmB;AAAAA,QAAA;AAAA,UACC,OAAO;AAAA,UACP,QAAO;AAAA,UACP,SAAQ;AAAA,UACR,aAAY;AAAA,UACZ,MAAMxC,EAAQ;AAAA,UACd,SAASA,EAAQ;AAAA,UAEhB,UAAA;AAAA,YAA0B7B,IAAAoC,MAAoC0B,EAAkB;AAAA,YAChFC,EAAkB;AAAA,UAAA;AAAA,QAAA;AAAA,MACrB;AAAA,IACF,EAAA,CAAA;AAAA,EAEJ;AACF;"}
|
|
1
|
+
{"version":3,"file":"parent-dashboard-view.js","sources":["../../../src/features/parent-dashboard/parent-dashboard-view.tsx"],"sourcesContent":["import type { ESummaryType, IParentDashboardProps, ISpacingConfig } from './parent-dashboard-types';\n\nimport React, { memo, useMemo, useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport OnboardingGuide from '../auth/pla-signup/onboarding-guide/onboarding-guide';\nimport SignupHeader from '../auth/pla-signup/signup-header/signup-header';\nimport NextSteps from '../trial-session/comps/pla/next-steps/next-steps';\nimport SessionStatus from '../trial-session/comps/pla/session-status/session-status';\nimport SessionSummary from '../trial-session/comps/pla/session-summary/session-summary';\nimport UpcomingSessions from '../trial-session/comps/pla/upcoming-sessions/upcoming-sessions';\nimport TeacherProfile from '../trial-session/comps/teacher-intro/teacher-profile/teacher-profile';\nimport Button from '../ui/buttons/button/button';\nimport TextButton from '../ui/buttons/text-button/text-button';\nimport Error from '../ui/error/error';\nimport FlexView from '../ui/layout/flex-view';\nimport AppLoader from '../ui/loader/app-loader/app-loader';\nimport Separator from '../ui/separator/separator';\nimport Text from '../ui/text/text';\nimport { EDeviceType } from '../ui/theme/constants';\nimport CompactHeader from './comps/compact-header/compact-header';\nimport CuemathAppFeatures from './comps/cuemath-app-features/cuemath-app-features';\nimport MathPractice from './comps/math-practice/math-practice';\nimport ParentDashboardFaqs from './comps/parent-dashboard-faqs/parent-dashboard-faqs';\nimport useParentHomeData from './hooks/use-parent-home-data';\nimport useStudentProfileSummaryData from './hooks/use-student-profile-summary-data';\nimport { DESKTOP_SPACING, MOBILE_SPACING } from './parent-dashboard-constants';\nimport * as Styled from './parent-dashboard-styled';\n\nconst ParentDashboardView: React.FC<IParentDashboardProps> = memo(\n ({\n studentName,\n studentId,\n onRescheduleDemo,\n onViewSummary,\n onGetStartedAgain,\n onChangeTutor,\n canChangeTutor,\n onSwitchUser,\n isSubscriptionCancelled,\n HeaderAvatar,\n }) => {\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n\n const {\n teacherDetails,\n teacherName,\n completedSessions,\n nextSessionStart,\n nextSessionEnd,\n classStatus,\n upcomingSessions,\n isDemoDone,\n isOnlyOneSessionCompleted,\n isMoreThanOneSessionCompleted,\n showLoading = false,\n demoId,\n fetchData: fetchParentHomeData,\n isProcessingFailed,\n userAttemptId,\n } = useParentHomeData(studentId);\n\n const { summaryInfo, fetchSummaryData } = useStudentProfileSummaryData(studentId);\n\n const handleTryAgain = useCallback(() => {\n fetchParentHomeData();\n fetchSummaryData();\n }, [fetchParentHomeData, fetchSummaryData]);\n\n const handleRescheduleDemo = useCallback(() => {\n onRescheduleDemo(demoId);\n }, [demoId, onRescheduleDemo]);\n\n const handleChangeTutor = useCallback(() => {\n if (demoId) {\n onChangeTutor(demoId);\n }\n }, [demoId, onChangeTutor]);\n\n const spacing: ISpacingConfig = useMemo(\n () => (isMobile ? MOBILE_SPACING : DESKTOP_SPACING),\n [isMobile],\n );\n\n const handleViewSummary = useCallback(\n (key: ESummaryType) => {\n onViewSummary?.(key, { ...summaryInfo, userAttemptId });\n },\n [onViewSummary, summaryInfo, userAttemptId],\n );\n\n const buttonWidth = isMobile ? '100%' : 200;\n\n const renderCancelledSubscriptionView = useCallback(\n () => (\n <FlexView>\n <SignupHeader />\n <Separator height={spacing.separator.extraLarge} />\n <OnboardingGuide orientation=\"horizontal\" />\n {onGetStartedAgain && (\n <FlexView>\n <Separator height={spacing.medium} />\n <Button\n label=\"Get Started\"\n renderAs=\"yellow-dark\"\n shape=\"square\"\n width={buttonWidth}\n onClick={onGetStartedAgain}\n />\n </FlexView>\n )}\n </FlexView>\n ),\n [spacing, buttonWidth, onGetStartedAgain],\n );\n\n const renderSessionStatusSection = useCallback(\n () => (\n <SessionStatus\n completedSessions={completedSessions}\n nextSessionStartTime={nextSessionStart}\n teacherName={teacherName}\n status={classStatus}\n nextSessionEndTime={nextSessionEnd}\n studentName={studentName}\n onRescheduleClick={handleRescheduleDemo}\n />\n ),\n [\n completedSessions,\n nextSessionStart,\n teacherName,\n classStatus,\n nextSessionEnd,\n studentName,\n handleRescheduleDemo,\n ],\n );\n\n const renderTeacherProfileSection = useCallback(() => {\n if (!teacherDetails || isDemoDone) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.large} />\n <TeacherProfile teacherProfile={teacherDetails} />\n </FlexView>\n );\n }, [teacherDetails, isDemoDone, spacing.separator.large]);\n\n const renderSessionSummarySection = useCallback(() => {\n if (isMoreThanOneSessionCompleted) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <SessionSummary\n isDemoDone={isDemoDone}\n studentName={studentName}\n onViewSummary={handleViewSummary}\n />\n </FlexView>\n );\n }, [\n isMoreThanOneSessionCompleted,\n spacing.separator.extraLarge,\n isDemoDone,\n studentName,\n handleViewSummary,\n ]);\n\n const renderTutorChangeSection = useCallback(() => {\n if (!canChangeTutor) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.small} />\n <FlexView $flexDirection=\"row\" $flexColumnGapX={0.25}>\n <Text $renderAs=\"ub1\" $renderOnMobileAs=\"ub2\" $color=\"WHITE\">\n Not the right fit for your child?\n </Text>\n <TextButton\n color=\"WHITE_1\"\n sizeOnMobile=\"small\"\n label=\"Try another tutor\"\n onClick={handleChangeTutor}\n />\n </FlexView>\n </FlexView>\n );\n }, [canChangeTutor, spacing.separator.small, handleChangeTutor]);\n\n const renderTeacherDetailsSection = useCallback(() => {\n if (!teacherDetails) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n Know your tutor\n </Text>\n <Separator height={spacing.separator.medium} />\n <TeacherProfile teacherProfile={teacherDetails} />\n {renderTutorChangeSection()}\n </FlexView>\n );\n }, [teacherDetails, spacing.separator, renderTutorChangeSection]);\n\n const renderOnlyOneSessionSection = useCallback(() => {\n if (!isOnlyOneSessionCompleted) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <NextSteps />\n <Separator height={spacing.separator.extraLarge} />\n <UpcomingSessions sessions={upcomingSessions} />\n {renderTeacherDetailsSection()}\n </FlexView>\n );\n }, [\n isOnlyOneSessionCompleted,\n spacing.separator.extraLarge,\n upcomingSessions,\n renderTeacherDetailsSection,\n ]);\n\n const renderAppFeaturesSection = useCallback(() => {\n if (!isDemoDone) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <CuemathAppFeatures />\n </FlexView>\n );\n }, [isDemoDone, spacing.separator.extraLarge]);\n\n const renderMathPracticeSection = useCallback(() => {\n if (isMoreThanOneSessionCompleted) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <Styled.MathPracticeWrapper>\n <MathPractice onSwitchUser={onSwitchUser} />\n </Styled.MathPracticeWrapper>\n </FlexView>\n );\n }, [isMoreThanOneSessionCompleted, spacing.separator.extraLarge, onSwitchUser]);\n\n const renderMainContent = useCallback(\n () => (\n <FlexView>\n {renderSessionStatusSection()}\n {renderTeacherProfileSection()}\n {renderSessionSummarySection()}\n {renderOnlyOneSessionSection()}\n {renderAppFeaturesSection()}\n {renderMathPracticeSection()}\n </FlexView>\n ),\n [\n renderSessionStatusSection,\n renderTeacherProfileSection,\n renderSessionSummarySection,\n renderOnlyOneSessionSection,\n renderAppFeaturesSection,\n renderMathPracticeSection,\n ],\n );\n\n const renderFaqsSection = useCallback(\n () => (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <ParentDashboardFaqs />\n </FlexView>\n ),\n [spacing.separator.extraLarge],\n );\n\n if (showLoading) {\n return <AppLoader height=\"100vh\" />;\n }\n\n if (isProcessingFailed)\n return (\n <FlexView $flex={1} $alignItems=\"center\" $justifyContent=\"center\">\n <Error theme=\"dark\" onTryAgain={handleTryAgain} />\n </FlexView>\n );\n\n return (\n <Styled.Container>\n <CompactHeader HeaderAvatar={HeaderAvatar} />\n <Styled.ContentWrapper\n $flex={1}\n $width=\"100%\"\n $height=\"100%\"\n $background=\"BLACK_1\"\n $gap={spacing.medium}\n $gutter={spacing.small}\n >\n {isSubscriptionCancelled ? renderCancelledSubscriptionView() : renderMainContent()}\n {renderFaqsSection()}\n </Styled.ContentWrapper>\n </Styled.Container>\n );\n },\n);\n\nexport default ParentDashboardView;\n"],"names":["ParentDashboardView","memo","studentName","studentId","onRescheduleDemo","onViewSummary","onGetStartedAgain","onChangeTutor","canChangeTutor","onSwitchUser","isSubscriptionCancelled","HeaderAvatar","device","useTheme","isMobile","EDeviceType","teacherDetails","teacherName","completedSessions","nextSessionStart","nextSessionEnd","classStatus","upcomingSessions","isDemoDone","isOnlyOneSessionCompleted","isMoreThanOneSessionCompleted","showLoading","demoId","fetchParentHomeData","isProcessingFailed","userAttemptId","useParentHomeData","summaryInfo","fetchSummaryData","useStudentProfileSummaryData","handleTryAgain","useCallback","handleRescheduleDemo","handleChangeTutor","spacing","useMemo","MOBILE_SPACING","DESKTOP_SPACING","handleViewSummary","key","buttonWidth","renderCancelledSubscriptionView","FlexView","jsx","SignupHeader","Separator","OnboardingGuide","Button","renderSessionStatusSection","SessionStatus","renderTeacherProfileSection","TeacherProfile","renderSessionSummarySection","SessionSummary","renderTutorChangeSection","jsxs","Text","TextButton","renderTeacherDetailsSection","renderOnlyOneSessionSection","NextSteps","UpcomingSessions","renderAppFeaturesSection","CuemathAppFeatures","renderMathPracticeSection","Styled.MathPracticeWrapper","MathPractice","renderMainContent","renderFaqsSection","ParentDashboardFaqs","AppLoader","Error","Styled.Container","CompactHeader","Styled.ContentWrapper"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAMA,KAAuDC;AAAA,EAC3D,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,yBAAAC;AAAA,IACA,cAAAC;AAAA,EAAA,MACI;AACE,UAAA,EAAE,QAAAC,MAAWC,MACbC,IAAWF,KAAUG,GAAY,QAEjC;AAAA,MACJ,gBAAAC;AAAA,MACA,aAAAC;AAAA,MACA,mBAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,aAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,YAAAC;AAAA,MACA,2BAAAC;AAAA,MACA,+BAAAC;AAAA,MACA,aAAAC,IAAc;AAAA,MACd,QAAAC;AAAA,MACA,WAAWC;AAAA,MACX,oBAA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UAAS,iBAAgB,UACvD,UAAA,gBAAAC,EAAC4B,IAAM,EAAA,OAAM,QAAO,YAAYzC,GAAgB,EAClD,CAAA,IAIF,gBAAAyB,EAACiB,IAAA,EACC,UAAA;AAAA,MAAA,gBAAA7B,EAAC8B,MAAc,cAAAnE,GAA4B;AAAA,MAC3C,gBAAAiD;AAAA,QAACmB;AAAAA,QAAA;AAAA,UACC,OAAO;AAAA,UACP,QAAO;AAAA,UACP,SAAQ;AAAA,UACR,aAAY;AAAA,UACZ,MAAMxC,EAAQ;AAAA,UACd,SAASA,EAAQ;AAAA,UAEhB,UAAA;AAAA,YAA0B7B,IAAAoC,MAAoC0B,EAAkB;AAAA,YAChFC,EAAkB;AAAA,UAAA;AAAA,QAAA;AAAA,MACrB;AAAA,IACF,EAAA,CAAA;AAAA,EAEJ;AACF;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5019,7 +5019,8 @@ export declare enum PLA_ANALYTICS_EVENTS {
|
|
|
5019
5019
|
SIGNUP_OTP_FAILED = "signup_otp_failed",
|
|
5020
5020
|
SLOTS_SHOWN = "slots_shown",
|
|
5021
5021
|
SLOT_DATE_SELECTED = "slot_date_selected",
|
|
5022
|
-
SLOT_TIME_SELECTED = "slot_time_selected"
|
|
5022
|
+
SLOT_TIME_SELECTED = "slot_time_selected",
|
|
5023
|
+
TUTOR_CHANGE_REASON_SELECTED = "tutor_change_reason_selected"
|
|
5023
5024
|
}
|
|
5024
5025
|
|
|
5025
5026
|
export declare const PlaFirstSessionIntroduction: NamedExoticComponent<IFirstSessionIntroductionProps>;
|
|
@@ -6566,6 +6567,8 @@ declare type TUserProgram = {
|
|
|
6566
6567
|
|
|
6567
6568
|
export declare type TUserTypes = 'TEACHER' | 'STUDENT';
|
|
6568
6569
|
|
|
6570
|
+
export declare const TutorChangeModal: () => JSX.Element;
|
|
6571
|
+
|
|
6569
6572
|
export declare const Tutorial: ({ src, title, onCross, showProgress, onTutorialPlayedOnce, isJourneyActive, }: ITutorialProps) => JSX.Element;
|
|
6570
6573
|
|
|
6571
6574
|
export declare const TutoringIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
package/dist/index.js
CHANGED
|
@@ -10,10 +10,10 @@ import { default as T } from "./assets/line-icons/icons/bin.js";
|
|
|
10
10
|
import { default as C } from "./assets/line-icons/icons/bin2.js";
|
|
11
11
|
import { default as A } from "./assets/line-icons/icons/book-closed.js";
|
|
12
12
|
import { default as h } from "./assets/line-icons/icons/book.js";
|
|
13
|
-
import { default as
|
|
13
|
+
import { default as L } from "./assets/line-icons/icons/book2.js";
|
|
14
14
|
import { default as k } from "./assets/line-icons/icons/bookmark.js";
|
|
15
15
|
import { default as O } from "./assets/line-icons/icons/bulb.js";
|
|
16
|
-
import { default as
|
|
16
|
+
import { default as D } from "./assets/line-icons/icons/bulb2.js";
|
|
17
17
|
import { default as y } from "./assets/line-icons/icons/calendar.js";
|
|
18
18
|
import { default as v } from "./assets/line-icons/icons/check.js";
|
|
19
19
|
import { default as U } from "./assets/line-icons/icons/check2.js";
|
|
@@ -37,10 +37,10 @@ import { default as Te } from "./assets/line-icons/icons/eye2.js";
|
|
|
37
37
|
import { default as Ce } from "./assets/line-icons/icons/exclamation.js";
|
|
38
38
|
import { default as Ae } from "./assets/line-icons/icons/hand.js";
|
|
39
39
|
import { default as he } from "./assets/line-icons/icons/hint-fill.js";
|
|
40
|
-
import { default as
|
|
40
|
+
import { default as Le } from "./assets/line-icons/icons/help.js";
|
|
41
41
|
import { default as ke } from "./assets/line-icons/icons/highlighter.js";
|
|
42
42
|
import { default as Oe } from "./assets/line-icons/icons/home.js";
|
|
43
|
-
import { default as
|
|
43
|
+
import { default as De } from "./assets/line-icons/icons/image.js";
|
|
44
44
|
import { default as ye } from "./assets/line-icons/icons/info.js";
|
|
45
45
|
import { default as ve } from "./assets/line-icons/icons/info2.js";
|
|
46
46
|
import { default as Ue } from "./assets/line-icons/icons/left.js";
|
|
@@ -63,11 +63,11 @@ import { default as So } from "./assets/line-icons/icons/practice.js";
|
|
|
63
63
|
import { default as Eo } from "./assets/line-icons/icons/progress.js";
|
|
64
64
|
import { default as Po } from "./assets/line-icons/icons/puzzle-icon.js";
|
|
65
65
|
import { default as _o } from "./assets/line-icons/icons/puzzle2.js";
|
|
66
|
-
import { default as
|
|
66
|
+
import { default as Mo } from "./assets/line-icons/icons/question.js";
|
|
67
67
|
import { default as Ro } from "./assets/line-icons/icons/question-letter.js";
|
|
68
68
|
import { default as No } from "./assets/line-icons/icons/redo.js";
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
69
|
+
import { default as go } from "./assets/line-icons/icons/right.js";
|
|
70
|
+
import { default as Ho } from "./assets/line-icons/icons/ruler.js";
|
|
71
71
|
import { default as Go } from "./assets/line-icons/icons/search.js";
|
|
72
72
|
import { default as bo } from "./assets/line-icons/icons/sheet.js";
|
|
73
73
|
import { default as Bo } from "./assets/line-icons/icons/star.js";
|
|
@@ -90,10 +90,10 @@ import { default as Sr } from "./assets/line-icons/icons/user2.js";
|
|
|
90
90
|
import { default as Er, default as Cr } from "./assets/line-icons/icons/sketch.js";
|
|
91
91
|
import { default as Ar } from "./assets/line-icons/icons/back2.js";
|
|
92
92
|
import { default as hr } from "./assets/line-icons/icons/chevron-right.js";
|
|
93
|
-
import { default as
|
|
93
|
+
import { default as Lr } from "./assets/line-icons/icons/chevron-left.js";
|
|
94
94
|
import { default as kr } from "./assets/line-icons/icons/chevron-down.js";
|
|
95
95
|
import { default as Or } from "./assets/line-icons/icons/game.js";
|
|
96
|
-
import { default as
|
|
96
|
+
import { default as Dr } from "./assets/line-icons/icons/tutoring.js";
|
|
97
97
|
import { default as yr } from "./assets/line-icons/icons/chat.js";
|
|
98
98
|
import { default as vr } from "./assets/line-icons/icons/cuemath-logo.js";
|
|
99
99
|
import { default as Ur } from "./assets/line-icons/icons/next2.js";
|
|
@@ -117,10 +117,10 @@ import { default as Tt } from "./features/ui/context-menu/context-menu.js";
|
|
|
117
117
|
import { default as Ct } from "./features/ui/timers/countdown-timer/countdown-timer.js";
|
|
118
118
|
import { default as At } from "./features/ui/nudge/nudge.js";
|
|
119
119
|
import { default as ht } from "./features/ui/buttons/button/button.js";
|
|
120
|
-
import { default as
|
|
120
|
+
import { default as Lt } from "./features/ui/buttons/clickable/clickable.js";
|
|
121
121
|
import { default as kt } from "./features/ui/buttons/icon-button/icon-button.js";
|
|
122
122
|
import { default as Ot } from "./features/ui/buttons/text-button/text-button.js";
|
|
123
|
-
import { ArcButton as
|
|
123
|
+
import { ArcButton as Dt } from "./features/ui/arc-button/arc-button.js";
|
|
124
124
|
import { default as yt } from "./features/ui/error/error.js";
|
|
125
125
|
import { default as vt } from "./features/ui/inputs/checkbox-input/checkbox-input.js";
|
|
126
126
|
import { default as Ut } from "./features/ui/inputs/checkbox-input-list/checkbox-input-list.js";
|
|
@@ -144,10 +144,10 @@ import { default as Ta } from "./features/ui/radio-cards/radio-cards.js";
|
|
|
144
144
|
import { default as Ca } from "./features/ui/section-list/section-list.js";
|
|
145
145
|
import { default as Aa } from "./features/ui/text/text.js";
|
|
146
146
|
import { default as ha } from "./features/ui/tag/tag.js";
|
|
147
|
-
import { default as
|
|
147
|
+
import { default as La } from "./features/ui/callout/callout.js";
|
|
148
148
|
import { default as ka, useUIContext as Na } from "./features/ui/context/context.js";
|
|
149
|
-
import { default as
|
|
150
|
-
import { default as
|
|
149
|
+
import { default as ga } from "./features/ui/context/use-tracking-context.js";
|
|
150
|
+
import { default as Ha } from "./features/ui/hooks/use-context-menu-click-handler.js";
|
|
151
151
|
import { EDeviceType as Ga } from "./features/ui/theme/constants.js";
|
|
152
152
|
import { getTheme as ba } from "./features/ui/theme/get-theme.js";
|
|
153
153
|
import { default as Ba } from "./features/ui/avatar/avatar.js";
|
|
@@ -170,10 +170,10 @@ import { WHITELIST_EVENTS as Tf } from "./features/analytics-events/whitelist-ev
|
|
|
170
170
|
import { default as Cf } from "./features/auth/comps/auth-static-panel/auth-static-panel.js";
|
|
171
171
|
import { default as Af } from "./features/auth/comps/auth-page-layout/auth-page-layout.js";
|
|
172
172
|
import { default as hf } from "./features/auth/comps/overlay-loader/overlay-loader.js";
|
|
173
|
-
import { default as
|
|
173
|
+
import { default as Lf } from "./features/auth/comps/tabs/tabs.js";
|
|
174
174
|
import { default as kf } from "./features/auth/comps/input-status-icon/input-status-icon.js";
|
|
175
175
|
import { default as Of } from "./features/auth/comps/resend-otp/resend-otp.js";
|
|
176
|
-
import { default as
|
|
176
|
+
import { default as Df } from "./features/auth/comps/otp-input/otp-input.js";
|
|
177
177
|
import { default as yf } from "./features/auth/comps/pill-button/pill-button.js";
|
|
178
178
|
import { default as vf } from "./features/auth/comps/linear-progress-bar/linear-progress-bar.js";
|
|
179
179
|
import { default as Uf } from "./features/auth/comps/selectable-info-card/selectable-info-card.js";
|
|
@@ -197,10 +197,10 @@ import { default as Ts } from "./features/auth/login/identifier-otp-form/identif
|
|
|
197
197
|
import { default as Cs } from "./features/auth/forgot-password/otp-form/otp-form.js";
|
|
198
198
|
import { default as As } from "./features/auth/forgot-password/reset-password-form/reset-password-form.js";
|
|
199
199
|
import { default as hs } from "./features/auth/forgot-password/user-identifier-form/user-identifier-form.js";
|
|
200
|
-
import { AUTH_TABS as
|
|
200
|
+
import { AUTH_TABS as Ls } from "./features/auth/login/login-constants.js";
|
|
201
201
|
import { AuthApiErrorCode as ks } from "./features/auth/auth-constants.js";
|
|
202
202
|
import { PLA_ANALYTICS_EVENTS as Os } from "./features/auth/pla-signup/pla-analytics-events.js";
|
|
203
|
-
import { default as
|
|
203
|
+
import { default as Ds } from "./features/av/av-preview/av-preview.js";
|
|
204
204
|
import { default as ys } from "./features/blockers/multi-tab-blocker/use-is-tab-blocked.js";
|
|
205
205
|
import { default as vs } from "./features/blockers/multi-tab-blocker/multi-tab-blocker.js";
|
|
206
206
|
import { default as Us } from "./features/chapters/chapter/chapter.js";
|
|
@@ -224,10 +224,10 @@ import { WebView as Tl } from "./features/circle-games/games/web-view/web-view.j
|
|
|
224
224
|
import { ProjectOutcome as Cl } from "./features/circle-games/games/web-view/enums/project-outcomes-enum.js";
|
|
225
225
|
import { WebViewEvent as Al } from "./features/circle-games/games/web-view/enums/web-view-events-enum.js";
|
|
226
226
|
import { ProjectType as hl } from "./features/circle-games/games/web-view/enums/project-type-enum.js";
|
|
227
|
-
import { PlayerType as
|
|
227
|
+
import { PlayerType as Ll } from "./features/circle-games/games/web-view/enums/player-type-enum.js";
|
|
228
228
|
import { IStatsToAwardErrorCode as kl } from "./features/circle-games/games/web-view/web-view-types.js";
|
|
229
229
|
import { CIRCLE_ONBOARDING_ANALYTICS_STEPS as Ol } from "./features/circle-games/enum/circle-onboarding-steps.js";
|
|
230
|
-
import { CIRCLE_ACTION_IDS as
|
|
230
|
+
import { CIRCLE_ACTION_IDS as Dl } from "./features/circle-games/enum/circle-action-ids.js";
|
|
231
231
|
import { GameLauncher as yl } from "./features/circle-games/game-launcher/game-launcher.js";
|
|
232
232
|
import { useGetCircleHomeDetailsDal as vl } from "./features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js";
|
|
233
233
|
import { Leaderboard as Ul } from "./features/circle-games/leaderboard/leaderboard.js";
|
|
@@ -250,10 +250,10 @@ import { default as Tu } from "./features/trial-session/comps/pla/session-status
|
|
|
250
250
|
import { default as Cu } from "./features/trial-session/comps/pla/session-summary/session-summary.js";
|
|
251
251
|
import { default as Au } from "./features/trial-session/comps/pla/next-steps/next-steps.js";
|
|
252
252
|
import { default as hu } from "./features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js";
|
|
253
|
-
import { default as
|
|
253
|
+
import { default as Lu } from "./features/trial-session/comps/session-report/report-information/report-information.js";
|
|
254
254
|
import { default as ku } from "./features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js";
|
|
255
255
|
import { EClassTimeAlertLevel as Ou } from "./features/trial-session/trial-session-types.js";
|
|
256
|
-
import { ESessionStatus as
|
|
256
|
+
import { ESessionStatus as Du } from "./features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js";
|
|
257
257
|
import { useGetSessionReports as yu } from "./features/trial-session/api/trial-home.js";
|
|
258
258
|
import { useClassTimeAlerts as vu } from "./features/trial-session/hooks/use-class-time-alerts.js";
|
|
259
259
|
import { default as Uu } from "./features/talk-meter/talk-meter.js";
|
|
@@ -277,10 +277,10 @@ import { useTeacherPuzzleAssignedJourney as Tp } from "./features/journey/hooks/
|
|
|
277
277
|
import { usePuzzleAttemptJourney as Cp } from "./features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js";
|
|
278
278
|
import { usePuzzleReviewJourney as Ap } from "./features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js";
|
|
279
279
|
import { usePuzzleUnassignJourney as hp } from "./features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js";
|
|
280
|
-
import { default as
|
|
280
|
+
import { default as Lp } from "./features/maintenance/maintenance.js";
|
|
281
281
|
import { default as kp } from "./features/milestone/create/submit-modal/submit-modal.js";
|
|
282
282
|
import { default as Op } from "./features/milestone/create/comps/confirmation-modals/goal-creation-confirmation.js";
|
|
283
|
-
import { default as
|
|
283
|
+
import { default as Dp } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
|
|
284
284
|
import { default as yp } from "./features/milestone/create/milestone-create-container.js";
|
|
285
285
|
import { default as vp } from "./features/milestone/edit/goal-drafts/goal-draft-edit-container.js";
|
|
286
286
|
import { default as Up } from "./features/milestone/outcome/milestone-outcome-container.js";
|
|
@@ -301,11 +301,11 @@ import { invalidateTestHelpData as cm, useGetTestHelpData as Im } from "./featur
|
|
|
301
301
|
import { invalidateMilestoneResources as Tm, useGetMilestoneResources as Em } from "./features/milestone/milestone-list-container/api/get-milestone-resources.js";
|
|
302
302
|
import { default as Pm } from "./features/pointer-sync/pointer.js";
|
|
303
303
|
import { default as _m } from "./features/pointer-sync/hooks/use-pointer-sync.js";
|
|
304
|
-
import { DigitalMeter as
|
|
304
|
+
import { DigitalMeter as Mm } from "./features/post-game-stats/digital-meter/digital-meter.js";
|
|
305
305
|
import { EPostGameStat as Rm } from "./features/post-game-stats/enums/post-game-stats-enum.js";
|
|
306
306
|
import { PostGameStats as Nm } from "./features/post-game-stats/post-game-stats.js";
|
|
307
|
-
import { default as
|
|
308
|
-
import { SENTRY_DENIED_URLS as
|
|
307
|
+
import { default as gm } from "./features/recent-chapters/recent-chapters.js";
|
|
308
|
+
import { SENTRY_DENIED_URLS as Hm, SENTRY_IGNORED_ERRORS as ym } from "./features/sentry/constants/ignored.js";
|
|
309
309
|
import { default as vm } from "./features/sheet-tools/desmos-calculator/desmos-calculator.js";
|
|
310
310
|
import { default as Um } from "./features/sheet-tools/tool-header/tool-header.js";
|
|
311
311
|
import { default as zm } from "./features/sheets/sheets-list/sheets-list.js";
|
|
@@ -321,10 +321,10 @@ import { default as Td } from "./features/worksheet/worksheet-preview/worksheet-
|
|
|
321
321
|
import { default as Cd } from "./features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js";
|
|
322
322
|
import { default as Ad } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
|
|
323
323
|
import { default as hd } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
|
|
324
|
-
import { default as
|
|
324
|
+
import { default as Ld } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
|
|
325
325
|
import { default as kd } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
|
|
326
326
|
import { default as Od } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
|
|
327
|
-
import { default as
|
|
327
|
+
import { default as Dd } from "./features/puzzles/puzzle-container/puzzle-container.js";
|
|
328
328
|
import { default as yd } from "./features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js";
|
|
329
329
|
import { default as vd } from "./features/puzzles/puzzle-dashboard/puzzle-dashboard.js";
|
|
330
330
|
import { default as Ud } from "./features/puzzles/app/puzzle-app.js";
|
|
@@ -338,14 +338,15 @@ import { default as $d } from "./features/parent-dashboard/modals/student-profil
|
|
|
338
338
|
import { default as ox } from "./features/parent-dashboard/modals/trial-report/trial-report.js";
|
|
339
339
|
import { default as tx } from "./features/parent-dashboard/modals/help-and-support/help-and-support.js";
|
|
340
340
|
import { default as fx } from "./features/parent-dashboard/modals/student-login-info/student-login-info.js";
|
|
341
|
-
import { default as lx } from "./features/parent-dashboard/
|
|
342
|
-
import {
|
|
343
|
-
import {
|
|
344
|
-
import {
|
|
341
|
+
import { default as lx } from "./features/parent-dashboard/modals/tutor-change/tutor-change.js";
|
|
342
|
+
import { default as px } from "./features/parent-dashboard/parent-dashboard.js";
|
|
343
|
+
import { invalidateParentHome as dx } from "./features/parent-dashboard/api/parent-home.js";
|
|
344
|
+
import { ESummaryType as nx } from "./features/parent-dashboard/parent-dashboard-types.js";
|
|
345
|
+
import { COUNTRY_CODE_MAP as cx } from "./constants/country.js";
|
|
345
346
|
export {
|
|
346
347
|
sm as ACHIEVEMENT_ACTIONS,
|
|
347
|
-
|
|
348
|
-
|
|
348
|
+
Ls as AUTH_TABS,
|
|
349
|
+
Ds as AVPreview,
|
|
349
350
|
xt as Accordion,
|
|
350
351
|
it as AccordionSection,
|
|
351
352
|
ms as AccountSelector,
|
|
@@ -356,7 +357,7 @@ export {
|
|
|
356
357
|
of as AnimatedArc,
|
|
357
358
|
zf as AnimatedAvatarMessage,
|
|
358
359
|
ua as AppLoader,
|
|
359
|
-
|
|
360
|
+
Dt as ArcButton,
|
|
360
361
|
It as ArrowTooltip,
|
|
361
362
|
ks as AuthApiErrorCode,
|
|
362
363
|
Af as AuthPageLayout,
|
|
@@ -369,23 +370,23 @@ export {
|
|
|
369
370
|
Zt as BaseInput,
|
|
370
371
|
C as Bin2Icon,
|
|
371
372
|
T as BinIcon,
|
|
372
|
-
|
|
373
|
+
L as Book2Icon,
|
|
373
374
|
A as BookClosedIcon,
|
|
374
375
|
h as BookIcon,
|
|
375
376
|
k as BookmarkIcon,
|
|
376
|
-
|
|
377
|
+
D as Bulb2Icon,
|
|
377
378
|
O as BulbIcon,
|
|
378
379
|
ht as Button,
|
|
379
|
-
|
|
380
|
+
Dl as CIRCLE_ACTION_IDS,
|
|
380
381
|
Ol as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
|
|
381
382
|
Ym as COMPLETED_SHEET_STATE,
|
|
382
|
-
|
|
383
|
+
cx as COUNTRY_CODE_MAP,
|
|
383
384
|
y as CalendarIcon,
|
|
384
|
-
|
|
385
|
+
La as Callout,
|
|
385
386
|
lf as Carousel,
|
|
386
387
|
Xt as CascadingSelectInput,
|
|
387
388
|
Us as Chapter,
|
|
388
|
-
|
|
389
|
+
Dp as ChapterClearanceConfirmationModal,
|
|
389
390
|
Xs as ChapterDetails,
|
|
390
391
|
zs as ChaptersList,
|
|
391
392
|
yr as ChatIcon,
|
|
@@ -394,14 +395,14 @@ export {
|
|
|
394
395
|
vt as CheckboxInput,
|
|
395
396
|
Ut as CheckboxInputList,
|
|
396
397
|
kr as ChevronDownIcon,
|
|
397
|
-
|
|
398
|
+
Lr as ChevronLeftIcon,
|
|
398
399
|
hr as ChevronRightIcon,
|
|
399
400
|
ul as CircleSoundKey,
|
|
400
401
|
ma as CircularLoader,
|
|
401
402
|
es as CircularStepWrapper,
|
|
402
403
|
wl as CircularSteps,
|
|
403
404
|
Yf as ClaimUserAccount,
|
|
404
|
-
|
|
405
|
+
Lt as Clickable,
|
|
405
406
|
z as ClipboardIcon,
|
|
406
407
|
V as Clock2Icon,
|
|
407
408
|
F as ClockIcon,
|
|
@@ -426,7 +427,7 @@ export {
|
|
|
426
427
|
ee as DashArrowIcon,
|
|
427
428
|
Zf as DatePickerInput,
|
|
428
429
|
vm as DesmosCalculator,
|
|
429
|
-
|
|
430
|
+
Mm as DigitalMeter,
|
|
430
431
|
df as DotLottieAnimation,
|
|
431
432
|
re as DownIcon,
|
|
432
433
|
ae as DraftIcon,
|
|
@@ -438,8 +439,8 @@ export {
|
|
|
438
439
|
xl as ELeaderboardType,
|
|
439
440
|
am as EPResourceAssign,
|
|
440
441
|
Rm as EPostGameStat,
|
|
441
|
-
|
|
442
|
-
|
|
442
|
+
Du as ESessionStatus,
|
|
443
|
+
nx as ESummaryType,
|
|
443
444
|
pu as EVENTS,
|
|
444
445
|
me as Edit2Icon,
|
|
445
446
|
ue as EditIcon,
|
|
@@ -466,7 +467,7 @@ export {
|
|
|
466
467
|
Kf as GradeInput,
|
|
467
468
|
r as GradeSelector,
|
|
468
469
|
Ae as HandIcon,
|
|
469
|
-
|
|
470
|
+
Le as HelpIcon,
|
|
470
471
|
ke as HighlighterIcon,
|
|
471
472
|
he as HintFillIcon,
|
|
472
473
|
Oe as HomeIcon,
|
|
@@ -477,7 +478,7 @@ export {
|
|
|
477
478
|
kt as IconButton,
|
|
478
479
|
Ts as IdentifierOtpForm,
|
|
479
480
|
$a as Image,
|
|
480
|
-
|
|
481
|
+
De as ImageIcon,
|
|
481
482
|
ap as IndicatorType,
|
|
482
483
|
ve as Info2Icon,
|
|
483
484
|
ye as InfoIcon,
|
|
@@ -489,13 +490,13 @@ export {
|
|
|
489
490
|
Fs as LPARChapter,
|
|
490
491
|
Vs as LPARMilestoneChapter,
|
|
491
492
|
Ul as Leaderboard,
|
|
492
|
-
|
|
493
|
+
Ld as LearnosityPreloader,
|
|
493
494
|
Ue as LeftIcon,
|
|
494
495
|
vf as LinearProgressBar,
|
|
495
496
|
Fe as Lock2Icon,
|
|
496
497
|
Ve as Lock3Icon,
|
|
497
498
|
ze as LockIcon,
|
|
498
|
-
|
|
499
|
+
Lp as Maintenance,
|
|
499
500
|
Jd as MathPractice,
|
|
500
501
|
Xp as MilestoneActionWidget,
|
|
501
502
|
yp as MilestoneCreate,
|
|
@@ -521,7 +522,7 @@ export {
|
|
|
521
522
|
At as Nudge,
|
|
522
523
|
ea as NumRangeInput,
|
|
523
524
|
Cs as OTPForm,
|
|
524
|
-
|
|
525
|
+
Df as OTPInput,
|
|
525
526
|
as as OnboardingGuide,
|
|
526
527
|
hf as OverlayLoader,
|
|
527
528
|
tx as PLAHelpAndSupportModal,
|
|
@@ -529,7 +530,7 @@ export {
|
|
|
529
530
|
If as PLATFORM_EVENTS_TEACHER,
|
|
530
531
|
Os as PLA_ANALYTICS_EVENTS,
|
|
531
532
|
Zm as PYTHON_NODE_TYPES,
|
|
532
|
-
|
|
533
|
+
px as ParentDashboard,
|
|
533
534
|
Qd as ParentDashboardFaqs,
|
|
534
535
|
ao as PencilIcon,
|
|
535
536
|
ra as PercentileInput,
|
|
@@ -538,7 +539,7 @@ export {
|
|
|
538
539
|
qd as PlaFirstSessionIntroduction,
|
|
539
540
|
mo as Play2Icon,
|
|
540
541
|
uo as PlayIcon,
|
|
541
|
-
|
|
542
|
+
Ll as PlayerType,
|
|
542
543
|
co as Plus2Icon,
|
|
543
544
|
no as PlusIcon,
|
|
544
545
|
so as PointerIcon,
|
|
@@ -550,26 +551,26 @@ export {
|
|
|
550
551
|
hl as ProjectType,
|
|
551
552
|
_o as Puzzle2Icon,
|
|
552
553
|
Ud as PuzzleApp,
|
|
553
|
-
|
|
554
|
+
Dd as PuzzleCard,
|
|
554
555
|
vd as PuzzleDashboard,
|
|
555
556
|
yd as PuzzleFeedbackCelebration,
|
|
556
557
|
Po as PuzzleIcon,
|
|
557
|
-
|
|
558
|
+
Mo as QuestionIcon,
|
|
558
559
|
Ro as QuestionLetterIcon,
|
|
559
560
|
qm as REWARDS_LIST,
|
|
560
561
|
Ta as RadioCard,
|
|
561
562
|
zt as RadioInput,
|
|
562
|
-
|
|
563
|
+
gm as RecentChapters,
|
|
563
564
|
No as RedoIcon,
|
|
564
565
|
Fm as ReferenceSheet,
|
|
565
566
|
Pm as RemotePeerPointer,
|
|
566
|
-
|
|
567
|
+
Lu as ReportInformation,
|
|
567
568
|
Of as ResendOTP,
|
|
568
569
|
As as ResetPasswordForm,
|
|
569
|
-
|
|
570
|
-
|
|
570
|
+
go as RightIcon,
|
|
571
|
+
Ho as RulerIcon,
|
|
571
572
|
Ys as SATSheetSummary,
|
|
572
|
-
|
|
573
|
+
Hm as SENTRY_DENIED_URLS,
|
|
573
574
|
ym as SENTRY_IGNORED_ERRORS,
|
|
574
575
|
Xm as SHEET_ACTIONS,
|
|
575
576
|
$m as SHEET_ATTEMPT_LOCATION,
|
|
@@ -625,7 +626,7 @@ export {
|
|
|
625
626
|
kp as SubmitMilestoneModal,
|
|
626
627
|
or as SwitchIcon,
|
|
627
628
|
Wa as TabComponent,
|
|
628
|
-
|
|
629
|
+
Lf as Tabs,
|
|
629
630
|
ha as Tag,
|
|
630
631
|
Uu as TalkMeter,
|
|
631
632
|
Iu as TeacherProfile,
|
|
@@ -637,8 +638,9 @@ export {
|
|
|
637
638
|
wa as TimeLeftTimeline,
|
|
638
639
|
iu as TrialSession,
|
|
639
640
|
fr as TrophyIcon,
|
|
641
|
+
lx as TutorChangeModal,
|
|
640
642
|
Il as Tutorial,
|
|
641
|
-
|
|
643
|
+
Dr as TutoringIcon,
|
|
642
644
|
ka as UIContext,
|
|
643
645
|
lr as UndoIcon,
|
|
644
646
|
dr as Unlock2Icon,
|
|
@@ -668,7 +670,7 @@ export {
|
|
|
668
670
|
Vu as invalidateHomeworks,
|
|
669
671
|
Tm as invalidateMilestoneResources,
|
|
670
672
|
pm as invalidateMilestonesData,
|
|
671
|
-
|
|
673
|
+
dx as invalidateParentHome,
|
|
672
674
|
xm as invalidatePastMilestoneCount,
|
|
673
675
|
zd as invalidatePuzzleToAssign,
|
|
674
676
|
cm as invalidateTestHelpData,
|
|
@@ -679,7 +681,7 @@ export {
|
|
|
679
681
|
mp as useChapterPageJourney,
|
|
680
682
|
sl as useCircleSounds,
|
|
681
683
|
vu as useClassTimeAlerts,
|
|
682
|
-
|
|
684
|
+
Ha as useContextMenuClickHandler,
|
|
683
685
|
ut as useForceReload,
|
|
684
686
|
mm as useGetAllMilestonesdata,
|
|
685
687
|
vl as useGetCircleHomeDetailsDal,
|
|
@@ -707,7 +709,7 @@ export {
|
|
|
707
709
|
Ap as usePuzzleReviewJourney,
|
|
708
710
|
hp as usePuzzleUnassignJourney,
|
|
709
711
|
Tp as useTeacherPuzzleAssignedJourney,
|
|
710
|
-
|
|
712
|
+
ga as useTrackingContext,
|
|
711
713
|
lu as useTrialSessionMessageBroker,
|
|
712
714
|
Na as useUIContext,
|
|
713
715
|
Od as useWorksheetLayout,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|