@cuemath/leap 2.9.5-j3 → 2.9.5-j5

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 (24) hide show
  1. package/dist/features/auth/account-selector/account-selector-styled.js +27 -16
  2. package/dist/features/auth/account-selector/account-selector-styled.js.map +1 -1
  3. package/dist/features/auth/account-selector/account-selector.js +83 -68
  4. package/dist/features/auth/account-selector/account-selector.js.map +1 -1
  5. package/dist/features/auth/login/social-login-methods/social-login-methods.js +46 -0
  6. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -0
  7. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +17 -15
  8. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -1
  9. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +45 -46
  10. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
  11. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js +16 -5
  12. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js.map +1 -1
  13. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +66 -61
  14. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +1 -1
  15. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.js +10 -3
  16. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.js.map +1 -1
  17. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input.js +54 -50
  18. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input.js.map +1 -1
  19. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +14 -14
  20. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +1 -1
  21. package/dist/index.d.ts +9 -1
  22. package/dist/index.js +224 -222
  23. package/dist/index.js.map +1 -1
  24. package/package.json +1 -1
@@ -1,26 +1,37 @@
1
1
  import r from "styled-components";
2
- import t from "../../ui/layout/flex-view.js";
3
- const e = r(t)`
2
+ import i from "../../ui/layout/flex-view.js";
3
+ const d = r(i)`
4
4
  position: relative;
5
- `, i = r(t)(
6
- ({ theme: o }) => `
7
- border-right: 1px solid ${o.colors.BLACK_5};
8
- cursor: pointer;
9
- &:hover {
10
- background-color: ${o.colors.BLACK_2}
11
- }
12
- `
13
- ), s = r(t)(
5
+ `, c = r(i)`
6
+ max-width: 200px;
7
+ cursor: pointer;
8
+ transition: background-color 0.3s ease;
9
+ position: relative;
10
+ border-left: 1px solid ${({ theme: o }) => o.colors.BLACK_5};
11
+ border-bottom: 1px solid ${({ theme: o }) => o.colors.BLACK_5};
12
+
13
+ &:hover {
14
+ background-color: ${({ theme: o }) => o.colors.BLACK_2};
15
+ }
16
+
17
+ ${({ index: o, theme: t }) => o < 5 && `border-top: 1px solid ${t.colors.BLACK_5};`}
18
+
19
+ ${({ index: o, isLastItem: t, theme: s }) => ((o + 1) % 5 === 0 || t) && `border-right: 1px solid ${s.colors.BLACK_5};`}
20
+ `, n = r(c)(
14
21
  ({ theme: o }) => `
15
- cursor: pointer;
16
22
  &:hover {
17
23
  background-color: ${o.colors.BLACK_4}
18
24
  }
19
25
  `
20
- );
26
+ ), p = r.div`
27
+ display: inline-grid;
28
+ grid-template-columns: repeat(${({ itemCount: o }) => o < 5 ? o : 5}, 200px);
29
+ grid-auto-rows: 200px;
30
+ `;
21
31
  export {
22
- i as AccountItem,
23
- s as AddAccountButton,
24
- e as Container
32
+ c as AccountCard,
33
+ p as AccountListWrapper,
34
+ n as AddAccountButton,
35
+ d as Container
25
36
  };
26
37
  //# sourceMappingURL=account-selector-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"account-selector-styled.js","sources":["../../../../src/features/auth/account-selector/account-selector-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n position: relative;\n`;\n\nexport const AccountItem = styled(FlexView)(\n ({ theme }) => `\n border-right: 1px solid ${theme.colors.BLACK_5};\n cursor: pointer;\n &:hover {\n background-color: ${theme.colors.BLACK_2}\n }\n`,\n);\n\nexport const AddAccountButton = styled(FlexView)(\n ({ theme }) => `\n cursor: pointer;\n &:hover {\n background-color: ${theme.colors.BLACK_4}\n }\n`,\n);\n"],"names":["Container","styled","FlexView","AccountItem","theme","AddAccountButton"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,GAI3BC,IAAcF,EAAOC,CAAQ;AAAA,EACxC,CAAC,EAAE,OAAAE,EAAA,MAAY;AAAA,8BACaA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,0BAGxBA,EAAM,OAAO,OAAO;AAAA;AAAA;AAG9C,GAEaC,IAAmBJ,EAAOC,CAAQ;AAAA,EAC7C,CAAC,EAAE,OAAAE,EAAA,MAAY;AAAA;AAAA;AAAA,0BAGSA,EAAM,OAAO,OAAO;AAAA;AAAA;AAG9C;"}
1
+ {"version":3,"file":"account-selector-styled.js","sources":["../../../../src/features/auth/account-selector/account-selector-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n position: relative;\n`;\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`;\nexport const AddAccountButton = styled(AccountCard)(\n ({ theme }) => `\n &:hover {\n background-color: ${theme.colors.BLACK_4}\n }\n`,\n);\n\nexport const AccountListWrapper = 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":["Container","styled","FlexView","AccountCard","theme","index","isLastItem","AddAccountButton","AccountListWrapper","itemCount"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,GAI3BC,IAAcF,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,2BAKf,CAAC,EAAE,OAAAE,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,GAElFG,IAAmBN,EAAOE,CAAW;AAAA,EAChD,CAAC,EAAE,OAAAC,EAAA,MAAY;AAAA;AAAA,0BAESA,EAAM,OAAO,OAAO;AAAA;AAAA;AAG9C,GAEaI,IAAqBP,EAAO;AAAA;AAAA,kCAEP,CAAC,EAAE,WAAAQ,QAAiBA,IAAY,IAAIA,IAAY,CAAE;AAAA;AAAA;"}
@@ -1,75 +1,90 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { ILLUSTRATIONS as c } from "../../../assets/illustrations/illustrations.js";
3
- import g from "../../../assets/line-icons/icons/plus.js";
4
- import p from "../../ui/avatar/avatar.js";
5
- import h from "../../ui/image/image.js";
6
- import t from "../../ui/layout/flex-view.js";
7
- import o from "../../ui/separator/separator.js";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { ILLUSTRATIONS as h } from "../../../assets/illustrations/illustrations.js";
3
+ import u from "../../../assets/line-icons/icons/plus.js";
4
+ import f from "../../ui/avatar/avatar.js";
5
+ import l from "../../ui/image/image.js";
6
+ import o from "../../ui/layout/flex-view.js";
7
+ import r from "../../ui/separator/separator.js";
8
8
  import i from "../../ui/text/text.js";
9
- import f from "../comps/overlay-loader/overlay-loader.js";
10
- import { Container as s, AccountItem as u, AddAccountButton as A } from "./account-selector-styled.js";
11
- const C = ({
12
- userAccounts: l,
13
- onSelect: $,
14
- onAddNew: a,
15
- isLoading: d
16
- }) => /* @__PURE__ */ r(
17
- s,
18
- {
19
- $flex: 1,
20
- $alignItems: "center",
21
- $justifyContent: "center",
22
- $width: "100%",
23
- $height: "100%",
24
- children: [
25
- /* @__PURE__ */ e(f, { isLoading: d }),
26
- /* @__PURE__ */ e(h, { src: c.CIRCLE_CUEMATH_LOGO_WHITE, alt: "Parent Signup", withLoader: !1 }),
27
- /* @__PURE__ */ e(o, { heightX: 1 }),
28
- /* @__PURE__ */ e(i, { $renderAs: "ab1", $color: "WHITE_T_60", children: "Switch between accounts" }),
29
- /* @__PURE__ */ e(o, { heightX: 5 }),
30
- /* @__PURE__ */ r(t, { $borderColor: "BLACK_5", $flexWrap: !0, $justifyContent: "center", $flexDirection: "row", children: [
31
- l.map(({ id: n, username: m }) => /* @__PURE__ */ r(
32
- u,
9
+ import C from "../comps/overlay-loader/overlay-loader.js";
10
+ import { Container as A, AccountListWrapper as w, AccountCard as I, AddAccountButton as L } from "./account-selector-styled.js";
11
+ const _ = ({
12
+ userAccounts: n,
13
+ onSelect: d,
14
+ onAddNew: $,
15
+ isLoading: m
16
+ }) => {
17
+ const c = n.length + 1;
18
+ return /* @__PURE__ */ t(
19
+ A,
20
+ {
21
+ $flex: 1,
22
+ $alignItems: "center",
23
+ $justifyContent: "center",
24
+ $width: "100%",
25
+ $height: "100%",
26
+ children: [
27
+ /* @__PURE__ */ e(C, { isLoading: m }),
28
+ /* @__PURE__ */ e(l, { src: h.CIRCLE_CUEMATH_LOGO_WHITE, alt: "Parent Signup", withLoader: !1 }),
29
+ /* @__PURE__ */ e(r, { heightX: 1 }),
30
+ /* @__PURE__ */ e(i, { $renderAs: "ab1", $color: "WHITE_T_60", children: "Switch between accounts" }),
31
+ /* @__PURE__ */ e(r, { heightX: 5 }),
32
+ /* @__PURE__ */ t(w, { itemCount: c, children: [
33
+ n.map(({ id: a, username: g, user_avatar: s }, p) => /* @__PURE__ */ t(
34
+ I,
35
+ {
36
+ onClick: () => d(a),
37
+ $background: "BLACK_1",
38
+ $gutter: 55,
39
+ $gap: 45,
40
+ $alignItems: "center",
41
+ $width: 200,
42
+ $height: 200,
43
+ $justifyContent: "center",
44
+ index: p,
45
+ children: [
46
+ /* @__PURE__ */ e(f, { avatar: s, size: 80 }),
47
+ /* @__PURE__ */ e(r, { heightX: 0.5 }),
48
+ /* @__PURE__ */ e(i, { $color: "WHITE", $renderAs: "ab2", $align: "center", children: g })
49
+ ]
50
+ },
51
+ a
52
+ )),
53
+ /* @__PURE__ */ e(
54
+ L,
55
+ {
56
+ isLastItem: !0,
57
+ index: c,
58
+ $gutterX: 5,
59
+ $gapX: 5,
60
+ $background: "BLACK_3",
61
+ onClick: $,
62
+ children: /* @__PURE__ */ e(o, { $width: 40, $height: 40, children: /* @__PURE__ */ e(u, { color: "WHITE", width: 40, height: 40 }) })
63
+ }
64
+ )
65
+ ] }),
66
+ /* @__PURE__ */ e(r, { heightX: 5 }),
67
+ /* @__PURE__ */ t(
68
+ o,
33
69
  {
34
- onClick: () => $(n),
35
- $background: "BLACK_1",
36
- $gutter: 55,
37
- $gap: 45,
38
- $alignItems: "center",
39
- $width: 200,
40
- $height: 200,
41
- $justifyContent: "center",
70
+ $gutterX: 0.5,
71
+ $gapX: 1,
72
+ $flexGapX: 0.5,
73
+ $width: 280,
74
+ $borderColor: "BLACK_5",
75
+ $background: "BLACK_3",
76
+ $flexDirection: "row",
42
77
  children: [
43
- /* @__PURE__ */ e(p, { size: 80 }),
44
- /* @__PURE__ */ e(o, { heightX: 0.5 }),
45
- /* @__PURE__ */ e(i, { $color: "WHITE", $renderAs: "ab2", $align: "center", children: m })
78
+ /* @__PURE__ */ e(l, { src: h.CUEMATH_APP_QR_CODE, width: 80, height: 80, withLoader: !1 }),
79
+ /* @__PURE__ */ e(o, { $gapX: 0.5, $flex: 1, children: /* @__PURE__ */ e(i, { $color: "WHITE", $renderAs: "ab2", children: "Download the cuemath app to view your children’s report" }) })
46
80
  ]
47
- },
48
- n
49
- )),
50
- /* @__PURE__ */ e(A, { $gutterX: 5, $gapX: 5, $background: "BLACK_5", onClick: a, children: /* @__PURE__ */ e(t, { $width: 40, $height: 40, children: /* @__PURE__ */ e(g, { color: "WHITE", width: 40, height: 40 }) }) })
51
- ] }),
52
- /* @__PURE__ */ e(o, { heightX: 5 }),
53
- /* @__PURE__ */ r(
54
- t,
55
- {
56
- $gutterX: 0.5,
57
- $gapX: 1,
58
- $flexGapX: 0.5,
59
- $width: 280,
60
- $borderColor: "BLACK_5",
61
- $background: "BLACK_3",
62
- $flexDirection: "row",
63
- children: [
64
- /* @__PURE__ */ e(h, { src: c.CUEMATH_APP_QR_CODE, width: 80, height: 80, withLoader: !1 }),
65
- /* @__PURE__ */ e(t, { $gapX: 0.5, $flex: 1, children: /* @__PURE__ */ e(i, { $color: "WHITE", $renderAs: "ab2", children: "Download the cuemath app to view your children’s report" }) })
66
- ]
67
- }
68
- )
69
- ]
70
- }
71
- ), S = C;
81
+ }
82
+ )
83
+ ]
84
+ }
85
+ );
86
+ }, O = _;
72
87
  export {
73
- S as default
88
+ O as default
74
89
  };
75
90
  //# sourceMappingURL=account-selector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"account-selector.js","sources":["../../../../src/features/auth/account-selector/account-selector.tsx"],"sourcesContent":["import type { IAccountSelectorViewProps } from './account-selector-types';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport PlusIcon from '../../../assets/line-icons/icons/plus';\nimport Avatar from '../../ui/avatar/avatar';\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 './account-selector-styled';\n\nconst AccountSelector = ({\n userAccounts,\n onSelect,\n onAddNew,\n isLoading,\n}: IAccountSelectorViewProps) => {\n return (\n <Styled.Container\n $flex={1}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n >\n <OverlayLoader isLoading={isLoading} />\n <Image src={ILLUSTRATIONS.CIRCLE_CUEMATH_LOGO_WHITE} alt=\"Parent Signup\" withLoader={false} />\n <Separator heightX={1} />\n <Text $renderAs=\"ab1\" $color=\"WHITE_T_60\">\n Switch between accounts\n </Text>\n <Separator heightX={5} />\n <FlexView $borderColor=\"BLACK_5\" $flexWrap $justifyContent=\"center\" $flexDirection=\"row\">\n {userAccounts.map(({ id, username }) => (\n <Styled.AccountItem\n key={id}\n onClick={() => onSelect(id)}\n $background=\"BLACK_1\"\n $gutter={55}\n $gap={45}\n $alignItems=\"center\"\n $width={200}\n $height={200}\n $justifyContent=\"center\"\n >\n <Avatar size={80} />\n <Separator heightX={0.5} />\n <Text $color=\"WHITE\" $renderAs=\"ab2\" $align=\"center\">\n {username}\n </Text>\n </Styled.AccountItem>\n ))}\n <Styled.AddAccountButton $gutterX={5} $gapX={5} $background=\"BLACK_5\" onClick={onAddNew}>\n <FlexView $width={40} $height={40}>\n <PlusIcon color=\"WHITE\" width={40} height={40} />\n </FlexView>\n </Styled.AddAccountButton>\n </FlexView>\n <Separator heightX={5} />\n <FlexView\n $gutterX={0.5}\n $gapX={1}\n $flexGapX={0.5}\n $width={280}\n $borderColor=\"BLACK_5\"\n $background=\"BLACK_3\"\n $flexDirection=\"row\"\n >\n <Image src={ILLUSTRATIONS.CUEMATH_APP_QR_CODE} width={80} height={80} withLoader={false} />\n <FlexView $gapX={0.5} $flex={1}>\n <Text $color=\"WHITE\" $renderAs=\"ab2\">\n Download the cuemath app to view your children’s report\n </Text>\n </FlexView>\n </FlexView>\n </Styled.Container>\n );\n};\n\nexport default AccountSelector;\n"],"names":["AccountSelector","userAccounts","onSelect","onAddNew","isLoading","jsxs","Styled.Container","jsx","OverlayLoader","Image","ILLUSTRATIONS","Separator","Text","FlexView","id","username","Styled.AccountItem","Avatar","Styled.AddAccountButton","PlusIcon","AccountSelector$1"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAAkB,CAAC;AAAA,EACvB,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,MAEI,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,OAAO;AAAA,IACP,aAAY;AAAA,IACZ,iBAAgB;AAAA,IAChB,QAAO;AAAA,IACP,SAAQ;AAAA,IAER,UAAA;AAAA,MAAA,gBAAAC,EAACC,KAAc,WAAAJ,GAAsB;AAAA,MACrC,gBAAAG,EAACE,KAAM,KAAKC,EAAc,2BAA2B,KAAI,iBAAgB,YAAY,IAAO;AAAA,MAC5F,gBAAAH,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,wBACtBC,GAAK,EAAA,WAAU,OAAM,QAAO,cAAa,UAE1C,2BAAA;AAAA,MACA,gBAAAL,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,MACvB,gBAAAN,EAACQ,KAAS,cAAa,WAAU,WAAS,IAAC,iBAAgB,UAAS,gBAAe,OAChF,UAAA;AAAA,QAAAZ,EAAa,IAAI,CAAC,EAAE,IAAAa,GAAI,UAAAC,EACvB,MAAA,gBAAAV;AAAA,UAACW;AAAAA,UAAA;AAAA,YAEC,SAAS,MAAMd,EAASY,CAAE;AAAA,YAC1B,aAAY;AAAA,YACZ,SAAS;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":["../../../../src/features/auth/account-selector/account-selector.tsx"],"sourcesContent":["import type { IAccountSelectorViewProps } from './account-selector-types';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport PlusIcon from '../../../assets/line-icons/icons/plus';\nimport Avatar from '../../ui/avatar/avatar';\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 './account-selector-styled';\n\nconst AccountSelector = ({\n userAccounts,\n onSelect,\n onAddNew,\n isLoading,\n}: IAccountSelectorViewProps) => {\n const totalCards = userAccounts.length + 1;\n\n return (\n <Styled.Container\n $flex={1}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n >\n <OverlayLoader isLoading={isLoading} />\n <Image src={ILLUSTRATIONS.CIRCLE_CUEMATH_LOGO_WHITE} alt=\"Parent Signup\" withLoader={false} />\n <Separator heightX={1} />\n <Text $renderAs=\"ab1\" $color=\"WHITE_T_60\">\n Switch between accounts\n </Text>\n <Separator heightX={5} />\n <Styled.AccountListWrapper itemCount={totalCards}>\n {userAccounts.map(({ id, username, user_avatar: avatar }, i) => (\n <Styled.AccountCard\n key={id}\n onClick={() => onSelect(id)}\n $background=\"BLACK_1\"\n $gutter={55}\n $gap={45}\n $alignItems=\"center\"\n $width={200}\n $height={200}\n $justifyContent=\"center\"\n index={i}\n >\n <Avatar avatar={avatar} size={80} />\n <Separator heightX={0.5} />\n <Text $color=\"WHITE\" $renderAs=\"ab2\" $align=\"center\">\n {username}\n </Text>\n </Styled.AccountCard>\n ))}\n <Styled.AddAccountButton\n isLastItem\n index={totalCards}\n $gutterX={5}\n $gapX={5}\n $background=\"BLACK_3\"\n onClick={onAddNew}\n >\n <FlexView $width={40} $height={40}>\n <PlusIcon color=\"WHITE\" width={40} height={40} />\n </FlexView>\n </Styled.AddAccountButton>\n </Styled.AccountListWrapper>\n <Separator heightX={5} />\n <FlexView\n $gutterX={0.5}\n $gapX={1}\n $flexGapX={0.5}\n $width={280}\n $borderColor=\"BLACK_5\"\n $background=\"BLACK_3\"\n $flexDirection=\"row\"\n >\n <Image src={ILLUSTRATIONS.CUEMATH_APP_QR_CODE} width={80} height={80} withLoader={false} />\n <FlexView $gapX={0.5} $flex={1}>\n <Text $color=\"WHITE\" $renderAs=\"ab2\">\n Download the cuemath app to view your children’s report\n </Text>\n </FlexView>\n </FlexView>\n </Styled.Container>\n );\n};\n\nexport default AccountSelector;\n"],"names":["AccountSelector","userAccounts","onSelect","onAddNew","isLoading","totalCards","jsxs","Styled.Container","jsx","OverlayLoader","Image","ILLUSTRATIONS","Separator","Text","Styled.AccountListWrapper","id","username","avatar","i","Styled.AccountCard","Avatar","Styled.AddAccountButton","FlexView","PlusIcon","AccountSelector$1"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAAkB,CAAC;AAAA,EACvB,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,MAAiC;AACzB,QAAAC,IAAaJ,EAAa,SAAS;AAGvC,SAAA,gBAAAK;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,QAAO;AAAA,MACP,SAAQ;AAAA,MAER,UAAA;AAAA,QAAA,gBAAAC,EAACC,KAAc,WAAAL,GAAsB;AAAA,QACrC,gBAAAI,EAACE,KAAM,KAAKC,EAAc,2BAA2B,KAAI,iBAAgB,YAAY,IAAO;AAAA,QAC5F,gBAAAH,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,0BACtBC,GAAK,EAAA,WAAU,OAAM,QAAO,cAAa,UAE1C,2BAAA;AAAA,QACA,gBAAAL,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,QACtB,gBAAAN,EAAAQ,GAAA,EAA0B,WAAWT,GACnC,UAAA;A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Ac,qBAAqB,OAAO,IAAI,QAAQ,IAAI,YAAY,GAAO,CAAA;AAAA,cACxF,gBAAAH,EAAAc,GAAA,EAAS,OAAO,KAAK,OAAO,GAC3B,UAAC,gBAAAd,EAAAK,GAAA,EAAK,QAAO,SAAQ,WAAU,OAAM,oEAErC,CAAA,GACF;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEAW,IAAexB;"}
@@ -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,13 +1,13 @@
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";
10
+ import { Container as F, CircularStepContainer as M, ContentWrapper as O, InputContainer as P, PrevButtonWrapper as V, NextButtonWrapper as D } from "./circular-step-wrapper-styled.js";
11
11
  const K = {
12
12
  autoplay: !1,
13
13
  loop: !1,
@@ -17,33 +17,33 @@ const K = {
17
17
  }
18
18
  }, X = 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
64
  settings: K
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, { 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(D, { 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 = X;
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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AAA,cACV,UAAUtB;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>\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,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IR;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