@cuemath/leap 3.5.43-j1 → 3.5.44-link.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/auth/pla-signup/signup-header/signup-header.js +1 -1
- package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -1
- package/dist/features/milestone/outcome/comps/outcome-collection/score-marks-input/index.js +46 -44
- package/dist/features/milestone/outcome/comps/outcome-collection/score-marks-input/index.js.map +1 -1
- package/dist/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.js +41 -0
- package/dist/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.js.map +1 -0
- package/dist/features/parent-dashboard/parent-dashboard-view.js +131 -151
- package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
- package/dist/features/ui/tabs/tab-tem/tab-item.js +29 -35
- package/dist/features/ui/tabs/tab-tem/tab-item.js.map +1 -1
- package/dist/features/ui/tabs/tabs-styled.js +18 -44
- package/dist/features/ui/tabs/tabs-styled.js.map +1 -1
- package/dist/features/ui/tabs/tabs.js +26 -29
- package/dist/features/ui/tabs/tabs.js.map +1 -1
- package/dist/features/ui/theme/get-theme.js +12 -14
- package/dist/features/ui/theme/get-theme.js.map +1 -1
- package/dist/index.d.ts +20 -160
- package/dist/index.js +71 -69
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/features/ui/theme/tabs.js +0 -52
- package/dist/features/ui/theme/tabs.js.map +0 -1
|
@@ -8,7 +8,7 @@ import l from "../../../ui/text/text.js";
|
|
|
8
8
|
import { EDeviceType as T } from "../../../ui/theme/constants.js";
|
|
9
9
|
import h from "../../../../assets/line-icons/icons/cuemath-logo.js";
|
|
10
10
|
const $ = ({ renderThemeAs: s = "dark" }) => {
|
|
11
|
-
const { device: a } = d(), e = a <= T.TABLET, i = s === "dark", c = i ? n.TRUSTPILOT : n.TRUSTPILOT_BLACK, o = i ? "
|
|
11
|
+
const { device: a } = d(), e = a <= T.TABLET, i = s === "dark", c = i ? n.TRUSTPILOT : n.TRUSTPILOT_BLACK, o = i ? "WHITE" : "BLACK";
|
|
12
12
|
return /* @__PURE__ */ t(
|
|
13
13
|
m,
|
|
14
14
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signup-header.js","sources":["../../../../../src/features/auth/pla-signup/signup-header/signup-header.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport CuemathLogo from '../../../../assets/line-icons/icons/cuemath-logo';\n\nconst SignupHeader = ({ renderThemeAs = 'dark' }: { renderThemeAs?: 'light' | 'dark' }) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n const isDarkTheme = renderThemeAs === 'dark';\n const trustpilotLogo = isDarkTheme ? ILLUSTRATIONS.TRUSTPILOT : ILLUSTRATIONS.TRUSTPILOT_BLACK;\n const textColor =
|
|
1
|
+
{"version":3,"file":"signup-header.js","sources":["../../../../../src/features/auth/pla-signup/signup-header/signup-header.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport CuemathLogo from '../../../../assets/line-icons/icons/cuemath-logo';\n\nconst SignupHeader = ({ renderThemeAs = 'dark' }: { renderThemeAs?: 'light' | 'dark' }) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n const isDarkTheme = renderThemeAs === 'dark';\n const trustpilotLogo = isDarkTheme ? ILLUSTRATIONS.TRUSTPILOT : ILLUSTRATIONS.TRUSTPILOT_BLACK;\n const textColor = isDarkTheme ? 'WHITE' : 'BLACK';\n\n return (\n <FlexView\n $flexDirection={isCompact ? 'row' : 'column'}\n $alignItems={isCompact ? 'center' : 'flex-start'}\n $width=\"100%\"\n $flexColumnGapX={1}\n $justifyContent={isCompact ? 'space-between' : 'flex-start'}\n >\n <CuemathLogo width={isCompact ? 80 : 107} height={isCompact ? 12 : 16} color={textColor} />\n {!isCompact && <Separator heightX={1} />}\n <FlexView $flexDirection=\"row\" $alignItems=\"flex-end\">\n <Text $renderAs=\"ab2\" $renderOnTabletAs=\"ub3\" $color={textColor}>\n Rated{' '}\n <Text $inline $renderAs=\"ab2-bold\" $renderOnTabletAs=\"ub3-bold\" $color={textColor}>\n 4.9+\n </Text>{' '}\n on\n </Text>\n \n <Image src={trustpilotLogo} width={isCompact ? 80 : 99} height={isCompact ? 20 : 25} />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default SignupHeader;\n"],"names":["SignupHeader","renderThemeAs","device","useTheme","isCompact","EDeviceType","isDarkTheme","trustpilotLogo","ILLUSTRATIONS","textColor","jsxs","FlexView","jsx","CuemathLogo","Separator","Text","Image","SignupHeader$1"],"mappings":";;;;;;;;;AAUA,MAAMA,IAAe,CAAC,EAAE,eAAAC,IAAgB,aAAmD;AACnF,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY,QAClCC,IAAcL,MAAkB,QAChCM,IAAiBD,IAAcE,EAAc,aAAaA,EAAc,kBACxEC,IAAYH,IAAc,UAAU;AAGxC,SAAA,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgBP,IAAY,QAAQ;AAAA,MACpC,aAAaA,IAAY,WAAW;AAAA,MACpC,QAAO;AAAA,MACP,iBAAiB;AAAA,MACjB,iBAAiBA,IAAY,kBAAkB;AAAA,MAE/C,UAAA;AAAA,QAAC,gBAAAQ,EAAAC,GAAA,EAAY,OAAOT,IAAY,KAAK,KAAK,QAAQA,IAAY,KAAK,IAAI,OAAOK,EAAW,CAAA;AAAA,QACxF,CAACL,KAAc,gBAAAQ,EAAAE,GAAA,EAAU,SAAS,EAAG,CAAA;AAAA,QACrC,gBAAAJ,EAAAC,GAAA,EAAS,gBAAe,OAAM,aAAY,YACzC,UAAA;AAAA,UAAA,gBAAAD,EAACK,KAAK,WAAU,OAAM,mBAAkB,OAAM,QAAQN,GAAW,UAAA;AAAA,YAAA;AAAA,YACzD;AAAA,YACN,gBAAAG,EAACG,GAAK,EAAA,SAAO,IAAC,WAAU,YAAW,mBAAkB,YAAW,QAAQN,GAAW,UAEnF,OAAA,CAAA;AAAA,YAAQ;AAAA,YAAI;AAAA,UAAA,GAEd;AAAA,UAAO;AAAA,UAEP,gBAAAG,EAACI,GAAM,EAAA,KAAKT,GAAgB,OAAOH,IAAY,KAAK,IAAI,QAAQA,IAAY,KAAK,GAAI,CAAA;AAAA,QAAA,GACvF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEAa,IAAejB;"}
|
|
@@ -1,73 +1,75 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { parseNumRangeValue as
|
|
8
|
-
const
|
|
9
|
-
onChange:
|
|
10
|
-
variants:
|
|
1
|
+
import { jsxs as y, Fragment as b, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { useState as I, useMemo as S } from "react";
|
|
3
|
+
import k from "../../../../../ui/inputs/num-range-input/num-range-input.js";
|
|
4
|
+
import w from "../../../../../ui/inputs/select-input/select-input.js";
|
|
5
|
+
import N from "../../../../../ui/inputs/text-input/text-input.js";
|
|
6
|
+
import X from "../../../../../ui/layout/flex-view.js";
|
|
7
|
+
import { parseNumRangeValue as j } from "../outcome-form/outcome-form-helpers.js";
|
|
8
|
+
const O = ({
|
|
9
|
+
onChange: f,
|
|
10
|
+
variants: p,
|
|
11
11
|
validation: e,
|
|
12
|
-
value:
|
|
13
|
-
placeholder:
|
|
14
|
-
updateVariant:
|
|
12
|
+
value: x,
|
|
13
|
+
placeholder: r,
|
|
14
|
+
updateVariant: n
|
|
15
15
|
}) => {
|
|
16
|
-
const [
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
const { input_variant:
|
|
21
|
-
|
|
16
|
+
const [V, h] = I(() => p.find((m) => m.default)), g = (m) => {
|
|
17
|
+
const s = p.find((c) => c.type === m);
|
|
18
|
+
if (s) {
|
|
19
|
+
h(s);
|
|
20
|
+
const { input_variant: c } = s;
|
|
21
|
+
n(c);
|
|
22
22
|
}
|
|
23
|
-
},
|
|
24
|
-
() =>
|
|
25
|
-
id:
|
|
26
|
-
label:
|
|
23
|
+
}, M = S(
|
|
24
|
+
() => p.map(({ type: m, key: s }) => ({
|
|
25
|
+
id: m,
|
|
26
|
+
label: s
|
|
27
27
|
})),
|
|
28
|
-
[
|
|
29
|
-
), { type:
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
28
|
+
[p]
|
|
29
|
+
), { type: t } = V || {};
|
|
30
|
+
return /* @__PURE__ */ y(b, { children: [
|
|
31
|
+
/* @__PURE__ */ u(X, { $marginBottomX: 0.5, children: /* @__PURE__ */ u(
|
|
32
|
+
w,
|
|
33
33
|
{
|
|
34
34
|
renderAs: "primary",
|
|
35
35
|
widthX: 24,
|
|
36
|
-
options:
|
|
36
|
+
options: M,
|
|
37
37
|
label: "Select Variant",
|
|
38
|
-
value:
|
|
39
|
-
onChange:
|
|
38
|
+
value: t,
|
|
39
|
+
onChange: g
|
|
40
40
|
}
|
|
41
41
|
) }),
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
t === "out_of" && /* @__PURE__ */ u(
|
|
43
|
+
k,
|
|
44
44
|
{
|
|
45
|
-
onChange:
|
|
46
|
-
value:
|
|
45
|
+
onChange: f,
|
|
46
|
+
value: j(x),
|
|
47
|
+
middleMin: e == null ? void 0 : e.min,
|
|
47
48
|
middleMax: e == null ? void 0 : e.max,
|
|
49
|
+
endMin: e != null && e.min && (e == null ? void 0 : e.min) > 0 ? e == null ? void 0 : e.min : 1,
|
|
48
50
|
endMax: e == null ? void 0 : e.max,
|
|
49
|
-
middlePlaceholder:
|
|
50
|
-
endPlaceholder:
|
|
51
|
+
middlePlaceholder: r && r.marks,
|
|
52
|
+
endPlaceholder: r && r.maxMarks
|
|
51
53
|
}
|
|
52
54
|
),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
t === "absolute" && /* @__PURE__ */ u(
|
|
56
|
+
N,
|
|
55
57
|
{
|
|
56
58
|
renderAs: "primary",
|
|
57
59
|
type: "number",
|
|
58
60
|
widthX: 6,
|
|
59
61
|
min: e == null ? void 0 : e.min,
|
|
60
62
|
max: e == null ? void 0 : e.max,
|
|
61
|
-
value:
|
|
62
|
-
onChange: (
|
|
63
|
-
|
|
63
|
+
value: x,
|
|
64
|
+
onChange: (m) => {
|
|
65
|
+
f(m.target.value);
|
|
64
66
|
},
|
|
65
|
-
placeholder:
|
|
67
|
+
placeholder: r.maxMarks
|
|
66
68
|
}
|
|
67
69
|
)
|
|
68
70
|
] });
|
|
69
71
|
};
|
|
70
72
|
export {
|
|
71
|
-
|
|
73
|
+
O as default
|
|
72
74
|
};
|
|
73
75
|
//# sourceMappingURL=index.js.map
|
package/dist/features/milestone/outcome/comps/outcome-collection/score-marks-input/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../src/features/milestone/outcome/comps/outcome-collection/score-marks-input/index.tsx"],"sourcesContent":["import { useMemo, useState, type FC } from 'react';\n\nimport NumRangeInput from '../../../../../ui/inputs/num-range-input/num-range-input';\nimport SelectInput from '../../../../../ui/inputs/select-input/select-input';\nimport TextInput from '../../../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport type {\n IMileStoneOutcomeFormFields,\n IPlaceholder,\n IValidation,\n IVariant,\n} from '../../../milestone-outcome-types';\nimport { parseNumRangeValue } from '../outcome-form/outcome-form-helpers';\n\ntype TOutcomeFormField = keyof Omit<IMileStoneOutcomeFormFields, 'input_variant'>;\n\ntype TValue = IMileStoneOutcomeFormFields[TOutcomeFormField];\n\nexport interface INumInputWithVariantProps {\n onChange: (value: string | { middle: string; end: string }) => void;\n variants: IVariant[];\n updateVariant: (value: string | undefined) => void;\n validation: IValidation | undefined;\n value: TValue | undefined;\n placeholder: IPlaceholder;\n}\n\nconst NumInputWithVariant: FC<INumInputWithVariantProps> = ({\n onChange,\n variants,\n validation,\n value,\n placeholder,\n updateVariant,\n}) => {\n const [selectedVariant, setSelectedVariant] = useState(() => {\n return variants.find(variant => variant.default);\n });\n\n const handleVariantChange = (variantType: string) => {\n const updatedVariant = variants.find(variant => variant.type === variantType);\n\n if (updatedVariant) {\n setSelectedVariant(updatedVariant);\n const { input_variant: schemeVariant } = updatedVariant;\n\n updateVariant(schemeVariant);\n }\n };\n\n const variantOptions = useMemo(\n () =>\n variants.map(({ type, key }) => ({\n id: type,\n label: key,\n })),\n [variants],\n );\n\n const { type } = selectedVariant || {};\n\n return (\n <>\n <FlexView $marginBottomX={0.5}>\n <SelectInput\n renderAs=\"primary\"\n widthX={24}\n options={variantOptions}\n label=\"Select Variant\"\n value={type}\n onChange={handleVariantChange}\n />\n </FlexView>\n {type === 'out_of' && (\n <NumRangeInput\n onChange={onChange}\n value={parseNumRangeValue(value)}\n middleMax={validation?.max}\n endMax={validation?.max}\n middlePlaceholder={placeholder && placeholder.marks}\n endPlaceholder={placeholder && placeholder.maxMarks}\n />\n )}\n {type === 'absolute' && (\n <TextInput\n renderAs=\"primary\"\n type=\"number\"\n widthX={6}\n min={validation?.min}\n max={validation?.max}\n value={value as string}\n onChange={e => {\n onChange(e.target.value);\n }}\n placeholder={placeholder.maxMarks}\n />\n )}\n </>\n );\n};\n\nexport default NumInputWithVariant;\n"],"names":["NumInputWithVariant","onChange","variants","validation","value","placeholder","updateVariant","selectedVariant","setSelectedVariant","useState","variant","handleVariantChange","variantType","updatedVariant","schemeVariant","variantOptions","useMemo","type","key","jsxs","Fragment","jsx","FlexView","SelectInput","NumRangeInput","parseNumRangeValue","TextInput","e"],"mappings":";;;;;;;AA2BA,MAAMA,IAAqD,CAAC;AAAA,EAC1D,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AACF,MAAM;AACJ,QAAM,CAACC,GAAiBC,CAAkB,IAAIC,EAAS,MAC9CP,EAAS,KAAK,CAAWQ,MAAAA,EAAQ,OAAO,CAChD,GAEKC,IAAsB,CAACC,MAAwB;AACnD,UAAMC,IAAiBX,EAAS,KAAK,CAAWQ,MAAAA,EAAQ,SAASE,CAAW;AAE5E,QAAIC,GAAgB;AAClB,MAAAL,EAAmBK,CAAc;AAC3B,YAAA,EAAE,eAAeC,EAAkB,IAAAD;AAEzC,MAAAP,EAAcQ,CAAa;AAAA,IAC7B;AAAA,EAAA,GAGIC,IAAiBC;AAAA,IACrB,MACEd,EAAS,IAAI,CAAC,EAAE,MAAAe,GAAM,KAAAC,SAAW;AAAA,MAC/B,IAAID;AAAAA,MACJ,OAAOC;AAAA,IAAA,EACP;AAAA,IACJ,CAAChB,CAAQ;AAAA,EAAA,GAGL,EAAE,MAAAe,EAAA,IAASV,KAAmB;AAEpC,SAEI,gBAAAY,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAS,gBAAgB,KACxB,UAAA,gBAAAD;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,QAAQ;AAAA,QACR,SAASR;AAAA,QACT,OAAM;AAAA,QACN,OAAOE;AAAA,QACP,UAAUN;AAAA,MAAA;AAAA,IAAA,GAEd;AAAA,IACCM,MAAS,YACR,gBAAAI;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,UAAAvB;AAAA,QACA,OAAOwB,EAAmBrB,CAAK;AAAA,QAC/B,WAAWD,KAAA,gBAAAA,EAAY;AAAA,QACvB,QAAQA,KAAA,gBAAAA,EAAY;AAAA,QACpB,mBAAmBE,KAAeA,EAAY;AAAA,QAC9C,gBAAgBA,KAAeA,EAAY;AAAA,MAAA;AAAA,IAC7C;AAAA,IAEDY,MAAS,cACR,gBAAAI;AAAA,MAACK;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,MAAK;AAAA,QACL,QAAQ;AAAA,QACR,KAAKvB,KAAA,gBAAAA,EAAY;AAAA,QACjB,KAAKA,KAAA,gBAAAA,EAAY;AAAA,QACjB,OAAAC;AAAA,QACA,UAAU,CAAKuB,MAAA;AACJ,UAAA1B,EAAA0B,EAAE,OAAO,KAAK;AAAA,QACzB;AAAA,QACA,aAAatB,EAAY;AAAA,MAAA;AAAA,IAC3B;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../src/features/milestone/outcome/comps/outcome-collection/score-marks-input/index.tsx"],"sourcesContent":["import { useMemo, useState, type FC } from 'react';\n\nimport NumRangeInput from '../../../../../ui/inputs/num-range-input/num-range-input';\nimport SelectInput from '../../../../../ui/inputs/select-input/select-input';\nimport TextInput from '../../../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport type {\n IMileStoneOutcomeFormFields,\n IPlaceholder,\n IValidation,\n IVariant,\n} from '../../../milestone-outcome-types';\nimport { parseNumRangeValue } from '../outcome-form/outcome-form-helpers';\n\ntype TOutcomeFormField = keyof Omit<IMileStoneOutcomeFormFields, 'input_variant'>;\n\ntype TValue = IMileStoneOutcomeFormFields[TOutcomeFormField];\n\nexport interface INumInputWithVariantProps {\n onChange: (value: string | { middle: string; end: string }) => void;\n variants: IVariant[];\n updateVariant: (value: string | undefined) => void;\n validation: IValidation | undefined;\n value: TValue | undefined;\n placeholder: IPlaceholder;\n}\n\nconst NumInputWithVariant: FC<INumInputWithVariantProps> = ({\n onChange,\n variants,\n validation,\n value,\n placeholder,\n updateVariant,\n}) => {\n const [selectedVariant, setSelectedVariant] = useState(() => {\n return variants.find(variant => variant.default);\n });\n\n const handleVariantChange = (variantType: string) => {\n const updatedVariant = variants.find(variant => variant.type === variantType);\n\n if (updatedVariant) {\n setSelectedVariant(updatedVariant);\n const { input_variant: schemeVariant } = updatedVariant;\n\n updateVariant(schemeVariant);\n }\n };\n\n const variantOptions = useMemo(\n () =>\n variants.map(({ type, key }) => ({\n id: type,\n label: key,\n })),\n [variants],\n );\n\n const { type } = selectedVariant || {};\n\n return (\n <>\n <FlexView $marginBottomX={0.5}>\n <SelectInput\n renderAs=\"primary\"\n widthX={24}\n options={variantOptions}\n label=\"Select Variant\"\n value={type}\n onChange={handleVariantChange}\n />\n </FlexView>\n {type === 'out_of' && (\n <NumRangeInput\n onChange={onChange}\n value={parseNumRangeValue(value)}\n middleMin={validation?.min}\n middleMax={validation?.max}\n endMin={validation?.min && validation?.min > 0 ? validation?.min : 1}\n endMax={validation?.max}\n middlePlaceholder={placeholder && placeholder.marks}\n endPlaceholder={placeholder && placeholder.maxMarks}\n />\n )}\n {type === 'absolute' && (\n <TextInput\n renderAs=\"primary\"\n type=\"number\"\n widthX={6}\n min={validation?.min}\n max={validation?.max}\n value={value as string}\n onChange={e => {\n onChange(e.target.value);\n }}\n placeholder={placeholder.maxMarks}\n />\n )}\n </>\n );\n};\n\nexport default NumInputWithVariant;\n"],"names":["NumInputWithVariant","onChange","variants","validation","value","placeholder","updateVariant","selectedVariant","setSelectedVariant","useState","variant","handleVariantChange","variantType","updatedVariant","schemeVariant","variantOptions","useMemo","type","key","jsxs","Fragment","jsx","FlexView","SelectInput","NumRangeInput","parseNumRangeValue","TextInput","e"],"mappings":";;;;;;;AA2BA,MAAMA,IAAqD,CAAC;AAAA,EAC1D,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AACF,MAAM;AACJ,QAAM,CAACC,GAAiBC,CAAkB,IAAIC,EAAS,MAC9CP,EAAS,KAAK,CAAWQ,MAAAA,EAAQ,OAAO,CAChD,GAEKC,IAAsB,CAACC,MAAwB;AACnD,UAAMC,IAAiBX,EAAS,KAAK,CAAWQ,MAAAA,EAAQ,SAASE,CAAW;AAE5E,QAAIC,GAAgB;AAClB,MAAAL,EAAmBK,CAAc;AAC3B,YAAA,EAAE,eAAeC,EAAkB,IAAAD;AAEzC,MAAAP,EAAcQ,CAAa;AAAA,IAC7B;AAAA,EAAA,GAGIC,IAAiBC;AAAA,IACrB,MACEd,EAAS,IAAI,CAAC,EAAE,MAAAe,GAAM,KAAAC,SAAW;AAAA,MAC/B,IAAID;AAAAA,MACJ,OAAOC;AAAA,IAAA,EACP;AAAA,IACJ,CAAChB,CAAQ;AAAA,EAAA,GAGL,EAAE,MAAAe,EAAA,IAASV,KAAmB;AAEpC,SAEI,gBAAAY,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAS,gBAAgB,KACxB,UAAA,gBAAAD;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,QAAQ;AAAA,QACR,SAASR;AAAA,QACT,OAAM;AAAA,QACN,OAAOE;AAAA,QACP,UAAUN;AAAA,MAAA;AAAA,IAAA,GAEd;AAAA,IACCM,MAAS,YACR,gBAAAI;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,UAAAvB;AAAA,QACA,OAAOwB,EAAmBrB,CAAK;AAAA,QAC/B,WAAWD,KAAA,gBAAAA,EAAY;AAAA,QACvB,WAAWA,KAAA,gBAAAA,EAAY;AAAA,QACvB,QAAQA,KAAA,QAAAA,EAAY,QAAOA,KAAA,gBAAAA,EAAY,OAAM,IAAIA,KAAA,gBAAAA,EAAY,MAAM;AAAA,QACnE,QAAQA,KAAA,gBAAAA,EAAY;AAAA,QACpB,mBAAmBE,KAAeA,EAAY;AAAA,QAC9C,gBAAgBA,KAAeA,EAAY;AAAA,MAAA;AAAA,IAC7C;AAAA,IAEDY,MAAS,cACR,gBAAAI;AAAA,MAACK;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,MAAK;AAAA,QACL,QAAQ;AAAA,QACR,KAAKvB,KAAA,gBAAAA,EAAY;AAAA,QACjB,KAAKA,KAAA,gBAAAA,EAAY;AAAA,QACjB,OAAAC;AAAA,QACA,UAAU,CAAKuB,MAAA;AACJ,UAAA1B,EAAA0B,EAAE,OAAO,KAAK;AAAA,QACzB;AAAA,QACA,aAAatB,EAAY;AAAA,MAAA;AAAA,IAC3B;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
|
package/dist/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { memo as u, useMemo as m } from "react";
|
|
3
|
+
import { useTheme as h } from "styled-components";
|
|
4
|
+
import f from "../../../auth/pla-signup/signup-header/signup-header.js";
|
|
5
|
+
import a from "../../../ui/layout/flex-view.js";
|
|
6
|
+
import s from "../../../ui/separator/separator.js";
|
|
7
|
+
import { MOBILE_SPACING as S, DESKTOP_SPACING as b } from "../../parent-dashboard-constants.js";
|
|
8
|
+
import { EDeviceType as g } from "../../../ui/theme/constants.js";
|
|
9
|
+
import I from "../../../auth/pla-signup/onboarding-guide/onboarding-guide.js";
|
|
10
|
+
import x from "../../../ui/buttons/button/button.js";
|
|
11
|
+
const p = u((c) => {
|
|
12
|
+
const { onGetStartedAgain: i, renderThemeAs: e } = c, { device: d } = h(), t = d <= g.MOBILE, l = m(() => t ? "100%" : 200, [t]), r = m(
|
|
13
|
+
() => t ? S : b,
|
|
14
|
+
[t]
|
|
15
|
+
);
|
|
16
|
+
return /* @__PURE__ */ n(a, { children: [
|
|
17
|
+
/* @__PURE__ */ o(f, { renderThemeAs: e }),
|
|
18
|
+
/* @__PURE__ */ o(s, { height: r.separator.extraLarge }),
|
|
19
|
+
/* @__PURE__ */ o(I, { renderThemeAs: e, orientation: "horizontal" }),
|
|
20
|
+
i ? /* @__PURE__ */ n(a, { children: [
|
|
21
|
+
/* @__PURE__ */ o(s, { height: r.medium }),
|
|
22
|
+
/* @__PURE__ */ o(
|
|
23
|
+
x,
|
|
24
|
+
{
|
|
25
|
+
label: "Get Started",
|
|
26
|
+
renderAs: "yellow-dark",
|
|
27
|
+
shape: "square",
|
|
28
|
+
size: "small",
|
|
29
|
+
width: l,
|
|
30
|
+
onClick: i
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
] }) : null
|
|
34
|
+
] });
|
|
35
|
+
});
|
|
36
|
+
p.displayName = "SubscriptionInitiation";
|
|
37
|
+
const L = p;
|
|
38
|
+
export {
|
|
39
|
+
L as default
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=subscription-initiation.js.map
|
package/dist/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-initiation.js","sources":["../../../../../src/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.tsx"],"sourcesContent":["import { type FC, memo, useMemo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport SignupHeader from '../../../auth/pla-signup/signup-header/signup-header';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport { type ISpacingConfig } from '../../parent-dashboard-types';\nimport { DESKTOP_SPACING, MOBILE_SPACING } from '../../parent-dashboard-constants';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport OnboardingGuide from '../../../auth/pla-signup/onboarding-guide/onboarding-guide';\nimport Button from '../../../ui/buttons/button/button';\n\ninterface ISubscriptionInitiationProps {\n onGetStartedAgain?: () => void;\n renderThemeAs?: 'dark' | 'light';\n}\n\nconst SubscriptionInitiation: FC<ISubscriptionInitiationProps> = memo(props => {\n const { onGetStartedAgain, renderThemeAs } = props;\n\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n\n const buttonWidth = useMemo(() => (isMobile ? '100%' : 200), [isMobile]);\n const spacing = useMemo<ISpacingConfig>(\n () => (isMobile ? MOBILE_SPACING : DESKTOP_SPACING),\n [isMobile],\n );\n\n return (\n <FlexView>\n <SignupHeader renderThemeAs={renderThemeAs} />\n <Separator height={spacing.separator.extraLarge} />\n <OnboardingGuide renderThemeAs={renderThemeAs} 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 size=\"small\"\n width={buttonWidth}\n onClick={onGetStartedAgain}\n />\n </FlexView>\n ) : null}\n </FlexView>\n );\n});\n\nSubscriptionInitiation.displayName = 'SubscriptionInitiation';\n\nexport default SubscriptionInitiation;\n"],"names":["SubscriptionInitiation","memo","props","onGetStartedAgain","renderThemeAs","device","useTheme","isMobile","EDeviceType","buttonWidth","useMemo","spacing","MOBILE_SPACING","DESKTOP_SPACING","FlexView","jsx","SignupHeader","Separator","OnboardingGuide","Button","SubscriptionInitiation$1"],"mappings":";;;;;;;;;;AAiBA,MAAMA,IAA2DC,EAAK,CAASC,MAAA;AACvE,QAAA,EAAE,mBAAAC,GAAmB,eAAAC,EAAkB,IAAAF,GAEvC,EAAE,QAAAG,MAAWC,KACbC,IAAWF,KAAUG,EAAY,QAEjCC,IAAcC,EAAQ,MAAOH,IAAW,SAAS,KAAM,CAACA,CAAQ,CAAC,GACjEI,IAAUD;AAAA,IACd,MAAOH,IAAWK,IAAiBC;AAAA,IACnC,CAACN,CAAQ;AAAA,EAAA;AAGX,2BACGO,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAa,eAAAZ,GAA8B;AAAA,IAC3C,gBAAAW,EAAAE,GAAA,EAAU,QAAQN,EAAQ,UAAU,YAAY;AAAA,IAChD,gBAAAI,EAAAG,GAAA,EAAgB,eAAAd,GAA8B,aAAY,aAAa,CAAA;AAAA,IACvED,sBACEW,GACC,EAAA,UAAA;AAAA,MAAC,gBAAAC,EAAAE,GAAA,EAAU,QAAQN,EAAQ,OAAQ,CAAA;AAAA,MACnC,gBAAAI;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,UAAS;AAAA,UACT,OAAM;AAAA,UACN,MAAK;AAAA,UACL,OAAOV;AAAA,UACP,SAASN;AAAA,QAAA;AAAA,MACX;AAAA,IAAA,EAAA,CACF,IACE;AAAA,EACN,EAAA,CAAA;AAEJ,CAAC;AAEDH,EAAuB,cAAc;AAErC,MAAAoB,IAAepB;"}
|
|
@@ -1,220 +1,200 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import fr from "../ui/buttons/button/button.js";
|
|
8
|
-
import gr from "../ui/buttons/text-button/text-button.js";
|
|
9
|
-
import Sr from "../ui/error/error.js";
|
|
1
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { memo as mr, useMemo as t, useCallback as d } from "react";
|
|
3
|
+
import { useTheme as hr } from "styled-components";
|
|
4
|
+
import Y from "../trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js";
|
|
5
|
+
import pr from "../ui/buttons/text-button/text-button.js";
|
|
6
|
+
import ur from "../ui/error/error.js";
|
|
10
7
|
import i from "../ui/layout/flex-view.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { EDeviceType as
|
|
15
|
-
import { invalidateParentHome as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { usePLAModalHandlers as
|
|
28
|
-
import { MOBILE_SPACING as
|
|
29
|
-
import { MathPracticeWrapper as
|
|
30
|
-
|
|
8
|
+
import fr from "../ui/loader/app-loader/app-loader.js";
|
|
9
|
+
import n from "../ui/separator/separator.js";
|
|
10
|
+
import Z from "../ui/text/text.js";
|
|
11
|
+
import { EDeviceType as dr } from "../ui/theme/constants.js";
|
|
12
|
+
import { invalidateParentHome as gr } from "./api/parent-home.js";
|
|
13
|
+
import Sr from "./comps/billing-information/billing-information.js";
|
|
14
|
+
import xr from "./comps/compact-header/compact-header.js";
|
|
15
|
+
import Tr from "./comps/cuemath-app-features/cuemath-app-features.js";
|
|
16
|
+
import br from "./comps/math-practice/math-practice.js";
|
|
17
|
+
import Cr from "./comps/next-steps/next-steps.js";
|
|
18
|
+
import Lr from "./comps/parent-dashboard-faqs/parent-dashboard-faqs.js";
|
|
19
|
+
import Pr from "./comps/session-status/session-status.js";
|
|
20
|
+
import Dr from "./comps/session-summary/session-summary.js";
|
|
21
|
+
import $r from "./comps/upcoming-sessions/upcoming-sessions.js";
|
|
22
|
+
import Ar from "./hooks/use-parent-home-data.js";
|
|
23
|
+
import yr from "./hooks/use-student-profile-summary-data.js";
|
|
24
|
+
import { usePLAModalHandlers as Mr } from "./modals/hooks/use-pla-model-handlers.js";
|
|
25
|
+
import { MOBILE_SPACING as Ir, DESKTOP_SPACING as Er } from "./parent-dashboard-constants.js";
|
|
26
|
+
import { MathPracticeWrapper as Or, Container as wr, ContentWrapper as Hr } from "./parent-dashboard-styled.js";
|
|
27
|
+
import Fr from "./comps/subscription-initiation/subscription-initiation.js";
|
|
28
|
+
const me = mr(function({
|
|
31
29
|
studentName: l,
|
|
32
30
|
studentId: c,
|
|
33
|
-
onRescheduleDemo:
|
|
31
|
+
onRescheduleDemo: T,
|
|
34
32
|
onViewSummary: h,
|
|
35
|
-
onGetStartedAgain:
|
|
36
|
-
onChangeTutor:
|
|
37
|
-
onSwitchUser:
|
|
38
|
-
HeaderAvatar:
|
|
33
|
+
onGetStartedAgain: b,
|
|
34
|
+
onChangeTutor: C,
|
|
35
|
+
onSwitchUser: L,
|
|
36
|
+
HeaderAvatar: rr
|
|
39
37
|
}) {
|
|
40
|
-
const { device:
|
|
38
|
+
const { device: er } = hr(), P = er <= dr.MOBILE, tr = Ar(c), {
|
|
41
39
|
isStudentNoShow: D,
|
|
42
40
|
isTutorNoShow: $,
|
|
43
41
|
teacherDetails: s,
|
|
44
|
-
billingDetails:
|
|
45
|
-
teacherName:
|
|
42
|
+
billingDetails: p,
|
|
43
|
+
teacherName: g,
|
|
46
44
|
completedSessions: A,
|
|
47
45
|
nextSessionStart: y,
|
|
48
46
|
nextSessionEnd: M,
|
|
49
|
-
upcomingSessions:
|
|
50
|
-
isTrialDone:
|
|
51
|
-
isOnlyTrialDone:
|
|
47
|
+
upcomingSessions: I,
|
|
48
|
+
isTrialDone: a,
|
|
49
|
+
isOnlyTrialDone: u,
|
|
52
50
|
isRegularClassDone: f,
|
|
53
51
|
showLoading: E = !1,
|
|
54
52
|
demoId: m,
|
|
55
|
-
isProcessingFailed:
|
|
56
|
-
userAttemptId:
|
|
57
|
-
isSubscriptionCancelled:
|
|
58
|
-
canChangeTutor:
|
|
53
|
+
isProcessingFailed: or,
|
|
54
|
+
userAttemptId: O,
|
|
55
|
+
isSubscriptionCancelled: ir,
|
|
56
|
+
canChangeTutor: w,
|
|
59
57
|
sessionDetails: H,
|
|
60
|
-
cardOnFileNotAvailable:
|
|
58
|
+
cardOnFileNotAvailable: F,
|
|
61
59
|
isCardDeclined: B
|
|
62
|
-
} =
|
|
63
|
-
() =>
|
|
64
|
-
[
|
|
65
|
-
),
|
|
66
|
-
|
|
67
|
-
}, [
|
|
60
|
+
} = tr, { summaryInfo: k, fetchSummaryData: v } = yr(c), e = t(
|
|
61
|
+
() => P ? Ir : Er,
|
|
62
|
+
[P]
|
|
63
|
+
), nr = d(() => {
|
|
64
|
+
gr(c), v();
|
|
65
|
+
}, [v, c]), S = d(() => {
|
|
66
|
+
T(m);
|
|
67
|
+
}, [m, T]), x = d(() => {
|
|
68
68
|
C(m);
|
|
69
|
-
}, [m, C]),
|
|
70
|
-
L(m);
|
|
71
|
-
}, [m, L]), { onCancelSubscription: N, onViewPaymentMethod: _ } = Or({
|
|
69
|
+
}, [m, C]), { onCancelSubscription: W, onViewPaymentMethod: N } = Mr({
|
|
72
70
|
demoId: m,
|
|
73
71
|
studentId: c,
|
|
74
|
-
isTrialDone:
|
|
72
|
+
isTrialDone: a,
|
|
75
73
|
studentName: l,
|
|
76
|
-
billingDetails:
|
|
77
|
-
withTutor: !!
|
|
78
|
-
onChangeTutor:
|
|
79
|
-
onRescheduleDemo:
|
|
80
|
-
}),
|
|
81
|
-
(
|
|
82
|
-
h == null || h(
|
|
74
|
+
billingDetails: p,
|
|
75
|
+
withTutor: !!g,
|
|
76
|
+
onChangeTutor: x,
|
|
77
|
+
onRescheduleDemo: S
|
|
78
|
+
}), _ = d(
|
|
79
|
+
(cr) => {
|
|
80
|
+
h == null || h(cr, { ...k, userAttemptId: O ?? null });
|
|
83
81
|
},
|
|
84
|
-
[h,
|
|
85
|
-
),
|
|
82
|
+
[h, k, O]
|
|
83
|
+
), j = t(
|
|
86
84
|
() => ({
|
|
87
85
|
completedSessions: A,
|
|
88
86
|
nextSessionStartTime: y,
|
|
89
|
-
teacherName:
|
|
87
|
+
teacherName: g,
|
|
90
88
|
isTutorNoShow: $,
|
|
91
89
|
isStudentNoShow: D,
|
|
92
90
|
nextSessionEndTime: M,
|
|
93
91
|
studentName: l,
|
|
94
|
-
onRescheduleClick:
|
|
95
|
-
isTrialDone:
|
|
96
|
-
isOnlyTrialDone:
|
|
92
|
+
onRescheduleClick: S,
|
|
93
|
+
isTrialDone: a,
|
|
94
|
+
isOnlyTrialDone: u
|
|
97
95
|
}),
|
|
98
96
|
[
|
|
99
97
|
A,
|
|
100
98
|
y,
|
|
101
|
-
|
|
99
|
+
g,
|
|
102
100
|
$,
|
|
103
101
|
D,
|
|
104
102
|
M,
|
|
105
103
|
l,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
S,
|
|
105
|
+
a,
|
|
106
|
+
u
|
|
109
107
|
]
|
|
110
|
-
),
|
|
108
|
+
), K = t(
|
|
111
109
|
() => ({
|
|
112
|
-
isTrialDone:
|
|
110
|
+
isTrialDone: a,
|
|
113
111
|
studentName: l,
|
|
114
|
-
onViewSummary:
|
|
112
|
+
onViewSummary: _
|
|
115
113
|
}),
|
|
116
|
-
[
|
|
117
|
-
),
|
|
118
|
-
() => /* @__PURE__ */
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
width: v,
|
|
132
|
-
onClick: S
|
|
133
|
-
}
|
|
134
|
-
)
|
|
135
|
-
] })
|
|
136
|
-
] }),
|
|
137
|
-
[e, v, S]
|
|
138
|
-
), G = t(
|
|
139
|
-
() => /* @__PURE__ */ r(yr, { ...q }),
|
|
140
|
-
[q]
|
|
141
|
-
), K = t(() => !s || n ? null : /* @__PURE__ */ o(i, { children: [
|
|
142
|
-
/* @__PURE__ */ r(a, { height: e.separator.large }),
|
|
143
|
-
/* @__PURE__ */ r(Z, { teacherProfile: s })
|
|
144
|
-
] }), [s, n, e.separator.large]), R = t(() => f ? null : /* @__PURE__ */ o(i, { children: [
|
|
145
|
-
/* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
|
|
146
|
-
/* @__PURE__ */ r(Mr, { ...z })
|
|
147
|
-
] }), [f, e.separator.extraLarge, z]), V = t(() => O ? /* @__PURE__ */ o(i, { children: [
|
|
148
|
-
/* @__PURE__ */ r(a, { height: e.separator.small }),
|
|
114
|
+
[a, l, _]
|
|
115
|
+
), ar = t(
|
|
116
|
+
() => /* @__PURE__ */ r(Fr, { onGetStartedAgain: b }),
|
|
117
|
+
[b]
|
|
118
|
+
), R = t(
|
|
119
|
+
() => /* @__PURE__ */ r(Pr, { ...j }),
|
|
120
|
+
[j]
|
|
121
|
+
), q = t(() => !s || a ? null : /* @__PURE__ */ o(i, { children: [
|
|
122
|
+
/* @__PURE__ */ r(n, { height: e.separator.large }),
|
|
123
|
+
/* @__PURE__ */ r(Y, { teacherProfile: s })
|
|
124
|
+
] }), [s, a, e.separator.large]), G = t(() => f ? null : /* @__PURE__ */ o(i, { children: [
|
|
125
|
+
/* @__PURE__ */ r(n, { height: e.separator.extraLarge }),
|
|
126
|
+
/* @__PURE__ */ r(Dr, { ...K })
|
|
127
|
+
] }), [f, e.separator.extraLarge, K]), V = t(() => w ? /* @__PURE__ */ o(i, { children: [
|
|
128
|
+
/* @__PURE__ */ r(n, { height: e.separator.small }),
|
|
149
129
|
/* @__PURE__ */ o(i, { $flexDirection: "row", $flexColumnGapX: 0.25, children: [
|
|
150
|
-
/* @__PURE__ */ r(
|
|
130
|
+
/* @__PURE__ */ r(Z, { $renderAs: "ub1", $renderOnMobileAs: "ub2", $color: "WHITE", children: "Not the right fit for your child?" }),
|
|
151
131
|
/* @__PURE__ */ r(
|
|
152
|
-
|
|
132
|
+
pr,
|
|
153
133
|
{
|
|
154
134
|
color: "WHITE_1",
|
|
155
135
|
sizeOnMobile: "small",
|
|
156
136
|
label: "Try another tutor",
|
|
157
|
-
onClick:
|
|
137
|
+
onClick: x
|
|
158
138
|
}
|
|
159
139
|
)
|
|
160
140
|
] })
|
|
161
|
-
] }) : null, [
|
|
162
|
-
/* @__PURE__ */ r(
|
|
163
|
-
/* @__PURE__ */ r(
|
|
164
|
-
/* @__PURE__ */ r(
|
|
165
|
-
/* @__PURE__ */ r(
|
|
141
|
+
] }) : null, [w, e.separator.small, x]), z = t(() => s ? /* @__PURE__ */ o(i, { children: [
|
|
142
|
+
/* @__PURE__ */ r(n, { height: e.separator.extraLarge }),
|
|
143
|
+
/* @__PURE__ */ r(Z, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Know your tutor" }),
|
|
144
|
+
/* @__PURE__ */ r(n, { height: e.separator.medium }),
|
|
145
|
+
/* @__PURE__ */ r(Y, { teacherProfile: s }),
|
|
166
146
|
V
|
|
167
|
-
] }) : null, [s, e.separator, V]),
|
|
168
|
-
/* @__PURE__ */ r(
|
|
169
|
-
/* @__PURE__ */ r(
|
|
170
|
-
/* @__PURE__ */ r(
|
|
171
|
-
|
|
172
|
-
] }) : null, [
|
|
173
|
-
/* @__PURE__ */ r(
|
|
174
|
-
/* @__PURE__ */ r(
|
|
175
|
-
] }) : null, [
|
|
176
|
-
/* @__PURE__ */ r(
|
|
177
|
-
/* @__PURE__ */ r(
|
|
178
|
-
] }), [f, e.separator.extraLarge,
|
|
179
|
-
/* @__PURE__ */ r(
|
|
147
|
+
] }) : null, [s, e.separator, V]), X = t(() => u ? /* @__PURE__ */ o(i, { children: [
|
|
148
|
+
/* @__PURE__ */ r(n, { height: e.separator.extraLarge }),
|
|
149
|
+
/* @__PURE__ */ r(Cr, {}),
|
|
150
|
+
/* @__PURE__ */ r($r, { sessions: I }),
|
|
151
|
+
z
|
|
152
|
+
] }) : null, [u, e.separator.extraLarge, I, z]), J = t(() => a ? /* @__PURE__ */ o(i, { children: [
|
|
153
|
+
/* @__PURE__ */ r(n, { height: e.separator.extraLarge }),
|
|
154
|
+
/* @__PURE__ */ r(Tr, {})
|
|
155
|
+
] }) : null, [a, e.separator.extraLarge]), Q = t(() => f ? null : /* @__PURE__ */ o(i, { children: [
|
|
156
|
+
/* @__PURE__ */ r(n, { height: e.separator.extraLarge }),
|
|
157
|
+
/* @__PURE__ */ r(Or, { children: /* @__PURE__ */ r(br, { onSwitchUser: L }) })
|
|
158
|
+
] }), [f, e.separator.extraLarge, L]), U = t(() => p ? /* @__PURE__ */ o(i, { children: [
|
|
159
|
+
/* @__PURE__ */ r(n, { height: e.separator.extraLarge }),
|
|
180
160
|
/* @__PURE__ */ r(
|
|
181
|
-
|
|
161
|
+
Sr,
|
|
182
162
|
{
|
|
183
|
-
billingDetails:
|
|
184
|
-
onViewPaymentMethod:
|
|
185
|
-
onCancelSubscription:
|
|
163
|
+
billingDetails: p,
|
|
164
|
+
onViewPaymentMethod: N,
|
|
165
|
+
onCancelSubscription: W
|
|
186
166
|
}
|
|
187
167
|
)
|
|
188
|
-
] }) : null, [
|
|
168
|
+
] }) : null, [p, e.separator.extraLarge, N, W]), sr = t(
|
|
189
169
|
() => /* @__PURE__ */ o(i, { children: [
|
|
190
|
-
G,
|
|
191
|
-
K,
|
|
192
170
|
R,
|
|
171
|
+
q,
|
|
172
|
+
G,
|
|
173
|
+
X,
|
|
193
174
|
J,
|
|
194
175
|
Q,
|
|
195
|
-
U
|
|
196
|
-
Y
|
|
176
|
+
U
|
|
197
177
|
] }),
|
|
198
178
|
[
|
|
199
|
-
G,
|
|
200
|
-
K,
|
|
201
179
|
R,
|
|
180
|
+
q,
|
|
181
|
+
G,
|
|
182
|
+
X,
|
|
202
183
|
J,
|
|
203
184
|
Q,
|
|
204
|
-
U
|
|
205
|
-
Y
|
|
185
|
+
U
|
|
206
186
|
]
|
|
207
|
-
),
|
|
187
|
+
), lr = t(
|
|
208
188
|
() => /* @__PURE__ */ o(i, { children: [
|
|
209
|
-
/* @__PURE__ */ r(
|
|
210
|
-
/* @__PURE__ */ r(
|
|
189
|
+
/* @__PURE__ */ r(n, { height: e.separator.extraLarge }),
|
|
190
|
+
/* @__PURE__ */ r(Lr, {})
|
|
211
191
|
] }),
|
|
212
192
|
[e.separator.extraLarge]
|
|
213
193
|
);
|
|
214
|
-
return t(() => B ||
|
|
215
|
-
/* @__PURE__ */ r(
|
|
194
|
+
return t(() => B || F || !H || E, [F, B, H, E]) ? /* @__PURE__ */ r(fr, { height: "100dvh" }) : or ? /* @__PURE__ */ r(i, { $flex: 1, $alignItems: "center", $justifyContent: "center", children: /* @__PURE__ */ r(ur, { theme: "dark", onTryAgain: nr }) }) : /* @__PURE__ */ o(wr, { children: [
|
|
195
|
+
/* @__PURE__ */ r(xr, { HeaderAvatar: rr }),
|
|
216
196
|
/* @__PURE__ */ o(
|
|
217
|
-
|
|
197
|
+
Hr,
|
|
218
198
|
{
|
|
219
199
|
$flex: 1,
|
|
220
200
|
$width: "100%",
|
|
@@ -223,14 +203,14 @@ const fe = hr(function({
|
|
|
223
203
|
$gap: e.medium,
|
|
224
204
|
$gutter: e.small,
|
|
225
205
|
children: [
|
|
226
|
-
|
|
227
|
-
|
|
206
|
+
ir ? ar : sr,
|
|
207
|
+
lr
|
|
228
208
|
]
|
|
229
209
|
}
|
|
230
210
|
)
|
|
231
211
|
] });
|
|
232
212
|
});
|
|
233
213
|
export {
|
|
234
|
-
|
|
214
|
+
me as default
|
|
235
215
|
};
|
|
236
216
|
//# sourceMappingURL=parent-dashboard-view.js.map
|