@cuemath/leap 2.8.23 → 2.8.24-hg1

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 (62) hide show
  1. package/dist/assets/lotties/circle/tables/advance-mode-segment-lottie.json.js +4370 -0
  2. package/dist/assets/lotties/circle/tables/advance-mode-segment-lottie.json.js.map +1 -0
  3. package/dist/assets/lotties/circle/tables/infinite-button-bg.json.js +1552 -0
  4. package/dist/assets/lotties/circle/tables/infinite-button-bg.json.js.map +1 -0
  5. package/dist/assets/lotties/circle/tables/infinite-button-symbol.json.js +1795 -0
  6. package/dist/assets/lotties/circle/tables/infinite-button-symbol.json.js.map +1 -0
  7. package/dist/assets/lotties/circle/tables/random-mode-segment-lottie.json.js +9661 -0
  8. package/dist/assets/lotties/circle/tables/random-mode-segment-lottie.json.js.map +1 -0
  9. package/dist/assets/lotties/circle/tables/sequence-mode-segment-lottie.json.js +8630 -0
  10. package/dist/assets/lotties/circle/tables/sequence-mode-segment-lottie.json.js.map +1 -0
  11. package/dist/assets/lotties/circle/tables/table-mode-reveal.json.js +9076 -0
  12. package/dist/assets/lotties/circle/tables/table-mode-reveal.json.js.map +1 -0
  13. package/dist/features/circle-games/game-launcher/comps/card-container/card-container-styled.js +53 -0
  14. package/dist/features/circle-games/game-launcher/comps/card-container/card-container-styled.js.map +1 -0
  15. package/dist/features/circle-games/game-launcher/comps/card-container/card-container.js +24 -0
  16. package/dist/features/circle-games/game-launcher/comps/card-container/card-container.js.map +1 -0
  17. package/dist/features/circle-games/game-launcher/comps/card-container/constants.js +7 -0
  18. package/dist/features/circle-games/game-launcher/comps/card-container/constants.js.map +1 -0
  19. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/constants.js +6 -6
  20. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/constants.js.map +1 -1
  21. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.js +29 -73
  22. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.js.map +1 -1
  23. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js +83 -81
  24. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js.map +1 -1
  25. package/dist/features/circle-games/game-launcher/comps/tables-card/constants.js +20 -0
  26. package/dist/features/circle-games/game-launcher/comps/tables-card/constants.js.map +1 -0
  27. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode-styled.js +24 -0
  28. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode-styled.js.map +1 -0
  29. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode.js +83 -0
  30. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode.js.map +1 -0
  31. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js +161 -0
  32. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js.map +1 -0
  33. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js +223 -0
  34. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +1 -0
  35. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js +25 -15
  36. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js.map +1 -1
  37. package/dist/features/circle-games/game-launcher/game-launcher-styled.js +6 -5
  38. package/dist/features/circle-games/game-launcher/game-launcher-styled.js.map +1 -1
  39. package/dist/features/circle-games/game-launcher/game-launcher.js +123 -82
  40. package/dist/features/circle-games/game-launcher/game-launcher.js.map +1 -1
  41. package/dist/features/circle-games/games/web-view/enums/project-type-enum.js +1 -1
  42. package/dist/features/circle-games/games/web-view/enums/project-type-enum.js.map +1 -1
  43. package/dist/features/circle-games/games/web-view/web-view-types.js.map +1 -1
  44. package/dist/features/circle-games/games/web-view/web-view.js +70 -83
  45. package/dist/features/circle-games/games/web-view/web-view.js.map +1 -1
  46. package/dist/features/post-game-stats/accuracy/accuracy-styled.js +17 -16
  47. package/dist/features/post-game-stats/accuracy/accuracy-styled.js.map +1 -1
  48. package/dist/features/post-game-stats/clock/clock-styled.js +11 -10
  49. package/dist/features/post-game-stats/clock/clock-styled.js.map +1 -1
  50. package/dist/features/post-game-stats/points/points-styled.js +7 -6
  51. package/dist/features/post-game-stats/points/points-styled.js.map +1 -1
  52. package/dist/features/post-game-stats/post-game-stats-styled.js +1 -1
  53. package/dist/features/post-game-stats/post-game-stats-styled.js.map +1 -1
  54. package/dist/features/post-game-stats/streak/streak-styled.js +18 -17
  55. package/dist/features/post-game-stats/streak/streak-styled.js.map +1 -1
  56. package/dist/features/trial-session/comps/trial-circle-game/constants.js.map +1 -1
  57. package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js.map +1 -1
  58. package/dist/index.d.ts +72 -109
  59. package/dist/index.js +203 -208
  60. package/package.json +1 -1
  61. package/dist/features/circle-games/games/web-view/enums/project-ids-enum.js +0 -14
  62. package/dist/features/circle-games/games/web-view/enums/project-ids-enum.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-mode-reveal.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,53 @@
1
+ import t from "styled-components";
2
+ import o from "../../../../ui/layout/flex-view.js";
3
+ import n from "../../../../ui/text/text.js";
4
+ import { GAME_LAUNCHER_SIZE as i } from "./constants.js";
5
+ const p = t.div`
6
+ position: relative;
7
+ display: flex;
8
+ justify-content: center;
9
+ `, d = t(o)`
10
+ position: absolute;
11
+ top: -28px;
12
+ display: flex;
13
+ justify-content: center;
14
+ `, f = t.div`
15
+ position: relative;
16
+ border-radius: ${i}px;
17
+ border: ${({ $strokeColor: e }) => e ? `2px solid ${e}` : "0 solid transparent"};
18
+ height: ${i}px;
19
+ width: ${i}px;
20
+ display: flex;
21
+ flex-direction: column;
22
+ justify-content: center;
23
+ align-items: center;
24
+ overflow: hidden;
25
+ align-self: center;
26
+ backdrop-filter: blur(0px);
27
+ flex-shrink: 0;
28
+ `, c = t(n)`
29
+ transition: color 0.5s ease-in-out;
30
+
31
+ ${({ $isAnimated: e }) => e && `
32
+ animation: zoomInOut 1s ease-in-out infinite;
33
+ `}
34
+
35
+ @keyframes zoomInOut {
36
+ 0% {
37
+ transform: scale(1);
38
+ }
39
+ 50% {
40
+ transform: scale(1.05);
41
+ }
42
+ 100% {
43
+ transform: scale(1);
44
+ }
45
+ }
46
+ `;
47
+ export {
48
+ c as AnimatedLabel,
49
+ f as CardContainer,
50
+ p as CardWrapper,
51
+ d as ExtendedFlexView
52
+ };
53
+ //# sourceMappingURL=card-container-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-container-styled.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/card-container/card-container-styled.tsx"],"sourcesContent":["import type { TColorNames } from '../../../../ui/types';\n\nimport styled from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport { GAME_LAUNCHER_SIZE } from './constants';\n\nexport const CardWrapper = styled.div`\n position: relative;\n display: flex;\n justify-content: center;\n`;\n\nexport const ExtendedFlexView = styled(FlexView)`\n position: absolute;\n top: -28px;\n display: flex;\n justify-content: center;\n`;\n\nexport const CardContainer = styled.div<{ $strokeColor?: TColorNames }>`\n position: relative;\n border-radius: ${GAME_LAUNCHER_SIZE}px;\n border: ${({ $strokeColor }) =>\n $strokeColor ? `2px solid ${$strokeColor}` : '0 solid transparent'};\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n align-self: center;\n backdrop-filter: blur(0px);\n flex-shrink: 0;\n`;\n\nexport const AnimatedLabel = styled(Text)<{ $isAnimated: boolean }>`\n transition: color 0.5s ease-in-out;\n\n ${({ $isAnimated }) =>\n $isAnimated &&\n `\n animation: zoomInOut 1s ease-in-out infinite;\n `}\n\n @keyframes zoomInOut {\n 0% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n }\n`;\n"],"names":["CardWrapper","styled","ExtendedFlexView","FlexView","CardContainer","GAME_LAUNCHER_SIZE","$strokeColor","AnimatedLabel","Text","$isAnimated"],"mappings":";;;;AAQO,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA,GAMrBC,IAAmBD,EAAOE,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,GAOlCC,IAAgBH,EAAO;AAAA;AAAA,mBAEjBI,CAAkB;AAAA,YACzB,CAAC,EAAE,cAAAC,EAAa,MACxBA,IAAe,aAAaA,CAAY,KAAK,qBAAqB;AAAA,YAC1DD,CAAkB;AAAA,WACnBA,CAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAWhBE,IAAgBN,EAAOO,CAAI;AAAA;AAAA;AAAA,IAGpC,CAAC,EAAE,aAAAC,QACHA,KACA;AAAA;AAAA,KAEC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,24 @@
1
+ import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
+ import { memo as m, forwardRef as C } from "react";
3
+ import { CardWrapper as f, ExtendedFlexView as p, AnimatedLabel as $, CardContainer as b } from "./card-container-styled.js";
4
+ const x = (e, o) => {
5
+ const { children: n, strokeColor: a, label: t, isAnimated: i, labelRef: l, labelColor: d, ...s } = e;
6
+ return /* @__PURE__ */ c(f, { ...s, children: [
7
+ /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(
8
+ $,
9
+ {
10
+ ref: l,
11
+ $renderAs: "ac4-black",
12
+ $align: "center",
13
+ $color: d,
14
+ $isAnimated: i,
15
+ children: t
16
+ }
17
+ ) }),
18
+ /* @__PURE__ */ r(b, { ref: o, $strokeColor: a, children: n })
19
+ ] });
20
+ }, j = m(C(x));
21
+ export {
22
+ j as CardContainer
23
+ };
24
+ //# sourceMappingURL=card-container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-container.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/card-container/card-container.tsx"],"sourcesContent":["import type { ICardContainerProps } from './card-container-types';\nimport type { ForwardRefRenderFunction } from 'react';\n\nimport { forwardRef, memo } from 'react';\n\nimport * as Styled from './card-container-styled';\n\nconst Container: ForwardRefRenderFunction<HTMLDivElement, ICardContainerProps> = (props, ref) => {\n const { children, strokeColor, label, isAnimated, labelRef, labelColor, ...rest } = props;\n\n return (\n <Styled.CardWrapper {...rest}>\n <Styled.ExtendedFlexView>\n <Styled.AnimatedLabel\n ref={labelRef}\n $renderAs=\"ac4-black\"\n $align=\"center\"\n $color={labelColor}\n $isAnimated={isAnimated}\n >\n {label}\n </Styled.AnimatedLabel>\n </Styled.ExtendedFlexView>\n <Styled.CardContainer ref={ref} $strokeColor={strokeColor}>\n {children}\n </Styled.CardContainer>\n </Styled.CardWrapper>\n );\n};\n\nexport const CardContainer = memo(forwardRef(Container));\n"],"names":["Container","props","ref","children","strokeColor","label","isAnimated","labelRef","labelColor","rest","jsxs","Styled.CardWrapper","jsx","Styled.ExtendedFlexView","Styled.AnimatedLabel","Styled.CardContainer","CardContainer","memo","forwardRef"],"mappings":";;;AAOA,MAAMA,IAA2E,CAACC,GAAOC,MAAQ;AACzF,QAAA,EAAE,UAAAC,GAAU,aAAAC,GAAa,OAAAC,GAAO,YAAAC,GAAY,UAAAC,GAAU,YAAAC,GAAY,GAAGC,EAAS,IAAAR;AAEpF,SACG,gBAAAS,EAAAC,GAAA,EAAoB,GAAGF,GACtB,UAAA;AAAA,IAAC,gBAAAG,EAAAC,GAAA,EACC,UAAA,gBAAAD;AAAA,MAACE;AAAAA,MAAA;AAAA,QACC,KAAKP;AAAA,QACL,WAAU;AAAA,QACV,QAAO;AAAA,QACP,QAAQC;AAAA,QACR,aAAaF;AAAA,QAEZ,UAAAD;AAAA,MAAA;AAAA,IAAA,GAEL;AAAA,sBACCU,GAAA,EAAqB,KAAAb,GAAU,cAAcE,GAC3C,UAAAD,GACH;AAAA,EACF,EAAA,CAAA;AAEJ,GAEaa,IAAgBC,EAAKC,EAAWlB,CAAS,CAAC;"}
@@ -0,0 +1,7 @@
1
+ const A = 296, _ = 400, E = window.innerHeight > 800 ? 400 : 296, L = E;
2
+ export {
3
+ L as GAME_LAUNCHER_SIZE,
4
+ _ as GAME_LAUNCHER_SIZE_LARGE,
5
+ A as GAME_LAUNCHER_SIZE_SMALL
6
+ };
7
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/card-container/constants.ts"],"sourcesContent":["export const GAME_LAUNCHER_SIZE_SMALL = 296;\nexport const GAME_LAUNCHER_SIZE_LARGE = 400;\n\nconst CARD_CONTAINER_SIZE =\n window.innerHeight > 800 ? GAME_LAUNCHER_SIZE_LARGE : GAME_LAUNCHER_SIZE_SMALL;\n\nexport const GAME_LAUNCHER_SIZE = CARD_CONTAINER_SIZE;\n"],"names":["GAME_LAUNCHER_SIZE_SMALL","GAME_LAUNCHER_SIZE_LARGE","CARD_CONTAINER_SIZE","GAME_LAUNCHER_SIZE"],"mappings":"AAAO,MAAMA,IAA2B,KAC3BC,IAA2B,KAElCC,IACJ,OAAO,cAAc,MAAM,MAA2B,KAE3CC,IAAqBD;"}
@@ -1,11 +1,11 @@
1
- const _ = window.innerHeight > 800 ? 400 : 296, E = _, t = E * 17.5 / 100, A = 5, n = Math.ceil(E * 87.5 / 100), o = E / 2 * (37.5 / 100), R = E / 2 * (12.5 / 100), S = Math.PI / 180, c = Math.sin(30 * S) * (E / 2 - A);
1
+ import { GAME_LAUNCHER_SIZE as E } from "../card-container/constants.js";
2
+ const t = E * 17.5 / 100, _ = 5, o = Math.ceil(E * 87.5 / 100), R = E / 2 * (37.5 / 100), T = E / 2 * (12.5 / 100), S = Math.PI / 180, c = Math.sin(30 * S) * (E / 2 - _);
2
3
  export {
3
- n as ASSET_CONTAINER_SIZE,
4
- o as ASSET_OFFSET_X,
5
- R as ASSET_OFFSET_Y,
4
+ o as ASSET_CONTAINER_SIZE,
5
+ R as ASSET_OFFSET_X,
6
+ T as ASSET_OFFSET_Y,
6
7
  t as GAME_LAUNCHER_ASSET_PADDING,
7
- A as GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH,
8
- E as GAME_LAUNCHER_SIZE,
8
+ _ as GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH,
9
9
  c as delta
10
10
  };
11
11
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/segmented-game-card/constants.ts"],"sourcesContent":["const CARD_CONTAINER_SIZE = window.innerHeight > 800 ? 400 : 296;\n\nexport const GAME_LAUNCHER_SIZE = CARD_CONTAINER_SIZE;\nexport const GAME_LAUNCHER_ASSET_PADDING = (GAME_LAUNCHER_SIZE * 17.5) / 100;\n\n// to show the stroke of the card below points, this width needs to be reduced\nexport const GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH = 5;\n\n// asset container needs to be 350/400 % of GAME LAUNCHER SIZE\nexport const ASSET_CONTAINER_SIZE = Math.ceil((GAME_LAUNCHER_SIZE * 87.5) / 100);\n\n// ASSET x-axis OFFSET needs to be 37.5 % of 1/2 of GAME LAUNCHER SIZE\nexport const ASSET_OFFSET_X = (GAME_LAUNCHER_SIZE / 2) * (37.5 / 100);\n\n// ASSET y-axis OFFSET needs to be 37.5 % of 1/2 of GAME LAUNCHER SIZE\nexport const ASSET_OFFSET_Y = (GAME_LAUNCHER_SIZE / 2) * (12.5 / 100);\n\nconst RADIAN = Math.PI / 180;\n// const BORDER_WIDTH = 2;\n\n// delta created by a segment from x axis is 30deg\n// sin30 = delta/(CARD_SIZE/2)\nexport const delta =\n Math.sin(30 * RADIAN) * (GAME_LAUNCHER_SIZE / 2 - GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH);\n"],"names":["CARD_CONTAINER_SIZE","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_ASSET_PADDING","GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH","ASSET_CONTAINER_SIZE","ASSET_OFFSET_X","ASSET_OFFSET_Y","RADIAN","delta"],"mappings":"AAAA,MAAMA,IAAsB,OAAO,cAAc,MAAM,MAAM,KAEhDC,IAAqBD,GACrBE,IAA+BD,IAAqB,OAAQ,KAG5DE,IAA2C,GAG3CC,IAAuB,KAAK,KAAMH,IAAqB,OAAQ,GAAG,GAGlEI,IAAkBJ,IAAqB,KAAM,OAAO,MAGpDK,IAAkBL,IAAqB,KAAM,OAAO,MAE3DM,IAAS,KAAK,KAAK,KAKZC,IACX,KAAK,IAAI,KAAKD,CAAM,KAAKN,IAAqB,IAAIE;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/segmented-game-card/constants.ts"],"sourcesContent":["import { GAME_LAUNCHER_SIZE } from '../card-container/constants';\n\nexport const GAME_LAUNCHER_ASSET_PADDING = (GAME_LAUNCHER_SIZE * 17.5) / 100;\n\n// to show the stroke of the card below points, this width needs to be reduced\nexport const GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH = 5;\n\n// asset container needs to be 350/400 % of GAME LAUNCHER SIZE\nexport const ASSET_CONTAINER_SIZE = Math.ceil((GAME_LAUNCHER_SIZE * 87.5) / 100);\n\n// ASSET x-axis OFFSET needs to be 37.5 % of 1/2 of GAME LAUNCHER SIZE\nexport const ASSET_OFFSET_X = (GAME_LAUNCHER_SIZE / 2) * (37.5 / 100);\n\n// ASSET y-axis OFFSET needs to be 37.5 % of 1/2 of GAME LAUNCHER SIZE\nexport const ASSET_OFFSET_Y = (GAME_LAUNCHER_SIZE / 2) * (12.5 / 100);\n\nconst RADIAN = Math.PI / 180;\n// const BORDER_WIDTH = 2;\n\n// delta created by a segment from x axis is 30deg\n// sin30 = delta/(CARD_SIZE/2)\nexport const delta =\n Math.sin(30 * RADIAN) * (GAME_LAUNCHER_SIZE / 2 - GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH);\n"],"names":["GAME_LAUNCHER_ASSET_PADDING","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH","ASSET_CONTAINER_SIZE","ASSET_OFFSET_X","ASSET_OFFSET_Y","RADIAN","delta"],"mappings":";AAEa,MAAAA,IAA+BC,IAAqB,OAAQ,KAG5DC,IAA2C,GAG3CC,IAAuB,KAAK,KAAMF,IAAqB,OAAQ,GAAG,GAGlEG,IAAkBH,IAAqB,KAAM,OAAO,MAGpDI,IAAkBJ,IAAqB,KAAM,OAAO,MAE3DK,IAAS,KAAK,KAAK,KAKZC,IACX,KAAK,IAAI,KAAKD,CAAM,KAAKL,IAAqB,IAAIC;"}
@@ -1,30 +1,11 @@
1
1
  import o from "styled-components";
2
- import d from "../../../../ui/layout/flex-view.js";
3
- import p from "../../../../ui/text/text.js";
4
- import { GAME_LAUNCHER_SIZE as e, GAME_LAUNCHER_ASSET_PADDING as a, delta as l, ASSET_OFFSET_X as n, ASSET_OFFSET_Y as r, ASSET_CONTAINER_SIZE as i } from "./constants.js";
2
+ import { GAME_LAUNCHER_SIZE as e } from "../card-container/constants.js";
3
+ import { GAME_LAUNCHER_ASSET_PADDING as d, delta as p, ASSET_OFFSET_X as r, ASSET_OFFSET_Y as n, ASSET_CONTAINER_SIZE as i } from "./constants.js";
5
4
  const g = o.div`
6
- position: relative;
7
- display: flex;
8
- justify-content: center;
9
- `, h = o.div`
10
- position: relative;
11
- border-radius: ${e}px;
12
- height: ${e}px;
13
- width: ${e}px;
14
- display: flex;
15
- flex-direction: column;
16
- justify-content: center;
17
- align-items: center;
18
- overflow: hidden;
19
- align-self: center;
20
- backdrop-filter: blur(0px);
21
- -webkit-backdrop-filter: blur(0px);
22
- flex-shrink: 0;
23
- `, b = o.div`
24
5
  position: absolute;
25
6
  z-index: 5;
26
- height: ${e + a}px;
27
- width: ${e + a}px;
7
+ height: ${e + d}px;
8
+ width: ${e + d}px;
28
9
  pointer-events: none;
29
10
  `, s = o.div`
30
11
  height: ${e}px;
@@ -37,24 +18,24 @@ const g = o.div`
37
18
  border: 2px solid ${({ theme: t }) => t.colors.WHITE};
38
19
  backdrop-filter: blur(0px);
39
20
  -webkit-backdrop-filter: blur(0px);
40
- `, u = o(s)`
21
+ `, h = o(s)`
41
22
  transform-origin: bottom right;
42
23
  transform: rotate(-32deg) skew(-32deg);
43
24
  translate: -${e / 2}px -${e / 2}px;
44
25
  border-right-width: 1px;
45
- `, $ = o(s)`
26
+ `, c = o(s)`
46
27
  transform-origin: bottom left;
47
28
  transform: rotate(32deg) skew(32deg);
48
29
  translate: ${e / 2}px -${e / 2}px;
49
30
  border-left-width: 1px;
50
- `, w = o(s)`
31
+ `, f = o(s)`
51
32
  height: ${e / 2}px;
52
33
  width: ${e}px;
53
34
  bottom: 0;
54
35
  left: 0;
55
36
  z-index: 1;
56
37
  border: none;
57
- `, S = o.div`
38
+ `, m = o.div`
58
39
  height: inherit;
59
40
  width: inherit;
60
41
  overflow: hidden;
@@ -62,16 +43,16 @@ const g = o.div`
62
43
  display: flex;
63
44
  justify-content: center;
64
45
  align-items: center;
65
- `, k = o.div`
46
+ `, b = o.div`
66
47
  flex: 1;
67
48
  background: transparent;
68
- height: ${e / 2 + l}px;
49
+ height: ${e / 2 + p}px;
69
50
  width: ${e}px;
70
51
  position: absolute;
71
52
  display: flex;
72
53
  justify-content: center;
73
54
  align-items: center;
74
- bottom: ${({ $segmentType: t = "bottom" }) => t === "bottom" ? "unset" : `-${l}px`};
55
+ bottom: ${({ $segmentType: t = "bottom" }) => t === "bottom" ? "unset" : `-${p}px`};
75
56
  transform-origin: ${({ $segmentType: t }) => {
76
57
  switch (t) {
77
58
  case "left":
@@ -92,11 +73,11 @@ const g = o.div`
92
73
  return "none";
93
74
  }
94
75
  }};
95
- `, v = o.div`
76
+ `, $ = o.div`
96
77
  position: absolute;
97
- right: ${({ $segmentType: t }) => t === "left" ? `-${n}px` : "unset"};
98
- left: ${({ $segmentType: t }) => t === "right" ? `-${n}px` : "unset"};
99
- bottom: ${({ $segmentType: t }) => t === "bottom" ? `-${r}px` : `-${r}px`};
78
+ right: ${({ $segmentType: t }) => t === "left" ? `-${r}px` : "unset"};
79
+ left: ${({ $segmentType: t }) => t === "right" ? `-${r}px` : "unset"};
80
+ bottom: ${({ $segmentType: t }) => t === "bottom" ? `-${n}px` : `-${n}px`};
100
81
  height: ${i}px;
101
82
  width: ${i}px;
102
83
  display: flex;
@@ -109,11 +90,11 @@ const g = o.div`
109
90
  background: ${({ theme: t }) => t.colors.WHITE_T_15};
110
91
  cursor: pointer;
111
92
  }
112
- `, E = o.div`
93
+ `, u = o.div`
113
94
  position: absolute;
114
- right: ${({ $segmentType: t }) => t === "left" ? `-${n}px` : "unset"};
115
- left: ${({ $segmentType: t }) => t === "right" ? `-${n}px` : "unset"};
116
- bottom: ${({ $segmentType: t }) => t === "bottom" ? `-${r}px` : `-${r}px`};
95
+ right: ${({ $segmentType: t }) => t === "left" ? `-${r}px` : "unset"};
96
+ left: ${({ $segmentType: t }) => t === "right" ? `-${r}px` : "unset"};
97
+ bottom: ${({ $segmentType: t }) => t === "bottom" ? `-${n}px` : `-${n}px`};
117
98
  height: ${i}px;
118
99
  width: ${i}px;
119
100
  z-index: 5;
@@ -123,44 +104,19 @@ const g = o.div`
123
104
  display: flex;
124
105
  align-items: center;
125
106
  justify-content: center;
126
- `, y = o.div`
107
+ `, w = o.div`
127
108
  position: absolute;
128
109
  z-index: 6;
129
- `, _ = o(d)`
130
- z-index: 1;
131
- top: -28px;
132
- `, A = o(p)`
133
- transition: color 0.5s ease-in-out;
134
-
135
- ${({ isAnimated: t }) => t && `
136
- animation: zoomInOut 1s ease-in-out infinite;
137
- `}
138
-
139
- @keyframes zoomInOut {
140
- 0% {
141
- transform: scale(1);
142
- }
143
- 50% {
144
- transform: scale(1.05);
145
- }
146
- 100% {
147
- transform: scale(1);
148
- }
149
- }
150
110
  `;
151
111
  export {
152
- A as AnimatedLabel,
153
- b as CircularProgressLottieContainer,
154
- _ as ExtendedFlexView,
155
- y as IconWrapper,
156
- v as SegmentAssetContainer,
157
- w as SegmentBottom,
158
- S as SegmentContainer,
159
- k as SegmentContentContainer,
160
- u as SegmentLeft,
161
- E as SegmentOverlay,
162
- $ as SegmentRight,
163
- g as SegmentedCard,
164
- h as SegmentedCardWrapper
112
+ g as CircularProgressLottieContainer,
113
+ w as IconWrapper,
114
+ $ as SegmentAssetContainer,
115
+ f as SegmentBottom,
116
+ m as SegmentContainer,
117
+ b as SegmentContentContainer,
118
+ h as SegmentLeft,
119
+ u as SegmentOverlay,
120
+ c as SegmentRight
165
121
  };
166
122
  //# sourceMappingURL=segmented-game-card-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"segmented-game-card-styled.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.tsx"],"sourcesContent":["import type { TSegment } from './segmented-game-card-types';\n\nimport styled from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport {\n GAME_LAUNCHER_SIZE,\n ASSET_CONTAINER_SIZE,\n delta,\n ASSET_OFFSET_X,\n ASSET_OFFSET_Y,\n GAME_LAUNCHER_ASSET_PADDING,\n} from './constants';\n\nexport const SegmentedCard = styled.div`\n position: relative;\n display: flex;\n justify-content: center;\n`;\n\nexport const SegmentedCardWrapper = styled.div`\n position: relative;\n border-radius: ${GAME_LAUNCHER_SIZE}px;\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n align-self: center;\n backdrop-filter: blur(0px);\n -webkit-backdrop-filter: blur(0px);\n flex-shrink: 0;\n`;\n\nexport const CircularProgressLottieContainer = styled.div`\n position: absolute;\n z-index: 5;\n height: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n width: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n pointer-events: none;\n`;\n\n// might be needed later-----\n// export const SegmentDevider = styled.div<{ angle: number }>`\n// width: ${GAME_LAUNCHER_SIZE / 2}px;\n// height: 2px;\n// position: absolute;\n// background: #fff;\n// transform-origin: left;\n// transform: ${({ angle }) => `rotate(${angle}deg)`};\n// `;\n\nconst Segment = styled.div`\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n overflow: hidden;\n display: flex;\n position: absolute;\n background: ${({ theme }) => theme.colors.BLACK_1};\n z-index: 2;\n border: 2px solid ${({ theme }) => theme.colors.WHITE};\n backdrop-filter: blur(0px);\n -webkit-backdrop-filter: blur(0px);\n`;\n\nexport const SegmentLeft = styled(Segment)<{\n $angle?: number;\n}>`\n transform-origin: bottom right;\n transform: rotate(-32deg) skew(-32deg);\n translate: -${GAME_LAUNCHER_SIZE / 2}px -${GAME_LAUNCHER_SIZE / 2}px;\n border-right-width: 1px;\n`;\n\nexport const SegmentRight = styled(Segment)<{\n $angle?: number;\n}>`\n transform-origin: bottom left;\n transform: rotate(32deg) skew(32deg);\n translate: ${GAME_LAUNCHER_SIZE / 2}px -${GAME_LAUNCHER_SIZE / 2}px;\n border-left-width: 1px;\n`;\n\nexport const SegmentBottom = styled(Segment)<{\n $angle?: number;\n}>`\n height: ${GAME_LAUNCHER_SIZE / 2}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n bottom: 0;\n left: 0;\n z-index: 1;\n border: none;\n`;\n\nexport const SegmentContainer = styled.div`\n height: inherit;\n width: inherit;\n overflow: hidden;\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nexport const SegmentContentContainer = styled.div<{ $segmentType?: TSegment }>`\n flex: 1;\n background: transparent;\n height: ${GAME_LAUNCHER_SIZE / 2 + delta}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n bottom: ${({ $segmentType = 'bottom' }) => ($segmentType === 'bottom' ? 'unset' : `-${delta}px`)};\n transform-origin: ${({ $segmentType }) => {\n switch ($segmentType) {\n case 'left':\n return 'bottom right';\n case 'right':\n return 'bottom left';\n default:\n return 'unset';\n }\n }};\n transform: ${({ $segmentType = 'bottom' }) => {\n switch ($segmentType) {\n case 'left':\n return 'skew(32deg) rotate(32deg)';\n case 'right':\n return 'skew(-32deg) rotate(-32deg)';\n default:\n return 'none';\n }\n }};\n`;\n\nexport const SegmentAssetContainer = styled.div<{\n $segmentType?: TSegment;\n}>`\n position: absolute;\n right: ${({ $segmentType }) => ($segmentType === 'left' ? `-${ASSET_OFFSET_X}px` : 'unset')};\n left: ${({ $segmentType }) => ($segmentType === 'right' ? `-${ASSET_OFFSET_X}px` : 'unset')};\n bottom: ${({ $segmentType }) =>\n $segmentType === 'bottom' ? `-${ASSET_OFFSET_Y}px` : `-${ASSET_OFFSET_Y}px`};\n height: ${ASSET_CONTAINER_SIZE}px;\n width: ${ASSET_CONTAINER_SIZE}px;\n display: flex;\n align-items: center;\n overflow: hidden;\n background-color: transparent;\n z-index: 1;\n flex-shrink: 0;\n &:hover {\n background: ${({ theme }) => theme.colors.WHITE_T_15};\n cursor: pointer;\n }\n`;\n\nexport const SegmentOverlay = styled.div<{ $segmentType?: TSegment }>`\n position: absolute;\n right: ${({ $segmentType }) => ($segmentType === 'left' ? `-${ASSET_OFFSET_X}px` : 'unset')};\n left: ${({ $segmentType }) => ($segmentType === 'right' ? `-${ASSET_OFFSET_X}px` : 'unset')};\n bottom: ${({ $segmentType }) =>\n $segmentType === 'bottom' ? `-${ASSET_OFFSET_Y}px` : `-${ASSET_OFFSET_Y}px`};\n height: ${ASSET_CONTAINER_SIZE}px;\n width: ${ASSET_CONTAINER_SIZE}px;\n z-index: 5;\n backdrop-filter: blur(16px);\n -webkit-backdrop-filter: blur(16px);\n /* pointer-events: none; */\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const IconWrapper = styled.div`\n position: absolute;\n z-index: 6;\n`;\n\nexport const ExtendedFlexView = styled(FlexView)`\n z-index: 1;\n top: -28px;\n`;\n\nexport const AnimatedLabel = styled(Text)<{ isAnimated: boolean }>`\n transition: color 0.5s ease-in-out;\n\n ${({ isAnimated }) =>\n isAnimated &&\n `\n animation: zoomInOut 1s ease-in-out infinite;\n `}\n\n @keyframes zoomInOut {\n 0% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n }\n`;\n"],"names":["SegmentedCard","styled","SegmentedCardWrapper","GAME_LAUNCHER_SIZE","CircularProgressLottieContainer","GAME_LAUNCHER_ASSET_PADDING","Segment","theme","SegmentLeft","SegmentRight","SegmentBottom","SegmentContainer","SegmentContentContainer","delta","$segmentType","SegmentAssetContainer","ASSET_OFFSET_X","ASSET_OFFSET_Y","ASSET_CONTAINER_SIZE","SegmentOverlay","IconWrapper","ExtendedFlexView","FlexView","AnimatedLabel","Text","isAnimated"],"mappings":";;;;AAeO,MAAMA,IAAgBC,EAAO;AAAA;AAAA;AAAA;AAAA,GAMvBC,IAAuBD,EAAO;AAAA;AAAA,mBAExBE,CAAkB;AAAA,YACzBA,CAAkB;AAAA,WACnBA,CAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAYhBC,IAAkCH,EAAO;AAAA;AAAA;AAAA,YAG1CE,IAAqBE,CAA2B;AAAA,WACjDF,IAAqBE,CAA2B;AAAA;AAAA,GAcrDC,IAAUL,EAAO;AAAA,YACXE,CAAkB;AAAA,WACnBA,CAAkB;AAAA;AAAA;AAAA;AAAA,gBAIb,CAAC,EAAE,OAAAI,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA,sBAE7B,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA,GAK1CC,IAAcP,EAAOK,CAAO;AAAA;AAAA;AAAA,gBAKzBH,IAAqB,CAAC,OAAOA,IAAqB,CAAC;AAAA;AAAA,GAItDM,IAAeR,EAAOK,CAAO;AAAA;AAAA;A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K3CY,IAAiBlB,EAAO;AAAA;AAAA,WAE1B,CAAC,EAAE,cAAAa,EAAa,MAAOA,MAAiB,SAAS,IAAIE,CAAc,OAAO,OAAQ;AAAA,UACnF,CAAC,EAAE,cAAAF,EAAa,MAAOA,MAAiB,UAAU,IAAIE,CAAc,OAAO,OAAQ;AAAA,YACjF,CAAC,EAAE,cAAAF,EAAA,MACXA,MAAiB,WAAW,IAAIG,CAAc,OAAO,IAAIA,CAAc,IAAI;AAAA,YACnEC,CAAoB;AAAA,WACrBA,CAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUlBE,IAAcnB,EAAO;AAAA;AAAA;AAAA,GAKrBoB,IAAmBpB,EAAOqB,CAAQ;AAAA;AAAA;AAAA,GAKlCC,IAAgBtB,EAAOuB,CAAI;AAAA;AAAA;AAAA,IAGpC,CAAC,EAAE,YAAAC,QACHA,KACA;AAAA;AAAA,KAEC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"segmented-game-card-styled.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.tsx"],"sourcesContent":["import type { TSegment } from './segmented-game-card-types';\n\nimport styled from 'styled-components';\n\nimport { GAME_LAUNCHER_SIZE } from '../card-container/constants';\nimport {\n ASSET_CONTAINER_SIZE,\n delta,\n ASSET_OFFSET_X,\n ASSET_OFFSET_Y,\n GAME_LAUNCHER_ASSET_PADDING,\n} from './constants';\n\nexport const CircularProgressLottieContainer = styled.div`\n position: absolute;\n z-index: 5;\n height: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n width: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n pointer-events: none;\n`;\n\n// might be needed later-----\n// export const SegmentDevider = styled.div<{ angle: number }>`\n// width: ${GAME_LAUNCHER_SIZE / 2}px;\n// height: 2px;\n// position: absolute;\n// background: #fff;\n// transform-origin: left;\n// transform: ${({ angle }) => `rotate(${angle}deg)`};\n// `;\n\nconst Segment = styled.div`\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n overflow: hidden;\n display: flex;\n position: absolute;\n background: ${({ theme }) => theme.colors.BLACK_1};\n z-index: 2;\n border: 2px solid ${({ theme }) => theme.colors.WHITE};\n backdrop-filter: blur(0px);\n -webkit-backdrop-filter: blur(0px);\n`;\n\nexport const SegmentLeft = styled(Segment)<{\n $angle?: number;\n}>`\n transform-origin: bottom right;\n transform: rotate(-32deg) skew(-32deg);\n translate: -${GAME_LAUNCHER_SIZE / 2}px -${GAME_LAUNCHER_SIZE / 2}px;\n border-right-width: 1px;\n`;\n\nexport const SegmentRight = styled(Segment)<{\n $angle?: number;\n}>`\n transform-origin: bottom left;\n transform: rotate(32deg) skew(32deg);\n translate: ${GAME_LAUNCHER_SIZE / 2}px -${GAME_LAUNCHER_SIZE / 2}px;\n border-left-width: 1px;\n`;\n\nexport const SegmentBottom = styled(Segment)<{\n $angle?: number;\n}>`\n height: ${GAME_LAUNCHER_SIZE / 2}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n bottom: 0;\n left: 0;\n z-index: 1;\n border: none;\n`;\n\nexport const SegmentContainer = styled.div`\n height: inherit;\n width: inherit;\n overflow: hidden;\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nexport const SegmentContentContainer = styled.div<{ $segmentType?: TSegment }>`\n flex: 1;\n background: transparent;\n height: ${GAME_LAUNCHER_SIZE / 2 + delta}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n bottom: ${({ $segmentType = 'bottom' }) => ($segmentType === 'bottom' ? 'unset' : `-${delta}px`)};\n transform-origin: ${({ $segmentType }) => {\n switch ($segmentType) {\n case 'left':\n return 'bottom right';\n case 'right':\n return 'bottom left';\n default:\n return 'unset';\n }\n }};\n transform: ${({ $segmentType = 'bottom' }) => {\n switch ($segmentType) {\n case 'left':\n return 'skew(32deg) rotate(32deg)';\n case 'right':\n return 'skew(-32deg) rotate(-32deg)';\n default:\n return 'none';\n }\n }};\n`;\n\nexport const SegmentAssetContainer = styled.div<{\n $segmentType?: TSegment;\n}>`\n position: absolute;\n right: ${({ $segmentType }) => ($segmentType === 'left' ? `-${ASSET_OFFSET_X}px` : 'unset')};\n left: ${({ $segmentType }) => ($segmentType === 'right' ? `-${ASSET_OFFSET_X}px` : 'unset')};\n bottom: ${({ $segmentType }) =>\n $segmentType === 'bottom' ? `-${ASSET_OFFSET_Y}px` : `-${ASSET_OFFSET_Y}px`};\n height: ${ASSET_CONTAINER_SIZE}px;\n width: ${ASSET_CONTAINER_SIZE}px;\n display: flex;\n align-items: center;\n overflow: hidden;\n background-color: transparent;\n z-index: 1;\n flex-shrink: 0;\n &:hover {\n background: ${({ theme }) => theme.colors.WHITE_T_15};\n cursor: pointer;\n }\n`;\n\nexport const SegmentOverlay = styled.div<{ $segmentType?: TSegment }>`\n position: absolute;\n right: ${({ $segmentType }) => ($segmentType === 'left' ? `-${ASSET_OFFSET_X}px` : 'unset')};\n left: ${({ $segmentType }) => ($segmentType === 'right' ? `-${ASSET_OFFSET_X}px` : 'unset')};\n bottom: ${({ $segmentType }) =>\n $segmentType === 'bottom' ? `-${ASSET_OFFSET_Y}px` : `-${ASSET_OFFSET_Y}px`};\n height: ${ASSET_CONTAINER_SIZE}px;\n width: ${ASSET_CONTAINER_SIZE}px;\n z-index: 5;\n backdrop-filter: blur(16px);\n -webkit-backdrop-filter: blur(16px);\n /* pointer-events: none; */\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const IconWrapper = styled.div`\n position: absolute;\n z-index: 6;\n`;\n"],"names":["CircularProgressLottieContainer","styled","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_ASSET_PADDING","Segment","theme","SegmentLeft","SegmentRight","SegmentBottom","SegmentContainer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cAAAA,IAAe,eAAe;AAC5C,UAAQA,GAAc;AAAA,IACpB,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT;AACS,aAAA;AAAA,EACX;AACF,CAAC;AAAA,GAGUC,IAAwBZ,EAAO;AAAA;AAAA,WAIjC,CAAC,EAAE,cAAAW,EAAa,MAAOA,MAAiB,SAAS,IAAIE,CAAc,OAAO,OAAQ;AAAA,UACnF,CAAC,EAAE,cAAAF,EAAa,MAAOA,MAAiB,UAAU,IAAIE,CAAc,OAAO,OAAQ;AAAA,YACjF,CAAC,EAAE,cAAAF,EAAA,MACXA,MAAiB,WAAW,IAAIG,CAAc,OAAO,IAAIA,CAAc,IAAI;AAAA,YACnEC,CAAoB;AAAA,WACrBA,CAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAQb,CAAC,EAAE,OAAAX,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA,GAK3CY,IAAiBhB,EAAO;AAAA;AAAA,WAE1B,CAAC,EAAE,cAAAW,EAAa,MAAOA,MAAiB,SAAS,IAAIE,CAAc,OAAO,OAAQ;AAAA,UACnF,CAAC,EAAE,cAAAF,EAAa,MAAOA,MAAiB,UAAU,IAAIE,CAAc,OAAO,OAAQ;AAAA,YACjF,CAAC,EAAE,cAAAF,EAAA,MACXA,MAAiB,WAAW,IAAIG,CAAc,OAAO,IAAIA,CAAc,IAAI;AAAA,YACnEC,CAAoB;AAAA,WACrBA,CAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUlBE,IAAcjB,EAAO;AAAA;AAAA;AAAA;"}
@@ -1,10 +1,11 @@
1
- import { jsxs as A, jsx as t } from "react/jsx-runtime";
2
- import R from "lottie-web";
3
- import { memo as M, forwardRef as v, useRef as f, useState as S, useCallback as u, useImperativeHandle as w, useEffect as b } from "react";
4
- import F from "../../../../../assets/line-icons/icons/check.js";
5
- import x from "../../../../../assets/lotties/circle/levelup-rings-lottie.json.js";
6
- import { fetchLottie as j } from "./fetch-lottie.js";
7
- import { SegmentedCard as D, ExtendedFlexView as G, AnimatedLabel as B, SegmentedCardWrapper as O, CircularProgressLottieContainer as q, SegmentLeft as z, SegmentRight as J, SegmentBottom as K, SegmentContainer as N, SegmentContentContainer as Q, SegmentAssetContainer as U, SegmentOverlay as X, IconWrapper as Y } from "./segmented-game-card-styled.js";
1
+ import { jsxs as R, jsx as t } from "react/jsx-runtime";
2
+ import L from "lottie-web";
3
+ import { memo as v, forwardRef as w, useRef as u, useState as S, useCallback as c, useImperativeHandle as F, useEffect as I } from "react";
4
+ import $ from "../../../../../assets/line-icons/icons/check.js";
5
+ import j from "../../../../../assets/lotties/circle/levelup-rings-lottie.json.js";
6
+ import { CardContainer as D } from "../card-container/card-container.js";
7
+ import { fetchLottie as G } from "./fetch-lottie.js";
8
+ import { CircularProgressLottieContainer as x, SegmentLeft as B, SegmentRight as O, SegmentBottom as q, SegmentContainer as z, SegmentContentContainer as J, SegmentAssetContainer as K, SegmentOverlay as N, IconWrapper as Q } from "./segmented-game-card-styled.js";
8
9
  const T = ({
9
10
  segmentType: e,
10
11
  isCompleted: i,
@@ -12,13 +13,13 @@ const T = ({
12
13
  name: m,
13
14
  onMouseEnter: s
14
15
  }) => {
15
- const c = f(null);
16
- b(() => {
16
+ const d = u(null);
17
+ I(() => {
17
18
  let r = null;
18
19
  return (async () => {
19
- const p = await j(l);
20
- r = R.loadAnimation({
21
- container: c.current,
20
+ const p = await G(l);
21
+ r = L.loadAnimation({
22
+ container: d.current,
22
23
  renderer: "canvas",
23
24
  loop: !0,
24
25
  autoplay: !0,
@@ -26,89 +27,90 @@ const T = ({
26
27
  });
27
28
  })(), () => r == null ? void 0 : r.destroy();
28
29
  }, [l]);
29
- const d = u(() => s(m), [s, m]);
30
- return /* @__PURE__ */ t(N, { children: /* @__PURE__ */ A(Q, { $segmentType: e, onMouseEnter: d, children: [
31
- /* @__PURE__ */ t(U, { ref: c, $segmentType: e }),
32
- i && /* @__PURE__ */ t(X, { $segmentType: e, children: /* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(F, { color: "#fff", height: 40, width: 40 }) }) })
30
+ const f = c(() => s(m), [s, m]);
31
+ return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ R(J, { $segmentType: e, onMouseEnter: f, children: [
32
+ /* @__PURE__ */ t(K, { ref: d, $segmentType: e }),
33
+ i && /* @__PURE__ */ t(N, { $segmentType: e, children: /* @__PURE__ */ t(Q, { children: /* @__PURE__ */ t($, { color: "#fff", height: 40, width: 40 }) }) })
33
34
  ] }) });
34
- }, Z = ({ data: e, label: i, initialValue: l = 0, value: m, maxValue: s = 1 }, c) => {
35
- const d = f(null), r = f(null), g = f(null), [p, y] = S(i), [L, E] = S(!1), [I, $] = S("WHITE_T_87"), P = p !== i, h = u((n) => {
35
+ }, U = ({ data: e, label: i, initialValue: l = 0, value: m, maxValue: s = 1 }, d) => {
36
+ const f = u(null), r = u(null), C = u(null), [p, y] = S(i), [A, b] = S(!1), [E, P] = S("WHITE_T_87"), W = p !== i, g = c((n) => {
36
37
  y(n);
37
- }, []), W = u(() => {
38
+ }, []), _ = c(() => {
38
39
  y(i);
39
- }, [i]), C = (n) => {
40
- var o, a;
41
- (a = (o = e[n]) == null ? void 0 : o.onPress) == null || a.call(o);
42
- }, _ = u((n) => {
43
- E(!0), $(n);
40
+ }, [i]), h = c(
41
+ (n) => {
42
+ var o, a;
43
+ (a = (o = e[n]) == null ? void 0 : o.onPress) == null || a.call(o);
44
+ },
45
+ [e]
46
+ ), k = c((n) => {
47
+ b(!0), P(n);
44
48
  }, []);
45
- return w(c, () => ({
49
+ return F(d, () => ({
46
50
  labelRef: r,
47
- segmentedCardWrapperRef: g,
48
- startLabelAnimation: _
49
- })), b(() => {
50
- const n = R.loadAnimation({
51
- container: d.current,
51
+ segmentedCardWrapperRef: C,
52
+ startLabelAnimation: k
53
+ })), I(() => {
54
+ const n = L.loadAnimation({
55
+ container: f.current,
52
56
  renderer: "canvas",
53
57
  autoplay: !1,
54
58
  loop: !1,
55
- animationData: x
59
+ animationData: j
56
60
  });
57
61
  if (s <= 0)
58
62
  return;
59
- const o = 92, a = o / s, k = Math.min(a * l, o), H = Math.min(a * m + 1, o);
60
- return n.playSegments([k, H], !0), () => {
63
+ const o = 92, a = o / s, H = Math.min(a * l, o), M = Math.min(a * m + 1, o);
64
+ return n.playSegments([H, M], !0), () => {
61
65
  n.destroy();
62
66
  };
63
- }, [l, m, s]), /* @__PURE__ */ A(D, { children: [
64
- /* @__PURE__ */ t(G, { $position: "absolute", children: /* @__PURE__ */ t(
65
- B,
66
- {
67
- ref: r,
68
- $renderAs: "ac3",
69
- $align: "center",
70
- $color: L ? I : P ? "WHITE_T_87" : "WHITE_T_60",
71
- isAnimated: L,
72
- children: p
73
- }
74
- ) }),
75
- /* @__PURE__ */ A(O, { ref: g, onMouseLeave: W, children: [
76
- /* @__PURE__ */ t(q, { ref: d }),
77
- /* @__PURE__ */ t(z, { onClick: () => C(0), children: /* @__PURE__ */ t(
78
- T,
79
- {
80
- segmentType: "left",
81
- card: e[0].card,
82
- name: e[0].name,
83
- isCompleted: e[0].isCompleted,
84
- onMouseEnter: h
85
- }
86
- ) }),
87
- /* @__PURE__ */ t(J, { onClick: () => C(1), children: /* @__PURE__ */ t(
88
- T,
89
- {
90
- segmentType: "right",
91
- card: e[1].card,
92
- name: e[1].name,
93
- isCompleted: e[1].isCompleted,
94
- onMouseEnter: h
95
- }
96
- ) }),
97
- /* @__PURE__ */ t(K, { onClick: () => C(2), children: /* @__PURE__ */ t(
98
- T,
99
- {
100
- segmentType: "bottom",
101
- card: e[2].card,
102
- name: e[2].name,
103
- isCompleted: e[2].isCompleted,
104
- onMouseEnter: h
105
- }
106
- ) })
107
- ] })
108
- ] });
109
- }, se = M(v(Z));
67
+ }, [l, m, s]), /* @__PURE__ */ R(
68
+ D,
69
+ {
70
+ ref: C,
71
+ labelRef: r,
72
+ label: p,
73
+ isAnimated: A,
74
+ onMouseLeave: _,
75
+ labelColor: A ? E : W ? "WHITE_T_87" : "WHITE_T_60",
76
+ children: [
77
+ /* @__PURE__ */ t(x, { ref: f }),
78
+ /* @__PURE__ */ t(B, { onClick: () => h(0), children: /* @__PURE__ */ t(
79
+ T,
80
+ {
81
+ segmentType: "left",
82
+ card: e[0].card,
83
+ name: e[0].name,
84
+ isCompleted: e[0].isCompleted,
85
+ onMouseEnter: g
86
+ }
87
+ ) }),
88
+ /* @__PURE__ */ t(O, { onClick: () => h(1), children: /* @__PURE__ */ t(
89
+ T,
90
+ {
91
+ segmentType: "right",
92
+ card: e[1].card,
93
+ name: e[1].name,
94
+ isCompleted: e[1].isCompleted,
95
+ onMouseEnter: g
96
+ }
97
+ ) }),
98
+ /* @__PURE__ */ t(q, { onClick: () => h(2), children: /* @__PURE__ */ t(
99
+ T,
100
+ {
101
+ segmentType: "bottom",
102
+ card: e[2].card,
103
+ name: e[2].name,
104
+ isCompleted: e[2].isCompleted,
105
+ onMouseEnter: g
106
+ }
107
+ ) })
108
+ ]
109
+ }
110
+ );
111
+ }, re = v(w(U));
110
112
  export {
111
113
  T as SegmentContent,
112
- se as SegmentedGameCard
114
+ re as SegmentedGameCard
113
115
  };
114
116
  //# sourceMappingURL=segmented-game-card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"segmented-game-card.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.tsx"],"sourcesContent":["import type { TColorNames } from '../../../../ui/types';\nimport type {\n IGameCardSegmentContentProps,\n ISegmentedGameCardProps,\n ISegmentedGameCardRefs,\n} from './segmented-game-card-types';\nimport type { AnimationItem } from 'lottie-web';\nimport type { FC, ForwardRefRenderFunction } from 'react';\n\nimport Lottie from 'lottie-web';\nimport {\n forwardRef,\n memo,\n useCallback,\n useEffect,\n useImperativeHandle,\n useRef,\n useState,\n} from 'react';\n\nimport CheckIcon from '../../../../../assets/line-icons/icons/check';\nimport progressRingLottie from '../../../../../assets/lotties/circle/levelup-rings-lottie.json';\nimport { fetchLottie } from './fetch-lottie';\nimport * as Styled from './segmented-game-card-styled';\n\nexport const SegmentContent: FC<IGameCardSegmentContentProps> = ({\n segmentType,\n isCompleted,\n card,\n name,\n onMouseEnter,\n}) => {\n const lottieAnimationRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n let animation: AnimationItem | null = null;\n\n const loadLottie = async () => {\n const lottie = await fetchLottie(card);\n\n animation = Lottie.loadAnimation({\n container: lottieAnimationRef.current as Element,\n renderer: 'canvas',\n loop: true,\n autoplay: true,\n animationData: lottie,\n });\n };\n\n loadLottie();\n\n return () => {\n return animation?.destroy();\n };\n }, [card]);\n\n const handleMouseEnter = useCallback(() => onMouseEnter(name), [onMouseEnter, name]);\n\n return (\n <Styled.SegmentContainer>\n <Styled.SegmentContentContainer $segmentType={segmentType} onMouseEnter={handleMouseEnter}>\n <Styled.SegmentAssetContainer ref={lottieAnimationRef} $segmentType={segmentType} />\n {isCompleted && (\n <Styled.SegmentOverlay $segmentType={segmentType}>\n <Styled.IconWrapper>\n <CheckIcon color=\"#fff\" height={40} width={40} />\n </Styled.IconWrapper>\n </Styled.SegmentOverlay>\n )}\n </Styled.SegmentContentContainer>\n </Styled.SegmentContainer>\n );\n};\n\nconst SegmentedGameCardComponent: ForwardRefRenderFunction<\n ISegmentedGameCardRefs,\n ISegmentedGameCardProps\n> = ({ data, label: gameCategoryLabel, initialValue = 0, value, maxValue = 1 }, ref) => {\n const lottieAnimationRef = useRef<HTMLDivElement>(null);\n const labelRef = useRef<HTMLDivElement>(null);\n const segmentedCardWrapperRef = useRef<HTMLDivElement>(null);\n\n const [label, setLabel] = useState<string>(gameCategoryLabel);\n const [isAnimated, setIsAnimated] = useState(false);\n const [animatedColor, setAnimatedColor] = useState<TColorNames>('WHITE_T_87');\n\n const isLabelHighlighted = label !== gameCategoryLabel;\n\n const onMouseEnter = useCallback((gameName: string) => {\n setLabel(gameName);\n }, []);\n\n const onMouseLeave = useCallback(() => {\n setLabel(gameCategoryLabel);\n }, [gameCategoryLabel]);\n\n const onSegmentPress = (index: number) => {\n data[index]?.onPress?.();\n };\n\n const startLabelAnimation = useCallback((color: TColorNames) => {\n setIsAnimated(true);\n setAnimatedColor(color);\n }, []);\n\n useImperativeHandle(ref, () => ({\n labelRef,\n segmentedCardWrapperRef,\n startLabelAnimation,\n }));\n\n useEffect(() => {\n const animation = Lottie.loadAnimation({\n container: lottieAnimationRef.current as Element,\n renderer: 'canvas',\n autoplay: false,\n loop: false,\n animationData: progressRingLottie,\n });\n\n // handle progress lottie\n // total frames in 100% progress are 90 frames\n if (maxValue <= 0) {\n return;\n }\n\n const totalFrames = 92;\n const framesPerValue = totalFrames / maxValue;\n\n const initialFrameToPlay = Math.min(framesPerValue * initialValue, totalFrames);\n const finalFrameToPlay = Math.min(framesPerValue * value + 1, totalFrames);\n\n animation.playSegments([initialFrameToPlay, finalFrameToPlay], true);\n\n return () => {\n animation.destroy();\n };\n }, [initialValue, value, maxValue]);\n\n return (\n <Styled.SegmentedCard>\n <Styled.ExtendedFlexView $position=\"absolute\">\n <Styled.AnimatedLabel\n ref={labelRef}\n $renderAs=\"ac3\"\n $align=\"center\"\n $color={isAnimated ? animatedColor : isLabelHighlighted ? 'WHITE_T_87' : 'WHITE_T_60'}\n isAnimated={isAnimated}\n >\n {label}\n </Styled.AnimatedLabel>\n </Styled.ExtendedFlexView>\n <Styled.SegmentedCardWrapper ref={segmentedCardWrapperRef} onMouseLeave={onMouseLeave}>\n <Styled.CircularProgressLottieContainer ref={lottieAnimationRef} />\n {/* left segment */}\n <Styled.SegmentLeft onClick={() => onSegmentPress(0)}>\n <SegmentContent\n segmentType={'left'}\n card={data[0]!.card}\n name={data[0]!.name}\n isCompleted={data[0]!.isCompleted}\n onMouseEnter={onMouseEnter}\n />\n </Styled.SegmentLeft>\n\n {/* right segment */}\n <Styled.SegmentRight onClick={() => onSegmentPress(1)}>\n <SegmentContent\n segmentType={'right'}\n card={data[1]!.card}\n name={data[1]!.name}\n isCompleted={data[1]!.isCompleted}\n onMouseEnter={onMouseEnter}\n />\n </Styled.SegmentRight>\n\n {/* bottom segment */}\n <Styled.SegmentBottom onClick={() => onSegmentPress(2)}>\n <SegmentContent\n segmentType={'bottom'}\n card={data[2]!.card}\n name={data[2]!.name}\n isCompleted={data[2]!.isCompleted}\n onMouseEnter={onMouseEnter}\n />\n </Styled.SegmentBottom>\n </Styled.SegmentedCardWrapper>\n </Styled.SegmentedCard>\n );\n};\n\nexport const SegmentedGameCard = memo(forwardRef(SegmentedGameCardComponent));\n"],"names":["SegmentContent","segmentType","isCompleted","card","name","onMouseEnter","lottieAnimationRef","useRef","useEffect","animation","lottie","fetchLottie","Lottie","handleMouseEnter","useCallback","jsx","Styled.SegmentContainer","jsxs","Styled.SegmentContentContainer","Styled.SegmentAssetContainer","Styled.SegmentOverlay","Styled.IconWrapper","CheckIcon","SegmentedGameCardComponent","data","gameCategoryLabel","initialValue","value","maxValue","ref","labelRef","segmentedCardWrapperRef","label","setLabel","useState","isAnimated","setIsAnimated","animatedColor","setAnimatedColor","isLabelHighlighted","gameName","onMouseLeave","onSegmentPress","index","_b","_a","startLabelAnimation","color","useImperativeHandle","progressRingLottie","totalFrames","framesPerValue","initialFrameToPlay","finalFrameToPlay","Styled.SegmentedCard","Styled.ExtendedFlexView","Styled.AnimatedLabel","Styled.SegmentedCardWrapper","Styled.CircularProgressLottieContainer","Styled.SegmentLeft","Styled.SegmentRight","Styled.SegmentBottom","SegmentedGameCard","memo","forwardRef"],"mappings":";;;;;;;AAyBO,MAAMA,IAAmD,CAAC;AAAA,EAC/D,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AACF,MAAM;AACE,QAAAC,IAAqBC,EAAuB,IAAI;AAEtD,EAAAC,EAAU,MAAM;AACd,QAAIC,IAAkC;AAc3B,YAZQ,YAAY;AACvB,YAAAC,IAAS,MAAMC,EAAY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AAA,EAA4B,KAAK1B,GAAyB,cAAAU,GACzD,UAAA;AAAA,MAAA,gBAAA1B,EAAC2C,GAAA,EAAuC,KAAKpD,EAAoB,CAAA;AAAA,MAEjE,gBAAAS,EAAC4C,GAAA,EAAmB,SAAS,MAAMjB,EAAe,CAAC,GACjD,UAAA,gBAAA3B;AAAA,QAACf;AAAA,QAAA;AAAA,UACC,aAAa;AAAA,UACb,MAAMwB,EAAK,CAAC,EAAG;AAAA,UACf,MAAMA,EAAK,CAAC,EAAG;AAAA,UACf,aAAaA,EAAK,CAAC,EAAG;AAAA,UACtB,cAAAnB;AAAA,QAAA;AAAA,MAAA,GAEJ;AAAA,MAGA,gBAAAU,EAAC6C,GAAA,EAAoB,SAAS,MAAMlB,EAAe,CAAC,GAClD,UAAA,gBAAA3B;AAAA,QAACf;AAAA,QAAA;AAAA,UACC,aAAa;AAAA,UACb,MAAMwB,EAAK,CAAC,EAAG;AAAA,UACf,MAAMA,EAAK,CAAC,EAAG;AAAA,UACf,aAAaA,EAAK,CAAC,EAAG;AAAA,UACtB,cAAAnB;AAAA,QAAA;AAAA,MAAA,GAEJ;AAAA,MAGA,gBAAAU,EAAC8C,GAAA,EAAqB,SAAS,MAAMnB,EAAe,CAAC,GACnD,UAAA,gBAAA3B;AAAA,QAACf;AAAA,QAAA;AAAA,UACC,aAAa;AAAA,UACb,MAAMwB,EAAK,CAAC,EAAG;AAAA,UACf,MAAMA,EAAK,CAAC,EAAG;AAAA,UACf,aAAaA,EAAK,CAAC,EAAG;AAAA,UACtB,cAAAnB;AAAA,QAAA;AAAA,MAAA,GAEJ;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ,GAEayD,KAAoBC,EAAKC,EAAWzC,CAA0B,CAAC;"}
1
+ {"version":3,"file":"segmented-game-card.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.tsx"],"sourcesContent":["import type { TColorNames } from '../../../../ui/types';\nimport type {\n IGameCardSegmentContentProps,\n ISegmentedGameCardProps,\n ISegmentedGameCardRefs,\n} from './segmented-game-card-types';\nimport type { AnimationItem } from 'lottie-web';\nimport type { FC, ForwardRefRenderFunction } from 'react';\n\nimport Lottie from 'lottie-web';\nimport {\n forwardRef,\n memo,\n useCallback,\n useEffect,\n useImperativeHandle,\n useRef,\n useState,\n} from 'react';\n\nimport CheckIcon from '../../../../../assets/line-icons/icons/check';\nimport progressRingLottie from '../../../../../assets/lotties/circle/levelup-rings-lottie.json';\nimport { CardContainer } from '../card-container/card-container';\nimport { fetchLottie } from './fetch-lottie';\nimport * as Styled from './segmented-game-card-styled';\n\nexport const SegmentContent: FC<IGameCardSegmentContentProps> = ({\n segmentType,\n isCompleted,\n card,\n name,\n onMouseEnter,\n}) => {\n const lottieAnimationRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n let animation: AnimationItem | null = null;\n\n const loadLottie = async () => {\n const lottie = await fetchLottie(card);\n\n animation = Lottie.loadAnimation({\n container: lottieAnimationRef.current as Element,\n renderer: 'canvas',\n loop: true,\n autoplay: true,\n animationData: lottie,\n });\n };\n\n loadLottie();\n\n return () => {\n return animation?.destroy();\n };\n }, [card]);\n\n const handleMouseEnter = useCallback(() => onMouseEnter(name), [onMouseEnter, name]);\n\n return (\n <Styled.SegmentContainer>\n <Styled.SegmentContentContainer $segmentType={segmentType} onMouseEnter={handleMouseEnter}>\n <Styled.SegmentAssetContainer ref={lottieAnimationRef} $segmentType={segmentType} />\n {isCompleted && (\n <Styled.SegmentOverlay $segmentType={segmentType}>\n <Styled.IconWrapper>\n <CheckIcon color=\"#fff\" height={40} width={40} />\n </Styled.IconWrapper>\n </Styled.SegmentOverlay>\n )}\n </Styled.SegmentContentContainer>\n </Styled.SegmentContainer>\n );\n};\n\nconst SegmentedGameCardComponent: ForwardRefRenderFunction<\n ISegmentedGameCardRefs,\n ISegmentedGameCardProps\n> = ({ data, label: gameCategoryLabel, initialValue = 0, value, maxValue = 1 }, ref) => {\n const lottieAnimationRef = useRef<HTMLDivElement>(null);\n const labelRef = useRef<HTMLDivElement>(null);\n const cardWrapperRef = useRef<HTMLDivElement>(null);\n\n const [label, setLabel] = useState<string>(gameCategoryLabel);\n const [isAnimated, setIsAnimated] = useState(false);\n const [animatedColor, setAnimatedColor] = useState<TColorNames>('WHITE_T_87');\n\n const isLabelHighlighted = label !== gameCategoryLabel;\n\n const onMouseEnter = useCallback((gameName: string) => {\n setLabel(gameName);\n }, []);\n\n const onMouseLeave = useCallback(() => {\n setLabel(gameCategoryLabel);\n }, [gameCategoryLabel]);\n\n const onSegmentPress = useCallback(\n (index: number) => {\n data[index]?.onPress?.();\n },\n [data],\n );\n\n const startLabelAnimation = useCallback((color: TColorNames) => {\n setIsAnimated(true);\n setAnimatedColor(color);\n }, []);\n\n useImperativeHandle(ref, () => ({\n labelRef,\n segmentedCardWrapperRef: cardWrapperRef,\n startLabelAnimation,\n }));\n\n useEffect(() => {\n const animation = Lottie.loadAnimation({\n container: lottieAnimationRef.current as Element,\n renderer: 'canvas',\n autoplay: false,\n loop: false,\n animationData: progressRingLottie,\n });\n\n // handle progress lottie\n // total frames in 100% progress are 90 frames\n if (maxValue <= 0) {\n return;\n }\n\n const totalFrames = 92;\n const framesPerValue = totalFrames / maxValue;\n\n const initialFrameToPlay = Math.min(framesPerValue * initialValue, totalFrames);\n const finalFrameToPlay = Math.min(framesPerValue * value + 1, totalFrames);\n\n animation.playSegments([initialFrameToPlay, finalFrameToPlay], true);\n\n return () => {\n animation.destroy();\n };\n }, [initialValue, value, maxValue]);\n\n return (\n <CardContainer\n ref={cardWrapperRef}\n labelRef={labelRef}\n label={label}\n isAnimated={isAnimated}\n onMouseLeave={onMouseLeave}\n labelColor={isAnimated ? animatedColor : isLabelHighlighted ? 'WHITE_T_87' : 'WHITE_T_60'}\n >\n <Styled.CircularProgressLottieContainer ref={lottieAnimationRef} />\n {/* left segment */}\n <Styled.SegmentLeft onClick={() => onSegmentPress(0)}>\n <SegmentContent\n segmentType={'left'}\n card={data[0]!.card}\n name={data[0]!.name}\n isCompleted={data[0]!.isCompleted}\n onMouseEnter={onMouseEnter}\n />\n </Styled.SegmentLeft>\n\n {/* right segment */}\n <Styled.SegmentRight onClick={() => onSegmentPress(1)}>\n <SegmentContent\n segmentType={'right'}\n card={data[1]!.card}\n name={data[1]!.name}\n isCompleted={data[1]!.isCompleted}\n onMouseEnter={onMouseEnter}\n />\n </Styled.SegmentRight>\n\n {/* bottom segment */}\n <Styled.SegmentBottom onClick={() => onSegmentPress(2)}>\n <SegmentContent\n segmentType={'bottom'}\n card={data[2]!.card}\n name={data[2]!.name}\n isCompleted={data[2]!.isCompleted}\n onMouseEnter={onMouseEnter}\n />\n </Styled.SegmentBottom>\n </CardContainer>\n );\n};\n\nexport const SegmentedGameCard = memo(forwardRef(SegmentedGameCardComponent));\n"],"names":["SegmentContent","segmentType","isCompleted","card","name","onMouseEnter","lottieAnimationRef","useRef","useEffect","animation","lottie","fetchLottie","Lottie","handleMouseEnter","useCallback","jsx","Styled.SegmentContainer","jsxs","Styled.SegmentContentContainer","Styled.SegmentAssetContainer","Styled.SegmentOverlay","Styled.IconWrapper","CheckIcon","SegmentedGameCardComponent","data","gameCategoryLabel","initialValue","value","maxValue","ref","labelRef","cardWrapperRef","label","setLabel","useState","isAnimated","setIsAnimated","animatedColor","setAnimatedColor","isLabelHighlighted","gameName","onMouseLeave","onSegmentPress","index","_b","_a","startLabelAnimation","color","useImperativeHandle","progressRingLottie","totalFrames","framesPerValue","initialFrameToPlay","finalFrameToPlay","CardContainer","Styled.CircularProgressLottieContainer","Styled.SegmentLeft","Styled.SegmentRight","Styled.SegmentBottom","SegmentedGameCard","memo","forwardRef"],"mappings":";;;;;;;;AA0BO,MAAMA,IAAmD,CAAC;AAAA,EAC/D,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC;AACF,MAAM;AACE,QAAAC,IAAqBC,EAAuB,IAAI;AAEtD,EAAAC,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