@cuemath/leap 3.4.4 → 3.4.5-akm-2

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 (101) hide show
  1. package/dist/assets/illustrations/illustrations.js +7 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +1 -0
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +31 -16
  6. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -1
  7. package/dist/features/auth/comps/tabs/tabs.js +22 -5
  8. package/dist/features/auth/comps/tabs/tabs.js.map +1 -1
  9. package/dist/features/auth/pla-signup/pla-analytics-events.js +1 -1
  10. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
  11. package/dist/features/auth/pla-signup/signup-options/signup-options.js +46 -37
  12. package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -1
  13. package/dist/features/circle-games/game-launcher/api/get-content-for-today/constants.js +1 -1
  14. package/dist/features/circle-games/game-launcher/api/get-content-for-today/constants.js.map +1 -1
  15. package/dist/features/circle-games/game-launcher/api/get-content-for-today/get-circle-home-api.js +4 -4
  16. package/dist/features/circle-games/game-launcher/api/get-content-for-today/get-circle-home-api.js.map +1 -1
  17. package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js +84 -21
  18. package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js.map +1 -1
  19. package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js +46 -73
  20. package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js.map +1 -1
  21. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-badge-style.js +20 -0
  22. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-badge-style.js.map +1 -0
  23. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-badge.js +17 -0
  24. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-badge.js.map +1 -0
  25. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-single-badge.js +20 -0
  26. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-single-badge.js.map +1 -0
  27. package/dist/features/circle-games/game-launcher/comps/circular-game-card/circular-game-card-styled.js +68 -0
  28. package/dist/features/circle-games/game-launcher/comps/circular-game-card/circular-game-card-styled.js.map +1 -0
  29. package/dist/features/circle-games/game-launcher/comps/circular-game-card/circular-game-card.js +87 -0
  30. package/dist/features/circle-games/game-launcher/comps/circular-game-card/circular-game-card.js.map +1 -0
  31. package/dist/features/circle-games/game-launcher/comps/circular-game-card/constants.js +7 -0
  32. package/dist/features/circle-games/game-launcher/comps/circular-game-card/constants.js.map +1 -0
  33. package/dist/features/circle-games/game-launcher/comps/game-card-content/constants.js +6 -0
  34. package/dist/features/circle-games/game-launcher/comps/game-card-content/constants.js.map +1 -0
  35. package/dist/features/circle-games/game-launcher/comps/game-card-content/game-card-content-styled.js +62 -0
  36. package/dist/features/circle-games/game-launcher/comps/game-card-content/game-card-content-styled.js.map +1 -0
  37. package/dist/features/circle-games/game-launcher/comps/game-card-content/game-card-content.js +13 -0
  38. package/dist/features/circle-games/game-launcher/comps/game-card-content/game-card-content.js.map +1 -0
  39. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/constants.js +2 -7
  40. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/constants.js.map +1 -1
  41. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js +80 -59
  42. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js.map +1 -1
  43. package/dist/features/circle-games/game-launcher/game-launcher-v2.js +246 -0
  44. package/dist/features/circle-games/game-launcher/game-launcher-v2.js.map +1 -0
  45. package/dist/features/circle-games/game-launcher/helpers.js +8 -0
  46. package/dist/features/circle-games/game-launcher/helpers.js.map +1 -0
  47. package/dist/features/milestone/create/milestone-create-helpers.js +6 -2
  48. package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
  49. package/dist/features/post-game-stats/accuracy/accuracy-styled.js +1 -1
  50. package/dist/features/post-game-stats/accuracy/accuracy-styled.js.map +1 -1
  51. package/dist/features/post-game-stats/clock/clock-styled.js +1 -1
  52. package/dist/features/post-game-stats/clock/clock-styled.js.map +1 -1
  53. package/dist/features/post-game-stats/points/points.js +4 -3
  54. package/dist/features/post-game-stats/points/points.js.map +1 -1
  55. package/dist/features/post-game-stats/post-game-stats-styled.js +9 -8
  56. package/dist/features/post-game-stats/post-game-stats-styled.js.map +1 -1
  57. package/dist/features/post-game-stats/post-game-stats.js +107 -105
  58. package/dist/features/post-game-stats/post-game-stats.js.map +1 -1
  59. package/dist/features/post-game-stats/score/score-styled.js +1 -1
  60. package/dist/features/post-game-stats/score/score-styled.js.map +1 -1
  61. package/dist/features/post-game-stats/streak/streak-styled.js +1 -1
  62. package/dist/features/post-game-stats/streak/streak-styled.js.map +1 -1
  63. package/dist/index.d.ts +90 -7
  64. package/dist/index.js +271 -264
  65. package/dist/index.js.map +1 -1
  66. package/dist/static/accuracy-badge.2e161f00.svg +1 -0
  67. package/dist/static/clock-badge.0adb4ba6.svg +1 -0
  68. package/dist/static/down-arrow-badge.f462f615.svg +1 -0
  69. package/dist/static/green-tick.43b94c3a.svg +1 -0
  70. package/dist/static/pill-tick.c06f606d.json +1 -0
  71. package/dist/static/points-badge.96bdecc9.svg +1 -0
  72. package/dist/static/star-badge.5450c267.svg +1 -0
  73. package/dist/static/up-arrow-badge.71fe7ad1.svg +1 -0
  74. package/dist/tsconfig.tsbuildinfo +1 -0
  75. package/package.json +1 -1
  76. package/dist/assets/line-icons/icons/carat-left.js +0 -26
  77. package/dist/assets/line-icons/icons/carat-left.js.map +0 -1
  78. package/dist/assets/line-icons/icons/carat-right.js +0 -26
  79. package/dist/assets/line-icons/icons/carat-right.js.map +0 -1
  80. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.js +0 -138
  81. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.js.map +0 -1
  82. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js +0 -105
  83. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js.map +0 -1
  84. package/dist/features/circle-games/game-launcher/game-launcher.js +0 -219
  85. package/dist/features/circle-games/game-launcher/game-launcher.js.map +0 -1
  86. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/constants.js +0 -8
  87. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/constants.js.map +0 -1
  88. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +0 -286
  89. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +0 -1
  90. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/constants.js +0 -10
  91. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/constants.js.map +0 -1
  92. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey-styled.js +0 -13
  93. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey-styled.js.map +0 -1
  94. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +0 -137
  95. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +0 -1
  96. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/constants.js +0 -14
  97. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/constants.js.map +0 -1
  98. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey-styled.js +0 -13
  99. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey-styled.js.map +0 -1
  100. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +0 -230
  101. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "3.4.4",
3
+ "version": "3.4.5-akm-2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,26 +0,0 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- const o = (e) => /* @__PURE__ */ l(
3
- "svg",
4
- {
5
- width: "28",
6
- height: "28",
7
- viewBox: "0 0 28 28",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- ...e,
11
- children: /* @__PURE__ */ l(
12
- "path",
13
- {
14
- fillRule: "evenodd",
15
- clipRule: "evenodd",
16
- d: "M8.55566 13.3004C12.4646 13.3004 15.6334 10.1316 15.6334 6.22266H17.0334C17.0334 9.7039 14.9352 12.6951 11.9343 14.0004C14.9352 15.3058 17.0334 18.297 17.0334 21.7782H15.6334C15.6334 17.8693 12.4646 14.7004 8.55566 14.7004V13.3004Z",
17
- fill: "currentColor",
18
- fillOpacity: "0.87"
19
- }
20
- )
21
- }
22
- );
23
- export {
24
- o as default
25
- };
26
- //# sourceMappingURL=carat-left.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"carat-left.js","sources":["../../../../src/assets/line-icons/icons/carat-left.tsx"],"sourcesContent":["import { type FC, type SVGProps } from 'react';\n\nconst CaratLeftIcon: FC<SVGProps<SVGSVGElement>> = props => (\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.55566 13.3004C12.4646 13.3004 15.6334 10.1316 15.6334 6.22266H17.0334C17.0334 9.7039 14.9352 12.6951 11.9343 14.0004C14.9352 15.3058 17.0334 18.297 17.0334 21.7782H15.6334C15.6334 17.8693 12.4646 14.7004 8.55566 14.7004V13.3004Z\"\n fill=\"currentColor\"\n fillOpacity=\"0.87\"\n />\n </svg>\n);\n\nexport default CaratLeftIcon;\n"],"names":["CaratLeftIcon","props","jsx"],"mappings":";AAEA,MAAMA,IAA6C,CACjDC,MAAA,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,MAAK;AAAA,IACL,OAAM;AAAA,IACL,GAAGD;AAAA,IAEJ,UAAA,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,UAAS;AAAA,QACT,GAAE;AAAA,QACF,MAAK;AAAA,QACL,aAAY;AAAA,MAAA;AAAA,IACd;AAAA,EAAA;AACF;"}
@@ -1,26 +0,0 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- const i = (e) => /* @__PURE__ */ l(
3
- "svg",
4
- {
5
- width: "28",
6
- height: "28",
7
- viewBox: "0 0 28 28",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- ...e,
11
- children: /* @__PURE__ */ l(
12
- "path",
13
- {
14
- fillRule: "evenodd",
15
- clipRule: "evenodd",
16
- d: "M19.4443 14.6996C15.5354 14.6996 12.3666 17.8684 12.3666 21.7773H10.9666C10.9666 18.2961 13.0648 15.3049 16.0657 13.9996C13.0648 12.6942 10.9666 9.70303 10.9666 6.22179L12.3666 6.22179C12.3666 10.1307 15.5354 13.2996 19.4443 13.2996V14.6996Z",
17
- fill: "currentColor",
18
- fillOpacity: "0.87"
19
- }
20
- )
21
- }
22
- );
23
- export {
24
- i as default
25
- };
26
- //# sourceMappingURL=carat-right.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"carat-right.js","sources":["../../../../src/assets/line-icons/icons/carat-right.tsx"],"sourcesContent":["import { type FC, type SVGProps } from 'react';\n\nconst CaratRightIcon: FC<SVGProps<SVGSVGElement>> = props => (\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19.4443 14.6996C15.5354 14.6996 12.3666 17.8684 12.3666 21.7773H10.9666C10.9666 18.2961 13.0648 15.3049 16.0657 13.9996C13.0648 12.6942 10.9666 9.70303 10.9666 6.22179L12.3666 6.22179C12.3666 10.1307 15.5354 13.2996 19.4443 13.2996V14.6996Z\"\n fill=\"currentColor\"\n fillOpacity=\"0.87\"\n />\n </svg>\n);\n\nexport default CaratRightIcon;\n"],"names":["CaratRightIcon","props","jsx"],"mappings":";AAEA,MAAMA,IAA8C,CAClDC,MAAA,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,MAAK;AAAA,IACL,OAAM;AAAA,IACL,GAAGD;AAAA,IAEJ,UAAA,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,UAAS;AAAA,QACT,GAAE;AAAA,QACF,MAAK;AAAA,QACL,aAAY;AAAA,MAAA;AAAA,IACd;AAAA,EAAA;AACF;"}
@@ -1,138 +0,0 @@
1
- import o from "styled-components";
2
- import { GAME_LAUNCHER_SIZE as e } from "../card-container/constants.js";
3
- import { BORDER_WIDTH as d, GAME_LAUNCHER_ASSET_PADDING as i, delta as a, ASSET_OFFSET_X as r, ASSET_OFFSET_Y as n, ASSET_CONTAINER_SIZE as s } from "./constants.js";
4
- const g = o.div`
5
- position: absolute;
6
- z-index: 5;
7
- height: ${e}px;
8
- width: ${e}px;
9
- pointer-events: none;
10
- `, f = o.div`
11
- position: relative;
12
- height: inherit;
13
- width: inherit;
14
- border-radius: 50%;
15
- border: ${d}px solid #fff;
16
- `, c = o.div`
17
- position: absolute;
18
- height: ${e + i}px;
19
- width: ${e + i}px;
20
- border-radius: 50%;
21
- top: ${-i / 2 - d}px;
22
- left: ${-i / 2 - d}px;
23
- z-index: 4;
24
- `, p = o.div`
25
- height: ${e}px;
26
- width: ${e}px;
27
- overflow: hidden;
28
- display: flex;
29
- position: absolute;
30
- background: ${({ theme: t }) => t.colors.BLACK_1};
31
- z-index: 2;
32
- border: 2px solid ${({ theme: t }) => t.colors.WHITE};
33
- backdrop-filter: blur(0px);
34
- -webkit-backdrop-filter: blur(0px);
35
- `, $ = o(p)`
36
- transform-origin: bottom right;
37
- transform: rotate(-32deg) skew(-32deg);
38
- translate: -${e / 2}px -${e / 2}px;
39
- border-right-width: 1px;
40
- `, b = o(p)`
41
- transform-origin: bottom left;
42
- transform: rotate(32deg) skew(32deg);
43
- translate: ${e / 2}px -${e / 2}px;
44
- border-left-width: 1px;
45
- `, m = o(p)`
46
- height: ${e / 2}px;
47
- width: ${e}px;
48
- bottom: 0;
49
- left: 0;
50
- z-index: 1;
51
- border: none;
52
- `, u = o.div`
53
- height: inherit;
54
- width: inherit;
55
- overflow: hidden;
56
- flex: 1;
57
- display: flex;
58
- justify-content: center;
59
- align-items: center;
60
- `, w = o.div`
61
- flex: 1;
62
- background: transparent;
63
- height: ${e / 2 + a}px;
64
- width: ${e}px;
65
- position: absolute;
66
- display: flex;
67
- justify-content: center;
68
- align-items: center;
69
- bottom: ${({ $segmentType: t = "bottom" }) => t === "bottom" ? "unset" : `-${a}px`};
70
- transform-origin: ${({ $segmentType: t }) => {
71
- switch (t) {
72
- case "left":
73
- return "bottom right";
74
- case "right":
75
- return "bottom left";
76
- default:
77
- return "unset";
78
- }
79
- }};
80
- transform: ${({ $segmentType: t = "bottom" }) => {
81
- switch (t) {
82
- case "left":
83
- return "skew(32deg) rotate(32deg)";
84
- case "right":
85
- return "skew(-32deg) rotate(-32deg)";
86
- default:
87
- return "none";
88
- }
89
- }};
90
- `, S = o.div`
91
- position: absolute;
92
- right: ${({ $segmentType: t }) => t === "left" ? `-${r}px` : "unset"};
93
- left: ${({ $segmentType: t }) => t === "right" ? `-${r}px` : "unset"};
94
- bottom: ${({ $segmentType: t }) => t === "bottom" ? `-${n}px` : `-${n}px`};
95
- height: ${s}px;
96
- width: ${s}px;
97
- display: flex;
98
- align-items: center;
99
- overflow: hidden;
100
- background-color: transparent;
101
- z-index: 1;
102
- flex-shrink: 0;
103
- &:hover {
104
- background: ${({ theme: t }) => t.colors.WHITE_T_15};
105
- cursor: pointer;
106
- }
107
- `, v = o.div`
108
- position: absolute;
109
- right: ${({ $segmentType: t }) => t === "left" ? `-${r}px` : "unset"};
110
- left: ${({ $segmentType: t }) => t === "right" ? `-${r}px` : "unset"};
111
- bottom: ${({ $segmentType: t }) => t === "bottom" ? `-${n}px` : `-${n}px`};
112
- height: ${s}px;
113
- width: ${s}px;
114
- z-index: 5;
115
- backdrop-filter: blur(16px);
116
- -webkit-backdrop-filter: blur(16px);
117
- /* pointer-events: none; */
118
- display: flex;
119
- align-items: center;
120
- justify-content: center;
121
- `, E = o.div`
122
- position: absolute;
123
- z-index: 6;
124
- `;
125
- export {
126
- g as CircularProgressLottieContainer,
127
- E as IconWrapper,
128
- c as LottieAnmationContainer,
129
- f as RingContainer,
130
- S as SegmentAssetContainer,
131
- m as SegmentBottom,
132
- u as SegmentContainer,
133
- w as SegmentContentContainer,
134
- $ as SegmentLeft,
135
- v as SegmentOverlay,
136
- b as SegmentRight
137
- };
138
- //# sourceMappingURL=segmented-game-card-styled.js.map
@@ -1 +0,0 @@
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 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 BORDER_WIDTH,\n} from './constants';\nimport type { TSegment } from './segmented-game-card-types';\n\nexport const CircularProgressLottieContainer = styled.div`\n position: absolute;\n z-index: 5;\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n pointer-events: none;\n`;\n\nexport const RingContainer = styled.div`\n position: relative;\n height: inherit;\n width: inherit;\n border-radius: 50%;\n border: ${BORDER_WIDTH}px solid #fff;\n`;\n\nexport const LottieAnmationContainer = styled.div`\n position: absolute;\n height: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n width: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n border-radius: 50%;\n top: ${-GAME_LAUNCHER_ASSET_PADDING / 2 - BORDER_WIDTH}px;\n left: ${-GAME_LAUNCHER_ASSET_PADDING / 2 - BORDER_WIDTH}px;\n z-index: 4;\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","RingContainer","BORDER_WIDTH","LottieAnmationContainer","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"],"mappings":";;;AAaO,MAAMA,IAAkCC,EAAO;AAAA;AAAA;AAAA,YAG1CC,CAAkB;AAAA,WACnBA,CAAkB;AAAA;AAAA,GAIhBC,IAAgBF,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,YAKxBG,CAAY;AAAA,GAGXC,IAA0BJ,EAAO;AAAA;AAAA,YAElCC,IAAqBI,CAA2B;AAAA,WACjDJ,IAAqBI,CAA2B;AAAA;AAAA,SAElD,CAACA,IAA8B,IAAIF,CAAY;AAAA,UAC9C,CAACE,IAA8B,IAAIF,CAAY;AAAA;AAAA,GAcnDG,IAAUN,EAAO;AAAA,YACXC,CAAkB;AAAA,WACnBA,CAAkB;AAAA;AAAA;AAAA;AAAA,gBAIb,CAAC,EAAE,OAAAM,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA,sBAE7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AiB,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,IAAiBnB,EAAO;AAAA;AAAA,WAE1B,CAAC,EAAE,cAAAc,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,IAAcpB,EAAO;AAAA;AAAA;AAAA;"}
@@ -1,105 +0,0 @@
1
- import { jsx as e, jsxs as L } from "react/jsx-runtime";
2
- import { memo as R, useCallback as m, forwardRef as O, useRef as A, useState as C, useImperativeHandle as F, useMemo as E } from "react";
3
- import G from "../../../../../assets/line-icons/icons/check.js";
4
- import { LOTTIE as $ } from "../../../../../assets/lottie/lottie.js";
5
- import P from "../../../../ui/lottie-animation/lottie-animation.js";
6
- import { CardContainer as j } from "../card-container/card-container.js";
7
- import { SegmentContainer as w, SegmentContentContainer as U, SegmentAssetContainer as x, SegmentOverlay as B, IconWrapper as N, CircularProgressLottieContainer as q, RingContainer as z, LottieAnmationContainer as D, SegmentLeft as J, SegmentRight as K, SegmentBottom as Q } from "./segmented-game-card-styled.js";
8
- const X = { renderer: "canvas", loop: !0 }, f = R(
9
- ({ segmentType: n, isCompleted: o, card: c, name: s, onMouseEnter: i }) => {
10
- const a = m(() => i(s), [i, s]);
11
- return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ L(U, { $segmentType: n, onMouseEnter: a, children: [
12
- /* @__PURE__ */ e(x, { $segmentType: n, children: /* @__PURE__ */ e(P, { src: c, settings: X, animateOnIntersect: !0 }) }),
13
- o && /* @__PURE__ */ e(B, { $segmentType: n, children: /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e(G, { color: "#fff", height: 40, width: 40 }) }) })
14
- ] }) });
15
- }
16
- ), Y = ({ data: n, label: o, initialValue: c = 0, value: s, maxValue: i = 1 }, a) => {
17
- const g = A(null), h = A(null), [u, S] = C(o), [T, _] = C(!1), [b, M] = C("WHITE_T_87"), W = u !== o, d = m((t) => {
18
- S(t);
19
- }, []), k = m(() => {
20
- S(o);
21
- }, [o]), p = m(
22
- (t) => {
23
- var r, l;
24
- (l = (r = n[t]) == null ? void 0 : r.onPress) == null || l.call(r);
25
- },
26
- [n]
27
- ), v = m((t) => {
28
- _(!0), M(t);
29
- }, []);
30
- F(a, () => ({
31
- labelRef: g,
32
- segmentedCardWrapperRef: h,
33
- startLabelAnimation: v
34
- }));
35
- const I = E(() => {
36
- if (i <= 0)
37
- return;
38
- const t = 92, r = t / i, l = Math.min(r * c, t), H = Math.min(r * s + 1, t);
39
- return [l, H];
40
- }, [c, i, s]), y = E(
41
- () => ({
42
- renderer: "canvas",
43
- autoplay: !0,
44
- loop: !1,
45
- initialSegment: I
46
- }),
47
- [I]
48
- );
49
- return /* @__PURE__ */ L(
50
- j,
51
- {
52
- ref: h,
53
- labelRef: g,
54
- label: u,
55
- isAnimated: T,
56
- onMouseLeave: k,
57
- labelColor: T ? b : W ? "WHITE_T_87" : "WHITE_T_60",
58
- children: [
59
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
60
- P,
61
- {
62
- src: $.LEVELUP_RINGS,
63
- settings: y,
64
- animateOnIntersect: !0
65
- }
66
- ) }) }) }),
67
- /* @__PURE__ */ e(J, { onClick: () => p(0), children: /* @__PURE__ */ e(
68
- f,
69
- {
70
- segmentType: "left",
71
- card: n[0].card,
72
- name: n[0].name,
73
- isCompleted: n[0].isCompleted,
74
- onMouseEnter: d
75
- }
76
- ) }),
77
- /* @__PURE__ */ e(K, { onClick: () => p(1), children: /* @__PURE__ */ e(
78
- f,
79
- {
80
- segmentType: "right",
81
- card: n[1].card,
82
- name: n[1].name,
83
- isCompleted: n[1].isCompleted,
84
- onMouseEnter: d
85
- }
86
- ) }),
87
- /* @__PURE__ */ e(Q, { onClick: () => p(2), children: /* @__PURE__ */ e(
88
- f,
89
- {
90
- segmentType: "bottom",
91
- card: n[2].card,
92
- name: n[2].name,
93
- isCompleted: n[2].isCompleted,
94
- onMouseEnter: d
95
- }
96
- ) })
97
- ]
98
- }
99
- );
100
- }, ie = R(O(Y));
101
- export {
102
- f as SegmentContent,
103
- ie as SegmentedGameCard
104
- };
105
- //# sourceMappingURL=segmented-game-card.js.map
@@ -1 +0,0 @@
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 { ForwardRefRenderFunction } from 'react';\nimport React, {\n forwardRef,\n memo,\n useCallback,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport CheckIcon from '../../../../../assets/line-icons/icons/check';\nimport { LOTTIE } from '../../../../../assets/lottie/lottie';\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport type { TColorNames } from '../../../../ui/types';\nimport { CardContainer } from '../card-container/card-container';\nimport * as Styled from './segmented-game-card-styled';\nimport type {\n IGameCardSegmentContentProps,\n ISegmentedGameCardProps,\n ISegmentedGameCardRefs,\n} from './segmented-game-card-types';\n\nconst renderSettings = { renderer: 'canvas', loop: true };\n\nexport const SegmentContent = memo(\n ({ segmentType, isCompleted, card, name, onMouseEnter }: IGameCardSegmentContentProps) => {\n const handleMouseEnter = useCallback(() => onMouseEnter(name), [onMouseEnter, name]);\n\n return (\n <Styled.SegmentContainer>\n <Styled.SegmentContentContainer $segmentType={segmentType} onMouseEnter={handleMouseEnter}>\n <Styled.SegmentAssetContainer $segmentType={segmentType}>\n <LottieAnimation src={card} settings={renderSettings} animateOnIntersect />\n </Styled.SegmentAssetContainer>\n\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);\n\nconst SegmentedGameCardComponent: ForwardRefRenderFunction<\n ISegmentedGameCardRefs,\n ISegmentedGameCardProps\n> = ({ data, label: gameCategoryLabel, initialValue = 0, value, maxValue = 1 }, ref) => {\n const labelRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\n const cardWrapperRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\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 const animationSegments: [number, number] | undefined = useMemo(() => {\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 return [initialFrameToPlay, finalFrameToPlay];\n }, [initialValue, maxValue, value]);\n\n const levelUpAnimationSettings = useMemo(\n () => ({\n renderer: 'canvas',\n autoplay: true,\n loop: false,\n initialSegment: animationSegments,\n }),\n [animationSegments],\n );\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>\n <Styled.RingContainer>\n <Styled.LottieAnmationContainer>\n <LottieAnimation\n src={LOTTIE.LEVELUP_RINGS}\n settings={levelUpAnimationSettings}\n animateOnIntersect\n />\n </Styled.LottieAnmationContainer>\n </Styled.RingContainer>\n </Styled.CircularProgressLottieContainer>\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":["renderSettings","SegmentContent","memo","segmentType","isCompleted","card","name","onMouseEnter","handleMouseEnter","useCallback","jsx","Styled.SegmentContainer","jsxs","Styled.SegmentContentContainer","Styled.SegmentAssetContainer","LottieAnimation","Styled.SegmentOverlay","Styled.IconWrapper","CheckIcon","SegmentedGameCardComponent","data","gameCategoryLabel","initialValue","value","maxValue","ref","labelRef","useRef","cardWrapperRef","label","setLabel","useState","isAnimated","setIsAnimated","animatedColor","setAnimatedColor","isLabelHighlighted","gameName","onMouseLeave","onSegmentPress","index","_b","_a","startLabelAnimation","color","useImperativeHandle","animationSegments","useMemo","totalFrames","framesPerValue","initialFrameToPlay","finalFrameToPlay","levelUpAnimationSettings","CardContainer","Styled.CircularProgressLottieContainer","Styled.RingContainer","Styled.LottieAnmationContainer","LOTTIE","Styled.SegmentLeft","Styled.SegmentRight","Styled.SegmentBottom","SegmentedGameCard","forwardRef"],"mappings":";;;;;;;AAuBA,MAAMA,IAAiB,EAAE,UAAU,UAAU,MAAM,GAAK,GAE3CC,IAAiBC;AAAA,EAC5B,CAAC,EAAE,aAAAC,GAAa,aAAAC,GAAa,MAAAC,GAAM,MAAAC,GAAM,cAAAC,QAAiD;AAClF,UAAAC,IAAmBC,EAAY,MAAMF,EAAaD,CAAI,GAAG,CAACC,GAAcD,CAAI,CAAC;AAGjF,WAAA,gBAAAI,EAACC,GAAA,EACC,UAAA,gBAAAC,EAACC,GAAA,EAA+B,cAAcV,GAAa,cAAcK,GACvE,UAAA;AAAA,MAAA,gBAAAE,EAACI,GAAA,EAA6B,cAAcX,GAC1C,UAAA,gBAAAO,EAACK,GAAgB,EAAA,KAAKV,GAAM,UAAUL,GAAgB,oBAAkB,GAAC,CAAA,GAC3E;AAAA,MAECI,uBACEY,GAAA,EAAsB,cAAcb,GACnC,4BAACc,GAAA,EACC,UAAC,gBAAAP,EAAAQ,GAAA,EAAU,OAAM,QAAO,QAAQ,IAAI,OAAO,GAAA,CAAI,EACjD,CAAA,GACF;AAAA,IAAA,EAEJ,CAAA,EACF,CAAA;AAAA,EAEJ;AACF,GAEMC,IAGF,CAAC,EAAE,MAAAC,GAAM,OAAOC,GAAmB,cAAA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,EAAe,CAAC,GACnD,UAAA,gBAAA7B;AAAA,UAACT;AAAA,UAAA;AAAA,YACC,aAAa;AAAA,YACb,MAAMmB,EAAK,CAAC,EAAG;AAAA,YACf,MAAMA,EAAK,CAAC,EAAG;AAAA,YACf,aAAaA,EAAK,CAAC,EAAG;AAAA,YACtB,cAAAb;AAAA,UAAA;AAAA,QAAA,GAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEasD,KAAoB3D,EAAK4D,EAAW3C,CAA0B,CAAC;"}
@@ -1,219 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { memo as D, useRef as J, useCallback as m, useMemo as S, useEffect as Y } from "react";
3
- import { LOTTIE as B } from "../../../assets/lottie/lottie.js";
4
- import { JOURNEY_ID_STUDENT as p } from "../../journey/journey-id/journey-id-student.js";
5
- import { useJourney as K } from "../../journey/use-journey/use-journey.js";
6
- import { CircularLoader as H } from "../../ui/loader/circular-loader/circular-loader.js";
7
- import Z from "../../ui/lottie-animation/lottie-animation.js";
8
- import { useCircleSounds as w } from "../hooks/use-circle-sounds/use-circle-sounds.js";
9
- import { CircleSoundKey as t } from "../hooks/use-circle-sounds/use-circle-sounds-enums.js";
10
- import { GAME_LAUNCHER_SIZE as F } from "./comps/card-container/constants.js";
11
- import { Carousel as V } from "./comps/carousel/carousel.js";
12
- import { GAME_LAUNCHER_ASSET_PADDING as X } from "./comps/segmented-game-card/constants.js";
13
- import { SegmentedGameCard as C } from "./comps/segmented-game-card/segmented-game-card.js";
14
- import { TablesCard as q } from "./comps/tables-card/tables-card.js";
15
- import { GAME_LAUNCHER_ANALYTICS_EVENTS as M } from "./game-launcher-analytics-events.js";
16
- import { useGameLauncherJourney as Q } from "./hooks/use-game-launcher-journey/use-game-launcher-journey.js";
17
- import { useTableInfiniteLauncherJourney as W } from "./hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js";
18
- import { useTableLauncherJourney as $ } from "./hooks/use-table-launcher-journey/use-table-launcher-journey.js";
19
- import { ProjectType as f } from "../games/web-view/enums/project-type-enum.js";
20
- const O = F + X, Te = D(
21
- ({
22
- onSegmentClick: r,
23
- journeyId: n,
24
- data: e,
25
- isLoading: c,
26
- isTutorialOnboardingDone: b,
27
- defaultIndex: U = 0,
28
- onJourneyComplete: E
29
- }) => {
30
- const u = J(null), _ = J(null), { isJourneyActive: A } = K(), { playSwipeSound: R, play: o } = w(), L = m(
31
- (l) => {
32
- o(t.GAME_CARD_CLICK), r(l, f.TABLE);
33
- },
34
- [r, o]
35
- ), g = m(() => {
36
- o(t.GAME_CARD_CLICK), r({ mode: "infinite" }, f.TABLE);
37
- }, [r, o]), I = m(
38
- (l) => {
39
- l.status !== "completed" && (o(t.GAME_CARD_CLICK), r(l, f.LESSON));
40
- },
41
- [r, o]
42
- ), N = m(
43
- (l) => {
44
- o(t.GAME_CARD_CLICK), r(l, f.GAME);
45
- },
46
- [r, o]
47
- ), y = m(
48
- (l) => {
49
- o(t.GAME_CARD_CLICK), r(l, f.PUZZLE);
50
- },
51
- [r, o]
52
- ), {
53
- gameRefs: a,
54
- lessonRefs: P,
55
- puzzleRefs: h,
56
- startJourney: z
57
- } = Q({
58
- carouselRefs: u,
59
- onSegmentClick: r,
60
- onJourneyComplete: E
61
- }), { startJourney: T } = W({
62
- carouselRefs: u,
63
- onTableInfiniteModeClick: g,
64
- onJourneyComplete: E,
65
- originalTableRef: _
66
- }), { startJourney: G } = $({
67
- carouselRefs: u,
68
- originalTableRef: _,
69
- onTableSegmentClick: L,
70
- onJourneyComplete: E,
71
- onNextJourney: T
72
- }), v = S(() => {
73
- let l = [];
74
- return e && (e.lessons && (l = [
75
- ...l,
76
- /* @__PURE__ */ i(
77
- C,
78
- {
79
- ref: P,
80
- label: e.lessons.label,
81
- value: e.lessons.data.filter((s) => s.status === "completed").length,
82
- maxValue: e.lessons.data.length,
83
- initialValue: e.lessons.initialProgressValue,
84
- data: e == null ? void 0 : e.lessons.data.map((s) => ({
85
- card: s.cardLottie,
86
- name: s.name,
87
- isCompleted: s.status === "completed",
88
- onPress: () => I(s)
89
- }))
90
- }
91
- )
92
- ]), e.games && (l = [
93
- ...l,
94
- /* @__PURE__ */ i(
95
- C,
96
- {
97
- ref: a,
98
- label: e.games.label,
99
- value: e.games.data.filter((s) => s.isPlayed).length,
100
- maxValue: e.games.data.length,
101
- initialValue: e.games.initialProgressValue,
102
- data: e.games.data.map((s) => ({
103
- card: s.cardLottie,
104
- name: s.name,
105
- isCompleted: !1,
106
- onPress: () => N(s)
107
- }))
108
- }
109
- )
110
- ]), e.puzzles && (l = [
111
- ...l,
112
- /* @__PURE__ */ i(
113
- C,
114
- {
115
- ref: h,
116
- label: e.puzzles.label,
117
- value: e.puzzles.data.filter((s) => s.solved).length,
118
- maxValue: e.puzzles.data.length,
119
- initialValue: e.puzzles.initialProgressValue,
120
- data: e.puzzles.data.map((s) => ({
121
- card: s.cardLottie,
122
- name: s.name,
123
- isCompleted: s.solved,
124
- onPress: () => y(s)
125
- }))
126
- }
127
- )
128
- ]), e.tables && (l = [
129
- ...l,
130
- /* @__PURE__ */ i(
131
- q,
132
- {
133
- ref: _,
134
- label: e.tables.label,
135
- data: e.tables.data,
136
- onPress: L,
137
- openModesOfTable: e.tables.openModesOfTable
138
- }
139
- )
140
- ])), l;
141
- }, [
142
- e,
143
- a,
144
- h,
145
- P,
146
- I,
147
- N,
148
- y,
149
- L
150
- ]), x = S(
151
- () => [
152
- /* @__PURE__ */ i(
153
- Z,
154
- {
155
- src: B.SLEEPY_BOI,
156
- width: O,
157
- height: O
158
- }
159
- )
160
- ],
161
- []
162
- );
163
- return Y(() => {
164
- if (!(c || !e || A)) {
165
- if (e != null && e.puzzles && n === p.CIRCLE_ACTIVITIES_INTRO_JOURNEY || e != null && e.lessons && n === p.CIRCLE_LESSONS_K_1_INTRO_JOURNEY) {
166
- z(n, e == null ? void 0 : e.puzzles, e == null ? void 0 : e.lessons);
167
- return;
168
- }
169
- if (e != null && e.tables && n === p.CIRCLE_TABLES_INTRO_JOURNEY) {
170
- G(e == null ? void 0 : e.tables, b);
171
- return;
172
- }
173
- if (e != null && e.tables && n === p.CIRCLE_TABLES_INFINTE_JOURNEY) {
174
- T();
175
- return;
176
- }
177
- }
178
- }, [
179
- e,
180
- A,
181
- c,
182
- b,
183
- n,
184
- T,
185
- z,
186
- G
187
- ]), c ? /* @__PURE__ */ i(H, {}) : e ? /* @__PURE__ */ i(
188
- V,
189
- {
190
- ref: u,
191
- items: v,
192
- defaultIndex: U,
193
- onNext: R,
194
- onPrev: R,
195
- analyticsNext: {
196
- analyticsLabel: M.NEXT_ACTIVITY
197
- },
198
- analyticsPrev: {
199
- analyticsLabel: M.PREV_ACTIVITY
200
- }
201
- }
202
- ) : /* @__PURE__ */ i(
203
- V,
204
- {
205
- items: x,
206
- analyticsNext: {
207
- analyticsLabel: ""
208
- },
209
- analyticsPrev: {
210
- analyticsLabel: ""
211
- }
212
- }
213
- );
214
- }
215
- );
216
- export {
217
- Te as GameLauncher
218
- };
219
- //# sourceMappingURL=game-launcher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"game-launcher.js","sources":["../../../../src/features/circle-games/game-launcher/game-launcher.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { memo, useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport { LOTTIE } from '../../../assets/lottie/lottie';\nimport { JOURNEY_ID_STUDENT } from '../../journey/journey-id/journey-id-student';\nimport { useJourney } from '../../journey/use-journey/use-journey';\nimport { CircularLoader } from '../../ui/loader/circular-loader/circular-loader';\nimport LottieAnimation from '../../ui/lottie-animation/lottie-animation';\nimport { ProjectType } from '../games/web-view/enums';\nimport { useCircleSounds } from '../hooks/use-circle-sounds/use-circle-sounds';\nimport { CircleSoundKey } from '../hooks/use-circle-sounds/use-circle-sounds-enums';\nimport { GAME_LAUNCHER_SIZE } from './comps/card-container/constants';\nimport { Carousel } from './comps/carousel/carousel';\nimport type { ICarouselRefs } from './comps/carousel/carousel-types';\nimport { GAME_LAUNCHER_ASSET_PADDING } from './comps/segmented-game-card/constants';\nimport { SegmentedGameCard } from './comps/segmented-game-card/segmented-game-card';\nimport { TablesCard } from './comps/tables-card/tables-card';\nimport type { ITableCardRef, ITableDetails } from './comps/tables-card/tables-card-types';\nimport type {\n Game,\n Lesson,\n Puzzle,\n} from './dal/use-get-circle-home-details-dal/use-get-circle-home-dal-types';\nimport { GAME_LAUNCHER_ANALYTICS_EVENTS } from './game-launcher-analytics-events';\nimport type { IGameLauncherProps } from './game-launcher-types';\nimport { useGameLauncherJourney } from './hooks/use-game-launcher-journey/use-game-launcher-journey';\nimport { useTableInfiniteLauncherJourney } from './hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey';\nimport { useTableLauncherJourney } from './hooks/use-table-launcher-journey/use-table-launcher-journey';\n\nconst sleepyBoiDimension = GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING;\n\nexport const GameLauncher: FC<IGameLauncherProps> = memo(\n ({\n onSegmentClick,\n journeyId,\n data,\n isLoading,\n isTutorialOnboardingDone,\n defaultIndex = 0,\n onJourneyComplete,\n }) => {\n const carouselRefs = useRef<ICarouselRefs>(null!);\n const tableRef = useRef<ITableCardRef>(null!);\n\n const { isJourneyActive } = useJourney();\n\n const { playSwipeSound, play } = useCircleSounds();\n\n const onTableSegmentClick = useCallback(\n (table: ITableDetails) => {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(table, ProjectType.TABLE);\n },\n [onSegmentClick, play],\n );\n\n const onTableInfiniteModeClick = useCallback(() => {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick({ mode: 'infinite' } as ITableDetails, ProjectType.TABLE);\n }, [onSegmentClick, play]);\n\n const handleLessonSegmentClick = useCallback(\n (lesson: Lesson) => {\n if (lesson.status !== 'completed') {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(lesson, ProjectType.LESSON);\n }\n },\n [onSegmentClick, play],\n );\n\n const handleGameSegmentClick = useCallback(\n (game: Game) => {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(game, ProjectType.GAME);\n },\n [onSegmentClick, play],\n );\n\n const handlePuzzleSegmentClick = useCallback(\n (puzzle: Puzzle) => {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(puzzle, ProjectType.PUZZLE);\n },\n [onSegmentClick, play],\n );\n\n const {\n gameRefs,\n lessonRefs,\n puzzleRefs,\n startJourney: startLessonPuzzleGamesJourney,\n } = useGameLauncherJourney({\n carouselRefs,\n onSegmentClick,\n onJourneyComplete,\n });\n\n const { startJourney: startInfiniteTablesJourney } = useTableInfiniteLauncherJourney({\n carouselRefs,\n onTableInfiniteModeClick,\n onJourneyComplete,\n originalTableRef: tableRef,\n });\n\n const { startJourney: startTablesJourney } = useTableLauncherJourney({\n carouselRefs,\n originalTableRef: tableRef,\n onTableSegmentClick,\n onJourneyComplete,\n onNextJourney: startInfiniteTablesJourney,\n });\n\n const items = useMemo(() => {\n let itemTypes: ReactNode[] = [];\n\n if (data) {\n if (data.lessons) {\n itemTypes = [\n ...itemTypes,\n <SegmentedGameCard\n ref={lessonRefs}\n label={data.lessons.label}\n value={data.lessons.data.filter(lesson => lesson.status === 'completed').length}\n maxValue={data.lessons.data.length}\n initialValue={data.lessons.initialProgressValue}\n data={data?.lessons.data.map(lesson => ({\n card: lesson.cardLottie,\n name: lesson.name,\n isCompleted: lesson.status === 'completed',\n onPress: () => handleLessonSegmentClick(lesson),\n }))}\n />,\n ];\n }\n\n if (data.games) {\n itemTypes = [\n ...itemTypes,\n <SegmentedGameCard\n ref={gameRefs}\n label={data.games.label}\n value={data.games.data.filter(game => game.isPlayed).length}\n maxValue={data.games.data.length}\n initialValue={data.games.initialProgressValue}\n data={data.games.data.map(game => ({\n card: game.cardLottie,\n name: game.name,\n isCompleted: false,\n onPress: () => handleGameSegmentClick(game),\n }))}\n />,\n ];\n }\n\n if (data.puzzles) {\n itemTypes = [\n ...itemTypes,\n <SegmentedGameCard\n ref={puzzleRefs}\n label={data.puzzles.label}\n value={data.puzzles.data.filter(puzzle => puzzle.solved).length}\n maxValue={data.puzzles.data.length}\n initialValue={data.puzzles.initialProgressValue}\n data={data.puzzles.data.map(puzzle => ({\n card: puzzle.cardLottie,\n name: puzzle.name,\n isCompleted: puzzle.solved,\n onPress: () => handlePuzzleSegmentClick(puzzle),\n }))}\n />,\n ];\n }\n\n if (data.tables) {\n itemTypes = [\n ...itemTypes,\n <TablesCard\n ref={tableRef}\n label={data.tables.label}\n data={data.tables.data}\n onPress={onTableSegmentClick}\n openModesOfTable={data.tables.openModesOfTable}\n />,\n ];\n }\n }\n\n return itemTypes;\n }, [\n data,\n gameRefs,\n puzzleRefs,\n lessonRefs,\n handleLessonSegmentClick,\n handleGameSegmentClick,\n handlePuzzleSegmentClick,\n onTableSegmentClick,\n ]);\n\n const sleepyBoiItem = useMemo(\n () => [\n <LottieAnimation\n src={LOTTIE.SLEEPY_BOI}\n width={sleepyBoiDimension}\n height={sleepyBoiDimension}\n />,\n ],\n [],\n );\n\n // Start game launcher journey only when isLoading has become false and data is available\n useEffect(() => {\n if (isLoading || !data || isJourneyActive) {\n return;\n }\n\n if (\n (data?.puzzles && journeyId === JOURNEY_ID_STUDENT.CIRCLE_ACTIVITIES_INTRO_JOURNEY) ||\n (data?.lessons && journeyId === JOURNEY_ID_STUDENT.CIRCLE_LESSONS_K_1_INTRO_JOURNEY)\n ) {\n startLessonPuzzleGamesJourney(journeyId, data?.puzzles, data?.lessons);\n\n return; // CIRCLE_ACTIVITIES_INTRO_JOURNEY / CIRCLE_LESSONS_K_1_INTRO_JOURNEY has higher priority\n }\n\n if (data?.tables && journeyId === JOURNEY_ID_STUDENT.CIRCLE_TABLES_INTRO_JOURNEY) {\n startTablesJourney(data?.tables, isTutorialOnboardingDone);\n\n return;\n }\n\n if (data?.tables && journeyId === JOURNEY_ID_STUDENT.CIRCLE_TABLES_INFINTE_JOURNEY) {\n startInfiniteTablesJourney();\n\n return;\n }\n }, [\n data,\n isJourneyActive,\n isLoading,\n isTutorialOnboardingDone,\n journeyId,\n startInfiniteTablesJourney,\n startLessonPuzzleGamesJourney,\n startTablesJourney,\n ]);\n\n if (isLoading) {\n return <CircularLoader />;\n }\n\n if (!data) {\n return (\n <Carousel\n items={sleepyBoiItem}\n analyticsNext={{\n analyticsLabel: '',\n }}\n analyticsPrev={{\n analyticsLabel: '',\n }}\n />\n );\n }\n\n return (\n <Carousel\n ref={carouselRefs}\n items={items}\n defaultIndex={defaultIndex}\n onNext={playSwipeSound}\n onPrev={playSwipeSound}\n analyticsNext={{\n analyticsLabel: GAME_LAUNCHER_ANALYTICS_EVENTS.NEXT_ACTIVITY,\n }}\n analyticsPrev={{\n analyticsLabel: GAME_LAUNCHER_ANALYTICS_EVENTS.PREV_ACTIVITY,\n }}\n />\n );\n },\n);\n"],"names":["sleepyBoiDimension","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_ASSET_PADDING","GameLauncher","memo","onSegmentClick","journeyId","data","isLoading","isTutorialOnboardingDone","defaultIndex","onJourneyComplete","carouselRefs","useRef","tableRef","isJourneyActive","useJourney","playSwipeSound","play","useCircleSounds","onTableSegmentClick","useCallback","table","CircleSoundKey","ProjectType","onTableInfiniteModeClick","handleLessonSegmentClick","lesson","handleGameSegmentClick","game","handlePuzzleSegmentClick","puzzle","gameRefs","lessonRefs","puzzleRefs","startLessonPuzzleGamesJourney","useGameLauncherJourney","startInfiniteTablesJourney","useTableInfiniteLauncherJourney","startTablesJourney","useTableLauncherJourney","items","useMemo","itemTypes","jsx","SegmentedGameCard","TablesCard","sleepyBoiItem","LottieAnimation","LOTTIE","useEffect","JOURNEY_ID_STUDENT","CircularLoader","Carousel","GAME_LAUNCHER_ANALYTICS_EVENTS"],"mappings":";;;;;;;;;;;;;;;;;;;AA6BA,MAAMA,IAAqBC,IAAqBC,GAEnCC,KAAuCC;AAAA,EAClD,CAAC;AAAA,IACC,gBAAAC;AAAA,IACA,WAAAC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eAAe;AAAA,UACb,gBAAgB;AAAA,QAClB;AAAA,MAAA;AAAA,IAAA;AAAA,EAoBR;AACF;"}
@@ -1,8 +0,0 @@
1
- const _ = 500, S = 500, E = 1500, T = 3e3;
2
- export {
3
- S as GO_TO_NEXT_SLIDE_AFTER_MS,
4
- E as SHOW_LABEL_HIGHLIGHT_AFTER_MS,
5
- T as SHOW_NUDGE_AFTER_MS,
6
- _ as SLIDE_TO_LESSON_MS
7
- };
8
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../../../src/features/circle-games/game-launcher/hooks/use-game-launcher-journey/constants.ts"],"sourcesContent":["export const SLIDE_TO_LESSON_MS = 500;\n\nexport const GO_TO_NEXT_SLIDE_AFTER_MS = 500;\nexport const SHOW_LABEL_HIGHLIGHT_AFTER_MS = 1500;\nexport const SHOW_NUDGE_AFTER_MS = 3000;\nexport const FIRST_COACHMARK_AFTER_MS = 200;\n"],"names":["SLIDE_TO_LESSON_MS","GO_TO_NEXT_SLIDE_AFTER_MS","SHOW_LABEL_HIGHLIGHT_AFTER_MS","SHOW_NUDGE_AFTER_MS"],"mappings":"AAAO,MAAMA,IAAqB,KAErBC,IAA4B,KAC5BC,IAAgC,MAChCC,IAAsB;"}