@cuemath/leap 2.9.12-j2 → 2.9.12-j4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/auth/comps/resend-otp/resend-otp.js +26 -17
- package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +12 -0
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -0
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +88 -0
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +1 -0
- package/dist/features/auth/login/username-password-form/username-password-form.js +85 -0
- package/dist/features/auth/login/username-password-form/username-password-form.js.map +1 -0
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +21 -15
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +73 -71
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
- package/dist/features/auth/signup/signup-constants.js +9 -1
- package/dist/features/auth/signup/signup-constants.js.map +1 -1
- package/dist/index.d.ts +45 -0
- package/dist/index.js +253 -247
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
@@ -1,38 +1,47 @@
|
|
1
|
-
import { jsx as l, jsxs as c, Fragment as
|
2
|
-
import { useState as
|
1
|
+
import { jsx as l, jsxs as c, Fragment as C } from "react/jsx-runtime";
|
2
|
+
import { useState as u, useCallback as o } from "react";
|
3
3
|
import i from "../../../ui/buttons/text-button/text-button.js";
|
4
4
|
import a from "../../../ui/layout/flex-view.js";
|
5
|
-
import
|
6
|
-
import
|
7
|
-
const
|
5
|
+
import x from "../../../ui/text/text.js";
|
6
|
+
import $ from "./otp-timer/otp-timer.js";
|
7
|
+
const _ = ({
|
8
8
|
onResendOTP: e,
|
9
9
|
onResendVoiceOTP: r,
|
10
10
|
timerSeconds: m = 15,
|
11
|
-
showVoiceOTP: s = !1
|
11
|
+
showVoiceOTP: s = !1,
|
12
|
+
disabled: n
|
12
13
|
}) => {
|
13
|
-
const [
|
14
|
+
const [f, t] = u(!1), p = o(() => {
|
14
15
|
t(!0);
|
15
|
-
}, []),
|
16
|
+
}, []), d = o(() => {
|
16
17
|
e == null || e(), t(!1);
|
17
|
-
}, [e]),
|
18
|
+
}, [e]), h = o(() => {
|
18
19
|
r == null || r(), t(!1);
|
19
20
|
}, [r]);
|
20
|
-
return /* @__PURE__ */ l(a, { children:
|
21
|
-
/* @__PURE__ */ l(
|
22
|
-
|
23
|
-
|
21
|
+
return /* @__PURE__ */ l(a, { children: f ? /* @__PURE__ */ c(a, { $flexDirection: "row", $alignItems: "center", $flexColumnGapX: 0.5, children: [
|
22
|
+
/* @__PURE__ */ l(
|
23
|
+
i,
|
24
|
+
{
|
25
|
+
disabled: n,
|
26
|
+
label: "Resend",
|
27
|
+
color: "WHITE_T_60",
|
28
|
+
onClick: d
|
29
|
+
}
|
30
|
+
),
|
31
|
+
s && /* @__PURE__ */ c(C, { children: [
|
32
|
+
/* @__PURE__ */ l(x, { $renderAs: "ub2", $color: "WHITE_T_60", children: "or" }),
|
24
33
|
/* @__PURE__ */ l(a, { $width: 116, children: /* @__PURE__ */ l(
|
25
34
|
i,
|
26
35
|
{
|
27
36
|
label: "Get code via call",
|
28
37
|
color: "WHITE_T_60",
|
29
|
-
onClick:
|
38
|
+
onClick: h
|
30
39
|
}
|
31
40
|
) })
|
32
41
|
] })
|
33
|
-
] }) : /* @__PURE__ */ l(
|
34
|
-
},
|
42
|
+
] }) : /* @__PURE__ */ l($, { timerSeconds: m, onComplete: p }) });
|
43
|
+
}, W = _;
|
35
44
|
export {
|
36
|
-
|
45
|
+
W as default
|
37
46
|
};
|
38
47
|
//# sourceMappingURL=resend-otp.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resend-otp.js","sources":["../../../../../src/features/auth/comps/resend-otp/resend-otp.tsx"],"sourcesContent":["import type { IOTPResendProps } from './resend-otp-types';\n\nimport { useState, useCallback } from 'react';\n\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport OtpTimer from './otp-timer/otp-timer';\n\nconst ResendOTP: React.FC<IOTPResendProps> = ({\n onResendOTP,\n onResendVoiceOTP,\n timerSeconds = 15,\n showVoiceOTP = false,\n}) => {\n const [canResend, setCanResend] = useState(false);\n\n const handleTimerComplete = useCallback(() => {\n setCanResend(true);\n }, []);\n\n const handleResendClick = useCallback(() => {\n onResendOTP?.();\n setCanResend(false);\n }, [onResendOTP]);\n\n const handleVoiceResendClick = useCallback(() => {\n onResendVoiceOTP?.();\n setCanResend(false);\n }, [onResendVoiceOTP]);\n\n return (\n <FlexView>\n {!canResend ? (\n <OtpTimer timerSeconds={timerSeconds} onComplete={handleTimerComplete} />\n ) : (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexColumnGapX={0.5}>\n <TextButton
|
1
|
+
{"version":3,"file":"resend-otp.js","sources":["../../../../../src/features/auth/comps/resend-otp/resend-otp.tsx"],"sourcesContent":["import type { IOTPResendProps } from './resend-otp-types';\n\nimport { useState, useCallback } from 'react';\n\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport OtpTimer from './otp-timer/otp-timer';\n\nconst ResendOTP: React.FC<IOTPResendProps> = ({\n onResendOTP,\n onResendVoiceOTP,\n timerSeconds = 15,\n showVoiceOTP = false,\n disabled,\n}) => {\n const [canResend, setCanResend] = useState(false);\n\n const handleTimerComplete = useCallback(() => {\n setCanResend(true);\n }, []);\n\n const handleResendClick = useCallback(() => {\n onResendOTP?.();\n setCanResend(false);\n }, [onResendOTP]);\n\n const handleVoiceResendClick = useCallback(() => {\n onResendVoiceOTP?.();\n setCanResend(false);\n }, [onResendVoiceOTP]);\n\n return (\n <FlexView>\n {!canResend ? (\n <OtpTimer timerSeconds={timerSeconds} onComplete={handleTimerComplete} />\n ) : (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexColumnGapX={0.5}>\n <TextButton\n disabled={disabled}\n label=\"Resend\"\n color=\"WHITE_T_60\"\n onClick={handleResendClick}\n />\n {showVoiceOTP && (\n <>\n <Text $renderAs=\"ub2\" $color=\"WHITE_T_60\">\n or\n </Text>\n <FlexView $width={116}>\n <TextButton\n label=\"Get code via call\"\n color=\"WHITE_T_60\"\n onClick={handleVoiceResendClick}\n />\n </FlexView>\n </>\n )}\n </FlexView>\n )}\n </FlexView>\n );\n};\n\nexport default ResendOTP;\n"],"names":["ResendOTP","onResendOTP","onResendVoiceOTP","timerSeconds","showVoiceOTP","disabled","canResend","setCanResend","useState","handleTimerComplete","useCallback","handleResendClick","handleVoiceResendClick","FlexView","jsx","TextButton","jsxs","Fragment","Text","OtpTimer","ResendOTP$1"],"mappings":";;;;;;AASA,MAAMA,IAAuC,CAAC;AAAA,EAC5C,aAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,cAAAC,IAAe;AAAA,EACf,UAAAC;AACF,MAAM;AACJ,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAE1CC,IAAsBC,EAAY,MAAM;AAC5C,IAAAH,EAAa,EAAI;AAAA,EACnB,GAAG,CAAE,CAAA,GAECI,IAAoBD,EAAY,MAAM;AAC5B,IAAAT,KAAA,QAAAA,KACdM,EAAa,EAAK;AAAA,EAAA,GACjB,CAACN,CAAW,CAAC,GAEVW,IAAyBF,EAAY,MAAM;AAC5B,IAAAR,KAAA,QAAAA,KACnBK,EAAa,EAAK;AAAA,EAAA,GACjB,CAACL,CAAgB,CAAC;AAErB,2BACGW,GACE,EAAA,UAACP,sBAGCO,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,iBAAiB,KACnE,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAAV;AAAA,QACA,OAAM;AAAA,QACN,OAAM;AAAA,QACN,SAASM;AAAA,MAAA;AAAA,IACX;AAAA,IACCP,KAEG,gBAAAY,EAAAC,GAAA,EAAA,UAAA;AAAA,MAAA,gBAAAH,EAACI,GAAK,EAAA,WAAU,OAAM,QAAO,cAAa,UAE1C,MAAA;AAAA,MACA,gBAAAJ,EAACD,GAAS,EAAA,QAAQ,KAChB,UAAA,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,OAAM;AAAA,UACN,SAASH;AAAA,QAAA;AAAA,MAAA,GAEb;AAAA,IAAA,GACF;AAAA,EAAA,EAEJ,CAAA,IAvBA,gBAAAE,EAACK,KAAS,cAAAhB,GAA4B,YAAYM,EAAqB,CAAA,EAyB3E,CAAA;AAEJ,GAEAW,IAAepB;"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import e from "styled-components";
|
2
|
+
const t = e.form`
|
3
|
+
display: flex;
|
4
|
+
flex-direction: column;
|
5
|
+
justify-content: space-between;
|
6
|
+
margin-top: 8px;
|
7
|
+
flex: 1;
|
8
|
+
`;
|
9
|
+
export {
|
10
|
+
t as FormWrapper
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=identifier-otp-form-styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"identifier-otp-form-styled.js","sources":["../../../../../src/features/auth/login/identifier-otp-form/identifier-otp-form-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nconst FormWrapper = styled.form`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n margin-top: 8px;\n flex: 1;\n`;\n\nexport { FormWrapper };\n"],"names":["FormWrapper","styled"],"mappings":";AAEA,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
import { jsx as e, jsxs as d, Fragment as k } from "react/jsx-runtime";
|
2
|
+
import y from "../../../ui/buttons/button/button.js";
|
3
|
+
import c from "../../../ui/inputs/text-input/text-input.js";
|
4
|
+
import n from "../../../ui/layout/flex-view.js";
|
5
|
+
import s from "../../../ui/separator/separator.js";
|
6
|
+
import u from "../../comps/input-status-icon/input-status-icon.js";
|
7
|
+
import x from "../../comps/resend-otp/resend-otp.js";
|
8
|
+
import { FormWrapper as F } from "./identifier-otp-form-styled.js";
|
9
|
+
const C = ({
|
10
|
+
identifier: f,
|
11
|
+
otp: l,
|
12
|
+
errors: r,
|
13
|
+
isOtpVerified: i,
|
14
|
+
isLoading: a,
|
15
|
+
isSubmitDisabled: g,
|
16
|
+
showOtpInput: t,
|
17
|
+
onChange: m,
|
18
|
+
onSubmit: h,
|
19
|
+
onSendOtp: p
|
20
|
+
}) => {
|
21
|
+
const b = t ? "success-dark" : "primary-dark", $ = i ? "success-dark" : "primary-dark";
|
22
|
+
return /* @__PURE__ */ e(n, { $gutterX: 2, $gapX: 1.5, $background: "BLACK_2", $height: 308, children: /* @__PURE__ */ d(F, { onSubmit: h, children: [
|
23
|
+
/* @__PURE__ */ d(n, { $alignItems: "center", $justifyContent: "center", children: [
|
24
|
+
/* @__PURE__ */ e(
|
25
|
+
c,
|
26
|
+
{
|
27
|
+
renderAs: r.identifier ? "error-dark" : b,
|
28
|
+
autoFocus: !0,
|
29
|
+
label: "Email or Phone",
|
30
|
+
value: f,
|
31
|
+
onChange: (o) => m("identifier", o.target.value),
|
32
|
+
width: 330,
|
33
|
+
required: !0,
|
34
|
+
shape: "borderLess",
|
35
|
+
errorMessage: r.identifier,
|
36
|
+
disabled: t,
|
37
|
+
siblingElement: /* @__PURE__ */ e(u, { isValid: t, isError: !!r.identifier })
|
38
|
+
}
|
39
|
+
),
|
40
|
+
t && /* @__PURE__ */ d(k, { children: [
|
41
|
+
/* @__PURE__ */ e(s, { height: 36 }),
|
42
|
+
/* @__PURE__ */ e(
|
43
|
+
c,
|
44
|
+
{
|
45
|
+
type: "password",
|
46
|
+
renderAs: r.otp ? "error" : $,
|
47
|
+
autoComplete: "password",
|
48
|
+
label: "Verification code",
|
49
|
+
value: l,
|
50
|
+
onChange: (o) => m("otp", o.target.value),
|
51
|
+
width: 330,
|
52
|
+
required: !0,
|
53
|
+
shape: "borderLess",
|
54
|
+
errorMessage: r.otp,
|
55
|
+
disabled: i || l.length === 4 && a,
|
56
|
+
siblingElement: /* @__PURE__ */ e(
|
57
|
+
u,
|
58
|
+
{
|
59
|
+
isLoading: a,
|
60
|
+
isValid: i,
|
61
|
+
isError: !!r.otp
|
62
|
+
}
|
63
|
+
)
|
64
|
+
}
|
65
|
+
),
|
66
|
+
/* @__PURE__ */ e(s, { heightX: 1.25 }),
|
67
|
+
/* @__PURE__ */ e(n, { $alignItems: "flex-end", $width: "100%", children: /* @__PURE__ */ e(x, { onResendOTP: p, disabled: i }) }),
|
68
|
+
/* @__PURE__ */ e(s, { heightX: 2 })
|
69
|
+
] })
|
70
|
+
] }),
|
71
|
+
/* @__PURE__ */ e(
|
72
|
+
y,
|
73
|
+
{
|
74
|
+
size: "small",
|
75
|
+
renderAs: "secondary-dark",
|
76
|
+
type: "submit",
|
77
|
+
label: t ? "Log In" : "Get Verification Code",
|
78
|
+
width: 336,
|
79
|
+
busy: !t && a,
|
80
|
+
disabled: g
|
81
|
+
}
|
82
|
+
)
|
83
|
+
] }) });
|
84
|
+
}, P = C;
|
85
|
+
export {
|
86
|
+
P as default
|
87
|
+
};
|
88
|
+
//# sourceMappingURL=identifier-otp-form.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"identifier-otp-form.js","sources":["../../../../../src/features/auth/login/identifier-otp-form/identifier-otp-form.tsx"],"sourcesContent":["// In @cuemath/leap/src/components/IdentifierOtpForm.tsx\n\nimport type { IIdentifierOtpFormProps } from './identifier-otp-form-types';\n\nimport React, { type ChangeEvent } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport ResendOTP from '../../comps/resend-otp/resend-otp';\nimport * as Styled from './identifier-otp-form-styled';\n\nconst IdentifierOtpForm: React.FC<IIdentifierOtpFormProps> = ({\n identifier,\n otp,\n errors,\n isOtpVerified,\n isLoading,\n isSubmitDisabled,\n showOtpInput,\n onChange,\n onSubmit,\n onSendOtp,\n}) => {\n const identifierStatusVariant = showOtpInput ? 'success-dark' : 'primary-dark';\n const otpStatusVariant = isOtpVerified ? 'success-dark' : 'primary-dark';\n\n return (\n <FlexView $gutterX={2} $gapX={1.5} $background=\"BLACK_2\" $height={308}>\n <Styled.FormWrapper onSubmit={onSubmit}>\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <TextInput\n renderAs={errors.identifier ? 'error-dark' : identifierStatusVariant}\n autoFocus\n label=\"Email or Phone\"\n value={identifier}\n onChange={(e: ChangeEvent<HTMLInputElement>) => onChange('identifier', e.target.value)}\n width={330}\n required\n shape=\"borderLess\"\n errorMessage={errors.identifier}\n disabled={showOtpInput}\n siblingElement={\n <InputStatusIcon isValid={showOtpInput} isError={!!errors.identifier} />\n }\n />\n {showOtpInput && (\n <>\n <Separator height={36} />\n <TextInput\n type=\"password\"\n renderAs={errors.otp ? 'error' : otpStatusVariant}\n autoComplete=\"password\"\n label=\"Verification code\"\n value={otp}\n onChange={(e: ChangeEvent<HTMLInputElement>) => onChange('otp', e.target.value)}\n width={330}\n required\n shape=\"borderLess\"\n errorMessage={errors.otp}\n disabled={isOtpVerified || (otp.length === 4 && isLoading)}\n siblingElement={\n <InputStatusIcon\n isLoading={isLoading}\n isValid={isOtpVerified}\n isError={!!errors.otp}\n />\n }\n />\n <Separator heightX={1.25} />\n <FlexView $alignItems=\"flex-end\" $width=\"100%\">\n <ResendOTP onResendOTP={onSendOtp} disabled={isOtpVerified} />\n </FlexView>\n <Separator heightX={2} />\n </>\n )}\n </FlexView>\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label={showOtpInput ? 'Log In' : 'Get Verification Code'}\n width={336}\n busy={!showOtpInput && isLoading}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default IdentifierOtpForm;\n"],"names":["IdentifierOtpForm","identifier","otp","errors","isOtpVerified","isLoading","isSubmitDisabled","showOtpInput","onChange","onSubmit","onSendOtp","identifierStatusVariant","otpStatusVariant","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","e","InputStatusIcon","Fragment","Separator","ResendOTP","Button","IdentifierOtpForm$1"],"mappings":";;;;;;;;AAcA,MAAMA,IAAuD,CAAC;AAAA,EAC5D,YAAAC;AAAA,EACA,KAAAC;AAAA,EACA,QAAAC;AAAA,EACA,eAAAC;AAAA,EACA,WAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,MAAM;AACE,QAAAC,IAA0BJ,IAAe,iBAAiB,gBAC1DK,IAAmBR,IAAgB,iBAAiB;AAE1D,SACG,gBAAAS,EAAAC,GAAA,EAAS,UAAU,GAAG,OAAO,KAAK,aAAY,WAAU,SAAS,KAChE,UAAA,gBAAAC,EAACC,GAAA,EAAmB,UAAAP,GAClB,UAAA;AAAA,IAAA,gBAAAM,EAACD,GAAS,EAAA,aAAY,UAAS,iBAAgB,UAC7C,UAAA;AAAA,MAAA,gBAAAD;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,UAAUd,EAAO,aAAa,eAAeQ;AAAA,UAC7C,WAAS;AAAA,UACT,OAAM;AAAA,UACN,OAAOV;AAAA,UACP,UAAU,CAACiB,MAAqCV,EAAS,cAAcU,EAAE,OAAO,KAAK;AAAA,UACrF,OAAO;AAAA,UACP,UAAQ;AAAA,UACR,OAAM;AAAA,UACN,cAAcf,EAAO;AAAA,UACrB,UAAUI;AAAA,UACV,kCACGY,GAAgB,EAAA,SAASZ,GAAc,SAAS,CAAC,CAACJ,EAAO,YAAY;AAAA,QAAA;AAAA,MAE1E;AAAA,MACCI,KAEG,gBAAAQ,EAAAK,GAAA,EAAA,UAAA;AAAA,QAAC,gBAAAP,EAAAQ,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,QACvB,gBAAAR;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,UAAUd,EAAO,MAAM,UAAUS;AAAA,YACjC,cAAa;AAAA,YACb,OAAM;AAAA,YACN,OAAOV;AAAA,YACP,UAAU,CAACgB,MAAqCV,EAAS,OAAOU,EAAE,OAAO,KAAK;AAAA,YAC9E,OAAO;AAAA,YACP,UAAQ;AAAA,YACR,OAAM;AAAA,YACN,cAAcf,EAAO;AAAA,YACrB,UAAUC,KAAkBF,EAAI,WAAW,KAAKG;AAAA,YAChD,gBACE,gBAAAQ;AAAA,cAACM;AAAA,cAAA;AAAA,gBACC,WAAAd;AAAA,gBACA,SAASD;AAAA,gBACT,SAAS,CAAC,CAACD,EAAO;AAAA,cAAA;AAAA,YACpB;AAAA,UAAA;AAAA,QAEJ;AAAA,QACA,gBAAAU,EAACQ,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,QACzB,gBAAAR,EAAAC,GAAA,EAAS,aAAY,YAAW,QAAO,QACtC,UAAC,gBAAAD,EAAAS,GAAA,EAAU,aAAaZ,GAAW,UAAUN,EAAe,CAAA,GAC9D;AAAA,QACA,gBAAAS,EAACQ,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,MAAA,GACzB;AAAA,IAAA,GAEJ;AAAA,IACA,gBAAAR;AAAA,MAACU;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,UAAS;AAAA,QACT,MAAK;AAAA,QACL,OAAOhB,IAAe,WAAW;AAAA,QACjC,OAAO;AAAA,QACP,MAAM,CAACA,KAAgBF;AAAA,QACvB,UAAUC;AAAA,MAAA;AAAA,IACZ;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ,GAEAkB,IAAexB;"}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
2
|
+
import c from "../../../ui/buttons/button/button.js";
|
3
|
+
import g from "../../../ui/buttons/text-button/text-button.js";
|
4
|
+
import l from "../../../ui/inputs/text-input/text-input.js";
|
5
|
+
import t from "../../../ui/layout/flex-view.js";
|
6
|
+
import a from "../../../ui/separator/separator.js";
|
7
|
+
const b = ({
|
8
|
+
username: n,
|
9
|
+
password: i,
|
10
|
+
errors: r,
|
11
|
+
isProcessing: d,
|
12
|
+
onChange: m,
|
13
|
+
onSubmit: u,
|
14
|
+
onForgotPassword: p
|
15
|
+
}) => {
|
16
|
+
const h = d || !n.trim() || !i.trim();
|
17
|
+
return /* @__PURE__ */ o(
|
18
|
+
t,
|
19
|
+
{
|
20
|
+
$gutterX: 2,
|
21
|
+
$gapX: 1.5,
|
22
|
+
$alignItems: "center",
|
23
|
+
$justifyContent: "center",
|
24
|
+
$background: "BLACK_2",
|
25
|
+
$height: 308,
|
26
|
+
children: [
|
27
|
+
/* @__PURE__ */ e(a, { heightX: 0.5 }),
|
28
|
+
/* @__PURE__ */ o("form", { onSubmit: u, children: [
|
29
|
+
/* @__PURE__ */ o(t, { $alignItems: "center", $justifyContent: "center", children: [
|
30
|
+
/* @__PURE__ */ e(
|
31
|
+
l,
|
32
|
+
{
|
33
|
+
renderAs: r.username ? "error-dark" : "primary-dark",
|
34
|
+
autoFocus: !0,
|
35
|
+
autoComplete: "username",
|
36
|
+
label: "Username",
|
37
|
+
value: n,
|
38
|
+
onChange: (s) => m("username", s.target.value),
|
39
|
+
width: 330,
|
40
|
+
required: !0,
|
41
|
+
shape: "borderLess",
|
42
|
+
errorMessage: r.username
|
43
|
+
}
|
44
|
+
),
|
45
|
+
/* @__PURE__ */ e(a, { height: 36 }),
|
46
|
+
/* @__PURE__ */ e(
|
47
|
+
l,
|
48
|
+
{
|
49
|
+
type: "password",
|
50
|
+
renderAs: r.password ? "error-dark" : "primary-dark",
|
51
|
+
autoComplete: "password",
|
52
|
+
label: "Password",
|
53
|
+
value: i,
|
54
|
+
onChange: (s) => m("password", s.target.value),
|
55
|
+
width: 330,
|
56
|
+
required: !0,
|
57
|
+
shape: "borderLess",
|
58
|
+
errorMessage: r.password
|
59
|
+
}
|
60
|
+
)
|
61
|
+
] }),
|
62
|
+
/* @__PURE__ */ e(a, { heightX: 1.25 }),
|
63
|
+
/* @__PURE__ */ e(t, { $alignItems: "flex-end", children: /* @__PURE__ */ e(g, { label: "Forgot Password?", onClick: p, color: "WHITE_T_60" }) }),
|
64
|
+
/* @__PURE__ */ e(a, { heightX: 2 }),
|
65
|
+
/* @__PURE__ */ e(t, { $justifyContent: "center", children: /* @__PURE__ */ e(
|
66
|
+
c,
|
67
|
+
{
|
68
|
+
size: "small",
|
69
|
+
renderAs: "secondary-dark",
|
70
|
+
type: "submit",
|
71
|
+
label: "Log in",
|
72
|
+
width: 336,
|
73
|
+
busy: d,
|
74
|
+
disabled: h
|
75
|
+
}
|
76
|
+
) })
|
77
|
+
] })
|
78
|
+
]
|
79
|
+
}
|
80
|
+
);
|
81
|
+
}, x = b;
|
82
|
+
export {
|
83
|
+
x as default
|
84
|
+
};
|
85
|
+
//# sourceMappingURL=username-password-form.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"username-password-form.js","sources":["../../../../../src/features/auth/login/username-password-form/username-password-form.tsx"],"sourcesContent":["import type { IUsernamePasswordFormProps } from './username-password-form-types';\n\nimport { type ChangeEvent, type FC } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\n\nconst UsernamePasswordForm: FC<IUsernamePasswordFormProps> = ({\n username,\n password,\n errors,\n isProcessing,\n onChange,\n onSubmit,\n onForgotPassword,\n}) => {\n const isSubmitDisabled = isProcessing || !username.trim() || !password.trim();\n\n return (\n <FlexView\n $gutterX={2}\n $gapX={1.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"BLACK_2\"\n $height={308}\n >\n <Separator heightX={0.5} />\n <form onSubmit={onSubmit}>\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <TextInput\n renderAs={errors.username ? 'error-dark' : 'primary-dark'}\n autoFocus\n autoComplete=\"username\"\n label=\"Username\"\n value={username}\n onChange={(e: ChangeEvent<HTMLInputElement>) => onChange('username', e.target.value)}\n width={330}\n required\n shape=\"borderLess\"\n errorMessage={errors.username}\n />\n <Separator height={36} />\n <TextInput\n type=\"password\"\n renderAs={errors.password ? 'error-dark' : 'primary-dark'}\n autoComplete=\"password\"\n label=\"Password\"\n value={password}\n onChange={(e: ChangeEvent<HTMLInputElement>) => onChange('password', e.target.value)}\n width={330}\n required\n shape=\"borderLess\"\n errorMessage={errors.password}\n />\n </FlexView>\n <Separator heightX={1.25} />\n <FlexView $alignItems=\"flex-end\">\n <TextButton label=\"Forgot Password?\" onClick={onForgotPassword} color=\"WHITE_T_60\" />\n </FlexView>\n <Separator heightX={2} />\n <FlexView $justifyContent=\"center\">\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label=\"Log in\"\n width={336}\n busy={isProcessing}\n disabled={isSubmitDisabled}\n />\n </FlexView>\n </form>\n </FlexView>\n );\n};\n\nexport default UsernamePasswordForm;\n"],"names":["UsernamePasswordForm","username","password","errors","isProcessing","onChange","onSubmit","onForgotPassword","isSubmitDisabled","jsxs","FlexView","jsx","Separator","TextInput","e","TextButton","Button","UsernamePasswordForm$1"],"mappings":";;;;;;AAUA,MAAMA,IAAuD,CAAC;AAAA,EAC5D,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,kBAAAC;AACF,MAAM;AACE,QAAAC,IAAmBJ,KAAgB,CAACH,EAAS,UAAU,CAACC,EAAS;AAGrE,SAAA,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,aAAY;AAAA,MACZ,SAAS;AAAA,MAET,UAAA;AAAA,QAAC,gBAAAC,EAAAC,GAAA,EAAU,SAAS,IAAK,CAAA;AAAA,QACzB,gBAAAH,EAAC,UAAK,UAAAH,GACJ,UAAA;AAAA,UAAA,gBAAAG,EAACC,GAAS,EAAA,aAAY,UAAS,iBAAgB,UAC7C,UAAA;AAAA,YAAA,gBAAAC;AAAA,cAACE;AAAA,cAAA;AAAA,gBACC,UAAUV,EAAO,WAAW,eAAe;AAAA,gBAC3C,WAAS;AAAA,gBACT,cAAa;AAAA,gBACb,OAAM;AAAA,gBACN,OAAOF;AAAA,gBACP,UAAU,CAACa,MAAqCT,EAAS,YAAYS,EAAE,OAAO,KAAK;AAAA,gBACnF,OAAO;AAAA,gBACP,UAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,cAAcX,EAAO;AAAA,cAAA;AAAA,YACvB;AAAA,YACA,gBAAAQ,EAACC,GAAU,EAAA,QAAQ,GAAI,CAAA;AAAA,YACvB,gBAAAD;AAAA,cAACE;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,UAAUV,EAAO,WAAW,eAAe;AAAA,gBAC3C,cAAa;AAAA,gBACb,OAAM;AAAA,gBACN,OAAOD;AAAA,gBACP,UAAU,CAACY,MAAqCT,EAAS,YAAYS,EAAE,OAAO,KAAK;AAAA,gBACnF,OAAO;AAAA,gBACP,UAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,cAAcX,EAAO;AAAA,cAAA;AAAA,YACvB;AAAA,UAAA,GACF;AAAA,UACA,gBAAAQ,EAACC,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,UACzB,gBAAAD,EAAAD,GAAA,EAAS,aAAY,YACpB,UAAC,gBAAAC,EAAAI,GAAA,EAAW,OAAM,oBAAmB,SAASR,GAAkB,OAAM,aAAa,CAAA,GACrF;AAAA,UACA,gBAAAI,EAACC,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,UACvB,gBAAAD,EAACD,GAAS,EAAA,iBAAgB,UACxB,UAAA,gBAAAC;AAAA,YAACK;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,UAAS;AAAA,cACT,MAAK;AAAA,cACL,OAAM;AAAA,cACN,OAAO;AAAA,cACP,MAAMZ;AAAA,cACN,UAAUI;AAAA,YAAA;AAAA,UAAA,GAEd;AAAA,QAAA,GACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEAS,IAAejB;"}
|
@@ -1,50 +1,56 @@
|
|
1
|
-
import
|
1
|
+
import t from "styled-components";
|
2
2
|
import i from "../../../ui/layout/flex-view.js";
|
3
|
-
const n =
|
3
|
+
const n = t(i)`
|
4
4
|
position: relative;
|
5
|
-
`, s =
|
5
|
+
`, s = t(i)`
|
6
6
|
position: absolute;
|
7
7
|
border-radius: 100%;
|
8
8
|
top: 216px;
|
9
|
-
border: ${({ theme:
|
10
|
-
`, p =
|
11
|
-
opacity: ${({ $isVisible:
|
9
|
+
border: ${({ theme: o }) => `2px solid ${o.colors.BLACK_5}`};
|
10
|
+
`, p = t(i)`
|
11
|
+
opacity: ${({ $isVisible: o }) => o ? 1 : 0};
|
12
12
|
transition: opacity 0.5s ease-in-out;
|
13
|
-
`,
|
13
|
+
`, l = t.div`
|
14
14
|
position: relative;
|
15
15
|
`;
|
16
|
-
|
16
|
+
t(i)`
|
17
17
|
position: relative;
|
18
18
|
overflow: hidden;
|
19
|
-
background: ${({ theme:
|
19
|
+
background: ${({ theme: o }) => o.colors.BLACK_2};
|
20
20
|
border-radius: 100%;
|
21
21
|
flex-shrink: 0;
|
22
22
|
display: flex;
|
23
23
|
align-items: center;
|
24
24
|
justify-content: center;
|
25
|
-
color: ${({ theme:
|
25
|
+
color: ${({ theme: o }) => o.colors.WHITE};
|
26
26
|
`;
|
27
|
-
|
27
|
+
t.div`
|
28
28
|
position: absolute;
|
29
29
|
width: 100%;
|
30
30
|
height: 100%;
|
31
31
|
z-index: 2;
|
32
32
|
`;
|
33
|
-
const
|
33
|
+
const a = t(i)`
|
34
34
|
position: absolute;
|
35
35
|
top: 55%;
|
36
36
|
right: 24px;
|
37
|
-
`, c =
|
37
|
+
`, c = t(i)`
|
38
38
|
position: absolute;
|
39
39
|
top: 55%;
|
40
40
|
left: 24px;
|
41
|
+
button {
|
42
|
+
background-color: ${({ theme: o }) => o.colors.BLACK_1};
|
43
|
+
svg {
|
44
|
+
color: ${({ theme: o }) => o.colors.WHITE};
|
45
|
+
}
|
46
|
+
}
|
41
47
|
`;
|
42
48
|
export {
|
43
49
|
s as CircularStepContainer,
|
44
50
|
n as Container,
|
45
51
|
p as ContentWrapper,
|
46
|
-
|
47
|
-
|
52
|
+
l as InputContainer,
|
53
|
+
a as NextButtonWrapper,
|
48
54
|
c as PrevButtonWrapper
|
49
55
|
};
|
50
56
|
//# 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)`\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
|
+
{"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 button {\n background-color: ${({ theme }) => theme.colors.BLACK_1};\n svg {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n }\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;AAAA,wBAKjB,CAAC,EAAE,OAAAE,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA,eAE5C,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;"}
|
@@ -1,51 +1,53 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { forwardRef as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import { Container as
|
12
|
-
const
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { forwardRef as b, useRef as c, useState as $, useCallback as E, useEffect as H, useImperativeHandle as B, useLayoutEffect as T } from "react";
|
3
|
+
import j from "../../../../assets/line-icons/icons/back2.js";
|
4
|
+
import P from "../../../../assets/line-icons/icons/next2.js";
|
5
|
+
import z from "../../../ui/animated-arc/animated-arc.js";
|
6
|
+
import C from "../../../ui/buttons/icon-button/icon-button.js";
|
7
|
+
import F from "../../../ui/layout/flex-view.js";
|
8
|
+
import M from "../../../ui/lottie-animation/lottie-animation.js";
|
9
|
+
import N from "../../../ui/separator/separator.js";
|
10
|
+
import O from "../../../ui/text/text.js";
|
11
|
+
import { Container as V, CircularStepContainer as X, ContentWrapper as D, InputContainer as K, PrevButtonWrapper as Y, NextButtonWrapper as _ } from "./circular-step-wrapper-styled.js";
|
12
|
+
const q = {
|
13
13
|
autoplay: !1,
|
14
14
|
loop: !1,
|
15
15
|
renderer: "canvas",
|
16
16
|
rendererSettings: {
|
17
17
|
preserveAspectRatio: "xMidYMin slice"
|
18
18
|
}
|
19
|
-
},
|
19
|
+
}, G = b(
|
20
20
|
({
|
21
|
-
children:
|
22
|
-
onGoBack:
|
23
|
-
onNext:
|
24
|
-
label:
|
21
|
+
children: g,
|
22
|
+
onGoBack: y,
|
23
|
+
onNext: I,
|
24
|
+
label: a,
|
25
25
|
showNext: x,
|
26
|
-
showPrevious:
|
27
|
-
animation:
|
28
|
-
introFrames:
|
29
|
-
outroFrames:
|
30
|
-
isNextLoading:
|
31
|
-
progressAngle:
|
32
|
-
},
|
33
|
-
const t =
|
34
|
-
|
35
|
-
}, [
|
36
|
-
return
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
26
|
+
showPrevious: A,
|
27
|
+
animation: r,
|
28
|
+
introFrames: S,
|
29
|
+
outroFrames: w,
|
30
|
+
isNextLoading: s,
|
31
|
+
progressAngle: l
|
32
|
+
}, R) => {
|
33
|
+
const t = c(null), o = c(null), [u, k] = $(), [v, m] = $(!1), i = c(null), L = E(() => {
|
34
|
+
r && t.current && (t.current.playSegments(S, !0), m(!0));
|
35
|
+
}, [r]);
|
36
|
+
return H(() => () => {
|
37
|
+
i.current && clearTimeout(i.current);
|
38
|
+
}, [r]), B(R, () => ({
|
39
|
+
playOutroAndFadeOut: async () => new Promise((W) => {
|
40
|
+
var f, p;
|
41
|
+
const d = () => {
|
42
|
+
var h;
|
43
|
+
W(), (h = t.current) == null || h.removeEventListener("complete", d);
|
42
44
|
};
|
43
|
-
(
|
45
|
+
(f = t.current) == null || f.playSegments(w, !0), i.current = setTimeout(() => m(!1), 400), (p = t.current) == null || p.addEventListener("complete", d);
|
44
46
|
})
|
45
|
-
})),
|
46
|
-
o.current &&
|
47
|
-
}, []), /* @__PURE__ */
|
48
|
-
|
47
|
+
})), T(() => {
|
48
|
+
o.current && k(o.current.offsetHeight);
|
49
|
+
}, []), /* @__PURE__ */ n(
|
50
|
+
V,
|
49
51
|
{
|
50
52
|
$flex: 1,
|
51
53
|
$flexDirection: "column",
|
@@ -55,19 +57,19 @@ const Y = {
|
|
55
57
|
$height: "100%",
|
56
58
|
ref: o,
|
57
59
|
children: [
|
58
|
-
|
59
|
-
|
60
|
+
u && /* @__PURE__ */ e(
|
61
|
+
M,
|
60
62
|
{
|
61
63
|
width: 1280,
|
62
|
-
height:
|
63
|
-
src:
|
64
|
+
height: u,
|
65
|
+
src: r,
|
64
66
|
ref: t,
|
65
|
-
onRender:
|
66
|
-
settings:
|
67
|
+
onRender: L,
|
68
|
+
settings: q
|
67
69
|
}
|
68
70
|
),
|
69
|
-
/* @__PURE__ */
|
70
|
-
|
71
|
+
/* @__PURE__ */ n(
|
72
|
+
X,
|
71
73
|
{
|
72
74
|
$width: 400,
|
73
75
|
$height: 400,
|
@@ -75,55 +77,55 @@ const Y = {
|
|
75
77
|
$alignItems: "center",
|
76
78
|
$justifyContent: "center",
|
77
79
|
children: [
|
78
|
-
|
79
|
-
|
80
|
+
l && /* @__PURE__ */ e(
|
81
|
+
z,
|
80
82
|
{
|
81
83
|
radius: 200,
|
82
84
|
strokeWidth: 2,
|
83
85
|
color: "WHITE",
|
84
|
-
targetAngle:
|
86
|
+
targetAngle: l,
|
85
87
|
mode: "fade",
|
86
88
|
duration: 1
|
87
89
|
}
|
88
90
|
),
|
89
|
-
/* @__PURE__ */
|
90
|
-
|
91
|
-
/* @__PURE__ */ e(
|
92
|
-
/* @__PURE__ */ e(
|
91
|
+
/* @__PURE__ */ n(D, { $isVisible: v, $width: "100%", children: [
|
92
|
+
a ? /* @__PURE__ */ n(F, { $gutterX: 3.5, children: [
|
93
|
+
/* @__PURE__ */ e(O, { $renderAs: "ab2", $color: "WHITE", $align: "center", children: a }),
|
94
|
+
/* @__PURE__ */ e(N, { heightX: 1 })
|
93
95
|
] }) : null,
|
94
|
-
/* @__PURE__ */ e(
|
96
|
+
/* @__PURE__ */ e(K, { children: g })
|
95
97
|
] })
|
96
98
|
]
|
97
99
|
}
|
98
100
|
),
|
99
|
-
|
100
|
-
|
101
|
+
A && /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(
|
102
|
+
C,
|
101
103
|
{
|
102
|
-
Icon:
|
103
|
-
renderAs: "secondary",
|
104
|
-
analyticsLabel: "
|
105
|
-
onClick:
|
106
|
-
disabled:
|
107
|
-
size: "
|
104
|
+
Icon: j,
|
105
|
+
renderAs: "secondary-dark",
|
106
|
+
analyticsLabel: "Prev",
|
107
|
+
onClick: y,
|
108
|
+
disabled: s,
|
109
|
+
size: "small"
|
108
110
|
}
|
109
111
|
) }),
|
110
|
-
x && /* @__PURE__ */ e(
|
111
|
-
|
112
|
+
x && /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(
|
113
|
+
C,
|
112
114
|
{
|
113
|
-
size: "
|
114
|
-
Icon:
|
115
|
-
renderAs: "secondary",
|
115
|
+
size: "small",
|
116
|
+
Icon: P,
|
117
|
+
renderAs: "secondary-dark",
|
116
118
|
analyticsLabel: "Next",
|
117
|
-
onClick:
|
118
|
-
busy:
|
119
|
+
onClick: I,
|
120
|
+
busy: s
|
119
121
|
}
|
120
122
|
) })
|
121
123
|
]
|
122
124
|
}
|
123
125
|
);
|
124
126
|
}
|
125
|
-
),
|
127
|
+
), ae = G;
|
126
128
|
export {
|
127
|
-
|
129
|
+
ae as default
|
128
130
|
};
|
129
131
|
//# sourceMappingURL=circular-step-wrapper.js.map
|