@cuemath/leap 3.0.11-j → 3.0.11-j1
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.
@@ -1,38 +1,39 @@
|
|
1
|
-
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { memo as
|
3
|
-
import { ILLUSTRATIONS as
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
1
|
+
import { jsxs as r, jsx as e, Fragment as g } from "react/jsx-runtime";
|
2
|
+
import { memo as u } from "react";
|
3
|
+
import { ILLUSTRATIONS as I } from "../../../../assets/illustrations/illustrations.js";
|
4
|
+
import A from "../../../ui/avatar/avatar.js";
|
5
|
+
import C from "../../../ui/buttons/button/button.js";
|
6
|
+
import T 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
|
-
import
|
11
|
-
import { UserAccountsWrapper as
|
12
|
-
const
|
13
|
-
email:
|
10
|
+
import b from "../../comps/overlay-loader/overlay-loader.js";
|
11
|
+
import { UserAccountsWrapper as W, AccountCard as w } from "./claim-user-account-styled.js";
|
12
|
+
const E = ({
|
13
|
+
email: s,
|
14
14
|
onSelectAccount: h,
|
15
15
|
userAccounts: i,
|
16
16
|
onCreateNewAccount: d,
|
17
17
|
isCreatingAccount: l,
|
18
|
-
isLoading:
|
18
|
+
isLoading: $,
|
19
|
+
showCreateNewAccount: p
|
19
20
|
}) => {
|
20
21
|
const c = i.length;
|
21
22
|
return /* @__PURE__ */ r(n, { $flex: 1, $alignItems: "center", $justifyContent: "center", $width: "100%", $height: "100%", children: [
|
22
|
-
/* @__PURE__ */ e(
|
23
|
-
/* @__PURE__ */ e(
|
23
|
+
/* @__PURE__ */ e(b, { isLoading: $ }),
|
24
|
+
/* @__PURE__ */ e(T, { src: I.CIRCLE_CUEMATH_LOGO_WHITE, alt: "Parent Signup", withLoader: !1 }),
|
24
25
|
/* @__PURE__ */ e(t, { heightX: 1 }),
|
25
26
|
/* @__PURE__ */ r(n, { children: [
|
26
27
|
/* @__PURE__ */ r(o, { $renderAs: "ab1", $color: "WHITE", $align: "center", children: [
|
27
28
|
"We found multiple profiles linked to",
|
28
29
|
" ",
|
29
|
-
/* @__PURE__ */ e(o, { $color: "WHITE", $inline: !0, $renderAs: "ab1-bold", children:
|
30
|
+
/* @__PURE__ */ e(o, { $color: "WHITE", $inline: !0, $renderAs: "ab1-bold", children: s })
|
30
31
|
] }),
|
31
32
|
/* @__PURE__ */ e(o, { $renderAs: "ab1", $color: "WHITE", $align: "center", children: "Which one would you like to proceed with?" })
|
32
33
|
] }),
|
33
34
|
/* @__PURE__ */ e(t, { heightX: 5 }),
|
34
|
-
/* @__PURE__ */ e(
|
35
|
-
|
35
|
+
/* @__PURE__ */ e(W, { itemCount: c, children: i.map(({ id: a, phone: f }, m) => /* @__PURE__ */ r(
|
36
|
+
w,
|
36
37
|
{
|
37
38
|
$gutterX: 2,
|
38
39
|
$gapX: 2.81,
|
@@ -41,36 +42,38 @@ const W = ({
|
|
41
42
|
$alignItems: "center",
|
42
43
|
$justifyContent: "center",
|
43
44
|
onClick: () => h(a),
|
44
|
-
index:
|
45
|
-
isLastItem:
|
45
|
+
index: m,
|
46
|
+
isLastItem: m === c - 1,
|
46
47
|
children: [
|
47
|
-
/* @__PURE__ */ e(
|
48
|
+
/* @__PURE__ */ e(A, { size: 80 }),
|
48
49
|
/* @__PURE__ */ e(t, { heightX: 0.5 }),
|
49
|
-
/* @__PURE__ */ e(o, { $color: "WHITE", $renderAs: "ab2", $align: "center", children:
|
50
|
+
/* @__PURE__ */ e(o, { $color: "WHITE", $renderAs: "ab2", $align: "center", children: f })
|
50
51
|
]
|
51
52
|
},
|
52
53
|
a
|
53
54
|
)) }),
|
54
|
-
/* @__PURE__ */
|
55
|
-
|
56
|
-
/* @__PURE__ */
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
55
|
+
p && /* @__PURE__ */ r(g, { children: [
|
56
|
+
/* @__PURE__ */ e(t, { heightX: 5 }),
|
57
|
+
/* @__PURE__ */ r(n, { $alignItems: "center", $justifyContent: "center", children: [
|
58
|
+
/* @__PURE__ */ e(o, { $renderAs: "ub2", $color: "WHITE", children: "Don't recognize these accounts?" }),
|
59
|
+
/* @__PURE__ */ e(t, { heightX: 1 }),
|
60
|
+
/* @__PURE__ */ e(
|
61
|
+
C,
|
62
|
+
{
|
63
|
+
width: 232,
|
64
|
+
size: "small",
|
65
|
+
label: "Create new account",
|
66
|
+
renderAs: "secondary-dark",
|
67
|
+
onClick: d,
|
68
|
+
busy: l,
|
69
|
+
disabled: l
|
70
|
+
}
|
71
|
+
)
|
72
|
+
] })
|
70
73
|
] })
|
71
74
|
] });
|
72
|
-
},
|
75
|
+
}, _ = u(E);
|
73
76
|
export {
|
74
|
-
|
77
|
+
_ as default
|
75
78
|
};
|
76
79
|
//# 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 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
|
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 showCreateNewAccount,\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 {showCreateNewAccount && (\n <>\n <Separator heightX={5} />\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <Text $renderAs=\"ub2\" $color=\"WHITE\">\n Don't recognize these accounts?\n </Text>\n <Separator heightX={1} />\n <Button\n width={232}\n size=\"small\"\n label=\"Create new account\"\n renderAs=\"secondary-dark\"\n onClick={onCreateNewAccount}\n busy={isCreatingAccount}\n disabled={isCreatingAccount}\n />\n </FlexView>\n </>\n )}\n </FlexView>\n );\n};\n\nexport default memo(ClaimUserAccount);\n"],"names":["ClaimUserAccount","email","onSelectAccount","userAccounts","onCreateNewAccount","isCreatingAccount","isLoading","showCreateNewAccount","totalUsers","jsxs","FlexView","jsx","OverlayLoader","Image","ILLUSTRATIONS","Separator","Text","Styled.UserAccountsWrapper","id","phone","i","Styled.AccountCard","Avatar","Fragment","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;AAAA,EACA,sBAAAC;AACF,MAAM;AACJ,QAAMC,IAAaL,EAAa;AAG9B,SAAA,gBAAAM,EAACC,GAAS,EAAA,OAAO,GAAG,aAAY,UAAS,iBAAgB,UAAS,QAAO,QAAO,SAAQ,QACtF,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAc,WAAAN,GAAsB;AAAA,IACrC,gBAAAK,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,QAAO,UAAS,UAAA;AAAA,QAAA;AAAA,QACd;AAAA,QACrC,gBAAAL,EAACK,KAAK,QAAO,SAAQ,SAAO,IAAC,WAAU,YACpC,UACHf,EAAA,CAAA;AAAA,MAAA,GACF;AAAA,MACA,gBAAAU,EAACK,KAAK,WAAU,OAAM,QAAO,SAAQ,QAAO,UAAS,UAErD,4CAAA,CAAA;AAAA,IAAA,GACF;AAAA,IACA,gBAAAL,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,IACtB,gBAAAJ,EAAAM,GAAA,EAA2B,WAAWT,GACpC,UAAaL,EAAA,IAAI,CAAC,EAAE,IAAAe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