@cuemath/leap 2.9.5-j1 → 2.9.5-j10

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.
Files changed (59) hide show
  1. package/dist/assets/illustrations/loader-1.svg.js +6 -0
  2. package/dist/assets/illustrations/loader-1.svg.js.map +1 -0
  3. package/dist/assets/lottie/lottie.js +1 -0
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/auth/account-selector/account-selector-styled.js +27 -16
  6. package/dist/features/auth/account-selector/account-selector-styled.js.map +1 -1
  7. package/dist/features/auth/account-selector/account-selector.js +83 -68
  8. package/dist/features/auth/account-selector/account-selector.js.map +1 -1
  9. package/dist/features/auth/comps/input-status-icon/input-status-icon.js +20 -0
  10. package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +1 -0
  11. package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js +19 -22
  12. package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js.map +1 -1
  13. package/dist/features/auth/comps/resend-otp/resend-otp.js +12 -12
  14. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
  15. package/dist/features/auth/comps/tabs/tabs-styled.js +23 -0
  16. package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -0
  17. package/dist/features/auth/comps/tabs/tabs.js +23 -0
  18. package/dist/features/auth/comps/tabs/tabs.js.map +1 -0
  19. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +31 -0
  20. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +1 -0
  21. package/dist/features/auth/login/social-login-methods/social-login-methods.js +46 -0
  22. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -0
  23. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +17 -15
  24. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -1
  25. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +48 -49
  26. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
  27. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js +16 -5
  28. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js.map +1 -1
  29. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +66 -61
  30. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +1 -1
  31. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.js +10 -3
  32. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.js.map +1 -1
  33. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input.js +54 -50
  34. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input.js.map +1 -1
  35. package/dist/features/auth/signup/custom-input/grade-input/grade-input.js +6 -6
  36. package/dist/features/auth/signup/custom-input/grade-input/grade-input.js.map +1 -1
  37. package/dist/features/auth/signup/custom-input/input-wrapper/input-wrapper.js +22 -22
  38. package/dist/features/auth/signup/custom-input/input-wrapper/input-wrapper.js.map +1 -1
  39. package/dist/features/auth/signup/custom-input/student-username/student-username.js +23 -23
  40. package/dist/features/auth/signup/custom-input/student-username/student-username.js.map +1 -1
  41. package/dist/features/auth/signup/signup-constants.js.map +1 -1
  42. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +14 -14
  43. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +1 -1
  44. package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +1 -1
  45. package/dist/features/ui/inputs/base-input/base-input-styled.js +61 -60
  46. package/dist/features/ui/inputs/base-input/base-input-styled.js.map +1 -1
  47. package/dist/features/ui/inputs/base-input/base-input.js +38 -35
  48. package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
  49. package/dist/features/ui/inputs/text-input/text-input-styled.js +22 -20
  50. package/dist/features/ui/inputs/text-input/text-input-styled.js.map +1 -1
  51. package/dist/features/ui/inputs/text-input/text-input.js +35 -32
  52. package/dist/features/ui/inputs/text-input/text-input.js.map +1 -1
  53. package/dist/features/ui/theme/input.js +84 -11
  54. package/dist/features/ui/theme/input.js.map +1 -1
  55. package/dist/index.d.ts +57 -11
  56. package/dist/index.js +520 -512
  57. package/dist/index.js.map +1 -1
  58. package/dist/static/error.cbe1ddde.json +1 -0
  59. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ import { jsxs as a, jsx as i } from "react/jsx-runtime";
2
+ import r from "../../../../assets/line-icons/icons/apple-icon.js";
3
+ import c from "../../../../assets/line-icons/icons/google-icon.js";
4
+ import n from "../../../ui/buttons/button/button.js";
5
+ import p from "../../../ui/layout/flex-view.js";
6
+ const d = ({
7
+ onGoogleLogin: s,
8
+ onAppleLogin: t,
9
+ loadingProvider: o
10
+ }) => {
11
+ const e = o === "google", l = o === "apple";
12
+ return /* @__PURE__ */ a(p, { $flexGapX: 1, $flexDirection: "row", $justifyContent: "space-between", $width: 336, children: [
13
+ /* @__PURE__ */ i(
14
+ n,
15
+ {
16
+ renderAs: "secondary",
17
+ Icon: c,
18
+ width: 160,
19
+ label: "",
20
+ analyticsLabel: "google_login",
21
+ onClick: s,
22
+ size: "small",
23
+ busy: e,
24
+ disabled: e
25
+ }
26
+ ),
27
+ /* @__PURE__ */ i(
28
+ n,
29
+ {
30
+ renderAs: "secondary",
31
+ size: "small",
32
+ width: 160,
33
+ Icon: r,
34
+ label: "",
35
+ analyticsLabel: "apple_login",
36
+ onClick: t,
37
+ busy: l,
38
+ disabled: l
39
+ }
40
+ )
41
+ ] });
42
+ }, h = d;
43
+ export {
44
+ h as default
45
+ };
46
+ //# sourceMappingURL=social-login-methods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-login-methods.js","sources":["../../../../../src/features/auth/login/social-login-methods/social-login-methods.tsx"],"sourcesContent":["import type { ISocialLoginMethodsProps } from './social-login-methods-types';\nimport type { FC } from 'react';\n\nimport AppleIcon from '../../../../assets/line-icons/icons/apple-icon';\nimport GoogleIcon from '../../../../assets/line-icons/icons/google-icon';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst SocialLoginMethods: FC<ISocialLoginMethodsProps> = ({\n onGoogleLogin,\n onAppleLogin,\n loadingProvider,\n}) => {\n const isLoadingGoogle = loadingProvider === 'google';\n const isLoadingApple = loadingProvider === 'apple';\n\n return (\n <FlexView $flexGapX={1} $flexDirection=\"row\" $justifyContent=\"space-between\" $width={336}>\n <Button\n renderAs=\"secondary\"\n Icon={GoogleIcon}\n width={160}\n label=\"\"\n analyticsLabel=\"google_login\"\n onClick={onGoogleLogin}\n size=\"small\"\n busy={isLoadingGoogle}\n disabled={isLoadingGoogle}\n />\n <Button\n renderAs=\"secondary\"\n size=\"small\"\n width={160}\n Icon={AppleIcon}\n label=\"\"\n analyticsLabel=\"apple_login\"\n onClick={onAppleLogin}\n busy={isLoadingApple}\n disabled={isLoadingApple}\n />\n </FlexView>\n );\n};\n\nexport default SocialLoginMethods;\n"],"names":["SocialLoginMethods","onGoogleLogin","onAppleLogin","loadingProvider","isLoadingGoogle","isLoadingApple","jsxs","FlexView","jsx","Button","GoogleIcon","AppleIcon","SocialLoginMethods$1"],"mappings":";;;;;AAQA,MAAMA,IAAmD,CAAC;AAAA,EACxD,eAAAC;AAAA,EACA,cAAAC;AAAA,EACA,iBAAAC;AACF,MAAM;AACJ,QAAMC,IAAkBD,MAAoB,UACtCE,IAAiBF,MAAoB;AAGzC,SAAA,gBAAAG,EAACC,KAAS,WAAW,GAAG,gBAAe,OAAM,iBAAgB,iBAAgB,QAAQ,KACnF,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,MAAMC;AAAA,QACN,OAAO;AAAA,QACP,OAAM;AAAA,QACN,gBAAe;AAAA,QACf,SAAST;AAAA,QACT,MAAK;AAAA,QACL,MAAMG;AAAA,QACN,UAAUA;AAAA,MAAA;AAAA,IACZ;AAAA,IACA,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,MAAK;AAAA,QACL,OAAO;AAAA,QACP,MAAME;AAAA,QACN,OAAM;AAAA,QACN,gBAAe;AAAA,QACf,SAAST;AAAA,QACT,MAAMG;AAAA,QACN,UAAUA;AAAA,MAAA;AAAA,IACZ;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAO,IAAeZ;"}
@@ -1,39 +1,40 @@
1
- import t from "styled-components";
1
+ import o from "styled-components";
2
2
  import i from "../../../ui/layout/flex-view.js";
3
- const n = t(i)`
3
+ const n = o(i)`
4
4
  position: relative;
5
- `, s = t(i)`
5
+ `, s = o(i)`
6
6
  position: absolute;
7
7
  border-radius: 100%;
8
8
  top: 216px;
9
- border: ${({ theme: o }) => `2px solid ${o.colors.BLACK_5}`};
10
- opacity: ${({ $isVisible: o }) => o ? 1 : 0};
9
+ border: ${({ theme: t }) => `2px solid ${t.colors.BLACK_5}`};
10
+ `, p = o(i)`
11
+ opacity: ${({ $isVisible: t }) => t ? 1 : 0};
11
12
  transition: opacity 0.5s ease-in-out;
12
- `, p = t.div`
13
+ `, a = o.div`
13
14
  position: relative;
14
15
  `;
15
- t(i)`
16
+ o(i)`
16
17
  position: relative;
17
18
  overflow: hidden;
18
- background: ${({ theme: o }) => o.colors.BLACK_2};
19
+ background: ${({ theme: t }) => t.colors.BLACK_2};
19
20
  border-radius: 100%;
20
21
  flex-shrink: 0;
21
22
  display: flex;
22
23
  align-items: center;
23
24
  justify-content: center;
24
- color: ${({ theme: o }) => o.colors.WHITE};
25
+ color: ${({ theme: t }) => t.colors.WHITE};
25
26
  `;
26
- t.div`
27
+ o.div`
27
28
  position: absolute;
28
29
  width: 100%;
29
30
  height: 100%;
30
31
  z-index: 2;
31
32
  `;
32
- const a = t(i)`
33
+ const l = o(i)`
33
34
  position: absolute;
34
35
  top: 55%;
35
36
  right: 24px;
36
- `, l = t(i)`
37
+ `, c = o(i)`
37
38
  position: absolute;
38
39
  top: 55%;
39
40
  left: 24px;
@@ -41,8 +42,9 @@ const a = t(i)`
41
42
  export {
42
43
  s as CircularStepContainer,
43
44
  n as Container,
44
- p as InputContainer,
45
- a as NextButtonWrapper,
46
- l as PrevButtonWrapper
45
+ p as ContentWrapper,
46
+ a as InputContainer,
47
+ l as NextButtonWrapper,
48
+ c as PrevButtonWrapper
47
49
  };
48
50
  //# sourceMappingURL=circular-step-wrapper-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"circular-step-wrapper-styled.js","sources":["../../../../../src/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst Container = styled(FlexView)`\n position: relative;\n`;\n\nconst CircularStepContainer = styled(FlexView)<{ $isVisible: boolean }>`\n position: absolute;\n border-radius: 100%;\n top: 216px;\n border: ${({ theme }) => `2px solid ${theme.colors.BLACK_5}`};\n opacity: ${({ $isVisible }) => ($isVisible ? 1 : 0)};\n transition: opacity 0.5s ease-in-out;\n`;\n\nconst InputContainer = styled.div`\n position: relative;\n`;\n\nconst CircularProgressContainer = styled(FlexView)<{\n isVerticallyCentered?: boolean;\n}>`\n position: relative;\n overflow: hidden;\n background: ${({ theme }) => theme.colors.BLACK_2};\n border-radius: 100%;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: ${({ theme }) => theme.colors.WHITE};\n`;\n\nexport const CircularProgress = styled.div`\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 2;\n`;\n\nconst NextButtonWrapper = styled(FlexView)`\n position: absolute;\n top: 55%;\n right: 24px;\n`;\nconst PrevButtonWrapper = styled(FlexView)`\n position: absolute;\n top: 55%;\n left: 24px;\n`;\n\nexport {\n NextButtonWrapper,\n PrevButtonWrapper,\n InputContainer,\n Container,\n CircularStepContainer,\n CircularProgressContainer,\n};\n"],"names":["Container","styled","FlexView","CircularStepContainer","theme","$isVisible","InputContainer","NextButtonWrapper","PrevButtonWrapper"],"mappings":";;AAIM,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,GAI3BC,IAAwBF,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,YAIjC,CAAC,EAAE,OAAAE,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA,aACjD,CAAC,EAAE,YAAAC,EAAA,MAAkBA,IAAa,IAAI,CAAE;AAAA;AAAA,GAI/CC,IAAiBL,EAAO;AAAA;AAAA;AAIIA,EAAOC,CAAQ;AAAA;AAAA;AAAA,gBAKjC,CAAC,EAAE,OAAAE,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAMxC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAGZH,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOjC,MAAAM,IAAoBN,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,GAKnCM,IAAoBP,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"circular-step-wrapper-styled.js","sources":["../../../../../src/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst Container = styled(FlexView)`\n position: relative;\n`;\n\nconst CircularStepContainer = styled(FlexView)`\n position: absolute;\n border-radius: 100%;\n top: 216px;\n border: ${({ theme }) => `2px solid ${theme.colors.BLACK_5}`};\n`;\n\nconst ContentWrapper = styled(FlexView)<{ $isVisible: boolean }>`\n opacity: ${({ $isVisible }) => ($isVisible ? 1 : 0)};\n transition: opacity 0.5s ease-in-out;\n`;\n\nconst InputContainer = styled.div`\n position: relative;\n`;\n\nconst CircularProgressContainer = styled(FlexView)<{\n isVerticallyCentered?: boolean;\n}>`\n position: relative;\n overflow: hidden;\n background: ${({ theme }) => theme.colors.BLACK_2};\n border-radius: 100%;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: ${({ theme }) => theme.colors.WHITE};\n`;\n\nexport const CircularProgress = styled.div`\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 2;\n`;\n\nconst NextButtonWrapper = styled(FlexView)`\n position: absolute;\n top: 55%;\n right: 24px;\n`;\nconst PrevButtonWrapper = styled(FlexView)`\n position: absolute;\n top: 55%;\n left: 24px;\n`;\n\nexport {\n NextButtonWrapper,\n PrevButtonWrapper,\n InputContainer,\n Container,\n CircularStepContainer,\n CircularProgressContainer,\n ContentWrapper,\n};\n"],"names":["Container","styled","FlexView","CircularStepContainer","theme","ContentWrapper","$isVisible","InputContainer","NextButtonWrapper","PrevButtonWrapper"],"mappings":";;AAIM,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,GAI3BC,IAAwBF,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,YAIjC,CAAC,EAAE,OAAAE,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA,GAGxDC,IAAiBJ,EAAOC,CAAQ;AAAA,aACzB,CAAC,EAAE,YAAAI,EAAA,MAAkBA,IAAa,IAAI,CAAE;AAAA;AAAA,GAI/CC,IAAiBN,EAAO;AAAA;AAAA;AAIIA,EAAOC,CAAQ;AAAA;AAAA;AAAA,gBAKjC,CAAC,EAAE,OAAAE,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAMxC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAGZH,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOjC,MAAAO,IAAoBP,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,GAKnCO,IAAoBR,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;"}
@@ -1,49 +1,49 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as v, useRef as d, useState as h, useCallback as k, useImperativeHandle as B, useLayoutEffect as E } from "react";
3
- import H from "../../../../assets/line-icons/icons/back2.js";
4
- import W from "../../../../assets/line-icons/icons/next2.js";
5
- import g from "../../../ui/buttons/icon-button/icon-button.js";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as v, useRef as f, useState as d, useCallback as W, useImperativeHandle as k, useLayoutEffect as B } from "react";
3
+ import E from "../../../../assets/line-icons/icons/back2.js";
4
+ import H from "../../../../assets/line-icons/icons/next2.js";
5
+ import h from "../../../ui/buttons/icon-button/icon-button.js";
6
6
  import j from "../../../ui/layout/flex-view.js";
7
7
  import N from "../../../ui/lottie-animation/lottie-animation.js";
8
8
  import T from "../../../ui/separator/separator.js";
9
9
  import z from "../../../ui/text/text.js";
10
- import { Container as M, CircularStepContainer as O, InputContainer as P, PrevButtonWrapper as V, NextButtonWrapper as D } from "./circular-step-wrapper-styled.js";
11
- const K = {
10
+ import { Container as F, CircularStepContainer as M, ContentWrapper as O, InputContainer as P, PrevButtonWrapper as V, NextButtonWrapper as X } from "./circular-step-wrapper-styled.js";
11
+ const D = {
12
12
  autoplay: !1,
13
13
  loop: !1,
14
14
  renderer: "svg",
15
15
  rendererSettings: {
16
16
  preserveAspectRatio: "xMidYMin slice"
17
17
  }
18
- }, X = v(
18
+ }, K = v(
19
19
  ({
20
- children: C,
21
- onGoBack: $,
22
- onNext: y,
23
- label: c,
24
- showNext: x,
25
- showPrevious: I,
20
+ children: g,
21
+ onGoBack: C,
22
+ onNext: $,
23
+ label: i,
24
+ showNext: y,
25
+ showPrevious: x,
26
26
  animation: r,
27
- introFrames: n,
27
+ introFrames: I,
28
28
  outroFrames: S,
29
29
  isNextLoading: s
30
30
  }, w) => {
31
- const t = d(null), o = d(null), [a, A] = h(), [L, l] = h(!1), R = k(() => {
32
- r && t.current && n && (t.current.playSegments(n, !0), setTimeout(() => l(!0), 500));
33
- }, [r, n]);
34
- return B(w, () => ({
31
+ const t = f(null), n = f(null), [c, A] = d(), [L, a] = d(!1), R = W(() => {
32
+ r && t.current && (t.current.playSegments(I, !0), setTimeout(() => a(!0), 500));
33
+ }, [r]);
34
+ return k(w, () => ({
35
35
  playOutroAndFadeOut: async () => new Promise((b) => {
36
- var p, f;
37
- const u = () => {
36
+ var u, p;
37
+ const l = () => {
38
38
  var m;
39
- l(!1), b(), (m = t.current) == null || m.removeEventListener("complete", u);
39
+ b(), (m = t.current) == null || m.removeEventListener("complete", l);
40
40
  };
41
- (p = t.current) == null || p.playSegments(S, !0), (f = t.current) == null || f.addEventListener("complete", u);
41
+ (u = t.current) == null || u.playSegments(S, !0), a(!1), (p = t.current) == null || p.addEventListener("complete", l);
42
42
  })
43
- })), E(() => {
44
- o.current && A(o.current.offsetHeight);
45
- }, []), /* @__PURE__ */ i(
46
- M,
43
+ })), B(() => {
44
+ n.current && A(n.current.offsetHeight);
45
+ }, []), /* @__PURE__ */ o(
46
+ F,
47
47
  {
48
48
  $flex: 1,
49
49
  $flexDirection: "column",
@@ -51,56 +51,55 @@ const K = {
51
51
  $justifyContent: "center",
52
52
  $width: "100%",
53
53
  $height: "100%",
54
- ref: o,
54
+ ref: n,
55
55
  children: [
56
- a && /* @__PURE__ */ e(
56
+ c && /* @__PURE__ */ e(
57
57
  N,
58
58
  {
59
59
  width: 1280,
60
- height: a,
60
+ height: c,
61
61
  src: r,
62
62
  ref: t,
63
63
  onRender: R,
64
- settings: K
64
+ settings: D
65
65
  }
66
66
  ),
67
- /* @__PURE__ */ i(
68
- O,
67
+ /* @__PURE__ */ e(
68
+ M,
69
69
  {
70
70
  $width: 400,
71
71
  $height: 400,
72
72
  $background: "REAL_BLACK",
73
73
  $alignItems: "center",
74
74
  $justifyContent: "center",
75
- $isVisible: L,
76
- children: [
77
- c ? /* @__PURE__ */ i(j, { children: [
78
- /* @__PURE__ */ e(z, { $renderAs: "ab2", $color: "WHITE", $align: "center", children: c }),
75
+ children: /* @__PURE__ */ o(O, { $isVisible: L, children: [
76
+ i ? /* @__PURE__ */ o(j, { $gutterX: 3.5, children: [
77
+ /* @__PURE__ */ e(z, { $renderAs: "ab2", $color: "WHITE", $align: "center", children: i }),
79
78
  /* @__PURE__ */ e(T, { heightX: 1 })
80
79
  ] }) : null,
81
- /* @__PURE__ */ e(P, { children: C })
82
- ]
80
+ /* @__PURE__ */ e(P, { children: g })
81
+ ] })
83
82
  }
84
83
  ),
85
- I && /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
86
- g,
84
+ x && /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
85
+ h,
87
86
  {
88
- Icon: H,
87
+ Icon: E,
89
88
  renderAs: "secondary",
90
89
  analyticsLabel: "Next",
91
- onClick: $,
90
+ onClick: C,
92
91
  disabled: s,
93
92
  size: "regular"
94
93
  }
95
94
  ) }),
96
- x && /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
97
- g,
95
+ y && /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(
96
+ h,
98
97
  {
99
98
  size: "regular",
100
- Icon: W,
99
+ Icon: H,
101
100
  renderAs: "secondary",
102
101
  analyticsLabel: "Next",
103
- onClick: y,
102
+ onClick: $,
104
103
  busy: s
105
104
  }
106
105
  ) })
@@ -108,8 +107,8 @@ const K = {
108
107
  }
109
108
  );
110
109
  }
111
- ), te = X;
110
+ ), re = K;
112
111
  export {
113
- te as default
112
+ re as default
114
113
  };
115
114
  //# sourceMappingURL=circular-step-wrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"circular-step-wrapper.js","sources":["../../../../../src/features/auth/signup/circular-step-wrapper/circular-step-wrapper.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../ui/lottie-animation/types';\nimport type { ICircularStepRef, ICircularStepWrapperProps } from './circular-step-wrapper-types';\n\nimport {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useLayoutEffect,\n useRef,\n useState,\n type Ref,\n} from 'react';\n\nimport Back2Icon from '../../../../assets/line-icons/icons/back2';\nimport Next2Icon from '../../../../assets/line-icons/icons/next2';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport * as Styled from './circular-step-wrapper-styled';\n\nconst animationSettings = {\n autoplay: false,\n loop: false,\n renderer: 'svg',\n rendererSettings: {\n preserveAspectRatio: 'xMidYMin slice',\n },\n};\n\nconst CircularStepWrapper = forwardRef<ICircularStepRef, ICircularStepWrapperProps>(\n (\n {\n children,\n onGoBack,\n onNext,\n label,\n showNext,\n showPrevious,\n animation,\n introFrames,\n outroFrames,\n isNextLoading,\n },\n ref: Ref<ICircularStepRef>,\n ) => {\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const [containerHeight, setContainerHeight] = useState<number | undefined>();\n const [showContent, setShowContent] = useState(false);\n\n const onLottieRender = useCallback(() => {\n if (animation && animationRef.current && introFrames) {\n animationRef.current.playSegments(introFrames, true);\n setTimeout(() => setShowContent(true), 500);\n }\n }, [animation, introFrames]);\n\n useImperativeHandle(ref, () => ({\n playOutroAndFadeOut: async () => {\n return new Promise<void>(resolve => {\n const handleComplete = () => {\n setShowContent(false);\n resolve();\n animationRef.current?.removeEventListener('complete', handleComplete);\n };\n\n animationRef.current?.playSegments(outroFrames, true);\n animationRef.current?.addEventListener('complete', handleComplete);\n });\n },\n }));\n\n useLayoutEffect(() => {\n if (containerRef.current) {\n setContainerHeight(containerRef.current.offsetHeight);\n }\n }, []);\n\n return (\n <Styled.Container\n $flex={1}\n $flexDirection=\"column\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n ref={containerRef}\n >\n {containerHeight && (\n <LottieAnimation\n width={1280}\n height={containerHeight}\n src={animation}\n ref={animationRef}\n onRender={onLottieRender}\n settings={animationSettings}\n />\n )}\n <Styled.CircularStepContainer\n $width={400}\n $height={400}\n $background=\"REAL_BLACK\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $isVisible={showContent}\n >\n {label ? (\n <FlexView>\n <Text $renderAs=\"ab2\" $color=\"WHITE\" $align=\"center\">\n {label}\n </Text>\n <Separator heightX={1} />\n </FlexView>\n ) : null}\n <Styled.InputContainer>{children}</Styled.InputContainer>\n </Styled.CircularStepContainer>\n {showPrevious && (\n <Styled.PrevButtonWrapper>\n <IconButton\n Icon={Back2Icon}\n renderAs=\"secondary\"\n analyticsLabel=\"Next\"\n onClick={onGoBack}\n disabled={isNextLoading}\n size=\"regular\"\n />\n </Styled.PrevButtonWrapper>\n )}\n {showNext && (\n <Styled.NextButtonWrapper>\n <IconButton\n size=\"regular\"\n Icon={Next2Icon}\n renderAs=\"secondary\"\n analyticsLabel=\"Next\"\n onClick={onNext}\n busy={isNextLoading}\n />\n </Styled.NextButtonWrapper>\n )}\n </Styled.Container>\n );\n },\n);\n\nexport default CircularStepWrapper;\n"],"names":["animationSettings","CircularStepWrapper","forwardRef","children","onGoBack","onNext","label","showNext","showPrevious","animation","introFrames","outroFrames","isNextLoading","ref","animationRef","useRef","containerRef","containerHeight","setContainerHeight","useState","showContent","setShowContent","onLottieRender","useCallback","useImperativeHandle","resolve","handleComplete","_a","_b","useLayoutEffect","jsxs","Styled.Container","jsx","LottieAnimation","Styled.CircularStepContainer","FlexView","Text","Separator","Styled.InputContainer","Styled.PrevButtonWrapper","IconButton","Back2Icon","Styled.NextButtonWrapper","Next2Icon","CircularStepWrapper$1"],"mappings":";;;;;;;;;;AAsBA,MAAMA,IAAoB;AAAA,EACxB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,kBAAkB;AAAA,IAChB,qBAAqB;AAAA,EACvB;AACF,GAEMC,IAAsBC;AAAA,EAC1B,CACE;AAAA,IACE,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WA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tB;AAAA,YAAA;AAAA,UACZ;AAAA,UAEF,gBAAA8B;AAAA,YAACI;AAAAA,YAAA;AAAA,cACC,QAAQ;AAAA,cACR,SAAS;AAAA,cACT,aAAY;AAAA,cACZ,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAChB,YAAYd;AAAA,cAEX,UAAA;AAAA,gBAAAd,sBACE6B,GACC,EAAA,UAAA;AAAA,kBAAA,gBAAAH,EAACI,KAAK,WAAU,OAAM,QAAO,SAAQ,QAAO,UACzC,UACH9B,EAAA,CAAA;AAAA,kBACA,gBAAA0B,EAACK,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,gBAAA,EAAA,CACzB,IACE;AAAA,gBACH,gBAAAL,EAAAM,GAAA,EAAuB,UAAAnC,GAAS;AAAA,cAAA;AAAA,YAAA;AAAA,UACnC;AAAA,UACCK,KACC,gBAAAwB,EAACO,GAAA,EACC,UAAA,gBAAAP;AAAA,YAACQ;AAAA,YAAA;AAAA,cACC,MAAMC;AAAA,cACN,UAAS;AAAA,cACT,gBAAe;AAAA,cACf,SAASrC;AAAA,cACT,UAAUQ;AAAA,cACV,MAAK;AAAA,YAAA;AAAA,UAAA,GAET;AAAA,UAEDL,KACC,gBAAAyB,EAACU,GAAA,EACC,UAAA,gBAAAV;AAAA,YAACQ;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,MAAMG;AAAA,cACN,UAAS;AAAA,cACT,gBAAe;AAAA,cACf,SAAStC;AAAA,cACT,MAAMO;AAAA,YAAA;AAAA,UAAA,GAEV;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF,GAEAgC,KAAe3C;"}
1
+ {"version":3,"file":"circular-step-wrapper.js","sources":["../../../../../src/features/auth/signup/circular-step-wrapper/circular-step-wrapper.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../ui/lottie-animation/types';\nimport type { ICircularStepRef, ICircularStepWrapperProps } from './circular-step-wrapper-types';\n\nimport {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useLayoutEffect,\n useRef,\n useState,\n type Ref,\n} from 'react';\n\nimport Back2Icon from '../../../../assets/line-icons/icons/back2';\nimport Next2Icon from '../../../../assets/line-icons/icons/next2';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport * as Styled from './circular-step-wrapper-styled';\n\nconst animationSettings = {\n autoplay: false,\n loop: false,\n renderer: 'svg',\n rendererSettings: {\n preserveAspectRatio: 'xMidYMin slice',\n },\n};\n\nconst CircularStepWrapper = forwardRef<ICircularStepRef, ICircularStepWrapperProps>(\n (\n {\n children,\n onGoBack,\n onNext,\n label,\n showNext,\n showPrevious,\n animation,\n introFrames,\n outroFrames,\n isNextLoading,\n },\n ref: Ref<ICircularStepRef>,\n ) => {\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const [containerHeight, setContainerHeight] = useState<number | undefined>();\n const [showContent, setShowContent] = useState(false);\n\n const onLottieRender = useCallback(() => {\n if (animation && animationRef.current) {\n animationRef.current.playSegments(introFrames, true);\n setTimeout(() => setShowContent(true), 500);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [animation]);\n\n useImperativeHandle(ref, () => ({\n playOutroAndFadeOut: async () => {\n return new Promise<void>(resolve => {\n const handleComplete = () => {\n resolve();\n animationRef.current?.removeEventListener('complete', handleComplete);\n };\n\n animationRef.current?.playSegments(outroFrames, true);\n setShowContent(false);\n animationRef.current?.addEventListener('complete', handleComplete);\n });\n },\n }));\n\n useLayoutEffect(() => {\n if (containerRef.current) {\n setContainerHeight(containerRef.current.offsetHeight);\n }\n }, []);\n\n return (\n <Styled.Container\n $flex={1}\n $flexDirection=\"column\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n ref={containerRef}\n >\n {containerHeight && (\n <LottieAnimation\n width={1280}\n height={containerHeight}\n src={animation}\n ref={animationRef}\n onRender={onLottieRender}\n settings={animationSettings}\n />\n )}\n <Styled.CircularStepContainer\n $width={400}\n $height={400}\n $background=\"REAL_BLACK\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <Styled.ContentWrapper $isVisible={showContent}>\n {label ? (\n <FlexView $gutterX={3.5}>\n <Text $renderAs=\"ab2\" $color=\"WHITE\" $align=\"center\">\n {label}\n </Text>\n <Separator heightX={1} />\n </FlexView>\n ) : null}\n <Styled.InputContainer>{children}</Styled.InputContainer>\n </Styled.ContentWrapper>\n </Styled.CircularStepContainer>\n {showPrevious && (\n <Styled.PrevButtonWrapper>\n <IconButton\n Icon={Back2Icon}\n renderAs=\"secondary\"\n analyticsLabel=\"Next\"\n onClick={onGoBack}\n disabled={isNextLoading}\n size=\"regular\"\n />\n </Styled.PrevButtonWrapper>\n )}\n {showNext && (\n <Styled.NextButtonWrapper>\n <IconButton\n size=\"regular\"\n Icon={Next2Icon}\n renderAs=\"secondary\"\n analyticsLabel=\"Next\"\n onClick={onNext}\n busy={isNextLoading}\n />\n </Styled.NextButtonWrapper>\n )}\n </Styled.Container>\n );\n },\n);\n\nexport default CircularStepWrapper;\n"],"names":["animationSettings","CircularStepWrapper","forwardRef","children","onGoBack","onNext","label","showNext","showPrevious","animation","introFrames","outroFrames","isNextLoading","ref","animationRef","useRef","containerRef","containerHeight","setContainerHeight","useState","showContent","setShowContent","onLottieRender","useCallback","useImperativeHandle","resolve","handleComplete","_a","_b","useLayoutEffect","jsxs","Styled.Container","jsx","LottieAnimation","Styled.CircularStepContainer","Styled.ContentWrapper","FlexView","Text","Separator","Styled.InputContainer","Styled.PrevButtonWrapper","IconButton","Back2Icon","Styled.NextButtonWrapper","Next2Icon","CircularStepWrapper$1"],"mappings":";;;;;;;;;;AAsBA,MAAMA,IAAoB;AAAA,EACxB,UAAU;AAAA,EACV,MAAM;AAAA,EAC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A;AAAA,IAAA;AAAA,EAIR;AACF,GAEAiC,KAAe5C;"}
@@ -1,16 +1,27 @@
1
- import r from "styled-components";
2
- import t from "../../../ui/layout/flex-view.js";
3
- const c = r(t)`
4
- border-right: 1px solid ${({ theme: o }) => o.colors.BLACK_5};
1
+ import s from "styled-components";
2
+ import i from "../../../ui/layout/flex-view.js";
3
+ const d = s(i)`
5
4
  max-width: 200px;
6
5
  cursor: pointer;
7
6
  transition: background-color 0.3s ease;
8
7
  position: relative;
8
+ border-left: 1px solid ${({ theme: o }) => o.colors.BLACK_5};
9
+ border-bottom: 1px solid ${({ theme: o }) => o.colors.BLACK_5};
10
+
9
11
  &:hover {
10
12
  background-color: ${({ theme: o }) => o.colors.BLACK_2};
11
13
  }
14
+
15
+ ${({ index: o, theme: r }) => o < 5 && `border-top: 1px solid ${r.colors.BLACK_5};`}
16
+
17
+ ${({ index: o, isLastItem: r, theme: e }) => ((o + 1) % 5 === 0 || r) && `border-right: 1px solid ${e.colors.BLACK_5};`}
18
+ `, p = s.div`
19
+ display: inline-grid;
20
+ grid-template-columns: repeat(${({ itemCount: o }) => o < 5 ? o : 5}, 200px);
21
+ grid-auto-rows: 200px;
12
22
  `;
13
23
  export {
14
- c as AccountCard
24
+ d as AccountCard,
25
+ p as UserAccountsWrapper
15
26
  };
16
27
  //# sourceMappingURL=claim-user-account-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"claim-user-account-styled.js","sources":["../../../../../src/features/auth/signup/claim-user-account/claim-user-account-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const AccountCard = styled(FlexView)`\n border-right: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n max-width: 200px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n position: relative;\n &:hover {\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n }\n`;\n"],"names":["AccountCard","styled","FlexView","theme"],"mappings":";;AAIa,MAAAA,IAAcC,EAAOC,CAAQ;AAAA,4BACd,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAMvC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;"}
1
+ {"version":3,"file":"claim-user-account-styled.js","sources":["../../../../../src/features/auth/signup/claim-user-account/claim-user-account-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const AccountCard = styled(FlexView)<{ index: number; isLastItem: boolean }>`\n max-width: 200px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n position: relative;\n border-left: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n border-bottom: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n\n &:hover {\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n }\n\n ${({ index, theme }) => index < 5 && `border-top: 1px solid ${theme.colors.BLACK_5};`}\n\n ${({ index, isLastItem, theme }) =>\n ((index + 1) % 5 === 0 || isLastItem) && `border-right: 1px solid ${theme.colors.BLACK_5};`}\n`;\n\nexport const UserAccountsWrapper = styled.div<{ itemCount: number }>`\n display: inline-grid;\n grid-template-columns: repeat(${({ itemCount }) => (itemCount < 5 ? itemCount : 5)}, 200px);\n grid-auto-rows: 200px;\n`;\n"],"names":["AccountCard","styled","FlexView","theme","index","isLastItem","UserAccountsWrapper","itemCount"],"mappings":";;AAIa,MAAAA,IAAcC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,2BAKf,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA,6BACjC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,wBAGxC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,IAGvD,CAAC,EAAE,OAAAC,GAAO,OAAAD,EAAM,MAAMC,IAAQ,KAAK,yBAAyBD,EAAM,OAAO,OAAO,GAAG;AAAA;AAAA,IAEnF,CAAC,EAAE,OAAAC,GAAO,YAAAC,GAAY,OAAAF,UACpBC,IAAQ,KAAK,MAAM,KAAKC,MAAe,2BAA2BF,EAAM,OAAO,OAAO,GAAG;AAAA,GAGlFG,IAAsBL,EAAO;AAAA;AAAA,kCAER,CAAC,EAAE,WAAAM,QAAiBA,IAAY,IAAIA,IAAY,CAAE;AAAA;AAAA;"}
@@ -1,71 +1,76 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { memo as $ } from "react";
3
- import { ILLUSTRATIONS as f } from "../../../../assets/illustrations/illustrations.js";
4
- import u from "../../../ui/avatar/avatar.js";
5
- import p from "../../../ui/buttons/button/button.js";
6
- import g from "../../../ui/image/image.js";
2
+ import { memo as f } from "react";
3
+ import { ILLUSTRATIONS as u } from "../../../../assets/illustrations/illustrations.js";
4
+ import g from "../../../ui/avatar/avatar.js";
5
+ import I from "../../../ui/buttons/button/button.js";
6
+ import A from "../../../ui/image/image.js";
7
7
  import n from "../../../ui/layout/flex-view.js";
8
8
  import t from "../../../ui/separator/separator.js";
9
9
  import o from "../../../ui/text/text.js";
10
10
  import C from "../../comps/overlay-loader/overlay-loader.js";
11
- import { AccountCard as I } from "./claim-user-account-styled.js";
12
- const A = ({
13
- email: c,
14
- onSelectAccount: a,
15
- userAccounts: m,
16
- onCreateNewAccount: h,
17
- isCreatingAccount: i,
18
- isLoading: s
19
- }) => /* @__PURE__ */ r(n, { $flex: 1, $alignItems: "center", $justifyContent: "center", $width: "100%", $height: "100%", children: [
20
- /* @__PURE__ */ e(C, { isLoading: s }),
21
- /* @__PURE__ */ e(g, { src: f.CIRCLE_CUEMATH_LOGO_WHITE, alt: "Parent Signup", withLoader: !1 }),
22
- /* @__PURE__ */ e(t, { heightX: 1 }),
23
- /* @__PURE__ */ r(n, { children: [
24
- /* @__PURE__ */ r(o, { $renderAs: "ab1", $color: "WHITE", $align: "center", children: [
25
- "We found multiple profiles linked to",
26
- " ",
27
- /* @__PURE__ */ e(o, { $color: "WHITE", $inline: !0, $renderAs: "ab1-bold", children: c })
28
- ] }),
29
- /* @__PURE__ */ e(o, { $renderAs: "ab1", $color: "WHITE", $align: "center", children: "Which one would you like to proceed with?" })
30
- ] }),
31
- /* @__PURE__ */ e(t, { heightX: 5 }),
32
- /* @__PURE__ */ e(n, { $borderColor: "BLACK_5", $flexWrap: !0, $justifyContent: "center", $flexDirection: "row", children: m.map(({ id: l, phone: d }) => /* @__PURE__ */ r(
33
- I,
34
- {
35
- $gutterX: 2,
36
- $gapX: 2.81,
37
- $width: 200,
38
- $height: 200,
39
- $alignItems: "center",
40
- $justifyContent: "center",
41
- onClick: () => a(l),
42
- children: [
43
- /* @__PURE__ */ e(u, { size: 80 }),
44
- /* @__PURE__ */ e(t, { heightX: 0.5 }),
45
- /* @__PURE__ */ e(o, { $color: "WHITE", $renderAs: "ab2", $align: "center", children: d })
46
- ]
47
- },
48
- l
49
- )) }),
50
- /* @__PURE__ */ e(t, { heightX: 5 }),
51
- /* @__PURE__ */ r(n, { $alignItems: "center", $justifyContent: "center", children: [
52
- /* @__PURE__ */ e(o, { $renderAs: "ub2", $color: "WHITE", children: "Don't recognise these accounts?" }),
11
+ import { UserAccountsWrapper as T, AccountCard as b } from "./claim-user-account-styled.js";
12
+ const W = ({
13
+ email: m,
14
+ onSelectAccount: h,
15
+ userAccounts: i,
16
+ onCreateNewAccount: d,
17
+ isCreatingAccount: l,
18
+ isLoading: $
19
+ }) => {
20
+ const c = i.length;
21
+ return /* @__PURE__ */ r(n, { $flex: 1, $alignItems: "center", $justifyContent: "center", $width: "100%", $height: "100%", children: [
22
+ /* @__PURE__ */ e(C, { isLoading: $ }),
23
+ /* @__PURE__ */ e(A, { src: u.CIRCLE_CUEMATH_LOGO_WHITE, alt: "Parent Signup", withLoader: !1 }),
53
24
  /* @__PURE__ */ e(t, { heightX: 1 }),
54
- /* @__PURE__ */ e(
55
- p,
25
+ /* @__PURE__ */ r(n, { children: [
26
+ /* @__PURE__ */ r(o, { $renderAs: "ab1", $color: "WHITE", $align: "center", children: [
27
+ "We found multiple profiles linked to",
28
+ " ",
29
+ /* @__PURE__ */ e(o, { $color: "WHITE", $inline: !0, $renderAs: "ab1-bold", children: m })
30
+ ] }),
31
+ /* @__PURE__ */ e(o, { $renderAs: "ab1", $color: "WHITE", $align: "center", children: "Which one would you like to proceed with?" })
32
+ ] }),
33
+ /* @__PURE__ */ e(t, { heightX: 5 }),
34
+ /* @__PURE__ */ e(T, { itemCount: c, children: i.map(({ id: a, phone: p }, s) => /* @__PURE__ */ r(
35
+ b,
56
36
  {
57
- width: 232,
58
- size: "small",
59
- label: "Create new account",
60
- renderAs: "secondary",
61
- onClick: h,
62
- busy: i,
63
- disabled: i
64
- }
65
- )
66
- ] })
67
- ] }), k = $(A);
37
+ $gutterX: 2,
38
+ $gapX: 2.81,
39
+ $width: 200,
40
+ $height: 200,
41
+ $alignItems: "center",
42
+ $justifyContent: "center",
43
+ onClick: () => h(a),
44
+ index: s,
45
+ isLastItem: s === c - 1,
46
+ children: [
47
+ /* @__PURE__ */ e(g, { size: 80 }),
48
+ /* @__PURE__ */ e(t, { heightX: 0.5 }),
49
+ /* @__PURE__ */ e(o, { $color: "WHITE", $renderAs: "ab2", $align: "center", children: p })
50
+ ]
51
+ },
52
+ a
53
+ )) }),
54
+ /* @__PURE__ */ e(t, { heightX: 5 }),
55
+ /* @__PURE__ */ r(n, { $alignItems: "center", $justifyContent: "center", children: [
56
+ /* @__PURE__ */ e(o, { $renderAs: "ub2", $color: "WHITE", children: "Don't recognise these accounts?" }),
57
+ /* @__PURE__ */ e(t, { heightX: 1 }),
58
+ /* @__PURE__ */ e(
59
+ I,
60
+ {
61
+ width: 232,
62
+ size: "small",
63
+ label: "Create new account",
64
+ renderAs: "secondary",
65
+ onClick: d,
66
+ busy: l,
67
+ disabled: l
68
+ }
69
+ )
70
+ ] })
71
+ ] });
72
+ }, S = f(W);
68
73
  export {
69
- k as default
74
+ S as default
70
75
  };
71
76
  //# sourceMappingURL=claim-user-account.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"claim-user-account.js","sources":["../../../../../src/features/auth/signup/claim-user-account/claim-user-account.tsx"],"sourcesContent":["import type { IClaimUserAccountProps } from './claim-user-account-types';\n\nimport { memo } from 'react';\nimport { type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Avatar from '../../../ui/avatar/avatar';\nimport Button from '../../../ui/buttons/button/button';\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 OverlayLoader from '../../comps/overlay-loader/overlay-loader';\nimport * as Styled from './claim-user-account-styled';\n\nconst ClaimUserAccount: FC<IClaimUserAccountProps> = ({\n email,\n onSelectAccount,\n userAccounts,\n onCreateNewAccount,\n isCreatingAccount,\n isLoading,\n}) => {\n return (\n <FlexView $flex={1} $alignItems=\"center\" $justifyContent=\"center\" $width=\"100%\" $height=\"100%\">\n <OverlayLoader isLoading={isLoading} />\n <Image src={ILLUSTRATIONS.CIRCLE_CUEMATH_LOGO_WHITE} alt=\"Parent Signup\" withLoader={false} />\n <Separator heightX={1} />\n <FlexView>\n <Text $renderAs=\"ab1\" $color=\"WHITE\" $align=\"center\">\n We found multiple profiles linked to{' '}\n <Text $color=\"WHITE\" $inline $renderAs=\"ab1-bold\">\n {email}\n </Text>\n </Text>\n <Text $renderAs=\"ab1\" $color=\"WHITE\" $align=\"center\">\n Which one would you like to proceed with?\n </Text>\n </FlexView>\n <Separator heightX={5} />\n <FlexView $borderColor=\"BLACK_5\" $flexWrap $justifyContent=\"center\" $flexDirection=\"row\">\n {userAccounts.map(({ id, phone }) => (\n <Styled.AccountCard\n $gutterX={2}\n $gapX={2.81}\n key={id}\n $width={200}\n $height={200}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n onClick={() => onSelectAccount(id)}\n >\n <Avatar size={80} />\n <Separator heightX={0.5} />\n <Text $color=\"WHITE\" $renderAs=\"ab2\" $align=\"center\">\n {phone}\n </Text>\n </Styled.AccountCard>\n ))}\n </FlexView>\n <Separator heightX={5} />\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <Text $renderAs=\"ub2\" $color=\"WHITE\">\n Don't recognise these accounts?\n </Text>\n <Separator heightX={1} />\n <Button\n width={232}\n size=\"small\"\n label=\"Create new account\"\n renderAs=\"secondary\"\n onClick={onCreateNewAccount}\n busy={isCreatingAccount}\n disabled={isCreatingAccount}\n />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(ClaimUserAccount);\n"],"names":["ClaimUserAccount","email","onSelectAccount","userAccounts","onCreateNewAccount","isCreatingAccount","isLoading","jsxs","FlexView","jsx","OverlayLoader","Image","ILLUSTRATIONS","Separator","Text","id","phone","Styled.AccountCard","Avatar","Button","claimUserAccount","memo"],"mappings":";;;;;;;;;;;AAeA,MAAMA,IAA+C,CAAC;AAAA,EACpD,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AACF,MAEI,gBAAAC,EAACC,GAAS,EAAA,OAAO,GAAG,aAAY,UAAS,iBAAgB,UAAS,QAAO,QAAO,SAAQ,QACtF,UAAA;AAAA,EAAA,gBAAAC,EAACC,KAAc,WAAAJ,GAAsB;AAAA,EACrC,gBAAAG,EAACE,KAAM,KAAKC,EAAc,2BAA2B,KAAI,iBAAgB,YAAY,IAAO;AAAA,EAC5F,gBAAAH,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,oBACtBL,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAD,EAACO,KAAK,WAAU,OAAM,QAAO,SAAQ,QAAO,UAAS,UAAA;AAAA,MAAA;AAAA,MACd;AAAA,MACrC,gBAAAL,EAACK,KAAK,QAAO,SAAQ,SAAO,IAA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AA,MAAA;AAAA,IACZ;AAAA,EAAA,GACF;AACF,EAAA,CAAA,GAIWe,IAAAC,EAAKrB,CAAgB;"}
1
+ {"version":3,"file":"claim-user-account.js","sources":["../../../../../src/features/auth/signup/claim-user-account/claim-user-account.tsx"],"sourcesContent":["import type { IClaimUserAccountProps } from './claim-user-account-types';\n\nimport { memo } from 'react';\nimport { type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Avatar from '../../../ui/avatar/avatar';\nimport Button from '../../../ui/buttons/button/button';\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 OverlayLoader from '../../comps/overlay-loader/overlay-loader';\nimport * as Styled from './claim-user-account-styled';\n\nconst ClaimUserAccount: FC<IClaimUserAccountProps> = ({\n email,\n onSelectAccount,\n userAccounts,\n onCreateNewAccount,\n isCreatingAccount,\n isLoading,\n}) => {\n const totalUsers = userAccounts.length;\n\n return (\n <FlexView $flex={1} $alignItems=\"center\" $justifyContent=\"center\" $width=\"100%\" $height=\"100%\">\n <OverlayLoader isLoading={isLoading} />\n <Image src={ILLUSTRATIONS.CIRCLE_CUEMATH_LOGO_WHITE} alt=\"Parent Signup\" withLoader={false} />\n <Separator heightX={1} />\n <FlexView>\n <Text $renderAs=\"ab1\" $color=\"WHITE\" $align=\"center\">\n We found multiple profiles linked to{' '}\n <Text $color=\"WHITE\" $inline $renderAs=\"ab1-bold\">\n {email}\n </Text>\n </Text>\n <Text $renderAs=\"ab1\" $color=\"WHITE\" $align=\"center\">\n Which one would you like to proceed with?\n </Text>\n </FlexView>\n <Separator heightX={5} />\n <Styled.UserAccountsWrapper itemCount={totalUsers}>\n {userAccounts.map(({ id, phone }, i) => (\n <Styled.AccountCard\n $gutterX={2}\n $gapX={2.81}\n key={id}\n $width={200}\n $height={200}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n onClick={() => onSelectAccount(id)}\n index={i}\n isLastItem={i === totalUsers - 1}\n >\n <Avatar size={80} />\n <Separator heightX={0.5} />\n <Text $color=\"WHITE\" $renderAs=\"ab2\" $align=\"center\">\n {phone}\n </Text>\n </Styled.AccountCard>\n ))}\n </Styled.UserAccountsWrapper>\n <Separator heightX={5} />\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <Text $renderAs=\"ub2\" $color=\"WHITE\">\n Don't recognise these accounts?\n </Text>\n <Separator heightX={1} />\n <Button\n width={232}\n size=\"small\"\n label=\"Create new account\"\n renderAs=\"secondary\"\n onClick={onCreateNewAccount}\n busy={isCreatingAccount}\n disabled={isCreatingAccount}\n />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(ClaimUserAccount);\n"],"names":["ClaimUserAccount","email","onSelectAccount","userAccounts","onCreateNewAccount","isCreatingAccount","isLoading","totalUsers","jsxs","FlexView","jsx","OverlayLoader","Image","ILLUSTRATIONS","Separator","Text","Styled.UserAccountsWrapper","id","phone","i","Styled.AccountCard","Avatar","Button","claimUserAccount","memo"],"mappings":";;;;;;;;;;;AAeA,MAAMA,IAA+C,CAAC;AAAA,EACpD,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AACF,MAAM;AACJ,QAAMC,IAAaJ,EAAa;AAG9B,SAAA,gBAAAK,EAACC,GAAS,EAAA,OAAO,GAAG,aAAY,UAAS,iBAAgB,UAAS,QAAO,QAAO,SAAQ,QACtF,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAc,WAAAL,GAAsB;AAAA,IACrC,gBAAAI,EAACE,KAAM,KAAKC,EAAc,2BAA2B,KAAI,iBAAgB,YAAY,IAAO;AAAA,IAC5F,gBAAAH,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,sBACtBL,GACC,EAAA,UAAA;AAAA,MAAA,gBAAAD,EAACO,KAAK,WAAU,OAAM,QAAO,SAAQ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,QAACY;AAAA,QAAA;AAAA,UACC,OAAO;AAAA,UACP,MAAK;AAAA,UACL,OAAM;AAAA,UACN,UAAS;AAAA,UACT,SAASlB;AAAA,UACT,MAAMC;AAAA,UACN,UAAUA;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ,GAEekB,IAAAC,EAAKxB,CAAgB;"}
@@ -1,5 +1,5 @@
1
- import o from "styled-components";
2
- const a = o.div`
1
+ import r from "styled-components";
2
+ const a = r.div`
3
3
  .react-datepicker {
4
4
  font-family: UntitledSans-Medium;
5
5
  font-size: 14px;
@@ -30,6 +30,13 @@ const a = o.div`
30
30
  color: ${({ theme: e }) => e.colors.WHITE};
31
31
  }
32
32
  }
33
+ .react-datepicker__month-text--disabled {
34
+ color: ${({ theme: e }) => e.colors.WHITE_T_10};
35
+ cursor: not-allowed;
36
+ &:hover {
37
+ color: ${({ theme: e }) => e.colors.WHITE_T_10};
38
+ }
39
+ }
33
40
  .react-datepicker__month-text--selected {
34
41
  color: ${({ theme: e }) => e.colors.WHITE};
35
42
  }
@@ -64,7 +71,7 @@ const a = o.div`
64
71
  font-size: 32px;
65
72
  text-align: center;
66
73
  caret-color: ${({ theme: e }) => e.colors.WHITE};
67
- color: ${({ theme: e, color: r }) => r || e.colors.WHITE};
74
+ color: ${({ theme: e, color: o }) => o || e.colors.WHITE};
68
75
  font-family: 'Athletics-Light';
69
76
 
70
77
  &::placeholder {
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker-input-styled.js","sources":["../../../../../../src/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledDatePickerWrapper = styled.div`\n .react-datepicker {\n font-family: UntitledSans-Medium;\n font-size: 14px;\n background-color: ${({ theme }) => theme.colors.BLACK_3};\n border: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n padding: 16px;\n border-radius: 8px;\n transition: all 0.3s ease-in-out;\n }\n\n .react-datepicker__aria-live {\n display: none;\n }\n .react-datepicker__header {\n color: ${({ theme }) => theme.colors.WHITE};\n text-align: center;\n }\n\n .react-datepicker__month-wrapper {\n display: flex;\n }\n .react-datepicker__month-text {\n color: ${({ theme }) => theme.colors.WHITE_T_38};\n cursor: pointer;\n padding: 8px;\n border-radius: 4px;\n &:hover {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n }\n .react-datepicker__month-text--selected {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n\n .react-datepicker__navigation--previous {\n background: url('/path/to/your/custom-left-arrow.svg') no-repeat center;\n width: 20px;\n height: 20px;\n border: none;\n background-size: contain;\n }\n\n .react-datepicker__navigation--next {\n background: url('/path/to/your/custom-right-arrow.svg') no-repeat center;\n width: 20px;\n height: 20px;\n border: none;\n background-size: contain;\n }\n\n .react-datepicker__navigation-icon::before {\n content: none;\n }\n\n .react-datepicker__input-container input {\n max-width: 320px;\n padding: 0;\n line-height: 40px;\n border: none;\n outline: none;\n background-color: transparent;\n font-size: 32px;\n text-align: center;\n caret-color: ${({ theme }) => theme.colors.WHITE};\n color: ${({ theme, color }) => color || theme.colors.WHITE};\n font-family: 'Athletics-Light';\n\n &::placeholder {\n font-family: 'Athletics-Light';\n font-size: 32px;\n }\n }\n`;\n"],"names":["StyledDatePickerWrapper","styled","theme","color"],"mappings":";AAEO,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA,wBAItB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA,wBACnC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAU9C,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAQjC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,eAKpC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA,aAInC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAgC3B,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,aACvC,CAAC,EAAE,OAAAA,GAAO,OAAAC,EAAA,MAAYA,KAASD,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"date-picker-input-styled.js","sources":["../../../../../../src/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledDatePickerWrapper = styled.div`\n .react-datepicker {\n font-family: UntitledSans-Medium;\n font-size: 14px;\n background-color: ${({ theme }) => theme.colors.BLACK_3};\n border: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n padding: 16px;\n border-radius: 8px;\n transition: all 0.3s ease-in-out;\n }\n\n .react-datepicker__aria-live {\n display: none;\n }\n .react-datepicker__header {\n color: ${({ theme }) => theme.colors.WHITE};\n text-align: center;\n }\n\n .react-datepicker__month-wrapper {\n display: flex;\n }\n .react-datepicker__month-text {\n color: ${({ theme }) => theme.colors.WHITE_T_38};\n cursor: pointer;\n padding: 8px;\n border-radius: 4px;\n &:hover {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n }\n .react-datepicker__month-text--disabled {\n color: ${({ theme }) => theme.colors.WHITE_T_10};\n cursor: not-allowed;\n &:hover {\n color: ${({ theme }) => theme.colors.WHITE_T_10};\n }\n }\n .react-datepicker__month-text--selected {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n\n .react-datepicker__navigation--previous {\n background: url('/path/to/your/custom-left-arrow.svg') no-repeat center;\n width: 20px;\n height: 20px;\n border: none;\n background-size: contain;\n }\n\n .react-datepicker__navigation--next {\n background: url('/path/to/your/custom-right-arrow.svg') no-repeat center;\n width: 20px;\n height: 20px;\n border: none;\n background-size: contain;\n }\n\n .react-datepicker__navigation-icon::before {\n content: none;\n }\n\n .react-datepicker__input-container input {\n max-width: 320px;\n padding: 0;\n line-height: 40px;\n border: none;\n outline: none;\n background-color: transparent;\n font-size: 32px;\n text-align: center;\n caret-color: ${({ theme }) => theme.colors.WHITE};\n color: ${({ theme, color }) => color || theme.colors.WHITE};\n font-family: 'Athletics-Light';\n\n &::placeholder {\n font-family: 'Athletics-Light';\n font-size: 32px;\n }\n }\n`;\n"],"names":["StyledDatePickerWrapper","styled","theme","color"],"mappings":";AAEO,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA,wBAItB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA,wBACnC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAU9C,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAQjC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,eAKpC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA,aAInC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA,eAGpC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA,aAIxC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAgC3B,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,aACvC,CAAC,EAAE,OAAAA,GAAO,OAAAC,EAAA,MAAYA,KAASD,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}