@cuemath/leap 2.8.38-hg4 → 2.8.39

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 (140) hide show
  1. package/dist/assets/line-icons/icons/sheet.js +54 -0
  2. package/dist/assets/line-icons/icons/sheet.js.map +1 -0
  3. package/dist/assets/lottie/lottie.js +0 -6
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/analytics-events/whitelist-events.js +15 -13
  6. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  7. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode-styled.js +3 -3
  8. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode-styled.js.map +1 -1
  9. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode.js +35 -29
  10. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode.js.map +1 -1
  11. package/dist/features/circle-games/game-launcher/comps/tables-card/table-star/table-star-styled.js +11 -0
  12. package/dist/features/circle-games/game-launcher/comps/tables-card/table-star/table-star-styled.js.map +1 -0
  13. package/dist/features/circle-games/game-launcher/comps/tables-card/table-star/table-star.js +16 -0
  14. package/dist/features/circle-games/game-launcher/comps/tables-card/table-star/table-star.js.map +1 -0
  15. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js +42 -35
  16. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js.map +1 -1
  17. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js +212 -223
  18. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +1 -1
  19. package/dist/features/circle-games/game-launcher/game-launcher-analytics-events.js +7 -8
  20. package/dist/features/circle-games/game-launcher/game-launcher-analytics-events.js.map +1 -1
  21. package/dist/features/circle-games/game-launcher/game-launcher.js +24 -25
  22. package/dist/features/circle-games/game-launcher/game-launcher.js.map +1 -1
  23. package/dist/features/circle-games/games/web-view/web-view-types.js.map +1 -1
  24. package/dist/features/circle-games/hooks/use-circle-sounds/constants.js +3 -8
  25. package/dist/features/circle-games/hooks/use-circle-sounds/constants.js.map +1 -1
  26. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds-enums.js +2 -2
  27. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds-enums.js.map +1 -1
  28. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js +17 -22
  29. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js.map +1 -1
  30. package/dist/features/communication/pub-sub/constants.js +2 -1
  31. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  32. package/dist/features/milestone/create/milestone-create-styled.js +11 -9
  33. package/dist/features/milestone/create/milestone-create-styled.js.map +1 -1
  34. package/dist/features/milestone/edit/comps/milestone-edit-loader/milestone-edit-loader-styled.js +6 -8
  35. package/dist/features/milestone/edit/comps/milestone-edit-loader/milestone-edit-loader-styled.js.map +1 -1
  36. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +130 -117
  37. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  38. package/dist/features/milestone/milestone-resources/resources-assign/added-resource-and-filters.js +205 -0
  39. package/dist/features/milestone/milestone-resources/resources-assign/added-resource-and-filters.js.map +1 -0
  40. package/dist/features/milestone/milestone-resources/resources-assign/api/get-resource.js +11 -0
  41. package/dist/features/milestone/milestone-resources/resources-assign/api/get-resource.js.map +1 -0
  42. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js +9 -0
  43. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js.map +1 -0
  44. package/dist/features/milestone/milestone-resources/resources-assign/api/lpar-resource-assign.js +9 -0
  45. package/dist/features/milestone/milestone-resources/resources-assign/api/lpar-resource-assign.js.map +1 -0
  46. package/dist/features/milestone/milestone-resources/resources-assign/comps/filter-item/filter-item-styled.js +19 -0
  47. package/dist/features/milestone/milestone-resources/resources-assign/comps/filter-item/filter-item-styled.js.map +1 -0
  48. package/dist/features/milestone/milestone-resources/resources-assign/comps/filter-item/filter-item.js +47 -0
  49. package/dist/features/milestone/milestone-resources/resources-assign/comps/filter-item/filter-item.js.map +1 -0
  50. package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/resource-item-styled.js +22 -0
  51. package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/resource-item-styled.js.map +1 -0
  52. package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/resource-item.js +60 -0
  53. package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/resource-item.js.map +1 -0
  54. package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/utils.js +6 -0
  55. package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/utils.js.map +1 -0
  56. package/dist/features/milestone/milestone-resources/resources-assign/constant.js +6 -0
  57. package/dist/features/milestone/milestone-resources/resources-assign/constant.js.map +1 -0
  58. package/dist/features/milestone/milestone-resources/resources-assign/resource-assign-analytics-events.js +19 -0
  59. package/dist/features/milestone/milestone-resources/resources-assign/resource-assign-analytics-events.js.map +1 -0
  60. package/dist/features/milestone/milestone-resources/resources-assign/resource-items/no-resource-screen.js +32 -0
  61. package/dist/features/milestone/milestone-resources/resources-assign/resource-items/no-resource-screen.js.map +1 -0
  62. package/dist/features/milestone/milestone-resources/resources-assign/resource-items/resource-items-styled.js +19 -0
  63. package/dist/features/milestone/milestone-resources/resources-assign/resource-items/resource-items-styled.js.map +1 -0
  64. package/dist/features/milestone/milestone-resources/resources-assign/resource-items/resource-items.js +85 -0
  65. package/dist/features/milestone/milestone-resources/resources-assign/resource-items/resource-items.js.map +1 -0
  66. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign-styled.js +65 -0
  67. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign-styled.js.map +1 -0
  68. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +233 -0
  69. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js.map +1 -0
  70. package/dist/features/milestone/milestone-resources/resources-assign/utils.js +12 -0
  71. package/dist/features/milestone/milestone-resources/resources-assign/utils.js.map +1 -0
  72. package/dist/features/post-game-stats/enums/post-game-stats-enum.js +1 -1
  73. package/dist/features/post-game-stats/enums/post-game-stats-enum.js.map +1 -1
  74. package/dist/features/post-game-stats/points/points.js +10 -15
  75. package/dist/features/post-game-stats/points/points.js.map +1 -1
  76. package/dist/features/post-game-stats/post-game-stats.js +61 -83
  77. package/dist/features/post-game-stats/post-game-stats.js.map +1 -1
  78. package/dist/features/trial-session/comps/about-cuemath/about-cuemath-constants.js +1 -1
  79. package/dist/features/trial-session/comps/about-cuemath/about-cuemath-constants.js.map +1 -1
  80. package/dist/features/trial-session/comps/class-preference/class-preference.js +10 -10
  81. package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
  82. package/dist/features/trial-session/comps/school-goals/school-goals-view.js +7 -7
  83. package/dist/features/trial-session/comps/school-goals/school-goals-view.js.map +1 -1
  84. package/dist/features/trial-session/comps/session-report/session-report.js +23 -21
  85. package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
  86. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +5 -5
  87. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
  88. package/dist/features/trial-session/comps/student-profile/student-profile.js +37 -39
  89. package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
  90. package/dist/features/trial-session/comps/test-prep/test-prep.js +11 -11
  91. package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
  92. package/dist/features/trial-session/left-panel/index.js +1 -1
  93. package/dist/features/trial-session/left-panel/index.js.map +1 -1
  94. package/dist/features/ui/grade-selector/grade-tab.js +15 -15
  95. package/dist/features/ui/grade-selector/grade-tab.js.map +1 -1
  96. package/dist/features/ui/inputs/searchable-input/searchable-input-styled.js +28 -0
  97. package/dist/features/ui/inputs/searchable-input/searchable-input-styled.js.map +1 -0
  98. package/dist/features/ui/inputs/searchable-input/searchable-input.js +101 -0
  99. package/dist/features/ui/inputs/searchable-input/searchable-input.js.map +1 -0
  100. package/dist/features/ui/tab/tab-styled.js +7 -8
  101. package/dist/features/ui/tab/tab-styled.js.map +1 -1
  102. package/dist/features/ui/tab/tab.js +36 -31
  103. package/dist/features/ui/tab/tab.js.map +1 -1
  104. package/dist/features/ui/theme/tab.js +3 -3
  105. package/dist/features/ui/theme/tab.js.map +1 -1
  106. package/dist/index.d.ts +46 -53
  107. package/dist/index.js +345 -343
  108. package/dist/index.js.map +1 -1
  109. package/package.json +1 -1
  110. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode-star/table-mode-star-styled.js +0 -25
  111. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode-star/table-mode-star-styled.js.map +0 -1
  112. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode-star/table-mode-star.js +0 -57
  113. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode-star/table-mode-star.js.map +0 -1
  114. package/dist/features/circle-games/game-launcher/comps/tables-card/table-segment-star/table-segment-star-styled.js +0 -27
  115. package/dist/features/circle-games/game-launcher/comps/tables-card/table-segment-star/table-segment-star-styled.js.map +0 -1
  116. package/dist/features/circle-games/game-launcher/comps/tables-card/table-segment-star/table-segment-star.js +0 -37
  117. package/dist/features/circle-games/game-launcher/comps/tables-card/table-segment-star/table-segment-star.js.map +0 -1
  118. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.js +0 -17
  119. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.js.map +0 -1
  120. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.js +0 -47
  121. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.js.map +0 -1
  122. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/constants.js +0 -6
  123. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/constants.js.map +0 -1
  124. package/dist/features/post-game-stats/digital-meter/constants.js +0 -16
  125. package/dist/features/post-game-stats/digital-meter/constants.js.map +0 -1
  126. package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js +0 -87
  127. package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js.map +0 -1
  128. package/dist/features/post-game-stats/digital-meter/digital-meter.js +0 -188
  129. package/dist/features/post-game-stats/digital-meter/digital-meter.js.map +0 -1
  130. package/dist/features/post-game-stats/digital-meter/helper.js +0 -33
  131. package/dist/features/post-game-stats/digital-meter/helper.js.map +0 -1
  132. package/dist/features/post-game-stats/number-count-animation/number-count-animation.js +0 -27
  133. package/dist/features/post-game-stats/number-count-animation/number-count-animation.js.map +0 -1
  134. package/dist/static/point2.7cec6e24.json +0 -1
  135. package/dist/static/point3.f96fe7aa.json +0 -1
  136. package/dist/static/point4.fe04fb83.json +0 -1
  137. package/dist/static/table-mode-star.b8a1d762.json +0 -1
  138. package/dist/static/table-segment-star.78e851d6.json +0 -1
  139. package/dist/static/target-achieved-text.053bd142.json +0 -2830
  140. package/dist/static/target-achieved-text.10db8475.json +0 -1
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "2.8.38-hg4",
3
+ "version": "2.8.39",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,25 +0,0 @@
1
- import i from "styled-components";
2
- import { GAME_LAUNCHER_SIZE as t } from "../../card-container/constants.js";
3
- const l = i.div`
4
- position: relative;
5
- height: ${t * 0.05}px;
6
- width: ${t * 0.05}px;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- `, s = i.div`
11
- position: absolute;
12
- height: ${t * 0.05 * 2}px;
13
- width: ${t * 0.05 * 2}px;
14
- `, c = i.circle`
15
- fill: ${({ $fill: o, theme: e }) => e.colors[o]};
16
- `, p = i.path`
17
- fill: ${({ $fill: o, theme: e }) => e.colors[o]};
18
- `;
19
- export {
20
- c as Circle,
21
- s as LottieContainer,
22
- p as Path,
23
- l as StarContainer
24
- };
25
- //# sourceMappingURL=table-mode-star-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-mode-star-styled.js","sources":["../../../../../../../src/features/circle-games/game-launcher/comps/tables-card/table-mode-star/table-mode-star-styled.tsx"],"sourcesContent":["import type { TColorNames } from '../../../../../ui/types';\n\nimport styled from 'styled-components';\n\nimport { GAME_LAUNCHER_SIZE } from '../../card-container/constants';\n\nexport const StarContainer = styled.div`\n position: relative;\n height: ${GAME_LAUNCHER_SIZE * 0.05}px;\n width: ${GAME_LAUNCHER_SIZE * 0.05}px;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const LottieContainer = styled.div`\n position: absolute;\n height: ${GAME_LAUNCHER_SIZE * 0.05 * 2}px;\n width: ${GAME_LAUNCHER_SIZE * 0.05 * 2}px;\n`;\n\nexport const Circle = styled.circle<{ $fill: TColorNames }>`\n fill: ${({ $fill, theme }) => theme.colors[$fill]};\n`;\n\nexport const Path = styled.path<{ $fill: TColorNames }>`\n fill: ${({ $fill, theme }) => theme.colors[$fill]};\n`;\n"],"names":["StarContainer","styled","GAME_LAUNCHER_SIZE","LottieContainer","Circle","$fill","theme","Path"],"mappings":";;AAMO,MAAMA,IAAgBC,EAAO;AAAA;AAAA,YAExBC,IAAqB,IAAI;AAAA,WAC1BA,IAAqB,IAAI;AAAA;AAAA;AAAA;AAAA,GAMvBC,IAAkBF,EAAO;AAAA;AAAA,YAE1BC,IAAqB,OAAO,CAAC;AAAA,WAC9BA,IAAqB,OAAO,CAAC;AAAA,GAG3BE,IAASH,EAAO;AAAA,UACnB,CAAC,EAAE,OAAAI,GAAO,OAAAC,EAAA,MAAYA,EAAM,OAAOD,CAAK,CAAC;AAAA,GAGtCE,IAAON,EAAO;AAAA,UACjB,CAAC,EAAE,OAAAI,GAAO,OAAAC,EAAA,MAAYA,EAAM,OAAOD,CAAK,CAAC;AAAA;"}
@@ -1,57 +0,0 @@
1
- import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
- import { useState as l, useMemo as c, useEffect as E } from "react";
3
- import { LOTTIE as u } from "../../../../../../assets/lottie/lottie.js";
4
- import T from "../../../../../ui/lottie-animation/lottie-animation.js";
5
- import { GAME_LAUNCHER_SIZE as a } from "../../card-container/constants.js";
6
- import { StarContainer as p, LottieContainer as _, Circle as d, Path as h } from "./table-mode-star-styled.js";
7
- const w = {
8
- loop: !1
9
- }, I = ({ isStarAchieved: e, rewardStar: o }) => {
10
- const [i, n] = l(!1), [s, f] = l(e && !o), L = c(() => ({
11
- name: "complete",
12
- callback: () => {
13
- f(!0), n(!1);
14
- }
15
- }), []);
16
- return E(() => {
17
- let r;
18
- return e && o && (r = setTimeout(() => {
19
- n(!0);
20
- }, 1e3)), () => {
21
- r && clearTimeout(r);
22
- };
23
- }, [e, o]), /* @__PURE__ */ m(p, { children: [
24
- i && /* @__PURE__ */ t(_, { children: /* @__PURE__ */ t(
25
- T,
26
- {
27
- src: u.TABLE_MODE_STAR,
28
- settings: w,
29
- eventListener: L
30
- }
31
- ) }),
32
- !i && /* @__PURE__ */ m(
33
- "svg",
34
- {
35
- xmlns: "http://www.w3.org/2000/svg",
36
- width: a * 0.05,
37
- height: a * 0.05,
38
- viewBox: "0 0 16 16",
39
- fill: "none",
40
- children: [
41
- /* @__PURE__ */ t(d, { cx: "8", cy: "8", r: "8", $fill: s ? "GREEN_6" : "WHITE_T_15" }),
42
- /* @__PURE__ */ t(
43
- h,
44
- {
45
- d: "M8 2L6.23664 5.57295L2.29366 6.1459L5.14683 8.92705L4.47329 12.8541L8 11L11.5267 12.8541L10.8532 8.92705L13.7063 6.1459L9.76336 5.57295L8 2Z",
46
- $fill: s ? "GREEN_4" : "WHITE_T_15"
47
- }
48
- )
49
- ]
50
- }
51
- )
52
- ] });
53
- };
54
- export {
55
- I as default
56
- };
57
- //# sourceMappingURL=table-mode-star.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-mode-star.js","sources":["../../../../../../../src/features/circle-games/game-launcher/comps/tables-card/table-mode-star/table-mode-star.tsx"],"sourcesContent":["import type { ITableModeStarProps } from './table-mode-star-types';\nimport type { AnimationEventName } from 'lottie-web';\n\nimport React, { useEffect, useMemo, useState } from 'react';\n\nimport { LOTTIE } from '../../../../../../assets/lottie/lottie';\nimport LottieAnimation from '../../../../../ui/lottie-animation/lottie-animation';\nimport { GAME_LAUNCHER_SIZE } from '../../card-container/constants';\nimport * as Styled from './table-mode-star-styled';\n\nconst settings = {\n loop: false,\n};\n\nconst TableModeStar: React.FC<ITableModeStarProps> = ({ isStarAchieved, rewardStar }) => {\n const [animateStar, setAnimateStar] = useState(false);\n const [starRewarded, setStarRewarded] = useState(isStarAchieved && !rewardStar);\n\n const onAnimationFinish = useMemo(() => {\n return {\n name: 'complete' as AnimationEventName,\n callback: () => {\n setStarRewarded(true);\n setAnimateStar(false);\n },\n };\n }, []);\n\n useEffect(() => {\n let timer: ReturnType<typeof setTimeout>;\n\n if (isStarAchieved && rewardStar) {\n timer = setTimeout(() => {\n setAnimateStar(true);\n }, 1000);\n }\n\n return () => {\n timer && clearTimeout(timer);\n };\n }, [isStarAchieved, rewardStar]);\n\n return (\n <Styled.StarContainer>\n {animateStar && (\n <Styled.LottieContainer>\n <LottieAnimation\n src={LOTTIE.TABLE_MODE_STAR}\n settings={settings}\n eventListener={onAnimationFinish}\n />\n </Styled.LottieContainer>\n )}\n {!animateStar && (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={GAME_LAUNCHER_SIZE * 0.05}\n height={GAME_LAUNCHER_SIZE * 0.05}\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n >\n <Styled.Circle cx=\"8\" cy=\"8\" r=\"8\" $fill={starRewarded ? 'GREEN_6' : 'WHITE_T_15'} />\n <Styled.Path\n d=\"M8 2L6.23664 5.57295L2.29366 6.1459L5.14683 8.92705L4.47329 12.8541L8 11L11.5267 12.8541L10.8532 8.92705L13.7063 6.1459L9.76336 5.57295L8 2Z\"\n $fill={starRewarded ? 'GREEN_4' : 'WHITE_T_15'}\n />\n </svg>\n )}\n </Styled.StarContainer>\n );\n};\n\nexport default TableModeStar;\n"],"names":["settings","TableModeStar","isStarAchieved","rewardStar","animateStar","setAnimateStar","useState","starRewarded","setStarRewarded","onAnimationFinish","useMemo","useEffect","timer","jsxs","Styled.StarContainer","jsx","Styled.LottieContainer","LottieAnimation","LOTTIE","GAME_LAUNCHER_SIZE","Styled.Circle","Styled.Path"],"mappings":";;;;;;AAUA,MAAMA,IAAW;AAAA,EACf,MAAM;AACR,GAEMC,IAA+C,CAAC,EAAE,gBAAAC,GAAgB,YAAAC,QAAiB;AACvF,QAAM,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAK,GAC9C,CAACC,GAAcC,CAAe,IAAIF,EAASJ,KAAkB,CAACC,CAAU,GAExEM,IAAoBC,EAAQ,OACzB;AAAA,IACL,MAAM;AAAA,IACN,UAAU,MAAM;AACd,MAAAF,EAAgB,EAAI,GACpBH,EAAe,EAAK;AAAA,IACtB;AAAA,EAAA,IAED,CAAE,CAAA;AAEL,SAAAM,EAAU,MAAM;AACV,QAAAC;AAEJ,WAAIV,KAAkBC,MACpBS,IAAQ,WAAW,MAAM;AACvB,MAAAP,EAAe,EAAI;AAAA,OAClB,GAAI,IAGF,MAAM;AACX,MAAAO,KAAS,aAAaA,CAAK;AAAA,IAAA;AAAA,EAC7B,GACC,CAACV,GAAgBC,CAAU,CAAC,GAG7B,gBAAAU,EAACC,GAAA,EACE,UAAA;AAAA,IACCV,KAAA,gBAAAW,EAACC,GAAA,EACC,UAAA,gBAAAD;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,KAAKC,EAAO;AAAA,QACZ,UAAAlB;AAAA,QACA,eAAeS;AAAA,MAAA;AAAA,IAAA,GAEnB;AAAA,IAED,CAACL,KACA,gBAAAS;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,OAAOM,IAAqB;AAAA,QAC5B,QAAQA,IAAqB;AAAA,QAC7B,SAAQ;AAAA,QACR,MAAK;AAAA,QAEL,UAAA;AAAA,UAAA,gBAAAJ,EAACK,GAAA,EAAc,IAAG,KAAI,IAAG,KAAI,GAAE,KAAI,OAAOb,IAAe,YAAY,aAAc,CAAA;AAAA,UACnF,gBAAAQ;AAAA,YAACM;AAAAA,YAAA;AAAA,cACC,GAAE;AAAA,cACF,OAAOd,IAAe,YAAY;AAAA,YAAA;AAAA,UACpC;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
@@ -1,27 +0,0 @@
1
- import i from "styled-components";
2
- import { GAME_LAUNCHER_SIZE as t } from "../../card-container/constants.js";
3
- const s = i.div`
4
- position: relative;
5
- width: ${t * 0.025}px;
6
- height: ${t * 0.025}px;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- margin-left: ${t * 0.03}px;
11
- `, a = i.div`
12
- position: absolute;
13
- height: ${t * 0.025 * 6.3}px;
14
- width: ${t * 0.025 * 6.3}px;
15
- `, l = i.div`
16
- flex-shrink: 0;
17
- width: inherit;
18
- height: inherit;
19
- border-radius: 100%;
20
- background-color: ${({ theme: o, $isStarAchieved: r }) => r ? o.colors.GREEN_6 : o.colors.BLACK_5};
21
- `;
22
- export {
23
- a as LottieContainer,
24
- s as StarContainer,
25
- l as TableStar
26
- };
27
- //# sourceMappingURL=table-segment-star-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-segment-star-styled.js","sources":["../../../../../../../src/features/circle-games/game-launcher/comps/tables-card/table-segment-star/table-segment-star-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { GAME_LAUNCHER_SIZE } from '../../card-container/constants';\n\nexport const StarContainer = styled.div`\n position: relative;\n width: ${GAME_LAUNCHER_SIZE * 0.025}px;\n height: ${GAME_LAUNCHER_SIZE * 0.025}px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: ${GAME_LAUNCHER_SIZE * 0.03}px;\n`;\n\nexport const LottieContainer = styled.div`\n position: absolute;\n height: ${GAME_LAUNCHER_SIZE * 0.025 * 6.3}px;\n width: ${GAME_LAUNCHER_SIZE * 0.025 * 6.3}px;\n`;\n\nexport const TableStar = styled.div<{ $isStarAchieved: boolean }>`\n flex-shrink: 0;\n width: inherit;\n height: inherit;\n border-radius: 100%;\n background-color: ${({ theme, $isStarAchieved }) =>\n $isStarAchieved ? theme.colors.GREEN_6 : theme.colors.BLACK_5};\n`;\n"],"names":["StarContainer","styled","GAME_LAUNCHER_SIZE","LottieContainer","TableStar","theme","$isStarAchieved"],"mappings":";;AAIO,MAAMA,IAAgBC,EAAO;AAAA;AAAA,WAEzBC,IAAqB,KAAK;AAAA,YACzBA,IAAqB,KAAK;AAAA;AAAA;AAAA;AAAA,iBAIrBA,IAAqB,IAAI;AAAA,GAG7BC,IAAkBF,EAAO;AAAA;AAAA,YAE1BC,IAAqB,QAAQ,GAAG;AAAA,WACjCA,IAAqB,QAAQ,GAAG;AAAA,GAG9BE,IAAYH,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKV,CAAC,EAAE,OAAAI,GAAO,iBAAAC,EAAgB,MAC5CA,IAAkBD,EAAM,OAAO,UAAUA,EAAM,OAAO,OAAO;AAAA;"}
@@ -1,37 +0,0 @@
1
- import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
- import { useState as i, useMemo as f, useEffect as u } from "react";
3
- import { LOTTIE as T } from "../../../../../../assets/lottie/lottie.js";
4
- import p from "../../../../../ui/lottie-animation/lottie-animation.js";
5
- import { StarContainer as S, LottieContainer as E, TableStar as L } from "./table-segment-star-styled.js";
6
- const d = {
7
- loop: !1
8
- }, h = ({ isStarAchieved: t, rewardStar: e }) => {
9
- const [n, a] = i(!1), [s, m] = i(t && !e), l = f(() => ({
10
- name: "complete",
11
- callback: () => {
12
- m(!0), a(!1);
13
- }
14
- }), []);
15
- return u(() => {
16
- let o;
17
- return t && e && (o = setTimeout(() => {
18
- a(!0);
19
- }, 1e3)), () => {
20
- o && clearTimeout(o);
21
- };
22
- }, [t, e]), /* @__PURE__ */ c(S, { children: [
23
- n && /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r(
24
- p,
25
- {
26
- src: T.TABLE_SEGMENT_STAR,
27
- settings: d,
28
- eventListener: l
29
- }
30
- ) }),
31
- !n && /* @__PURE__ */ r(L, { $isStarAchieved: s })
32
- ] });
33
- };
34
- export {
35
- h as default
36
- };
37
- //# sourceMappingURL=table-segment-star.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-segment-star.js","sources":["../../../../../../../src/features/circle-games/game-launcher/comps/tables-card/table-segment-star/table-segment-star.tsx"],"sourcesContent":["import type { ITableSegmentStarProps } from './table-segment-star-types';\nimport type { AnimationEventName } from 'lottie-web';\n\nimport React, { useEffect, useMemo, useState } from 'react';\n\nimport { LOTTIE } from '../../../../../../assets/lottie/lottie';\nimport LottieAnimation from '../../../../../ui/lottie-animation/lottie-animation';\nimport * as Styled from './table-segment-star-styled';\n\nconst settings = {\n loop: false,\n};\n\nconst TableSegmentStar: React.FC<ITableSegmentStarProps> = ({ isStarAchieved, rewardStar }) => {\n const [animateStar, setAnimateStar] = useState(false);\n const [starRewarded, setStarRewarded] = useState(isStarAchieved && !rewardStar);\n\n const onAnimationFinish = useMemo(() => {\n return {\n name: 'complete' as AnimationEventName,\n callback: () => {\n setStarRewarded(true);\n setAnimateStar(false);\n },\n };\n }, []);\n\n useEffect(() => {\n let timer: ReturnType<typeof setTimeout>;\n\n if (isStarAchieved && rewardStar) {\n timer = setTimeout(() => {\n setAnimateStar(true);\n }, 1000);\n }\n\n return () => {\n timer && clearTimeout(timer);\n };\n }, [isStarAchieved, rewardStar]);\n\n return (\n <Styled.StarContainer>\n {animateStar && (\n <Styled.LottieContainer>\n <LottieAnimation\n src={LOTTIE.TABLE_SEGMENT_STAR}\n settings={settings}\n eventListener={onAnimationFinish}\n />\n </Styled.LottieContainer>\n )}\n {!animateStar && <Styled.TableStar $isStarAchieved={starRewarded} />}\n </Styled.StarContainer>\n );\n};\n\nexport default TableSegmentStar;\n"],"names":["settings","TableSegmentStar","isStarAchieved","rewardStar","animateStar","setAnimateStar","useState","starRewarded","setStarRewarded","onAnimationFinish","useMemo","useEffect","timer","jsxs","Styled.StarContainer","jsx","Styled.LottieContainer","LottieAnimation","LOTTIE","Styled.TableStar"],"mappings":";;;;;AASA,MAAMA,IAAW;AAAA,EACf,MAAM;AACR,GAEMC,IAAqD,CAAC,EAAE,gBAAAC,GAAgB,YAAAC,QAAiB;AAC7F,QAAM,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAK,GAC9C,CAACC,GAAcC,CAAe,IAAIF,EAASJ,KAAkB,CAACC,CAAU,GAExEM,IAAoBC,EAAQ,OACzB;AAAA,IACL,MAAM;AAAA,IACN,UAAU,MAAM;AACd,MAAAF,EAAgB,EAAI,GACpBH,EAAe,EAAK;AAAA,IACtB;AAAA,EAAA,IAED,CAAE,CAAA;AAEL,SAAAM,EAAU,MAAM;AACV,QAAAC;AAEJ,WAAIV,KAAkBC,MACpBS,IAAQ,WAAW,MAAM;AACvB,MAAAP,EAAe,EAAI;AAAA,OAClB,GAAI,IAGF,MAAM;AACX,MAAAO,KAAS,aAAaA,CAAK;AAAA,IAAA;AAAA,EAC7B,GACC,CAACV,GAAgBC,CAAU,CAAC,GAG7B,gBAAAU,EAACC,GAAA,EACE,UAAA;AAAA,IACCV,KAAA,gBAAAW,EAACC,GAAA,EACC,UAAA,gBAAAD;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,KAAKC,EAAO;AAAA,QACZ,UAAAlB;AAAA,QACA,eAAeS;AAAA,MAAA;AAAA,IAAA,GAEnB;AAAA,IAED,CAACL,KAAe,gBAAAW,EAACI,GAAA,EAAiB,iBAAiBZ,EAAc,CAAA;AAAA,EACpE,EAAA,CAAA;AAEJ;"}
@@ -1,17 +0,0 @@
1
- import i from "styled-components";
2
- import { RAINBOW_COLOR_ANIMATION_DURATION as r } from "../../constants.js";
3
- import { rainbowColorAnimation as n } from "../../helper.js";
4
- import { ARC_Z_INDEX as s } from "./constants.js";
5
- const p = i.svg`
6
- position: absolute;
7
- z-index: ${s};
8
- `, A = i.path`
9
- stroke: ${({ theme: o, stroke: t }) => o.colors[t]};
10
- animation: ${({ $playRainbowColors: o }) => o ? n : "undefined"}
11
- ${r}s ease infinite forwards;
12
- `;
13
- export {
14
- A as Path,
15
- p as Svg
16
- };
17
- //# sourceMappingURL=animated-arc-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"animated-arc-styled.js","sources":["../../../../../../src/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.tsx"],"sourcesContent":["import type { TColorNames } from '../../../../ui/types';\n\nimport styled from 'styled-components';\n\nimport { RAINBOW_COLOR_ANIMATION_DURATION } from '../../constants';\nimport { rainbowColorAnimation } from '../../helper';\nimport { ARC_Z_INDEX } from './constants';\n\nexport const Svg = styled.svg`\n position: absolute;\n z-index: ${ARC_Z_INDEX};\n`;\n\nexport const Path = styled.path<{ stroke: TColorNames; $playRainbowColors: boolean }>`\n stroke: ${({ theme, stroke }) => theme.colors[stroke]};\n animation: ${({ $playRainbowColors }) =>\n $playRainbowColors ? rainbowColorAnimation : 'undefined'}\n ${RAINBOW_COLOR_ANIMATION_DURATION}s ease infinite forwards;\n`;\n"],"names":["Svg","styled","ARC_Z_INDEX","Path","theme","stroke","$playRainbowColors","rainbowColorAnimation","RAINBOW_COLOR_ANIMATION_DURATION"],"mappings":";;;;AAQO,MAAMA,IAAMC,EAAO;AAAA;AAAA,aAEbC,CAAW;AAAA,GAGXC,IAAOF,EAAO;AAAA,YACf,CAAC,EAAE,OAAAG,GAAO,QAAAC,EAAA,MAAaD,EAAM,OAAOC,CAAM,CAAC;AAAA,eACxC,CAAC,EAAE,oBAAAC,EAAA,MACZA,IAAqBC,IAAwB,WAAW;AAAA,MACxDC,CAAgC;AAAA;"}
@@ -1,47 +0,0 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { useRef as A, useLayoutEffect as $ } from "react";
3
- import { describeArc as R } from "../../helper.js";
4
- import { Svg as k, Path as w } from "./animated-arc-styled.js";
5
- import { ADJUSTED_START_ANGLE as D } from "./constants.js";
6
- const x = ({
7
- radius: e,
8
- strokeWidth: n,
9
- color: h,
10
- targetAngle: m,
11
- startAngle: p = 0,
12
- duration: r = 2,
13
- mode: o = "draw",
14
- delay: s = 0,
15
- playRainbowColors: y = !1
16
- }) => {
17
- const a = A(null), g = -D + p, i = e, u = e - n / 2, c = R(i, i, u, g, m);
18
- return $(() => {
19
- const t = a.current;
20
- if (t) {
21
- if (o === "draw") {
22
- const f = t.getTotalLength();
23
- t.style.strokeDasharray = `${f}`, t.style.strokeDashoffset = `${f}`, t.getBoundingClientRect(), requestAnimationFrame(() => {
24
- t.style.transition = `stroke-dashoffset ${r}s linear ${s}s`, t.style.strokeDashoffset = "0";
25
- });
26
- }
27
- o === "fade" && (t.style.opacity = "0", t.getBoundingClientRect(), requestAnimationFrame(() => {
28
- t.style.transition = `opacity 0s ease-in-out ${s}s`, t.style.opacity = "1";
29
- }));
30
- }
31
- }, [c, o, r, s]), /* @__PURE__ */ l(k, { width: 2 * e, height: 2 * e, viewBox: `0 0 ${2 * e} ${2 * e}`, children: /* @__PURE__ */ l(
32
- w,
33
- {
34
- ref: a,
35
- d: c,
36
- fill: "none",
37
- stroke: h,
38
- strokeWidth: n,
39
- strokeLinecap: "butt",
40
- $playRainbowColors: y
41
- }
42
- ) });
43
- };
44
- export {
45
- x as AnimatedArc
46
- };
47
- //# sourceMappingURL=animated-arc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"animated-arc.js","sources":["../../../../../../src/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.tsx"],"sourcesContent":["import type { IAnimatedArcProps } from './animated-arc-types';\n\nimport React, { useRef, useLayoutEffect } from 'react';\n\nimport { describeArc } from '../../helper';\nimport * as Styled from './animated-arc-styled';\nimport { ADJUSTED_START_ANGLE } from './constants';\n\nexport const AnimatedArc: React.FC<IAnimatedArcProps> = ({\n radius,\n strokeWidth,\n color,\n targetAngle,\n startAngle = 0,\n duration = 2,\n mode = 'draw',\n delay = 0,\n playRainbowColors = false,\n}) => {\n const pathRef = useRef<SVGPathElement>(null);\n\n const adjustedStartAngle = -ADJUSTED_START_ANGLE + startAngle;\n const center = radius;\n const arcRadius = radius - strokeWidth / 2; // draw arc inside the visible bounds\n const arcPath = describeArc(center, center, arcRadius, adjustedStartAngle, targetAngle);\n\n useLayoutEffect(() => {\n const path = pathRef.current;\n\n if (!path) return;\n\n if (mode === 'draw') {\n const length = path.getTotalLength();\n\n path.style.strokeDasharray = `${length}`;\n path.style.strokeDashoffset = `${length}`;\n path.getBoundingClientRect();\n\n requestAnimationFrame(() => {\n path.style.transition = `stroke-dashoffset ${duration}s linear ${delay}s`;\n path.style.strokeDashoffset = '0';\n });\n }\n\n if (mode === 'fade') {\n path.style.opacity = '0';\n path.getBoundingClientRect();\n\n requestAnimationFrame(() => {\n path.style.transition = `opacity 0s ease-in-out ${delay}s`;\n path.style.opacity = '1';\n });\n }\n }, [arcPath, mode, duration, delay]);\n\n return (\n <Styled.Svg width={2 * radius} height={2 * radius} viewBox={`0 0 ${2 * radius} ${2 * radius}`}>\n <Styled.Path\n ref={pathRef}\n d={arcPath}\n fill=\"none\"\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"butt\"\n $playRainbowColors={playRainbowColors}\n />\n </Styled.Svg>\n );\n};\n"],"names":["AnimatedArc","radius","strokeWidth","color","targetAngle","startAngle","duration","mode","delay","playRainbowColors","pathRef","useRef","adjustedStartAngle","ADJUSTED_START_ANGLE","center","arcRadius","arcPath","describeArc","useLayoutEffect","path","length","Styled.Svg","jsx","Styled.Path"],"mappings":";;;;;AAQO,MAAMA,IAA2C,CAAC;AAAA,EACvD,QAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,UAAAC,IAAW;AAAA,EACX,MAAAC,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,mBAAAC,IAAoB;AACtB,MAAM;AACE,QAAAC,IAAUC,EAAuB,IAAI,GAErCC,IAAqB,CAACC,IAAuBR,GAC7CS,IAASb,GACTc,IAAYd,IAASC,IAAc,GACnCc,IAAUC,EAAYH,GAAQA,GAAQC,GAAWH,GAAoBR,CAAW;AAEtF,SAAAc,EAAgB,MAAM;AACpB,UAAMC,IAAOT,EAAQ;AAErB,QAAKS,GAEL;AAAA,UAAIZ,MAAS,QAAQ;AACb,cAAAa,IAASD,EAAK;AAEf,QAAAA,EAAA,MAAM,kBAAkB,GAAGC,CAAM,IACjCD,EAAA,MAAM,mBAAmB,GAAGC,CAAM,IACvCD,EAAK,sBAAsB,GAE3B,sBAAsB,MAAM;AAC1B,UAAAA,EAAK,MAAM,aAAa,qBAAqBb,CAAQ,YAAYE,CAAK,KACtEW,EAAK,MAAM,mBAAmB;AAAA,QAAA,CAC/B;AAAA,MACH;AAEA,MAAIZ,MAAS,WACXY,EAAK,MAAM,UAAU,KACrBA,EAAK,sBAAsB,GAE3B,sBAAsB,MAAM;AACrB,QAAAA,EAAA,MAAM,aAAa,0BAA0BX,CAAK,KACvDW,EAAK,MAAM,UAAU;AAAA,MAAA,CACtB;AAAA;AAAA,KAEF,CAACH,GAAST,GAAMD,GAAUE,CAAK,CAAC,qBAGhCa,GAAA,EAAW,OAAO,IAAIpB,GAAQ,QAAQ,IAAIA,GAAQ,SAAS,OAAO,IAAIA,CAAM,IAAI,IAAIA,CAAM,IACzF,UAAA,gBAAAqB;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,KAAKb;AAAA,MACL,GAAGM;AAAA,MACH,MAAK;AAAA,MACL,QAAQb;AAAA,MACR,aAAAD;AAAA,MACA,eAAc;AAAA,MACd,oBAAoBO;AAAA,IAAA;AAAA,EAExB,EAAA,CAAA;AAEJ;"}
@@ -1,6 +0,0 @@
1
- const A = 1, _ = 150;
2
- export {
3
- _ as ADJUSTED_START_ANGLE,
4
- A as ARC_Z_INDEX
5
- };
6
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../../../src/features/post-game-stats/digital-meter/comp/animated-arc/constants.ts"],"sourcesContent":["export const ARC_Z_INDEX = 1;\n\nexport const ADJUSTED_START_ANGLE = 150;\n"],"names":["ARC_Z_INDEX","ADJUSTED_START_ANGLE"],"mappings":"AAAO,MAAMA,IAAc,GAEdC,IAAuB;"}
@@ -1,16 +0,0 @@
1
- import { ARC_Z_INDEX as _ } from "./comp/animated-arc/constants.js";
2
- const I = 300, N = 2, A = _ + 1, E = A + 1, T = E + 1, O = 5, o = 2 / 30, L = 3, t = 12 / 30, D = 1, c = 43 / 30;
3
- export {
4
- N as BORDER_OFFSET,
5
- E as CONTENT_CONTAINER_Z_INDEX,
6
- A as LINE_MARKING_Z_INDEX,
7
- T as NUMBER_MARKING_Z_INDEX,
8
- t as PROGRESS_FILL_DELAY,
9
- D as PROGRESS_FILL_DURATION,
10
- c as RAINBOW_COLOR_ANIMATION_DURATION,
11
- L as TARGET_ACHIEVED_DELAY,
12
- o as TARGET_HELPER_TEXT_APPEAR_DELAY,
13
- O as TOTAL_ANIMATION_DURATION,
14
- I as TOTAL_ARC_AVAILABLE
15
- };
16
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../src/features/post-game-stats/digital-meter/constants.ts"],"sourcesContent":["import { ARC_Z_INDEX } from './comp/animated-arc/constants';\n\nexport const TOTAL_ARC_AVAILABLE = 300;\n\nexport const BORDER_OFFSET = 2;\nexport const LINE_MARKING_Z_INDEX = ARC_Z_INDEX + 1;\nexport const CONTENT_CONTAINER_Z_INDEX = LINE_MARKING_Z_INDEX + 1;\nexport const NUMBER_MARKING_Z_INDEX = CONTENT_CONTAINER_Z_INDEX + 1;\n\n// animation details\nexport const TOTAL_ANIMATION_DURATION = 5; // in sec\nexport const TARGET_HELPER_TEXT_APPEAR_DELAY = 2 / 30; // delay of 2 frames\nexport const TARGET_ACHIEVED_DELAY = 3; // delay of 3 sec\nexport const PROGRESS_FILL_DELAY = 12 / 30; // delay of 12 frames\nexport const PROGRESS_FILL_DURATION = 1; // in sec\nexport const RAINBOW_COLOR_ANIMATION_DURATION = 43 / 30; // 43 frames;\n"],"names":["TOTAL_ARC_AVAILABLE","BORDER_OFFSET","LINE_MARKING_Z_INDEX","ARC_Z_INDEX","CONTENT_CONTAINER_Z_INDEX","NUMBER_MARKING_Z_INDEX","TOTAL_ANIMATION_DURATION","TARGET_HELPER_TEXT_APPEAR_DELAY","TARGET_ACHIEVED_DELAY","PROGRESS_FILL_DELAY","PROGRESS_FILL_DURATION","RAINBOW_COLOR_ANIMATION_DURATION"],"mappings":";AAEO,MAAMA,IAAsB,KAEtBC,IAAgB,GAChBC,IAAuBC,IAAc,GACrCC,IAA4BF,IAAuB,GACnDG,IAAyBD,IAA4B,GAGrDE,IAA2B,GAC3BC,IAAkC,IAAI,IACtCC,IAAwB,GACxBC,IAAsB,KAAK,IAC3BC,IAAyB,GACzBC,IAAmC,KAAK;"}
@@ -1,87 +0,0 @@
1
- import o, { keyframes as e } from "styled-components";
2
- import { GAME_LAUNCHER_SIZE as r, GAME_LAUNCHER_SIZE_LARGE as s } from "../../circle-games/game-launcher/comps/card-container/constants.js";
3
- import i from "../../ui/text/text.js";
4
- import { ADJUSTED_START_ANGLE as n } from "./comp/animated-arc/constants.js";
5
- import { CONTENT_CONTAINER_Z_INDEX as l, LINE_MARKING_Z_INDEX as d, NUMBER_MARKING_Z_INDEX as m, TARGET_HELPER_TEXT_APPEAR_DELAY as a, RAINBOW_COLOR_ANIMATION_DURATION as p } from "./constants.js";
6
- import { rainbowColorAnimation as f } from "./helper.js";
7
- const g = o.div`
8
- height: ${r}px;
9
- width: ${r}px;
10
- background-color: ${({ theme: t }) => t.colors.BLACK_2};
11
- display: flex;
12
- align-items: center;
13
- justify-content: center;
14
- position: relative;
15
- border-radius: 100%;
16
- border: 1px solid ${({ theme: t }) => t.colors.WHITE};
17
- animation: ${({ $isTargetAchieved: t }) => t ? e`100%{transform: scale(1.02)}` : "unset"}
18
- 0.133s ease alternate;
19
- `, N = o.div`
20
- display: flex;
21
- justify-content: center;
22
- align-items: center;
23
- position: absolute;
24
- z-index: ${l};
25
- height: 92%;
26
- width: 92%;
27
- border-radius: 100%;
28
- background-color: ${({ theme: t }) => t.colors.BLACK_2};
29
- `, b = o.div`
30
- position: relative;
31
- flex-grow: 1;
32
- bottom: ${r === s ? -8 : -6}px;
33
- `;
34
- o.div`
35
- position: absolute;
36
- `;
37
- const u = o.div`
38
- width: ${r / 2}px;
39
- height: 2px;
40
- position: absolute;
41
- background-color: ${({ theme: t }) => t.colors.BLACK_2};
42
- transform-style: preserve-3d;
43
- backface-visibility: hidden;
44
- transform-origin: left;
45
- transform: rotate(${({ $angle: t }) => -240 + t}deg);
46
- left: ${r / 2}px;
47
- top: ${r / 2}px;
48
- z-index: ${d};
49
- `, T = o.div`
50
- position: absolute;
51
- height: ${r - r * 0.0625 - 10}px;
52
- transform: rotate(${({ $angle: t }) => -n + t}deg);
53
- z-index: ${m};
54
- `, h = o.div`
55
- transform: rotate(${({ $angle: t }) => n - t}deg);
56
- `, C = o.div`
57
- position: absolute;
58
- top: 0;
59
- transform: ${({ top: t }) => `translateY(${t}px)`};
60
- `, R = o(i)`
61
- animation: ${e`from{transform: translateY(-6px)} to{transform: translateY(0)}`} 0.133s
62
- ease-in-out ${a}s forwards;
63
- `, I = o(i)`
64
- animation: ${e`from{transform: translateY(-6px)} to{transform: translateY(0)}`} 0.133s
65
- ease ${a}s forwards;
66
- `;
67
- o.div`
68
- height: 100%;
69
- width: 100%;
70
- `;
71
- const v = o(i)`
72
- animation: ${({ $isTargetAchieved: t }) => t ? f : "unset"}
73
- ${p}s ease infinite forwards;
74
- `;
75
- export {
76
- C as BottomAbsoluteView,
77
- N as ContentContainer,
78
- g as DigitalMeter,
79
- R as HelperTextPrimary,
80
- I as HelperTextSecondary,
81
- u as LineMarking,
82
- T as MarkingContainer,
83
- h as MarkingText,
84
- b as NumberCountContainer,
85
- v as RainboxColorText
86
- };
87
- //# sourceMappingURL=digital-meter-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"digital-meter-styled.js","sources":["../../../../src/features/post-game-stats/digital-meter/digital-meter-styled.tsx"],"sourcesContent":["import styled, { keyframes } from 'styled-components';\n\nimport {\n GAME_LAUNCHER_SIZE,\n GAME_LAUNCHER_SIZE_LARGE,\n} from '../../circle-games/game-launcher/comps/card-container/constants';\nimport Text from '../../ui/text/text';\nimport { ADJUSTED_START_ANGLE } from './comp/animated-arc/constants';\nimport {\n CONTENT_CONTAINER_Z_INDEX,\n LINE_MARKING_Z_INDEX,\n NUMBER_MARKING_Z_INDEX,\n RAINBOW_COLOR_ANIMATION_DURATION,\n TARGET_HELPER_TEXT_APPEAR_DELAY,\n} from './constants';\nimport { rainbowColorAnimation } from './helper';\n\nexport const DigitalMeter = styled.div<{ $isTargetAchieved: boolean }>`\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n border-radius: 100%;\n border: 1px solid ${({ theme }) => theme.colors.WHITE};\n animation: ${({ $isTargetAchieved }) =>\n $isTargetAchieved ? keyframes`100%{transform: scale(1.02)}` : 'unset'}\n 0.133s ease alternate;\n`;\n\nexport const ContentContainer = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n z-index: ${CONTENT_CONTAINER_Z_INDEX};\n height: 92%;\n width: 92%;\n border-radius: 100%;\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n`;\n\nexport const NumberCountContainer = styled.div`\n position: relative;\n flex-grow: 1;\n bottom: ${GAME_LAUNCHER_SIZE === GAME_LAUNCHER_SIZE_LARGE ? -8 : -6}px;\n`;\n\nexport const AbsoluteView = styled.div`\n position: absolute;\n`;\n\nexport const LineMarking = styled.div<{\n $angle: number;\n}>`\n width: ${GAME_LAUNCHER_SIZE / 2}px;\n height: 2px;\n position: absolute;\n background-color: ${({ theme }) => theme.colors.BLACK_2};\n transform-style: preserve-3d;\n backface-visibility: hidden;\n transform-origin: left;\n transform: rotate(${({ $angle }) => -240 + $angle}deg);\n left: ${GAME_LAUNCHER_SIZE / 2}px;\n top: ${GAME_LAUNCHER_SIZE / 2}px;\n z-index: ${LINE_MARKING_Z_INDEX};\n`;\n\nexport const MarkingContainer = styled.div<{ $angle: number }>`\n position: absolute;\n height: ${GAME_LAUNCHER_SIZE - GAME_LAUNCHER_SIZE * 0.0625 - 10}px;\n transform: rotate(${({ $angle }) => -ADJUSTED_START_ANGLE + $angle}deg);\n z-index: ${NUMBER_MARKING_Z_INDEX};\n`;\n\nexport const MarkingText = styled.div<{ $angle: number }>`\n transform: rotate(${({ $angle }) => ADJUSTED_START_ANGLE - $angle}deg);\n`;\n\nexport const BottomAbsoluteView = styled.div<{ top: number }>`\n position: absolute;\n top: 0;\n transform: ${({ top }) => `translateY(${top}px)`};\n`;\n\nexport const HelperTextPrimary = styled(Text)`\n animation: ${keyframes`from{transform: translateY(-6px)} to{transform: translateY(0)}`} 0.133s\n ease-in-out ${TARGET_HELPER_TEXT_APPEAR_DELAY}s forwards;\n`;\n\nexport const HelperTextSecondary = styled(Text)`\n animation: ${keyframes`from{transform: translateY(-6px)} to{transform: translateY(0)}`} 0.133s\n ease ${TARGET_HELPER_TEXT_APPEAR_DELAY}s forwards;\n`;\n\nexport const TargetAchievedTextLottie = styled.div`\n height: 100%;\n width: 100%;\n`;\n\nexport const RainboxColorText = styled(Text)<{ $isTargetAchieved: boolean }>`\n animation: ${({ $isTargetAchieved }) => ($isTargetAchieved ? rainbowColorAnimation : 'unset')}\n ${RAINBOW_COLOR_ANIMATION_DURATION}s ease infinite forwards;\n`;\n"],"names":["DigitalMeter","styled","GAME_LAUNCHER_SIZE","theme","$isTargetAchieved","keyframes","ContentContainer","CONTENT_CONTAINER_Z_INDEX","NumberCountContainer","GAME_LAUNCHER_SIZE_LARGE","LineMarking","$angle","LINE_MARKING_Z_INDEX","MarkingContainer","ADJUSTED_START_ANGLE","NUMBER_MARKING_Z_INDEX","MarkingText","BottomAbsoluteView","top","HelperTextPrimary","Text","TARGET_HELPER_TEXT_APPEAR_DELAY","HelperTextSecondary","RainboxColorText","rainbowColorAnimation","RAINBOW_COLOR_ANIMATION_DURATION"],"mappings":";;;;;;AAiBO,MAAMA,IAAeC,EAAO;AAAA,YACvBC,CAAkB;AAAA,WACnBA,CAAkB;AAAA,sBACP,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAMnC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,eACxC,CAAC,EAAE,mBAAAC,QACZA,IAAoBC,kCAA0C,OAAO;AAAA;AAAA,GAI9DC,IAAmBL,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,aAK1BM,CAAyB;AAAA;AAAA;AAAA;AAAA,sBAIhB,CAAC,EAAE,OAAAJ,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA,GAG5CK,IAAuBP,EAAO;AAAA;AAAA;AAAA,YAG/BC,MAAuBO,IAA2B,KAAK,EAAE;AAAA;AAGzCR,EAAO;AAAA;AAAA;AAI5B,MAAMS,IAAcT,EAAO;AAAA,WAGvBC,IAAqB,CAAC;AAAA;AAAA;AAAA,sBAGX,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,sBAInC,CAAC,EAAE,QAAAQ,EAAO,MAAM,OAAOA,CAAM;AAAA,UACzCT,IAAqB,CAAC;AAAA,SACvBA,IAAqB,CAAC;AAAA,aAClBU,CAAoB;AAAA,GAGpBC,IAAmBZ,EAAO;AAAA;AAAA,YAE3BC,IAAqBA,IAAqB,SAAS,EAAE;AAAA,sBAC3C,CAAC,EAAE,QAAAS,EAAA,MAAa,CAACG,IAAuBH,CAAM;AAAA,aACvDI,CAAsB;AAAA,GAGtBC,IAAcf,EAAO;AAAA,sBACZ,CAAC,EAAE,QAAAU,QAAaG,IAAuBH,CAAM;AAAA,GAGtDM,IAAqBhB,EAAO;AAAA;AAAA;AAAA,eAG1B,CAAC,EAAE,KAAAiB,EAAU,MAAA,cAAcA,CAAG,KAAK;AAAA,GAGrCC,IAAoBlB,EAAOmB,CAAI;AAAA,eAC7Bf,iEAAyE;AAAA,kBACtEgB,CAA+B;AAAA,GAGpCC,IAAsBrB,EAAOmB,CAAI;AAAA,eAC/Bf,iEAAyE;AAAA,WAC7EgB,CAA+B;AAAA;AAGFpB,EAAO;AAAA;AAAA;AAAA;AAKlC,MAAAsB,IAAmBtB,EAAOmB,CAAI;AAAA,eAC5B,CAAC,EAAE,mBAAAhB,EAAA,MAAyBA,IAAoBoB,IAAwB,OAAQ;AAAA,MACzFC,CAAgC;AAAA;"}
@@ -1,188 +0,0 @@
1
- import { jsxs as o, jsx as r, Fragment as $ } from "react/jsx-runtime";
2
- import { memo as W, useState as U, useCallback as w, useEffect as B } from "react";
3
- import { LOTTIE as Y } from "../../../assets/lottie/lottie.js";
4
- import { GAME_LAUNCHER_SIZE as i, GAME_LAUNCHER_SIZE_LARGE as c } from "../../circle-games/game-launcher/comps/card-container/constants.js";
5
- import I from "../../ui/layout/flex-view.js";
6
- import P from "../../ui/lottie-animation/lottie-animation.js";
7
- import R from "../../ui/separator/separator.js";
8
- import N from "../../ui/text/text.js";
9
- import { NumberCountAnimation as j } from "../number-count-animation/number-count-animation.js";
10
- import { AnimatedArc as p } from "./comp/animated-arc/animated-arc.js";
11
- import { TARGET_ACHIEVED_DELAY as S, TOTAL_ARC_AVAILABLE as d, BORDER_OFFSET as C, PROGRESS_FILL_DURATION as E, PROGRESS_FILL_DELAY as L, TOTAL_ANIMATION_DURATION as K } from "./constants.js";
12
- import { DigitalMeter as Z, ContentContainer as X, NumberCountContainer as q, RainboxColorText as b, LineMarking as u, MarkingContainer as G, MarkingText as D, BottomAbsoluteView as M, HelperTextPrimary as z, HelperTextSecondary as J } from "./digital-meter-styled.js";
13
- import { useCircleSounds as Q } from "../../circle-games/hooks/use-circle-sounds/use-circle-sounds.js";
14
- import { CircleSoundKey as m } from "../../circle-games/hooks/use-circle-sounds/use-circle-sounds-enums.js";
15
- const Tr = W(
16
- ({
17
- show: _,
18
- value: h,
19
- maxValue: n,
20
- targetValue: A = 0,
21
- displayText: H,
22
- progressType: s,
23
- helperTextPrimary: O,
24
- helperTextSecondary: F,
25
- onComplete: k,
26
- actAsTimer: f
27
- }) => {
28
- const [a, y] = U(!1), { play: g } = Q(), T = w((t) => A ? f ? t <= A : t >= A : !1, []);
29
- return B(() => {
30
- let t, e;
31
- const l = T(h);
32
- return _ && (g(f ? m.TIME_INTRO : m.ACCURACY_INTRO), g(m.METER_FILL), l && (t = setTimeout(() => {
33
- g(f ? m.TIME_TARGET : m.ACCURACY_TARGET), y(!0);
34
- }, S * 1e3)), e = setTimeout(() => {
35
- k();
36
- }, (l ? K : S) * 1e3)), () => {
37
- t && clearTimeout(t), e && clearTimeout(e);
38
- };
39
- }, [_, h, k, T]), _ ? /* @__PURE__ */ o(Z, { $isTargetAchieved: a, children: [
40
- /* @__PURE__ */ r(
41
- p,
42
- {
43
- targetAngle: d,
44
- strokeWidth: i === c ? 16 : 12,
45
- color: "BLACK_5",
46
- radius: (i - C) / 2,
47
- duration: 0
48
- }
49
- ),
50
- /* @__PURE__ */ r(X, { children: /* @__PURE__ */ o(I, { $flexDirection: "column", $alignItems: "center", children: [
51
- /* @__PURE__ */ o(I, { $flexDirection: "row", $alignItems: "flex-end", children: [
52
- /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(
53
- b,
54
- {
55
- $renderAs: i === c ? "ah1" : "ah2",
56
- $color: "GREEN_4",
57
- $isTargetAchieved: a,
58
- children: /* @__PURE__ */ r(
59
- j,
60
- {
61
- initialValue: 0,
62
- targetValue: Math.floor(h),
63
- durationInSec: E,
64
- delayInSec: L
65
- }
66
- )
67
- }
68
- ) }),
69
- s === "stepper" && /* @__PURE__ */ o(
70
- N,
71
- {
72
- $renderAs: i === c ? "ah4" : "ab1",
73
- $color: "WHITE",
74
- children: [
75
- "/",
76
- n
77
- ]
78
- }
79
- )
80
- ] }),
81
- /* @__PURE__ */ r(R, { height: 8 }),
82
- /* @__PURE__ */ r(
83
- N,
84
- {
85
- $renderAs: i === c ? "ac3-black" : "ac4-black",
86
- $color: "WHITE_T_60",
87
- children: H
88
- }
89
- )
90
- ] }) }),
91
- s === "stepper" && Array.from({ length: h }, (t, e) => {
92
- const l = d / n;
93
- return /* @__PURE__ */ r(
94
- p,
95
- {
96
- startAngle: l * e,
97
- targetAngle: l,
98
- strokeWidth: i === c ? 16 : 12,
99
- color: "GREEN_4",
100
- radius: (i - C) / 2,
101
- mode: "fade",
102
- duration: E / n,
103
- delay: L + E / n * e,
104
- playRainbowColors: a
105
- },
106
- e
107
- );
108
- }),
109
- s === "stepper" && Array.from({ length: n + 1 }, (t, e) => {
110
- const l = d / n;
111
- return /* @__PURE__ */ o($, { children: [
112
- /* @__PURE__ */ r(u, { $angle: l * e }, e + "linemarking"),
113
- /* @__PURE__ */ r(G, { $angle: l * e, children: /* @__PURE__ */ r(D, { $angle: l * e, children: /* @__PURE__ */ r(
114
- b,
115
- {
116
- $renderAs: i === c ? "ac3-black" : "ac4-black",
117
- $isTargetAchieved: T(e) && a,
118
- $color: A && T(e) ? "GREEN_4" : "WHITE_T_60",
119
- children: e
120
- }
121
- ) }) }, e)
122
- ] });
123
- }),
124
- s === "linear" && /* @__PURE__ */ o($, { children: [
125
- /* @__PURE__ */ r(
126
- p,
127
- {
128
- targetAngle: h * d / n,
129
- strokeWidth: i === c ? 16 : 12,
130
- color: "GREEN_4",
131
- radius: (i - C) / 2,
132
- duration: E,
133
- delay: L,
134
- playRainbowColors: a
135
- }
136
- ),
137
- /* @__PURE__ */ o($, { children: [
138
- A && /* @__PURE__ */ r(u, { $angle: A * d / n }),
139
- Array.from(/* @__PURE__ */ new Set([0, A, n])).map((t, e) => /* @__PURE__ */ r(
140
- G,
141
- {
142
- $angle: t * d / n,
143
- children: /* @__PURE__ */ r(D, { $angle: t * d / n, children: /* @__PURE__ */ r(
144
- b,
145
- {
146
- $renderAs: i === c ? "ac3-black" : "ac4-black",
147
- $color: A && T(t) ? "GREEN_4" : "WHITE_T_60",
148
- $isTargetAchieved: h >= t && a && T(t),
149
- children: t
150
- }
151
- ) })
152
- },
153
- e
154
- ))
155
- ] })
156
- ] }),
157
- a && /* @__PURE__ */ r(M, { top: i, children: /* @__PURE__ */ r(P, { src: Y.TARGET_ACHIEVED_TEXT }) }),
158
- !a && /* @__PURE__ */ o(M, { top: i, children: [
159
- /* @__PURE__ */ r(R, { height: 25 }),
160
- /* @__PURE__ */ o(I, { $flexDirection: "column", $alignItems: "center", children: [
161
- /* @__PURE__ */ o(
162
- z,
163
- {
164
- $renderAs: i === c ? "ac3-black" : "ac4-black",
165
- $color: "WHITE_T_60",
166
- children: [
167
- O,
168
- /* @__PURE__ */ r(R, { height: i * 0.03 })
169
- ]
170
- }
171
- ),
172
- /* @__PURE__ */ r(
173
- J,
174
- {
175
- $renderAs: i === c ? "ah4" : "ab1",
176
- $color: "WHITE",
177
- children: F
178
- }
179
- )
180
- ] })
181
- ] })
182
- ] }) : null;
183
- }
184
- );
185
- export {
186
- Tr as DigitalMeter
187
- };
188
- //# sourceMappingURL=digital-meter.js.map