@cuemath/leap 2.9.5-j11 → 2.9.5-j13

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 (38) hide show
  1. package/dist/features/auth/comps/input-status-icon/input-status-icon.js +13 -13
  2. package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +1 -1
  3. package/dist/features/auth/forgot-password/forgot-password-styled.js +12 -0
  4. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -0
  5. package/dist/features/auth/forgot-password/identifier-form/identifier-form.js +59 -0
  6. package/dist/features/auth/forgot-password/identifier-form/identifier-form.js.map +1 -0
  7. package/dist/features/auth/forgot-password/otp-form/otp-form.js +71 -0
  8. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -0
  9. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +88 -0
  10. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -0
  11. package/dist/features/auth/forgot-password/username-form/username-form.js +60 -0
  12. package/dist/features/auth/forgot-password/username-form/username-form.js.map +1 -0
  13. package/dist/features/auth/login/login-constants.js +12 -0
  14. package/dist/features/auth/login/login-constants.js.map +1 -0
  15. package/dist/features/post-game-stats/digital-meter/constants.js +10 -9
  16. package/dist/features/post-game-stats/digital-meter/constants.js.map +1 -1
  17. package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js +15 -16
  18. package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js.map +1 -1
  19. package/dist/features/post-game-stats/digital-meter/digital-meter.js +88 -87
  20. package/dist/features/post-game-stats/digital-meter/digital-meter.js.map +1 -1
  21. package/dist/features/post-game-stats/digital-meter/helper.js +3 -13
  22. package/dist/features/post-game-stats/digital-meter/helper.js.map +1 -1
  23. package/dist/features/ui/animated-arc/animated-arc-constants.js +5 -0
  24. package/dist/features/ui/animated-arc/animated-arc-constants.js.map +1 -0
  25. package/dist/features/ui/animated-arc/animated-arc-styled.js +25 -13
  26. package/dist/features/ui/animated-arc/animated-arc-styled.js.map +1 -1
  27. package/dist/features/ui/animated-arc/animated-arc.js +13 -13
  28. package/dist/features/ui/animated-arc/animated-arc.js.map +1 -1
  29. package/dist/index.d.ts +26 -3
  30. package/dist/index.js +362 -352
  31. package/dist/index.js.map +1 -1
  32. package/package.json +1 -1
  33. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.js +0 -17
  34. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.js.map +0 -1
  35. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.js +0 -50
  36. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.js.map +0 -1
  37. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/constants.js +0 -6
  38. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/constants.js.map +0 -1
@@ -1,19 +1,19 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { useTheme as u } from "styled-components";
3
- import { ReactComponent as f } from "../../../../assets/illustrations/loader-1.svg.js";
4
- import i from "../../../../assets/line-icons/icons/check2.js";
5
- import p from "../../../../assets/line-icons/icons/cross.js";
6
- const a = ({
7
- isLoading: n,
8
- isValid: c,
9
- isError: m,
2
+ import { useTheme as h } from "styled-components";
3
+ import { ReactComponent as u } from "../../../../assets/illustrations/loader-1.svg.js";
4
+ import a from "../../../../assets/line-icons/icons/check2.js";
5
+ import s from "../../../../assets/line-icons/icons/cross.js";
6
+ const i = ({
7
+ isLoading: n = !1,
8
+ isValid: e = !1,
9
+ isError: c = !1,
10
10
  size: o = 24,
11
- successColor: e = "GREEN_4",
12
- errorColor: h = "ORANGE_4"
11
+ successColor: f = "GREEN_4",
12
+ errorColor: m = "ORANGE_4"
13
13
  }) => {
14
- const { colors: r } = u();
15
- return n ? /* @__PURE__ */ t(f, { width: o, height: o }) : m ? /* @__PURE__ */ t(p, { color: r[h], width: o, height: o }) : c ? /* @__PURE__ */ t(i, { color: r[e], width: o, height: o }) : null;
16
- }, w = a;
14
+ const { colors: r } = h();
15
+ return n ? /* @__PURE__ */ t(u, { width: o, height: o }) : c ? /* @__PURE__ */ t(s, { color: r[m], width: o, height: o }) : e ? /* @__PURE__ */ t(a, { color: r[f], width: o, height: o }) : null;
16
+ }, w = i;
17
17
  export {
18
18
  w as default
19
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"input-status-icon.js","sources":["../../../../../src/features/auth/comps/input-status-icon/input-status-icon.tsx"],"sourcesContent":["import type { IInputStatusIconProps } from './input-status-icon-types';\n\nimport { useTheme } from 'styled-components';\n\nimport { ReactComponent as LoaderSVG } from '../../../../assets/illustrations/loader-1.svg';\nimport Check2Icon from '../../../../assets/line-icons/icons/check2';\nimport CrossIcon from '../../../../assets/line-icons/icons/cross';\n\nconst InputStatusIcon: React.FC<IInputStatusIconProps> = ({\n isLoading,\n isValid,\n isError,\n size = 24,\n successColor = 'GREEN_4',\n errorColor = 'ORANGE_4',\n}) => {\n const { colors } = useTheme();\n\n if (isLoading) {\n return <LoaderSVG width={size} height={size} />;\n }\n\n if (isError) {\n return <CrossIcon color={colors[errorColor]} width={size} height={size} />;\n }\n\n if (isValid) {\n return <Check2Icon color={colors[successColor]} width={size} height={size} />;\n }\n\n return null;\n};\n\nexport default InputStatusIcon;\n"],"names":["InputStatusIcon","isLoading","isValid","isError","size","successColor","errorColor","colors","useTheme","jsx","LoaderSVG","CrossIcon","Check2Icon","InputStatusIcon$1"],"mappings":";;;;;AAQA,MAAMA,IAAmD,CAAC;AAAA,EACxD,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,cAAAC,IAAe;AAAA,EACf,YAAAC,IAAa;AACf,MAAM;AACE,QAAA,EAAE,QAAAC,MAAWC;AAEnB,SAAIP,IACM,gBAAAQ,EAAAC,GAAA,EAAU,OAAON,GAAM,QAAQA,EAAM,CAAA,IAG3CD,IACK,gBAAAM,EAACE,KAAU,OAAOJ,EAAOD,CAAU,GAAG,OAAOF,GAAM,QAAQA,EAAM,CAAA,IAGtEF,IACK,gBAAAO,EAACG,KAAW,OAAOL,EAAOF,CAAY,GAAG,OAAOD,GAAM,QAAQA,EAAM,CAAA,IAGtE;AACT,GAEAS,IAAeb;"}
1
+ {"version":3,"file":"input-status-icon.js","sources":["../../../../../src/features/auth/comps/input-status-icon/input-status-icon.tsx"],"sourcesContent":["import type { IInputStatusIconProps } from './input-status-icon-types';\n\nimport { useTheme } from 'styled-components';\n\nimport { ReactComponent as LoaderSVG } from '../../../../assets/illustrations/loader-1.svg';\nimport Check2Icon from '../../../../assets/line-icons/icons/check2';\nimport CrossIcon from '../../../../assets/line-icons/icons/cross';\n\nconst InputStatusIcon: React.FC<IInputStatusIconProps> = ({\n isLoading = false,\n isValid = false,\n isError = false,\n size = 24,\n successColor = 'GREEN_4',\n errorColor = 'ORANGE_4',\n}) => {\n const { colors } = useTheme();\n\n if (isLoading) {\n return <LoaderSVG width={size} height={size} />;\n }\n\n if (isError) {\n return <CrossIcon color={colors[errorColor]} width={size} height={size} />;\n }\n\n if (isValid) {\n return <Check2Icon color={colors[successColor]} width={size} height={size} />;\n }\n\n return null;\n};\n\nexport default InputStatusIcon;\n"],"names":["InputStatusIcon","isLoading","isValid","isError","size","successColor","errorColor","colors","useTheme","jsx","LoaderSVG","CrossIcon","Check2Icon","InputStatusIcon$1"],"mappings":";;;;;AAQA,MAAMA,IAAmD,CAAC;AAAA,EACxD,WAAAC,IAAY;AAAA,EACZ,SAAAC,IAAU;AAAA,EACV,SAAAC,IAAU;AAAA,EACV,MAAAC,IAAO;AAAA,EACP,cAAAC,IAAe;AAAA,EACf,YAAAC,IAAa;AACf,MAAM;AACE,QAAA,EAAE,QAAAC,MAAWC;AAEnB,SAAIP,IACM,gBAAAQ,EAAAC,GAAA,EAAU,OAAON,GAAM,QAAQA,EAAM,CAAA,IAG3CD,IACK,gBAAAM,EAACE,KAAU,OAAOJ,EAAOD,CAAU,GAAG,OAAOF,GAAM,QAAQA,EAAM,CAAA,IAGtEF,IACK,gBAAAO,EAACG,KAAW,OAAOL,EAAOF,CAAY,GAAG,OAAOD,GAAM,QAAQA,EAAM,CAAA,IAGtE;AACT,GAEAS,IAAeb;"}
@@ -0,0 +1,12 @@
1
+ import { styled as e } from "styled-components";
2
+ const t = e.form`
3
+ display: flex;
4
+ flex: 1;
5
+ margin-top: 8px;
6
+ flex-direction: column;
7
+ justify-content: space-between;
8
+ `;
9
+ export {
10
+ t as FormWrapper
11
+ };
12
+ //# sourceMappingURL=forgot-password-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgot-password-styled.js","sources":["../../../../src/features/auth/forgot-password/forgot-password-styled.tsx"],"sourcesContent":["import { styled } from 'styled-components';\n\nexport const FormWrapper = styled.form`\n display: flex;\n flex: 1;\n margin-top: 8px;\n flex-direction: column;\n justify-content: space-between;\n`;\n"],"names":["FormWrapper","styled"],"mappings":";AAEO,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,59 @@
1
+ import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
+ import l from "../../../ui/buttons/button/button.js";
3
+ import u from "../../../ui/inputs/text-input/text-input.js";
4
+ import f from "../../../ui/layout/flex-view.js";
5
+ import p from "../../comps/input-status-icon/input-status-icon.js";
6
+ import { FormWrapper as c } from "../forgot-password-styled.js";
7
+ const g = ({
8
+ onSubmit: i,
9
+ onChange: t,
10
+ formData: o,
11
+ errors: r,
12
+ isSubmitDisabled: n,
13
+ isProcessing: a,
14
+ isValid: s = !1
15
+ }) => /* @__PURE__ */ e(
16
+ f,
17
+ {
18
+ $gutterX: 2,
19
+ $gapX: 1.5,
20
+ $alignItems: "center",
21
+ $justifyContent: "center",
22
+ $background: "BLACK_2",
23
+ $height: 308,
24
+ children: /* @__PURE__ */ m(c, { onSubmit: i, children: [
25
+ /* @__PURE__ */ e(
26
+ u,
27
+ {
28
+ renderAs: r.identifier ? "error" : "primary",
29
+ autoFocus: !0,
30
+ label: "Email or Phone number",
31
+ value: o.identifier,
32
+ onChange: (d) => t("identifier", d.target.value),
33
+ width: 330,
34
+ required: !0,
35
+ shape: "borderLess",
36
+ colorTheme: "dark",
37
+ errorMessage: r.identifier,
38
+ siblingElement: /* @__PURE__ */ e(p, { isError: !!r.identifier, isValid: s, isLoading: !1 })
39
+ }
40
+ ),
41
+ /* @__PURE__ */ e(
42
+ l,
43
+ {
44
+ size: "small",
45
+ renderAs: "secondary",
46
+ type: "submit",
47
+ label: "Get Verification Code",
48
+ width: 336,
49
+ busy: a,
50
+ disabled: n
51
+ }
52
+ )
53
+ ] })
54
+ }
55
+ ), F = g;
56
+ export {
57
+ F as default
58
+ };
59
+ //# sourceMappingURL=identifier-form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identifier-form.js","sources":["../../../../../src/features/auth/forgot-password/identifier-form/identifier-form.tsx"],"sourcesContent":["import type { IFormProps } from '../forgot-password-types';\nimport 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 InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport * as Styled from '../forgot-password-styled';\n\nconst IdentifierForm = ({\n onSubmit,\n onChange,\n formData,\n errors,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n}: IFormProps) => {\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 <Styled.FormWrapper onSubmit={onSubmit}>\n <TextInput\n renderAs={errors.identifier ? 'error' : 'primary'}\n autoFocus\n label=\"Email or Phone number\"\n value={formData.identifier}\n onChange={(e: ChangeEvent<HTMLInputElement>) => onChange('identifier', e.target.value)}\n width={330}\n required\n shape=\"borderLess\"\n colorTheme=\"dark\"\n errorMessage={errors.identifier}\n siblingElement={\n <InputStatusIcon isError={!!errors.identifier} isValid={isValid} isLoading={false} />\n }\n />\n <Button\n size=\"small\"\n renderAs=\"secondary\"\n type=\"submit\"\n label=\"Get Verification Code\"\n width={336}\n busy={isProcessing}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default IdentifierForm;\n"],"names":["IdentifierForm","onSubmit","onChange","formData","errors","isSubmitDisabled","isProcessing","isValid","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","e","InputStatusIcon","Button","IdentifierForm$1"],"mappings":";;;;;;AASA,MAAMA,IAAiB,CAAC;AAAA,EACtB,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AACZ,MAEI,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,UAAU;AAAA,IACV,OAAO;AAAA,IACP,aAAY;AAAA,IACZ,iBAAgB;AAAA,IAChB,aAAY;AAAA,IACZ,SAAS;AAAA,IAET,UAAC,gBAAAC,EAAAC,GAAA,EAAmB,UAAAV,GAClB,UAAA;AAAA,MAAA,gBAAAO;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,UAAUR,EAAO,aAAa,UAAU;AAAA,UACxC,WAAS;AAAA,UACT,OAAM;AAAA,UACN,OAAOD,EAAS;AAAA,UAChB,UAAU,CAACU,MAAqCX,EAAS,cAAcW,EAAE,OAAO,KAAK;AAAA,UACrF,OAAO;AAAA,UACP,UAAQ;AAAA,UACR,OAAM;AAAA,UACN,YAAW;AAAA,UACX,cAAcT,EAAO;AAAA,UACrB,gBACG,gBAAAI,EAAAM,GAAA,EAAgB,SAAS,CAAC,CAACV,EAAO,YAAY,SAAAG,GAAkB,WAAW,GAAO,CAAA;AAAA,QAAA;AAAA,MAEvF;AAAA,MACA,gBAAAC;AAAA,QAACO;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,UAAS;AAAA,UACT,MAAK;AAAA,UACL,OAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAMT;AAAA,UACN,UAAUD;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA,GACF;AAAA,EAAA;AAAA,GAKNW,IAAehB;"}
@@ -0,0 +1,71 @@
1
+ import { jsx as t, jsxs as g } from "react/jsx-runtime";
2
+ import { useState as a, useEffect as h } from "react";
3
+ import b from "../../../ui/buttons/button/button.js";
4
+ import C from "../../../ui/inputs/text-input/text-input.js";
5
+ import i from "../../../ui/layout/flex-view.js";
6
+ import x from "../../comps/input-status-icon/input-status-icon.js";
7
+ const I = ({
8
+ onSubmit: u,
9
+ onChange: m,
10
+ formData: c,
11
+ errors: r,
12
+ isSubmitDisabled: l,
13
+ isProcessing: d,
14
+ isValid: s = !1
15
+ }) => {
16
+ const [o, f] = a(!1), [e, p] = a(30);
17
+ h(() => {
18
+ if (e <= 0) {
19
+ f(!0);
20
+ return;
21
+ }
22
+ const n = setTimeout(() => p(e - 1), 1e3);
23
+ return () => clearTimeout(n);
24
+ }, [e]);
25
+ const $ = s ? "success" : "primary";
26
+ return /* @__PURE__ */ t(
27
+ i,
28
+ {
29
+ $gutterX: 2,
30
+ $gapX: 1.5,
31
+ $alignItems: "center",
32
+ $justifyContent: "center",
33
+ $background: "BLACK_2",
34
+ $height: 308,
35
+ children: /* @__PURE__ */ g(i, { $alignItems: "center", $justifyContent: "space-between", $flex: 1, children: [
36
+ /* @__PURE__ */ t(
37
+ C,
38
+ {
39
+ renderAs: r.otp ? "error" : $,
40
+ autoFocus: !0,
41
+ label: "Verification code",
42
+ value: c.username,
43
+ onChange: (n) => m("username", n.target.value),
44
+ width: 330,
45
+ required: !0,
46
+ shape: "borderLess",
47
+ colorTheme: "dark",
48
+ errorMessage: r.username,
49
+ siblingElement: /* @__PURE__ */ t(x, { isError: !!r.otp, isValid: s, isLoading: d })
50
+ }
51
+ ),
52
+ /* @__PURE__ */ t(
53
+ b,
54
+ {
55
+ size: "small",
56
+ renderAs: "secondary",
57
+ type: "submit",
58
+ label: o ? "Resend" : `Resend in 0:${e < 10 ? "0" : ""}${e}`,
59
+ width: 336,
60
+ onClick: u,
61
+ disabled: l || !o
62
+ }
63
+ )
64
+ ] })
65
+ }
66
+ );
67
+ }, k = I;
68
+ export {
69
+ k as default
70
+ };
71
+ //# sourceMappingURL=otp-form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otp-form.js","sources":["../../../../../src/features/auth/forgot-password/otp-form/otp-form.tsx"],"sourcesContent":["import type { IFormProps } from '../forgot-password-types';\n\nimport { useEffect, useState, 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 InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\n\nconst OTPForm = ({\n onSubmit,\n onChange,\n formData,\n errors,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n}: IFormProps) => {\n const [canResend, setCanResend] = useState(false);\n const [count, setCount] = useState(30);\n\n useEffect(() => {\n if (count <= 0) {\n setCanResend(true);\n\n return;\n }\n\n const timeoutId = setTimeout(() => setCount(count - 1), 1000);\n\n return () => clearTimeout(timeoutId);\n }, [count]);\n\n const statusVariant = isValid ? 'success' : 'primary';\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 <FlexView $alignItems=\"center\" $justifyContent=\"space-between\" $flex={1}>\n <TextInput\n renderAs={errors.otp ? 'error' : statusVariant}\n autoFocus\n label=\"Verification code\"\n value={formData.username}\n onChange={(e: ChangeEvent<HTMLInputElement>) => onChange('username', e.target.value)}\n width={330}\n required\n shape=\"borderLess\"\n colorTheme=\"dark\"\n errorMessage={errors.username}\n siblingElement={\n <InputStatusIcon isError={!!errors.otp} isValid={isValid} isLoading={isProcessing} />\n }\n />\n <Button\n size=\"small\"\n renderAs=\"secondary\"\n type=\"submit\"\n label={canResend ? 'Resend' : `Resend in 0:${count < 10 ? '0' : ''}${count}`}\n width={336}\n onClick={onSubmit}\n disabled={isSubmitDisabled || !canResend}\n />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default OTPForm;\n"],"names":["OTPForm","onSubmit","onChange","formData","errors","isSubmitDisabled","isProcessing","isValid","canResend","setCanResend","useState","count","setCount","useEffect","timeoutId","statusVariant","jsx","FlexView","TextInput","e","InputStatusIcon","Button","OTPForm$1"],"mappings":";;;;;;AASA,MAAMA,IAAU,CAAC;AAAA,EACf,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AACZ,MAAkB;AAChB,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAC1C,CAACC,GAAOC,CAAQ,IAAIF,EAAS,EAAE;AAErC,EAAAG,EAAU,MAAM;AACd,QAAIF,KAAS,GAAG;AACd,MAAAF,EAAa,EAAI;AAEjB;AAAA,IACF;AAEA,UAAMK,IAAY,WAAW,MAAMF,EAASD,IAAQ,CAAC,GAAG,GAAI;AAErD,WAAA,MAAM,aAAaG,CAAS;AAAA,EAAA,GAClC,CAACH,CAAK,CAAC;AAEJ,QAAAI,IAAgBR,IAAU,YAAY;AAG1C,SAAA,gBAAAS;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,aAAY;AAAA,MACZ,SAAS;AAAA,MAET,4BAACA,GAAS,EAAA,aAAY,UAAS,iBAAgB,iBAAgB,OAAO,GACpE,UAAA;AAAA,QAAA,gBAAAD;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,UAAUd,EAAO,MAAM,UAAUW;AAAA,YACjC,WAAS;AAAA,YACT,OAAM;AAAA,YACN,OAAOZ,EAAS;AAAA,YAChB,UAAU,CAACgB,MAAqCjB,EAAS,YAAYiB,EAAE,OAAO,KAAK;AAAA,YACnF,OAAO;AAAA,YACP,UAAQ;AAAA,YACR,OAAM;AAAA,YACN,YAAW;AAAA,YACX,cAAcf,EAAO;AAAA,YACrB,gBACG,gBAAAY,EAAAI,GAAA,EAAgB,SAAS,CAAC,CAAChB,EAAO,KAAK,SAAAG,GAAkB,WAAWD,EAAc,CAAA;AAAA,UAAA;AAAA,QAEvF;AAAA,QACA,gBAAAU;AAAA,UAACK;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,UAAS;AAAA,YACT,MAAK;AAAA,YACL,OAAOb,IAAY,WAAW,eAAeG,IAAQ,KAAK,MAAM,EAAE,GAAGA,CAAK;AAAA,YAC1E,OAAO;AAAA,YACP,SAASV;AAAA,YACT,UAAUI,KAAoB,CAACG;AAAA,UAAA;AAAA,QACjC;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN,GAEAc,IAAetB;"}
@@ -0,0 +1,88 @@
1
+ import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
+ import u from "../../../ui/buttons/button/button.js";
3
+ import i from "../../../ui/inputs/text-input/text-input.js";
4
+ import d from "../../../ui/layout/flex-view.js";
5
+ import c from "../../../ui/separator/separator.js";
6
+ import n from "../../comps/input-status-icon/input-status-icon.js";
7
+ import { FormWrapper as f } from "../forgot-password-styled.js";
8
+ const g = ({
9
+ onSubmit: p,
10
+ onChange: a,
11
+ formData: s,
12
+ errors: e,
13
+ isSubmitDisabled: l,
14
+ isProcessing: m,
15
+ isValid: w = !1
16
+ }) => /* @__PURE__ */ r(
17
+ d,
18
+ {
19
+ $gutterX: 2,
20
+ $gapX: 1.5,
21
+ $alignItems: "center",
22
+ $justifyContent: "center",
23
+ $background: "BLACK_2",
24
+ $height: 308,
25
+ children: /* @__PURE__ */ t(f, { onSubmit: p, children: [
26
+ /* @__PURE__ */ t(d, { children: [
27
+ /* @__PURE__ */ r(
28
+ i,
29
+ {
30
+ type: "password",
31
+ renderAs: e.password ? "error" : "primary",
32
+ autoComplete: "password",
33
+ label: "New Password",
34
+ value: s.password,
35
+ onChange: (o) => a("password", o.target.value),
36
+ width: 330,
37
+ required: !0,
38
+ shape: "borderLess",
39
+ colorTheme: "dark",
40
+ errorMessage: e.password,
41
+ siblingElement: /* @__PURE__ */ r(n, { isError: !!e.password, isValid: w, isLoading: !1 })
42
+ }
43
+ ),
44
+ /* @__PURE__ */ r(c, { height: 36 }),
45
+ /* @__PURE__ */ r(
46
+ i,
47
+ {
48
+ type: "password",
49
+ renderAs: e.confirmPassword ? "error" : "primary",
50
+ autoComplete: "password",
51
+ label: "Re-enter Password",
52
+ value: s.confirmPassword,
53
+ onChange: (o) => a("confirmPassword", o.target.value),
54
+ width: 330,
55
+ required: !0,
56
+ shape: "borderLess",
57
+ colorTheme: "dark",
58
+ errorMessage: e.confirmPassword,
59
+ siblingElement: /* @__PURE__ */ r(
60
+ n,
61
+ {
62
+ isError: !!e.confirmPassword,
63
+ isValid: !!s.confirmPassword && s.password === s.confirmPassword,
64
+ isLoading: !1
65
+ }
66
+ )
67
+ }
68
+ )
69
+ ] }),
70
+ /* @__PURE__ */ r(
71
+ u,
72
+ {
73
+ size: "small",
74
+ renderAs: "secondary",
75
+ type: "submit",
76
+ label: "Continue",
77
+ width: 336,
78
+ busy: m,
79
+ disabled: l
80
+ }
81
+ )
82
+ ] })
83
+ }
84
+ ), L = g;
85
+ export {
86
+ L as default
87
+ };
88
+ //# sourceMappingURL=reset-password-form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-password-form.js","sources":["../../../../../src/features/auth/forgot-password/reset-password-form/reset-password-form.tsx"],"sourcesContent":["import type { IFormProps } from '../forgot-password-types';\n\nimport { 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 * as Styled from '../forgot-password-styled';\n\nconst ResetPasswordForm = ({\n onSubmit,\n onChange,\n formData,\n errors,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n}: IFormProps) => {\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 <Styled.FormWrapper onSubmit={onSubmit}>\n <FlexView>\n <TextInput\n type={'password'}\n renderAs={errors.password ? 'error' : 'primary'}\n autoComplete=\"password\"\n label=\"New Password\"\n value={formData.password}\n onChange={(e: ChangeEvent<HTMLInputElement>) => onChange('password', e.target.value)}\n width={330}\n required\n shape=\"borderLess\"\n colorTheme=\"dark\"\n errorMessage={errors.password}\n siblingElement={\n <InputStatusIcon isError={!!errors.password} isValid={isValid} isLoading={false} />\n }\n />\n <Separator height={36} />\n <TextInput\n type=\"password\"\n renderAs={errors.confirmPassword ? 'error' : 'primary'}\n autoComplete=\"password\"\n label=\"Re-enter Password\"\n value={formData.confirmPassword}\n onChange={(e: ChangeEvent<HTMLInputElement>) =>\n onChange('confirmPassword', e.target.value)\n }\n width={330}\n required\n shape=\"borderLess\"\n colorTheme=\"dark\"\n errorMessage={errors.confirmPassword}\n siblingElement={\n <InputStatusIcon\n isError={!!errors.confirmPassword}\n isValid={\n !!formData.confirmPassword && formData.password === formData.confirmPassword\n }\n isLoading={false}\n />\n }\n />\n </FlexView>\n <Button\n size=\"small\"\n renderAs=\"secondary\"\n type=\"submit\"\n label=\"Continue\"\n width={336}\n busy={isProcessing}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default ResetPasswordForm;\n"],"names":["ResetPasswordForm","onSubmit","onChange","formData","errors","isSubmitDisabled","isProcessing","isValid","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","e","InputStatusIcon","Separator","Button","ResetPasswordForm$1"],"mappings":";;;;;;;AAWA,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EAAO;AAAA,YACrB,gBACE,gBAAAI;AAAA,cAACM;AAAA,cAAA;AAAA,gBACC,SAAS,CAAC,CAACV,EAAO;AAAA,gBAClB,SACE,CAAC,CAACD,EAAS,mBAAmBA,EAAS,aAAaA,EAAS;AAAA,gBAE/D,WAAW;AAAA,cAAA;AAAA,YACb;AAAA,UAAA;AAAA,QAEJ;AAAA,MAAA,GACF;AAAA,MACA,gBAAAK;AAAA,QAACQ;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,UAAS;AAAA,UACT,MAAK;AAAA,UACL,OAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAMV;AAAA,UACN,UAAUD;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA,GACF;AAAA,EAAA;AAAA,GAKNY,IAAejB;"}
@@ -0,0 +1,60 @@
1
+ import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
+ import l from "../../../ui/buttons/button/button.js";
3
+ import d from "../../../ui/inputs/text-input/text-input.js";
4
+ import p from "../../../ui/layout/flex-view.js";
5
+ import f from "../../comps/input-status-icon/input-status-icon.js";
6
+ import { FormWrapper as c } from "../forgot-password-styled.js";
7
+ const g = ({
8
+ onSubmit: t,
9
+ onChange: a,
10
+ formData: s,
11
+ errors: r,
12
+ isSubmitDisabled: o,
13
+ isProcessing: n,
14
+ isValid: m = !1
15
+ }) => /* @__PURE__ */ e(
16
+ p,
17
+ {
18
+ $gutterX: 2,
19
+ $gapX: 1.5,
20
+ $alignItems: "center",
21
+ $justifyContent: "flex-start",
22
+ $background: "BLACK_2",
23
+ $height: 308,
24
+ children: /* @__PURE__ */ u(c, { onSubmit: t, children: [
25
+ /* @__PURE__ */ e(
26
+ d,
27
+ {
28
+ renderAs: r.username ? "error" : "primary",
29
+ autoFocus: !0,
30
+ autoComplete: "username",
31
+ label: "Username",
32
+ value: s.username,
33
+ onChange: (i) => a("username", i.target.value),
34
+ width: 330,
35
+ required: !0,
36
+ shape: "borderLess",
37
+ colorTheme: "dark",
38
+ errorMessage: r.username,
39
+ siblingElement: /* @__PURE__ */ e(f, { isError: !!r.username, isValid: m, isLoading: !1 })
40
+ }
41
+ ),
42
+ /* @__PURE__ */ e(
43
+ l,
44
+ {
45
+ size: "small",
46
+ renderAs: "secondary",
47
+ type: "submit",
48
+ label: "Get Verification Code",
49
+ width: 336,
50
+ busy: n,
51
+ disabled: o
52
+ }
53
+ )
54
+ ] })
55
+ }
56
+ ), F = g;
57
+ export {
58
+ F as default
59
+ };
60
+ //# sourceMappingURL=username-form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"username-form.js","sources":["../../../../../src/features/auth/forgot-password/username-form/username-form.tsx"],"sourcesContent":["import type { IFormProps } from '../forgot-password-types';\nimport 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 InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport * as Styled from '../forgot-password-styled';\n\nconst UsernameForm = ({\n onSubmit,\n onChange,\n formData,\n errors,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n}: IFormProps) => {\n return (\n <FlexView\n $gutterX={2}\n $gapX={1.5}\n $alignItems=\"center\"\n $justifyContent=\"flex-start\"\n $background=\"BLACK_2\"\n $height={308}\n >\n <Styled.FormWrapper onSubmit={onSubmit}>\n <TextInput\n renderAs={errors.username ? 'error' : 'primary'}\n autoFocus\n autoComplete=\"username\"\n label=\"Username\"\n value={formData.username}\n onChange={(e: ChangeEvent<HTMLInputElement>) => onChange('username', e.target.value)}\n width={330}\n required\n shape=\"borderLess\"\n colorTheme=\"dark\"\n errorMessage={errors.username}\n siblingElement={\n <InputStatusIcon isError={!!errors.username} isValid={isValid} isLoading={false} />\n }\n />\n <Button\n size=\"small\"\n renderAs=\"secondary\"\n type=\"submit\"\n label=\"Get Verification Code\"\n width={336}\n busy={isProcessing}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default UsernameForm;\n"],"names":["UsernameForm","onSubmit","onChange","formData","errors","isSubmitDisabled","isProcessing","isValid","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","e","InputStatusIcon","Button","UsernameForm$1"],"mappings":";;;;;;AASA,MAAMA,IAAe,CAAC;AAAA,EACpB,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AACZ,MAEI,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,UAAU;AAAA,IACV,OAAO;AAAA,IACP,aAAY;AAAA,IACZ,iBAAgB;AAAA,IAChB,aAAY;AAAA,IACZ,SAAS;AAAA,IAET,UAAC,gBAAAC,EAAAC,GAAA,EAAmB,UAAAV,GAClB,UAAA;AAAA,MAAA,gBAAAO;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,UAAUR,EAAO,WAAW,UAAU;AAAA,UACtC,WAAS;AAAA,UACT,cAAa;AAAA,UACb,OAAM;AAAA,UACN,OAAOD,EAAS;AAAA,UAChB,UAAU,CAACU,MAAqCX,EAAS,YAAYW,EAAE,OAAO,KAAK;AAAA,UACnF,OAAO;AAAA,UACP,UAAQ;AAAA,UACR,OAAM;AAAA,UACN,YAAW;AAAA,UACX,cAAcT,EAAO;AAAA,UACrB,gBACG,gBAAAI,EAAAM,GAAA,EAAgB,SAAS,CAAC,CAACV,EAAO,UAAU,SAAAG,GAAkB,WAAW,GAAO,CAAA;AAAA,QAAA;AAAA,MAErF;AAAA,MACA,gBAAAC;AAAA,QAACO;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,UAAS;AAAA,UACT,MAAK;AAAA,UACL,OAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAMT;AAAA,UACN,UAAUD;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA,GACF;AAAA,EAAA;AAAA,GAKNW,IAAehB;"}
@@ -0,0 +1,12 @@
1
+ const e = {
2
+ username: {
3
+ label: "Username"
4
+ },
5
+ identifier: {
6
+ label: "Email/Phone"
7
+ }
8
+ };
9
+ export {
10
+ e as AUTH_TABS
11
+ };
12
+ //# sourceMappingURL=login-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login-constants.js","sources":["../../../../src/features/auth/login/login-constants.ts"],"sourcesContent":["import type { ITabConfig } from '../comps/tabs/tabs-types';\nimport type { TAuthTabKeys } from './login-types';\n\nexport const AUTH_TABS: ITabConfig<TAuthTabKeys> = {\n username: {\n label: 'Username',\n },\n identifier: {\n label: 'Email/Phone',\n },\n};\n"],"names":["AUTH_TABS"],"mappings":"AAGO,MAAMA,IAAsC;AAAA,EACjD,UAAU;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,YAAY;AAAA,IACV,OAAO;AAAA,EACT;AACF;"}
@@ -1,18 +1,19 @@
1
1
  import { GAME_LAUNCHER_SIZE as _, GAME_LAUNCHER_SIZE_LARGE as A } from "../../circle-games/game-launcher/comps/card-container/constants.js";
2
- import { ARC_Z_INDEX as E } from "./comp/animated-arc/constants.js";
3
- const L = 300, R = 2, I = E + 1, N = I + 1, O = N + 1, t = _ === A ? 16 : 12, D = (_ - R) / 2, c = 3.8, n = 2 / 30, s = 2.37, C = 12 / 30, G = 20 / 30, S = 43 / 30;
2
+ const o = 300, E = 2, L = 150, R = 1, I = R + 1, N = I + 1, t = N + 1, O = _ === A ? 16 : 12, c = (_ - E) / 2, n = 3.8, s = 2 / 30, D = 2.37, C = 12 / 30, G = 20 / 30, S = 43 / 30;
4
3
  export {
5
- D as ARC_RADIUS,
4
+ L as ANIMATED_ARC_START_ANGLE,
5
+ c as ARC_RADIUS,
6
+ R as ARC_Z_INDEX,
6
7
  N as CONTENT_CONTAINER_Z_INDEX,
7
8
  I as LINE_MARKING_Z_INDEX,
8
- O as NUMBER_MARKING_Z_INDEX,
9
+ t as NUMBER_MARKING_Z_INDEX,
9
10
  C as PROGRESS_FILL_DELAY,
10
11
  G as PROGRESS_FILL_DURATION,
11
12
  S as RAINBOW_COLOR_ANIMATION_DURATION,
12
- t as STROKE_WIDTH,
13
- s as TARGET_ACHIEVED_DELAY,
14
- n as TARGET_HELPER_TEXT_APPEAR_DELAY,
15
- c as TOTAL_ANIMATION_DURATION,
16
- L as TOTAL_ARC_AVAILABLE
13
+ O as STROKE_WIDTH,
14
+ D as TARGET_ACHIEVED_DELAY,
15
+ s as TARGET_HELPER_TEXT_APPEAR_DELAY,
16
+ n as TOTAL_ANIMATION_DURATION,
17
+ o as TOTAL_ARC_AVAILABLE
17
18
  };
18
19
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../src/features/post-game-stats/digital-meter/constants.ts"],"sourcesContent":["import {\n GAME_LAUNCHER_SIZE,\n GAME_LAUNCHER_SIZE_LARGE,\n} from '../../circle-games/game-launcher/comps/card-container/constants';\nimport { ARC_Z_INDEX } from './comp/animated-arc/constants';\n\nexport const TOTAL_ARC_AVAILABLE = 300;\n\nconst BORDER_OFFSET = 2;\n\nexport const LINE_MARKING_Z_INDEX = ARC_Z_INDEX + 1;\nexport const CONTENT_CONTAINER_Z_INDEX = LINE_MARKING_Z_INDEX + 1;\nexport const NUMBER_MARKING_Z_INDEX = CONTENT_CONTAINER_Z_INDEX + 1;\nexport const STROKE_WIDTH = GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 16 : 12;\nexport const ARC_RADIUS = (GAME_LAUNCHER_SIZE - BORDER_OFFSET) / 2;\n\n// animation details\nexport const TOTAL_ANIMATION_DURATION = 3.8; // in sec\nexport const TARGET_HELPER_TEXT_APPEAR_DELAY = 2 / 30; // delay of 2 frames\nexport const TARGET_ACHIEVED_DELAY = 2.37; // delay of 3 sec\nexport const PROGRESS_FILL_DELAY = 12 / 30; // delay of 12 frames\nexport const PROGRESS_FILL_DURATION = 20 / 30; // in 20 frames\nexport const RAINBOW_COLOR_ANIMATION_DURATION = 43 / 30; // 43 frames;\n"],"names":["TOTAL_ARC_AVAILABLE","BORDER_OFFSET","LINE_MARKING_Z_INDEX","ARC_Z_INDEX","CONTENT_CONTAINER_Z_INDEX","NUMBER_MARKING_Z_INDEX","STROKE_WIDTH","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_SIZE_LARGE","ARC_RADIUS","TOTAL_ANIMATION_DURATION","TARGET_HELPER_TEXT_APPEAR_DELAY","TARGET_ACHIEVED_DELAY","PROGRESS_FILL_DELAY","PROGRESS_FILL_DURATION","RAINBOW_COLOR_ANIMATION_DURATION"],"mappings":";;AAMO,MAAMA,IAAsB,KAE7BC,IAAgB,GAETC,IAAuBC,IAAc,GACrCC,IAA4BF,IAAuB,GACnDG,IAAyBD,IAA4B,GACrDE,IAAeC,MAAuBC,IAA2B,KAAK,IACtEC,KAAcF,IAAqBN,KAAiB,GAGpDS,IAA2B,KAC3BC,IAAkC,IAAI,IACtCC,IAAwB,MACxBC,IAAsB,KAAK,IAC3BC,IAAyB,KAAK,IAC9BC,IAAmC,KAAK;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../../src/features/post-game-stats/digital-meter/constants.ts"],"sourcesContent":["import {\n GAME_LAUNCHER_SIZE,\n GAME_LAUNCHER_SIZE_LARGE,\n} from '../../circle-games/game-launcher/comps/card-container/constants';\n\nexport const TOTAL_ARC_AVAILABLE = 300;\n\nconst BORDER_OFFSET = 2;\n\n//Animated Arc\nexport const ANIMATED_ARC_START_ANGLE = 150;\nexport const ARC_Z_INDEX = 1;\n\nexport const LINE_MARKING_Z_INDEX = ARC_Z_INDEX + 1;\nexport const CONTENT_CONTAINER_Z_INDEX = LINE_MARKING_Z_INDEX + 1;\nexport const NUMBER_MARKING_Z_INDEX = CONTENT_CONTAINER_Z_INDEX + 1;\nexport const STROKE_WIDTH = GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? 16 : 12;\nexport const ARC_RADIUS = (GAME_LAUNCHER_SIZE - BORDER_OFFSET) / 2;\n\n// animation details\nexport const TOTAL_ANIMATION_DURATION = 3.8; // in sec\nexport const TARGET_HELPER_TEXT_APPEAR_DELAY = 2 / 30; // delay of 2 frames\nexport const TARGET_ACHIEVED_DELAY = 2.37; // delay of 3 sec\nexport const PROGRESS_FILL_DELAY = 12 / 30; // delay of 12 frames\nexport const PROGRESS_FILL_DURATION = 20 / 30; // in 20 frames\nexport const RAINBOW_COLOR_ANIMATION_DURATION = 43 / 30; // 43 frames;\n"],"names":["TOTAL_ARC_AVAILABLE","BORDER_OFFSET","ANIMATED_ARC_START_ANGLE","ARC_Z_INDEX","LINE_MARKING_Z_INDEX","CONTENT_CONTAINER_Z_INDEX","NUMBER_MARKING_Z_INDEX","STROKE_WIDTH","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_SIZE_LARGE","ARC_RADIUS","TOTAL_ANIMATION_DURATION","TARGET_HELPER_TEXT_APPEAR_DELAY","TARGET_ACHIEVED_DELAY","PROGRESS_FILL_DELAY","PROGRESS_FILL_DURATION","RAINBOW_COLOR_ANIMATION_DURATION"],"mappings":";AAKO,MAAMA,IAAsB,KAE7BC,IAAgB,GAGTC,IAA2B,KAC3BC,IAAc,GAEdC,IAAuBD,IAAc,GACrCE,IAA4BD,IAAuB,GACnDE,IAAyBD,IAA4B,GACrDE,IAAeC,MAAuBC,IAA2B,KAAK,IACtEC,KAAcF,IAAqBP,KAAiB,GAGpDU,IAA2B,KAC3BC,IAAkC,IAAI,IACtCC,IAAwB,MACxBC,IAAsB,KAAK,IAC3BC,IAAyB,KAAK,IAC9BC,IAAmC,KAAK;"}
@@ -1,10 +1,9 @@
1
1
  import o, { keyframes as e } from "styled-components";
2
2
  import { GAME_LAUNCHER_SIZE as r, GAME_LAUNCHER_SIZE_LARGE as s } from "../../circle-games/game-launcher/comps/card-container/constants.js";
3
3
  import i from "../../ui/text/text.js";
4
- import { ADJUSTED_START_ANGLE as n } from "./comp/animated-arc/constants.js";
5
- import { CONTENT_CONTAINER_Z_INDEX as l, LINE_MARKING_Z_INDEX as d, NUMBER_MARKING_Z_INDEX as m, TARGET_HELPER_TEXT_APPEAR_DELAY as a, RAINBOW_COLOR_ANIMATION_DURATION as p } from "./constants.js";
4
+ import { CONTENT_CONTAINER_Z_INDEX as l, LINE_MARKING_Z_INDEX as d, ANIMATED_ARC_START_ANGLE as n, NUMBER_MARKING_Z_INDEX as m, TARGET_HELPER_TEXT_APPEAR_DELAY as a, RAINBOW_COLOR_ANIMATION_DURATION as p } from "./constants.js";
6
5
  import { rainbowColorAnimation as f } from "./helper.js";
7
- const g = o.div`
6
+ const E = o.div`
8
7
  height: ${r}px;
9
8
  width: ${r}px;
10
9
  background-color: ${({ theme: t }) => t.colors.BLACK_2};
@@ -26,7 +25,7 @@ const g = o.div`
26
25
  width: 92%;
27
26
  border-radius: 100%;
28
27
  background-color: ${({ theme: t }) => t.colors.BLACK_2};
29
- `, b = o.div`
28
+ `, g = o.div`
30
29
  position: relative;
31
30
  flex-grow: 1;
32
31
  bottom: ${r === s ? -8 : -6}px;
@@ -34,7 +33,7 @@ const g = o.div`
34
33
  o.div`
35
34
  position: absolute;
36
35
  `;
37
- const u = o.div`
36
+ const b = o.div`
38
37
  width: ${r / 2}px;
39
38
  height: 2px;
40
39
  position: absolute;
@@ -46,12 +45,12 @@ const u = o.div`
46
45
  left: ${r / 2}px;
47
46
  top: ${r / 2}px;
48
47
  z-index: ${d};
49
- `, T = o.div`
48
+ `, u = o.div`
50
49
  position: absolute;
51
50
  height: ${r - r * 0.0625 - 10}px;
52
51
  transform: rotate(${({ $angle: t }) => -n + t}deg);
53
52
  z-index: ${m};
54
- `, h = o.div`
53
+ `, T = o.div`
55
54
  transform: rotate(${({ $angle: t }) => n - t}deg);
56
55
  `, C = o.div`
57
56
  position: absolute;
@@ -60,7 +59,7 @@ const u = o.div`
60
59
  `, R = o(i)`
61
60
  animation: ${e`from{transform: translateY(-6px)} to{transform: translateY(0)}`} 0.133s
62
61
  ease-in-out ${a}s forwards;
63
- `, I = o(i)`
62
+ `, h = o(i)`
64
63
  animation: ${e`from{transform: translateY(-6px)} to{transform: translateY(0)}`} 0.133s
65
64
  ease ${a}s forwards;
66
65
  `;
@@ -68,20 +67,20 @@ o.div`
68
67
  height: 100%;
69
68
  width: 100%;
70
69
  `;
71
- const v = o(i)`
70
+ const I = o(i)`
72
71
  animation: ${({ $isTargetAchieved: t }) => t ? f : "unset"}
73
72
  ${p}s ease infinite forwards;
74
73
  `;
75
74
  export {
76
75
  C as BottomAbsoluteView,
77
76
  N as ContentContainer,
78
- g as DigitalMeter,
77
+ E as DigitalMeter,
79
78
  R as HelperTextPrimary,
80
- I as HelperTextSecondary,
81
- u as LineMarking,
82
- T as MarkingContainer,
83
- h as MarkingText,
84
- b as NumberCountContainer,
85
- v as RainboxColorText
79
+ h as HelperTextSecondary,
80
+ b as LineMarking,
81
+ u as MarkingContainer,
82
+ T as MarkingText,
83
+ g as NumberCountContainer,
84
+ I as RainboxColorText
86
85
  };
87
86
  //# sourceMappingURL=digital-meter-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"digital-meter-styled.js","sources":["../../../../src/features/post-game-stats/digital-meter/digital-meter-styled.tsx"],"sourcesContent":["import styled, { keyframes } from 'styled-components';\n\nimport {\n GAME_LAUNCHER_SIZE,\n GAME_LAUNCHER_SIZE_LARGE,\n} from '../../circle-games/game-launcher/comps/card-container/constants';\nimport Text from '../../ui/text/text';\nimport { ADJUSTED_START_ANGLE } from './comp/animated-arc/constants';\nimport {\n CONTENT_CONTAINER_Z_INDEX,\n LINE_MARKING_Z_INDEX,\n NUMBER_MARKING_Z_INDEX,\n RAINBOW_COLOR_ANIMATION_DURATION,\n TARGET_HELPER_TEXT_APPEAR_DELAY,\n} from './constants';\nimport { rainbowColorAnimation } from './helper';\n\nexport const DigitalMeter = styled.div<{ $isTargetAchieved: boolean }>`\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n border-radius: 100%;\n border: 1px solid ${({ theme }) => theme.colors.WHITE};\n animation: ${({ $isTargetAchieved }) =>\n $isTargetAchieved ? keyframes`100%{transform: scale(1.02)}` : 'unset'}\n 0.133s ease alternate;\n`;\n\nexport const ContentContainer = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n z-index: ${CONTENT_CONTAINER_Z_INDEX};\n height: 92%;\n width: 92%;\n border-radius: 100%;\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n`;\n\nexport const NumberCountContainer = styled.div`\n position: relative;\n flex-grow: 1;\n bottom: ${GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? -8 : -6}px;\n`;\n\nexport const AbsoluteView = styled.div`\n position: absolute;\n`;\n\nexport const LineMarking = styled.div<{\n $angle: number;\n}>`\n width: ${GAME_LAUNCHER_SIZE / 2}px;\n height: 2px;\n position: absolute;\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n transform-style: preserve-3d;\n backface-visibility: hidden;\n transform-origin: left;\n transform: rotate(${({ $angle }) => -240 + $angle}deg);\n left: ${GAME_LAUNCHER_SIZE / 2}px;\n top: ${GAME_LAUNCHER_SIZE / 2}px;\n z-index: ${LINE_MARKING_Z_INDEX};\n`;\n\nexport const MarkingContainer = styled.div<{ $angle: number }>`\n position: absolute;\n height: ${GAME_LAUNCHER_SIZE - GAME_LAUNCHER_SIZE * 0.0625 - 10}px;\n transform: rotate(${({ $angle }) => -ADJUSTED_START_ANGLE + $angle}deg);\n z-index: ${NUMBER_MARKING_Z_INDEX};\n`;\n\nexport const MarkingText = styled.div<{ $angle: number }>`\n transform: rotate(${({ $angle }) => ADJUSTED_START_ANGLE - $angle}deg);\n`;\n\nexport const BottomAbsoluteView = styled.div<{ top: number }>`\n position: absolute;\n top: 0;\n transform: ${({ top }) => `translateY(${top}px)`};\n`;\n\nexport const HelperTextPrimary = styled(Text)`\n animation: ${keyframes`from{transform: translateY(-6px)} to{transform: translateY(0)}`} 0.133s\n ease-in-out ${TARGET_HELPER_TEXT_APPEAR_DELAY}s forwards;\n`;\n\nexport const HelperTextSecondary = styled(Text)`\n animation: ${keyframes`from{transform: translateY(-6px)} to{transform: translateY(0)}`} 0.133s\n ease ${TARGET_HELPER_TEXT_APPEAR_DELAY}s forwards;\n`;\n\nexport const TargetAchievedTextLottie = styled.div`\n height: 100%;\n width: 100%;\n`;\n\nexport const RainboxColorText = styled(Text)<{ $isTargetAchieved: boolean }>`\n animation: ${({ $isTargetAchieved }) => ($isTargetAchieved ? rainbowColorAnimation : 'unset')}\n ${RAINBOW_COLOR_ANIMATION_DURATION}s ease infinite forwards;\n`;\n"],"names":["DigitalMeter","styled","GAME_LAUNCHER_SIZE","theme","$isTargetAchieved","keyframes","ContentContainer","CONTENT_CONTAINER_Z_INDEX","NumberCountContainer","GAME_LAUNCHER_SIZE_LARGE","LineMarking","$angle","LINE_MARKING_Z_INDEX","MarkingContainer","ADJUSTED_START_ANGLE","NUMBER_MARKING_Z_INDEX","MarkingText","BottomAbsoluteView","top","HelperTextPrimary","Text","TARGET_HELPER_TEXT_APPEAR_DELAY","HelperTextSecondary","RainboxColorText","rainbowColorAnimation","RAINBOW_COLOR_ANIMATION_DURATION"],"mappings":";;;;;;AAiBO,MAAMA,IAAeC,EAAO;AAAA,YACvBC,CAAkB;AAAA,WACnBA,CAAkB;AAAA,sBACP,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAMnC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,eACxC,CAAC,EAAE,mBAAAC,QACZA,IAAoBC,kCAA0C,OAAO;AAAA;AAAA,GAI9DC,IAAmBL,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,aAK1BM,CAAyB;AAAA;AAAA;AAAA;AAAA,sBAIhB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],"sourcesContent":["import styled, { keyframes } from 'styled-components';\n\nimport {\n GAME_LAUNCHER_SIZE,\n GAME_LAUNCHER_SIZE_LARGE,\n} from '../../circle-games/game-launcher/comps/card-container/constants';\nimport Text from '../../ui/text/text';\nimport {\n ANIMATED_ARC_START_ANGLE,\n CONTENT_CONTAINER_Z_INDEX,\n LINE_MARKING_Z_INDEX,\n NUMBER_MARKING_Z_INDEX,\n RAINBOW_COLOR_ANIMATION_DURATION,\n TARGET_HELPER_TEXT_APPEAR_DELAY,\n} from './constants';\nimport { rainbowColorAnimation } from './helper';\n\nexport const DigitalMeter = styled.div<{ $isTargetAchieved: boolean }>`\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n border-radius: 100%;\n border: 1px solid ${({ theme }) => theme.colors.WHITE};\n animation: ${({ $isTargetAchieved }) =>\n $isTargetAchieved ? keyframes`100%{transform: scale(1.02)}` : 'unset'}\n 0.133s ease alternate;\n`;\n\nexport const ContentContainer = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n z-index: ${CONTENT_CONTAINER_Z_INDEX};\n height: 92%;\n width: 92%;\n border-radius: 100%;\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n`;\n\nexport const NumberCountContainer = styled.div`\n position: relative;\n flex-grow: 1;\n bottom: ${GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? -8 : -6}px;\n`;\n\nexport const AbsoluteView = styled.div`\n position: absolute;\n`;\n\nexport const LineMarking = styled.div<{\n $angle: number;\n}>`\n width: ${GAME_LAUNCHER_SIZE / 2}px;\n height: 2px;\n position: absolute;\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n transform-style: preserve-3d;\n backface-visibility: hidden;\n transform-origin: left;\n transform: rotate(${({ $angle }) => -240 + $angle}deg);\n left: ${GAME_LAUNCHER_SIZE / 2}px;\n top: ${GAME_LAUNCHER_SIZE / 2}px;\n z-index: ${LINE_MARKING_Z_INDEX};\n`;\n\nexport const MarkingContainer = styled.div<{ $angle: number }>`\n position: absolute;\n height: ${GAME_LAUNCHER_SIZE - GAME_LAUNCHER_SIZE * 0.0625 - 10}px;\n transform: rotate(${({ $angle }) => -ANIMATED_ARC_START_ANGLE + $angle}deg);\n z-index: ${NUMBER_MARKING_Z_INDEX};\n`;\n\nexport const MarkingText = styled.div<{ $angle: number }>`\n transform: rotate(${({ $angle }) => ANIMATED_ARC_START_ANGLE - $angle}deg);\n`;\n\nexport const BottomAbsoluteView = styled.div<{ top: number }>`\n position: absolute;\n top: 0;\n transform: ${({ top }) => `translateY(${top}px)`};\n`;\n\nexport const HelperTextPrimary = styled(Text)`\n animation: ${keyframes`from{transform: translateY(-6px)} to{transform: translateY(0)}`} 0.133s\n ease-in-out ${TARGET_HELPER_TEXT_APPEAR_DELAY}s forwards;\n`;\n\nexport const HelperTextSecondary = styled(Text)`\n animation: ${keyframes`from{transform: translateY(-6px)} to{transform: translateY(0)}`} 0.133s\n ease ${TARGET_HELPER_TEXT_APPEAR_DELAY}s forwards;\n`;\n\nexport const TargetAchievedTextLottie = styled.div`\n height: 100%;\n width: 100%;\n`;\n\nexport const RainboxColorText = styled(Text)<{ $isTargetAchieved: boolean }>`\n animation: ${({ $isTargetAchieved }) => ($isTargetAchieved ? rainbowColorAnimation : 'unset')}\n ${RAINBOW_COLOR_ANIMATION_DURATION}s ease infinite forwards;\n`;\n"],"names":["DigitalMeter","styled","GAME_LAUNCHER_SIZE","theme","$isTargetAchieved","keyframes","ContentContainer","CONTENT_CONTAINER_Z_INDEX","NumberCountContainer","GAME_LAUNCHER_SIZE_LARGE","LineMarking","$angle","LINE_MARKING_Z_INDEX","MarkingContainer","ANIMATED_ARC_START_ANGLE","NUMBER_MARKING_Z_INDEX","MarkingText","BottomAbsoluteView","top","HelperTextPrimary","Text","TARGET_HELPER_TEXT_APPEAR_DELAY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