@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.
@@ -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 ? "BLACK" : "WHITE";
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 = !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 &nbsp;\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,IAAaH,IAAwB,UAAV;AAG/B,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
+ {"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 &nbsp;\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 g, Fragment as y, jsx as s } from "react/jsx-runtime";
2
- import { useState as M, useMemo as b } from "react";
3
- import I from "../../../../../ui/inputs/num-range-input/num-range-input.js";
4
- import S from "../../../../../ui/inputs/select-input/select-input.js";
5
- import k from "../../../../../ui/inputs/text-input/text-input.js";
6
- import w from "../../../../../ui/layout/flex-view.js";
7
- import { parseNumRangeValue as N } from "../outcome-form/outcome-form-helpers.js";
8
- const R = ({
9
- onChange: c,
10
- variants: n,
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: f,
13
- placeholder: m,
14
- updateVariant: x
12
+ value: x,
13
+ placeholder: r,
14
+ updateVariant: n
15
15
  }) => {
16
- const [o, V] = M(() => n.find((r) => r.default)), h = (r) => {
17
- const t = n.find((u) => u.type === r);
18
- if (t) {
19
- V(t);
20
- const { input_variant: u } = t;
21
- x(u);
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
- }, a = b(
24
- () => n.map(({ type: r, key: t }) => ({
25
- id: r,
26
- label: t
23
+ }, M = S(
24
+ () => p.map(({ type: m, key: s }) => ({
25
+ id: m,
26
+ label: s
27
27
  })),
28
- [n]
29
- ), { type: p } = o || {};
30
- return /* @__PURE__ */ g(y, { children: [
31
- /* @__PURE__ */ s(w, { $marginBottomX: 0.5, children: /* @__PURE__ */ s(
32
- S,
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: a,
36
+ options: M,
37
37
  label: "Select Variant",
38
- value: p,
39
- onChange: h
38
+ value: t,
39
+ onChange: g
40
40
  }
41
41
  ) }),
42
- p === "out_of" && /* @__PURE__ */ s(
43
- I,
42
+ t === "out_of" && /* @__PURE__ */ u(
43
+ k,
44
44
  {
45
- onChange: c,
46
- value: N(f),
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: m && m.marks,
50
- endPlaceholder: m && m.maxMarks
51
+ middlePlaceholder: r && r.marks,
52
+ endPlaceholder: r && r.maxMarks
51
53
  }
52
54
  ),
53
- p === "absolute" && /* @__PURE__ */ s(
54
- k,
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: f,
62
- onChange: (r) => {
63
- c(r.target.value);
63
+ value: x,
64
+ onChange: (m) => {
65
+ f(m.target.value);
64
66
  },
65
- placeholder: m.maxMarks
67
+ placeholder: r.maxMarks
66
68
  }
67
69
  )
68
70
  ] });
69
71
  };
70
72
  export {
71
- R as default
73
+ O as default
72
74
  };
73
75
  //# sourceMappingURL=index.js.map
@@ -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;"}
@@ -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
@@ -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 { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { memo as hr, useMemo as t, useCallback as g } from "react";
3
- import { useTheme as pr } from "styled-components";
4
- import ur from "../auth/pla-signup/onboarding-guide/onboarding-guide.js";
5
- import dr from "../auth/pla-signup/signup-header/signup-header.js";
6
- import Z from "../trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js";
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 xr from "../ui/loader/app-loader/app-loader.js";
12
- import a from "../ui/separator/separator.js";
13
- import rr from "../ui/text/text.js";
14
- import { EDeviceType as Tr } from "../ui/theme/constants.js";
15
- import { invalidateParentHome as br } from "./api/parent-home.js";
16
- import Cr from "./comps/billing-information/billing-information.js";
17
- import Lr from "./comps/compact-header/compact-header.js";
18
- import Pr from "./comps/cuemath-app-features/cuemath-app-features.js";
19
- import Dr from "./comps/math-practice/math-practice.js";
20
- import $r from "./comps/next-steps/next-steps.js";
21
- import Ar from "./comps/parent-dashboard-faqs/parent-dashboard-faqs.js";
22
- import yr from "./comps/session-status/session-status.js";
23
- import Mr from "./comps/session-summary/session-summary.js";
24
- import wr from "./comps/upcoming-sessions/upcoming-sessions.js";
25
- import Er from "./hooks/use-parent-home-data.js";
26
- import Ir from "./hooks/use-student-profile-summary-data.js";
27
- import { usePLAModalHandlers as Or } from "./modals/hooks/use-pla-model-handlers.js";
28
- import { MOBILE_SPACING as Hr, DESKTOP_SPACING as kr } from "./parent-dashboard-constants.js";
29
- import { MathPracticeWrapper as Br, Container as Fr, ContentWrapper as Wr } from "./parent-dashboard-styled.js";
30
- const fe = hr(function({
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: C,
31
+ onRescheduleDemo: T,
34
32
  onViewSummary: h,
35
- onGetStartedAgain: S,
36
- onChangeTutor: L,
37
- onSwitchUser: P,
38
- HeaderAvatar: er
33
+ onGetStartedAgain: b,
34
+ onChangeTutor: C,
35
+ onSwitchUser: L,
36
+ HeaderAvatar: rr
39
37
  }) {
40
- const { device: tr } = pr(), p = tr <= Tr.MOBILE, or = Er(c), {
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: u,
45
- teacherName: x,
42
+ billingDetails: p,
43
+ teacherName: g,
46
44
  completedSessions: A,
47
45
  nextSessionStart: y,
48
46
  nextSessionEnd: M,
49
- upcomingSessions: w,
50
- isTrialDone: n,
51
- isOnlyTrialDone: d,
47
+ upcomingSessions: I,
48
+ isTrialDone: a,
49
+ isOnlyTrialDone: u,
52
50
  isRegularClassDone: f,
53
51
  showLoading: E = !1,
54
52
  demoId: m,
55
- isProcessingFailed: ir,
56
- userAttemptId: I,
57
- isSubscriptionCancelled: ar,
58
- canChangeTutor: O,
53
+ isProcessingFailed: or,
54
+ userAttemptId: O,
55
+ isSubscriptionCancelled: ir,
56
+ canChangeTutor: w,
59
57
  sessionDetails: H,
60
- cardOnFileNotAvailable: k,
58
+ cardOnFileNotAvailable: F,
61
59
  isCardDeclined: B
62
- } = or, { summaryInfo: F, fetchSummaryData: W } = Ir(c), e = t(
63
- () => p ? Hr : kr,
64
- [p]
65
- ), v = t(() => p ? "100%" : 200, [p]), nr = g(() => {
66
- br(c), W();
67
- }, [W, c]), T = g(() => {
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]), b = g(() => {
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: n,
72
+ isTrialDone: a,
75
73
  studentName: l,
76
- billingDetails: u,
77
- withTutor: !!x,
78
- onChangeTutor: b,
79
- onRescheduleDemo: T
80
- }), j = g(
81
- (mr) => {
82
- h == null || h(mr, { ...F, userAttemptId: I ?? null });
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, F, I]
85
- ), q = t(
82
+ [h, k, O]
83
+ ), j = t(
86
84
  () => ({
87
85
  completedSessions: A,
88
86
  nextSessionStartTime: y,
89
- teacherName: x,
87
+ teacherName: g,
90
88
  isTutorNoShow: $,
91
89
  isStudentNoShow: D,
92
90
  nextSessionEndTime: M,
93
91
  studentName: l,
94
- onRescheduleClick: T,
95
- isTrialDone: n,
96
- isOnlyTrialDone: d
92
+ onRescheduleClick: S,
93
+ isTrialDone: a,
94
+ isOnlyTrialDone: u
97
95
  }),
98
96
  [
99
97
  A,
100
98
  y,
101
- x,
99
+ g,
102
100
  $,
103
101
  D,
104
102
  M,
105
103
  l,
106
- T,
107
- n,
108
- d
104
+ S,
105
+ a,
106
+ u
109
107
  ]
110
- ), z = t(
108
+ ), K = t(
111
109
  () => ({
112
- isTrialDone: n,
110
+ isTrialDone: a,
113
111
  studentName: l,
114
- onViewSummary: j
112
+ onViewSummary: _
115
113
  }),
116
- [n, l, j]
117
- ), sr = t(
118
- () => /* @__PURE__ */ o(i, { children: [
119
- /* @__PURE__ */ r(dr, {}),
120
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
121
- /* @__PURE__ */ r(ur, { orientation: "horizontal" }),
122
- S && /* @__PURE__ */ o(i, { children: [
123
- /* @__PURE__ */ r(a, { height: e.medium }),
124
- /* @__PURE__ */ r(
125
- fr,
126
- {
127
- label: "Get Started",
128
- renderAs: "yellow-dark",
129
- shape: "square",
130
- size: "small",
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(rr, { $renderAs: "ub1", $renderOnMobileAs: "ub2", $color: "WHITE", children: "Not the right fit for your child?" }),
130
+ /* @__PURE__ */ r(Z, { $renderAs: "ub1", $renderOnMobileAs: "ub2", $color: "WHITE", children: "Not the right fit for your child?" }),
151
131
  /* @__PURE__ */ r(
152
- gr,
132
+ pr,
153
133
  {
154
134
  color: "WHITE_1",
155
135
  sizeOnMobile: "small",
156
136
  label: "Try another tutor",
157
- onClick: b
137
+ onClick: x
158
138
  }
159
139
  )
160
140
  ] })
161
- ] }) : null, [O, e.separator.small, b]), X = t(() => s ? /* @__PURE__ */ o(i, { children: [
162
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
163
- /* @__PURE__ */ r(rr, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Know your tutor" }),
164
- /* @__PURE__ */ r(a, { height: e.separator.medium }),
165
- /* @__PURE__ */ r(Z, { teacherProfile: s }),
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]), J = t(() => d ? /* @__PURE__ */ o(i, { children: [
168
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
169
- /* @__PURE__ */ r($r, {}),
170
- /* @__PURE__ */ r(wr, { sessions: w }),
171
- X
172
- ] }) : null, [d, e.separator.extraLarge, w, X]), Q = t(() => n ? /* @__PURE__ */ o(i, { children: [
173
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
174
- /* @__PURE__ */ r(Pr, {})
175
- ] }) : null, [n, e.separator.extraLarge]), U = t(() => f ? null : /* @__PURE__ */ o(i, { children: [
176
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
177
- /* @__PURE__ */ r(Br, { children: /* @__PURE__ */ r(Dr, { onSwitchUser: P }) })
178
- ] }), [f, e.separator.extraLarge, P]), Y = t(() => u ? /* @__PURE__ */ o(i, { children: [
179
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
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
- Cr,
161
+ Sr,
182
162
  {
183
- billingDetails: u,
184
- onViewPaymentMethod: _,
185
- onCancelSubscription: N
163
+ billingDetails: p,
164
+ onViewPaymentMethod: N,
165
+ onCancelSubscription: W
186
166
  }
187
167
  )
188
- ] }) : null, [u, e.separator.extraLarge, _, N]), lr = t(
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
- ), cr = t(
187
+ ), lr = t(
208
188
  () => /* @__PURE__ */ o(i, { children: [
209
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
210
- /* @__PURE__ */ r(Ar, {})
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 || k || !H || E, [k, B, H, E]) ? /* @__PURE__ */ r(xr, { height: "100dvh" }) : ir ? /* @__PURE__ */ r(i, { $flex: 1, $alignItems: "center", $justifyContent: "center", children: /* @__PURE__ */ r(Sr, { theme: "dark", onTryAgain: nr }) }) : /* @__PURE__ */ o(Fr, { children: [
215
- /* @__PURE__ */ r(Lr, { HeaderAvatar: er }),
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
- Wr,
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
- ar ? sr : lr,
227
- cr
206
+ ir ? ar : sr,
207
+ lr
228
208
  ]
229
209
  }
230
210
  )
231
211
  ] });
232
212
  });
233
213
  export {
234
- fe as default
214
+ me as default
235
215
  };
236
216
  //# sourceMappingURL=parent-dashboard-view.js.map