@cuemath/leap 3.4.8 → 3.4.9-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 (209) 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 +3 -0
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/analytics-events/platform-events-student.js +1 -1
  6. package/dist/features/analytics-events/platform-events-student.js.map +1 -1
  7. package/dist/features/analytics-events/whitelist-events.js +1 -1
  8. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  9. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +31 -16
  10. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -1
  11. package/dist/features/auth/comps/tabs/tabs.js +22 -5
  12. package/dist/features/auth/comps/tabs/tabs.js.map +1 -1
  13. package/dist/features/circle-games/{game-launcher → game-launcher-v2}/api/get-content-for-today/constants.js +1 -1
  14. package/dist/features/circle-games/game-launcher-v2/api/get-content-for-today/constants.js.map +1 -0
  15. package/dist/features/circle-games/game-launcher-v2/api/get-content-for-today/get-circle-home-api.js.map +1 -0
  16. package/dist/features/circle-games/game-launcher-v2/comps/card-container/card-container-styled.js.map +1 -0
  17. package/dist/features/circle-games/game-launcher-v2/comps/card-container/card-container.js.map +1 -0
  18. package/dist/features/circle-games/game-launcher-v2/comps/card-container/constants.js +11 -0
  19. package/dist/features/circle-games/game-launcher-v2/comps/card-container/constants.js.map +1 -0
  20. package/dist/features/circle-games/game-launcher-v2/comps/carousel/carousel-styled.js +121 -0
  21. package/dist/features/circle-games/game-launcher-v2/comps/carousel/carousel-styled.js.map +1 -0
  22. package/dist/features/circle-games/game-launcher-v2/comps/carousel/carousel.js +106 -0
  23. package/dist/features/circle-games/game-launcher-v2/comps/carousel/carousel.js.map +1 -0
  24. package/dist/features/circle-games/game-launcher-v2/comps/carousel/constants.js +9 -0
  25. package/dist/features/circle-games/game-launcher-v2/comps/carousel/constants.js.map +1 -0
  26. package/dist/features/circle-games/game-launcher-v2/comps/carousel-badge/carousel-badge-style.js +20 -0
  27. package/dist/features/circle-games/game-launcher-v2/comps/carousel-badge/carousel-badge-style.js.map +1 -0
  28. package/dist/features/circle-games/game-launcher-v2/comps/carousel-badge/carousel-badge.js +17 -0
  29. package/dist/features/circle-games/game-launcher-v2/comps/carousel-badge/carousel-badge.js.map +1 -0
  30. package/dist/features/circle-games/game-launcher-v2/comps/carousel-badge/carousel-single-badge.js +20 -0
  31. package/dist/features/circle-games/game-launcher-v2/comps/carousel-badge/carousel-single-badge.js.map +1 -0
  32. package/dist/features/circle-games/game-launcher-v2/comps/circular-game-card/circular-game-card-styled.js +66 -0
  33. package/dist/features/circle-games/game-launcher-v2/comps/circular-game-card/circular-game-card-styled.js.map +1 -0
  34. package/dist/features/circle-games/game-launcher-v2/comps/circular-game-card/circular-game-card.js +81 -0
  35. package/dist/features/circle-games/game-launcher-v2/comps/circular-game-card/circular-game-card.js.map +1 -0
  36. package/dist/features/circle-games/game-launcher-v2/comps/circular-game-card/constants.js +8 -0
  37. package/dist/features/circle-games/game-launcher-v2/comps/circular-game-card/constants.js.map +1 -0
  38. package/dist/features/circle-games/game-launcher-v2/comps/game-card-content/constants.js +6 -0
  39. package/dist/features/circle-games/game-launcher-v2/comps/game-card-content/constants.js.map +1 -0
  40. package/dist/features/circle-games/game-launcher-v2/comps/game-card-content/game-card-content-styled.js +57 -0
  41. package/dist/features/circle-games/game-launcher-v2/comps/game-card-content/game-card-content-styled.js.map +1 -0
  42. package/dist/features/circle-games/game-launcher-v2/comps/game-card-content/game-card-content.js +9 -0
  43. package/dist/features/circle-games/game-launcher-v2/comps/game-card-content/game-card-content.js.map +1 -0
  44. package/dist/features/circle-games/game-launcher-v2/comps/segmented-game-card/constants.js +7 -0
  45. package/dist/features/circle-games/game-launcher-v2/comps/segmented-game-card/constants.js.map +1 -0
  46. package/dist/features/circle-games/game-launcher-v2/comps/swipable-card/swipeable-card-styled.js +14 -0
  47. package/dist/features/circle-games/game-launcher-v2/comps/swipable-card/swipeable-card-styled.js.map +1 -0
  48. package/dist/features/circle-games/game-launcher-v2/comps/swipable-card/swipeable-card.js +24 -0
  49. package/dist/features/circle-games/game-launcher-v2/comps/swipable-card/swipeable-card.js.map +1 -0
  50. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/constants.js.map +1 -0
  51. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/infinite-button/infinite-mode-launcher-button.js.map +1 -0
  52. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/spl-events-text/constants.js.map +1 -0
  53. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/spl-events-text/spl-events-text-style.js.map +1 -0
  54. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/spl-events-text/spl-events-text-types.js.map +1 -0
  55. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/spl-events-text/spl-events-text.js.map +1 -0
  56. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/table-mode/table-mode-styled.js.map +1 -0
  57. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/table-mode/table-mode.js.map +1 -0
  58. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/table-mode-star/constants.js.map +1 -0
  59. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/table-mode-star/table-mode-star-styled.js.map +1 -0
  60. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/table-mode-star/table-mode-star.js.map +1 -0
  61. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/table-segment-star/table-segment-star-styled.js.map +1 -0
  62. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/table-segment-star/table-segment-star.js.map +1 -0
  63. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/tables-card-styled.js.map +1 -0
  64. package/dist/features/circle-games/game-launcher-v2/comps/tables-card/tables-card.js.map +1 -0
  65. package/dist/features/circle-games/game-launcher-v2/dal/use-get-circle-home-details-dal/helper.js +94 -0
  66. package/dist/features/circle-games/game-launcher-v2/dal/use-get-circle-home-details-dal/helper.js.map +1 -0
  67. package/dist/features/circle-games/game-launcher-v2/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js.map +1 -0
  68. package/dist/features/circle-games/game-launcher-v2/game-launcher-analytics-events.js +13 -0
  69. package/dist/features/circle-games/game-launcher-v2/game-launcher-analytics-events.js.map +1 -0
  70. package/dist/features/circle-games/game-launcher-v2/game-launcher-v2.js +321 -0
  71. package/dist/features/circle-games/game-launcher-v2/game-launcher-v2.js.map +1 -0
  72. package/dist/features/circle-games/game-launcher-v2/helpers.js +8 -0
  73. package/dist/features/circle-games/game-launcher-v2/helpers.js.map +1 -0
  74. package/dist/features/circle-games/game-launcher-v2/hooks/use-game-launcher-journey/constants.js +6 -0
  75. package/dist/features/circle-games/game-launcher-v2/hooks/use-game-launcher-journey/constants.js.map +1 -0
  76. package/dist/features/circle-games/game-launcher-v2/hooks/use-game-launcher-journey/use-game-launcher-journey.js +160 -0
  77. package/dist/features/circle-games/game-launcher-v2/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -0
  78. package/dist/features/circle-games/game-launcher-v2/hooks/use-table-infinite-launcher-journey/constants.js +5 -0
  79. package/dist/features/circle-games/game-launcher-v2/hooks/use-table-infinite-launcher-journey/constants.js.map +1 -0
  80. package/dist/features/circle-games/game-launcher-v2/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +92 -0
  81. package/dist/features/circle-games/game-launcher-v2/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -0
  82. package/dist/features/circle-games/game-launcher-v2/hooks/use-table-launcher-journey/constants.js +10 -0
  83. package/dist/features/circle-games/game-launcher-v2/hooks/use-table-launcher-journey/constants.js.map +1 -0
  84. package/dist/features/circle-games/game-launcher-v2/hooks/use-table-launcher-journey/use-table-launcher-journey.js +159 -0
  85. package/dist/features/circle-games/game-launcher-v2/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -0
  86. package/dist/features/circle-games/games/tutorial/tutorial-styled.js +13 -10
  87. package/dist/features/circle-games/games/tutorial/tutorial-styled.js.map +1 -1
  88. package/dist/features/circle-games/games/tutorial/tutorial.js +53 -65
  89. package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
  90. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  91. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  92. package/dist/features/journey/use-journey/constants.js +7 -5
  93. package/dist/features/journey/use-journey/constants.js.map +1 -1
  94. package/dist/features/journey/use-journey/journey-context-provider.js +84 -72
  95. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  96. package/dist/features/post-game-stats/accuracy/accuracy-styled.js +2 -2
  97. package/dist/features/post-game-stats/accuracy/accuracy-styled.js.map +1 -1
  98. package/dist/features/post-game-stats/clock/clock-styled.js +2 -2
  99. package/dist/features/post-game-stats/clock/clock-styled.js.map +1 -1
  100. package/dist/features/post-game-stats/digital-meter/constants.js +1 -1
  101. package/dist/features/post-game-stats/digital-meter/constants.js.map +1 -1
  102. package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js +1 -1
  103. package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js.map +1 -1
  104. package/dist/features/post-game-stats/digital-meter/digital-meter.js +1 -1
  105. package/dist/features/post-game-stats/digital-meter/digital-meter.js.map +1 -1
  106. package/dist/features/post-game-stats/points/points.js +5 -4
  107. package/dist/features/post-game-stats/points/points.js.map +1 -1
  108. package/dist/features/post-game-stats/post-game-stats-styled.js +9 -8
  109. package/dist/features/post-game-stats/post-game-stats-styled.js.map +1 -1
  110. package/dist/features/post-game-stats/post-game-stats.js +107 -105
  111. package/dist/features/post-game-stats/post-game-stats.js.map +1 -1
  112. package/dist/features/post-game-stats/score/score-styled.js +2 -2
  113. package/dist/features/post-game-stats/score/score-styled.js.map +1 -1
  114. package/dist/features/post-game-stats/streak/constants.js +1 -1
  115. package/dist/features/post-game-stats/streak/constants.js.map +1 -1
  116. package/dist/features/post-game-stats/streak/streak-styled.js +2 -2
  117. package/dist/features/post-game-stats/streak/streak-styled.js.map +1 -1
  118. package/dist/features/ui/nudge/nudge.js +14 -13
  119. package/dist/features/ui/nudge/nudge.js.map +1 -1
  120. package/dist/index.d.ts +69 -7
  121. package/dist/index.js +5 -5
  122. package/dist/static/accuracy-badge.2e161f00.svg +1 -0
  123. package/dist/static/clock-badge.0adb4ba6.svg +1 -0
  124. package/dist/static/daily-work-out-complete.eaffdd2b.json +1 -0
  125. package/dist/static/down-arrow-badge.f462f615.svg +1 -0
  126. package/dist/static/green-tick.43b94c3a.svg +1 -0
  127. package/dist/static/nudge-swipe.3b97c01a.json +1 -0
  128. package/dist/static/pill-tick.c06f606d.json +1 -0
  129. package/dist/static/points-badge.96bdecc9.svg +1 -0
  130. package/dist/static/star-badge.5450c267.svg +1 -0
  131. package/dist/static/up-arrow-badge.71fe7ad1.svg +1 -0
  132. package/package.json +1 -1
  133. package/dist/assets/line-icons/icons/carat-left.js +0 -26
  134. package/dist/assets/line-icons/icons/carat-left.js.map +0 -1
  135. package/dist/assets/line-icons/icons/carat-right.js +0 -26
  136. package/dist/assets/line-icons/icons/carat-right.js.map +0 -1
  137. package/dist/features/circle-games/game-launcher/api/get-content-for-today/constants.js.map +0 -1
  138. package/dist/features/circle-games/game-launcher/api/get-content-for-today/get-circle-home-api.js.map +0 -1
  139. package/dist/features/circle-games/game-launcher/comps/card-container/card-container-styled.js.map +0 -1
  140. package/dist/features/circle-games/game-launcher/comps/card-container/card-container.js.map +0 -1
  141. package/dist/features/circle-games/game-launcher/comps/card-container/constants.js +0 -7
  142. package/dist/features/circle-games/game-launcher/comps/card-container/constants.js.map +0 -1
  143. package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js +0 -39
  144. package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js.map +0 -1
  145. package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js +0 -85
  146. package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js.map +0 -1
  147. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/constants.js +0 -12
  148. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/constants.js.map +0 -1
  149. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.js +0 -138
  150. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.js.map +0 -1
  151. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js +0 -105
  152. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js.map +0 -1
  153. package/dist/features/circle-games/game-launcher/comps/tables-card/constants.js.map +0 -1
  154. package/dist/features/circle-games/game-launcher/comps/tables-card/infinite-button/infinite-mode-launcher-button.js.map +0 -1
  155. package/dist/features/circle-games/game-launcher/comps/tables-card/spl-events-text/constants.js.map +0 -1
  156. package/dist/features/circle-games/game-launcher/comps/tables-card/spl-events-text/spl-events-text-style.js.map +0 -1
  157. package/dist/features/circle-games/game-launcher/comps/tables-card/spl-events-text/spl-events-text-types.js.map +0 -1
  158. package/dist/features/circle-games/game-launcher/comps/tables-card/spl-events-text/spl-events-text.js.map +0 -1
  159. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode-styled.js.map +0 -1
  160. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode.js.map +0 -1
  161. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode-star/constants.js.map +0 -1
  162. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode-star/table-mode-star-styled.js.map +0 -1
  163. package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode-star/table-mode-star.js.map +0 -1
  164. package/dist/features/circle-games/game-launcher/comps/tables-card/table-segment-star/table-segment-star-styled.js.map +0 -1
  165. package/dist/features/circle-games/game-launcher/comps/tables-card/table-segment-star/table-segment-star.js.map +0 -1
  166. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js.map +0 -1
  167. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +0 -1
  168. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js +0 -73
  169. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js.map +0 -1
  170. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js.map +0 -1
  171. package/dist/features/circle-games/game-launcher/game-launcher-analytics-events.js +0 -12
  172. package/dist/features/circle-games/game-launcher/game-launcher-analytics-events.js.map +0 -1
  173. package/dist/features/circle-games/game-launcher/game-launcher.js +0 -219
  174. package/dist/features/circle-games/game-launcher/game-launcher.js.map +0 -1
  175. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/constants.js +0 -8
  176. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/constants.js.map +0 -1
  177. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +0 -286
  178. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +0 -1
  179. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/constants.js +0 -10
  180. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/constants.js.map +0 -1
  181. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey-styled.js +0 -13
  182. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey-styled.js.map +0 -1
  183. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +0 -137
  184. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +0 -1
  185. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/constants.js +0 -14
  186. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/constants.js.map +0 -1
  187. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey-styled.js +0 -13
  188. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey-styled.js.map +0 -1
  189. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +0 -230
  190. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +0 -1
  191. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/api/get-content-for-today/get-circle-home-api.js +0 -0
  192. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/card-container/card-container-styled.js +0 -0
  193. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/card-container/card-container.js +0 -0
  194. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/constants.js +0 -0
  195. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/infinite-button/infinite-mode-launcher-button.js +0 -0
  196. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/spl-events-text/constants.js +0 -0
  197. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/spl-events-text/spl-events-text-style.js +0 -0
  198. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/spl-events-text/spl-events-text-types.js +0 -0
  199. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/spl-events-text/spl-events-text.js +0 -0
  200. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/table-mode/table-mode-styled.js +0 -0
  201. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/table-mode/table-mode.js +0 -0
  202. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/table-mode-star/constants.js +0 -0
  203. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/table-mode-star/table-mode-star-styled.js +0 -0
  204. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/table-mode-star/table-mode-star.js +0 -0
  205. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/table-segment-star/table-segment-star-styled.js +0 -0
  206. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/table-segment-star/table-segment-star.js +0 -0
  207. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/tables-card-styled.js +0 -0
  208. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/comps/tables-card/tables-card.js +0 -0
  209. /package/dist/features/circle-games/{game-launcher → game-launcher-v2}/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js +0 -0
@@ -0,0 +1,106 @@
1
+ import { jsxs as k, jsx as t } from "react/jsx-runtime";
2
+ import { memo as W, forwardRef as X, useRef as u, useState as _, useMemo as $, createRef as x, useCallback as j, useImperativeHandle as H, useEffect as E } from "react";
3
+ import { useTheme as K } from "styled-components";
4
+ import { ILLUSTRATIONS as M } from "../../../../../assets/illustrations/illustrations.js";
5
+ import { LOTTIE as N } from "../../../../../assets/lottie/lottie.js";
6
+ import d from "../../../../ui/hooks/use-click-handler.js";
7
+ import w from "../../../../ui/lottie-animation/lottie-animation.js";
8
+ import F from "../../../../ui/text/text.js";
9
+ import { EDeviceType as U } from "../../../../ui/theme/constants.js";
10
+ import { useCircleSounds as G } from "../../../hooks/use-circle-sounds/use-circle-sounds.js";
11
+ import { Carousel as V, CarouselWrapper as Y, CarouselItemContainer as q, ExtendedFlexView as z, CarouselContainer as J, CarouselItemWrapper as Q, CarouselItem as Z, TickIcon as ee, OverlappingLottie as re, StyledCarouselBadgeWrapper as oe } from "./carousel-styled.js";
12
+ import { allWorkOutsCompletedAnimationSetting as te } from "./constants.js";
13
+ const ne = ({ items: r, defaultIndex: a = 0, analyticsSwipeLeft: p, analyticsSwipeRight: h, analyticsCardClick: m }, S) => {
14
+ var I;
15
+ const { device: b } = K(), { playSwipeSound: C } = G(), s = b <= U.TABLET, v = u(null), i = u(!0), [n, l] = _(a), { handleClick: P } = d(
16
+ {
17
+ analyticsLabel: h.analyticsLabel,
18
+ analyticsProps: h.analyticsProps
19
+ },
20
+ () => l((e) => e - 1)
21
+ ), { handleClick: A } = d(
22
+ {
23
+ analyticsLabel: p.analyticsLabel,
24
+ analyticsProps: p.analyticsProps
25
+ },
26
+ () => l((e) => e + 1)
27
+ ), { handleClick: f } = d(
28
+ {
29
+ analyticsLabel: m.analyticsLabel,
30
+ analyticsProps: m.analyticsProps
31
+ },
32
+ () => {
33
+ }
34
+ // we'll replace this inline
35
+ ), T = u(0), B = (e) => {
36
+ var o, c;
37
+ T.current = ((c = (o = e.touches) == null ? void 0 : o[0]) == null ? void 0 : c.clientX) ?? 0;
38
+ }, D = (e) => {
39
+ var y, L;
40
+ const c = (((L = (y = e.changedTouches) == null ? void 0 : y[0]) == null ? void 0 : L.clientX) ?? 0) - T.current;
41
+ c > 50 && n > 0 ? P() : c < -50 && n < r.length - 1 && A();
42
+ }, g = $(() => r.map(() => x()), [r]), O = $(() => r.every((e) => e.isCompleted), [r]), R = j(
43
+ (e) => {
44
+ C(), f(), l(e);
45
+ },
46
+ [f, C]
47
+ );
48
+ return H(S, () => ({
49
+ nextBtnRef: v,
50
+ indicatorRefs: g,
51
+ currentIndex: n,
52
+ goToIndex: (e) => {
53
+ l(e);
54
+ }
55
+ })), E(() => {
56
+ i.current && (i.current = !1);
57
+ }, []), E(() => {
58
+ l((e) => r.length <= 1 || e >= r.length ? 0 : a);
59
+ }, [a, r.length]), /* @__PURE__ */ k(V, { children: [
60
+ /* @__PURE__ */ t(
61
+ Y,
62
+ {
63
+ onTouchStart: B,
64
+ onTouchEnd: D,
65
+ ...r.length > 1 && {
66
+ $translate: n * 100,
67
+ $translateDuration: i.current ? 0 : 300
68
+ },
69
+ children: r.map((e, o) => /* @__PURE__ */ t(q, { children: e.element }, o))
70
+ }
71
+ ),
72
+ r.length > 1 && /* @__PURE__ */ t(z, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", children: /* @__PURE__ */ k(J, { $isTouchDevice: s, children: [
73
+ r.map((e, o) => /* @__PURE__ */ t(Q, { children: /* @__PURE__ */ t(
74
+ Z,
75
+ {
76
+ ref: g[o],
77
+ $isSelected: o === n,
78
+ $isCompleted: e.isCompleted,
79
+ $isTouchDevice: s,
80
+ onClick: () => R(o),
81
+ children: e.isCompleted && o !== n ? /* @__PURE__ */ t(ee, { src: M.GREEN_TICK, alt: "completed" }) : /* @__PURE__ */ t(
82
+ F,
83
+ {
84
+ $renderAs: s ? "ac4-black" : "ac3-black",
85
+ $color: o === n ? "BLACK" : "WHITE_T_60",
86
+ $marginBottom: 0,
87
+ children: o + 1
88
+ }
89
+ )
90
+ }
91
+ ) }, o)),
92
+ O && /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(
93
+ w,
94
+ {
95
+ src: N.DAILY_WORK_OUT_COMPLETE,
96
+ settings: te
97
+ }
98
+ ) })
99
+ ] }) }),
100
+ ((I = r[n]) == null ? void 0 : I.carouselBadge) && /* @__PURE__ */ t(oe, { children: r[n].carouselBadge })
101
+ ] });
102
+ }, Te = W(X(ne));
103
+ export {
104
+ Te as Carousel
105
+ };
106
+ //# sourceMappingURL=carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/carousel/carousel.tsx"],"sourcesContent":["import type { ForwardRefRenderFunction } from 'react';\nimport {\n memo,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n forwardRef,\n useImperativeHandle,\n createRef,\n} from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport { LOTTIE } from '../../../../../assets/lottie/lottie';\nimport useClickHandler from '../../../../ui/hooks/use-click-handler';\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport Text from '../../../../ui/text/text';\nimport { EDeviceType } from '../../../../ui/theme/constants';\nimport { useCircleSounds } from '../../../hooks/use-circle-sounds/use-circle-sounds';\nimport * as Styled from './carousel-styled';\nimport {\n CarouselItem,\n CarouselItemWrapper,\n TickIcon,\n StyledCarouselBadgeWrapper,\n} from './carousel-styled';\nimport type { ICarouselProps, ICarouselRefs } from './carousel-types';\nimport { allWorkOutsCompletedAnimationSetting } from './constants';\n\nconst CarouselComponent: ForwardRefRenderFunction<ICarouselRefs, ICarouselProps> = (\n { items, defaultIndex = 0, analyticsSwipeLeft, analyticsSwipeRight, analyticsCardClick },\n ref,\n) => {\n const { device } = useTheme();\n\n const { playSwipeSound } = useCircleSounds();\n const isTouchDevice = device <= EDeviceType.TABLET;\n\n const nextBtnRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\n const isFirstMount = useRef(true);\n const [currIndex, setCurrIndex] = useState(defaultIndex);\n\n const { handleClick: handlePrevClick } = useClickHandler(\n {\n analyticsLabel: analyticsSwipeRight.analyticsLabel,\n analyticsProps: analyticsSwipeRight.analyticsProps,\n },\n () => setCurrIndex(prev => prev - 1),\n );\n\n const { handleClick: handleNextClick } = useClickHandler(\n {\n analyticsLabel: analyticsSwipeLeft.analyticsLabel,\n analyticsProps: analyticsSwipeLeft.analyticsProps,\n },\n () => setCurrIndex(prev => prev + 1),\n );\n\n const { handleClick: handleCardClick } = useClickHandler(\n {\n analyticsLabel: analyticsCardClick.analyticsLabel,\n analyticsProps: analyticsCardClick.analyticsProps,\n },\n () => {}, // we'll replace this inline\n );\n // swipe tracking\n const touchStartX = useRef(0);\n\n const handleTouchStart = (e: React.TouchEvent) => {\n touchStartX.current = e.touches?.[0]?.clientX ?? 0;\n };\n\n const handleTouchEnd = (e: React.TouchEvent) => {\n const endX = e.changedTouches?.[0]?.clientX ?? 0;\n const deltaX = endX - touchStartX.current;\n\n if (deltaX > 50 && currIndex > 0) {\n // swipe right → previous\n handlePrevClick();\n } else if (deltaX < -50 && currIndex < items.length - 1) {\n // swipe left → next\n handleNextClick();\n }\n };\n\n const indicatorRefs = useMemo(() => items.map(() => createRef<HTMLDivElement>()), [items]);\n const allCompleted = useMemo(() => items.every(item => item.isCompleted), [items]);\n\n const handleCarouselIndicatorClick = useCallback(\n (index: number) => {\n playSwipeSound();\n handleCardClick();\n setCurrIndex(index);\n },\n [handleCardClick, playSwipeSound],\n );\n\n useImperativeHandle(ref, () => ({\n nextBtnRef,\n indicatorRefs,\n currentIndex: currIndex,\n goToIndex: (index: number) => {\n setCurrIndex(index);\n },\n }));\n\n useEffect(() => {\n if (isFirstMount.current) {\n isFirstMount.current = false;\n }\n }, []);\n\n useEffect(() => {\n setCurrIndex(prev => {\n if (items.length <= 1) return 0;\n\n if (prev >= items.length) return 0;\n\n return defaultIndex;\n });\n }, [defaultIndex, items.length]);\n\n return (\n <Styled.Carousel>\n <Styled.CarouselWrapper\n onTouchStart={handleTouchStart}\n onTouchEnd={handleTouchEnd}\n {...(items.length > 1 && {\n $translate: currIndex * 100,\n $translateDuration: isFirstMount.current ? 0 : 300,\n })}\n >\n {items.map((item, index) => (\n <Styled.CarouselItemContainer key={index}>{item.element}</Styled.CarouselItemContainer>\n ))}\n </Styled.CarouselWrapper>\n\n {items.length > 1 && (\n <Styled.ExtendedFlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\">\n <Styled.CarouselContainer $isTouchDevice={isTouchDevice}>\n {items.map((item, index) => (\n <CarouselItemWrapper key={index}>\n <CarouselItem\n ref={indicatorRefs[index]}\n $isSelected={index === currIndex}\n $isCompleted={item.isCompleted}\n $isTouchDevice={isTouchDevice}\n onClick={() => handleCarouselIndicatorClick(index)}\n >\n {item.isCompleted && index !== currIndex ? (\n <TickIcon src={ILLUSTRATIONS.GREEN_TICK} alt=\"completed\" />\n ) : (\n <Text\n $renderAs={isTouchDevice ? 'ac4-black' : 'ac3-black'}\n $color={index === currIndex ? 'BLACK' : 'WHITE_T_60'}\n $marginBottom={0}\n >\n {index + 1}\n </Text>\n )}\n </CarouselItem>\n </CarouselItemWrapper>\n ))}\n {allCompleted && (\n <Styled.OverlappingLottie>\n <LottieAnimation\n src={LOTTIE.DAILY_WORK_OUT_COMPLETE}\n settings={allWorkOutsCompletedAnimationSetting}\n />\n </Styled.OverlappingLottie>\n )}\n </Styled.CarouselContainer>\n </Styled.ExtendedFlexView>\n )}\n\n {items[currIndex]?.carouselBadge && (\n <StyledCarouselBadgeWrapper>{items[currIndex].carouselBadge}</StyledCarouselBadgeWrapper>\n )}\n </Styled.Carousel>\n );\n};\n\nexport const Carousel = memo(forwardRef(CarouselComponent));\n"],"names":["CarouselComponent","items","defaultIndex","analyticsSwipeLeft","analyticsSwipeRight","analyticsCardClick","ref","device","useTheme","playSwipeSound","useCircleSounds","isTouchDevice","EDeviceType","nextBtnRef","useRef","isFirstMount","currIndex","setCurrIndex","useState","handlePrevClick","useClickHandler","prev","handleNextClick","handleCardClick","touchStartX","handleTouchStart","_b","_a","handleTouchEnd","deltaX","indicatorRefs","useMemo","createRef","allCompleted","item","handleCarouselIndicatorClick","useCallback","index","useImperativeHandle","useEffect","jsxs","Styled.Carousel","jsx","Styled.CarouselWrapper","Styled.CarouselItemContainer","Styled.ExtendedFlexView","Styled.CarouselContainer","CarouselItemWrapper","CarouselItem","TickIcon","ILLUSTRATIONS","Text","Styled.OverlappingLottie","LottieAnimation","LOTTIE","allWorkOutsCompletedAnimationSetting","StyledCarouselBadgeWrapper","Carousel","memo","forwardRef"],"mappings":";;;;;;;;;;;;AA+BA,MAAMA,KAA6E,CACjF,EAAE,OAAAC,GAAO,cAAAC,IAAe,GAAG,oBAAAC,GAAoB,qBAAAC,GAAqB,oBAAAC,EAAmB,GACvFC,MACG;;AACG,QAAA,EAAE,QAAAC,MAAWC,KAEb,EAAE,gBAAAC,MAAmBC,KACrBC,IAAgBJ,KAAUK,EAAY,QAEtCC,IAAaC,EAAuB,IAAI,GACxCC,IAAeD,EAAO,EAAI,GAC1B,CAACE,GAAWC,CAAY,IAAIC,EAAShB,CAAY,GAEjD,EAAE,aAAaiB,EAAA,IAAoBC;AAAA,IACvC;AAAA,MACE,gBAAgBhB,EAAoB;AAAA,MACpC,gBAAgBA,EAAoB;AAAA,IACtC;AAAA,IACA,MAAMa,EAAa,CAAQI,MAAAA,IAAO,CAAC;AAAA,EAAA,GAG/B,EAAE,aAAaC,EAAA,IAAoBF;AAAA,IACvC;AAAA,MACE,gBAAgBjB,EAAmB;AAAA,MACnC,gBAAgBA,EAAmB;AAAA,IACrC;AAAA,IACA,MAAMc,EAAa,CAAQI,MAAAA,IAAO,CAAC;AAAA,EAAA,GAG/B,EAAE,aAAaE,EAAA,IAAoBH;AAAA,IACvC;AAAA,MACE,gBAAgBf,EAAmB;AAAA,MACnC,gBAAgBA,EAAmB;AAAA,IACrC;AAAA,IACA,MAAM;AAAA,IAAC;AAAA;AAAA,EAAA,GAGHmB,IAAcV,EAAO,CAAC,GAEtBW,IAAmB,CAAC,MAAwB;;AAChD,IAAAD,EAAY,YAAUE,KAAAC,IAAA,EAAE,YAAF,gBAAAA,EAAY,OAAZ,gBAAAD,EAAgB,YAAW;AAAA,EAAA,GAG7CE,IAAiB,CAAC,MAAwB;;AAExC,UAAAC,OADOH,KAAAC,IAAA,EAAE,mBAAF,gBAAAA,EAAmB,OAAnB,gBAAAD,EAAuB,YAAW,KACzBF,EAAY;AAE9B,IAAAK,IAAS,MAAMb,IAAY,IAEbG,MACPU,IAAS,OAAOb,IAAYf,EAAM,SAAS,KAEpCqB;EAClB,GAGIQ,IAAgBC,EAAQ,MAAM9B,EAAM,IAAI,MAAM+B,GAA2B,GAAG,CAAC/B,CAAK,CAAC,GACnFgC,IAAeF,EAAQ,MAAM9B,EAAM,MAAM,CAAQiC,MAAAA,EAAK,WAAW,GAAG,CAACjC,CAAK,CAAC,GAE3EkC,IAA+BC;AAAA,IACnC,CAACC,MAAkB;AACF,MAAA5B,KACCc,KAChBN,EAAaoB,CAAK;AAAA,IACpB;AAAA,IACA,CAACd,GAAiBd,CAAc;AAAA,EAAA;AAGlC,SAAA6B,EAAoBhC,GAAK,OAAO;AAAA,IAC9B,YAAAO;AAAA,IACA,eAAAiB;AAAA,IACA,cAAcd;AAAA,IACd,WAAW,CAACqB,MAAkB;AAC5B,MAAApB,EAAaoB,CAAK;AAAA,IACpB;AAAA,EACA,EAAA,GAEFE,EAAU,MAAM;AACd,IAAIxB,EAAa,YACfA,EAAa,UAAU;AAAA,EAE3B,GAAG,CAAE,CAAA,GAELwB,EAAU,MAAM;AACd,IAAAtB,EAAa,CAAQI,MACfpB,EAAM,UAAU,KAEhBoB,KAAQpB,EAAM,SAAe,IAE1BC,CACR;AAAA,EACA,GAAA,CAACA,GAAcD,EAAM,MAAM,CAAC,GAG7B,gBAAAuC,EAACC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAAA,MAAA;AAAA,QACC,cAAclB;AAAA,QACd,YAAYG;AAAA,QACX,GAAI3B,EAAM,SAAS,KAAK;AAAA,UACvB,YAAYe,IAAY;AAAA,UACxB,oBAAoBD,EAAa,UAAU,IAAI;AAAA,QACjD;AAAA,QAEC,UAAMd,EAAA,IAAI,CAACiC,GAAMG,MAChB,gBAAAK,EAACE,GAAA,EAA0C,UAAAV,EAAK,QAAb,GAAAG,CAAqB,CACzD;AAAA,MAAA;AAAA,IACH;AAAA,IAECpC,EAAM,SAAS,uBACb4C,GAAA,EAAwB,gBAAe,OAAM,aAAY,UAAS,iBAAgB,UACjF,UAAA,gBAAAL,EAACM,GAAA,EAAyB,gBAAgBnC,GACvC,UAAA;AAAA,MAAAV,EAAM,IAAI,CAACiC,GAAMG,wBACfU,GACC,EAAA,UAAA,gBAAAL;AAAA,QAACM;AAAA,QAAA;AAAA,UACC,KAAKlB,EAAcO,CAAK;AAAA,UACxB,aAAaA,MAAUrB;AAAA,UACvB,cAAckB,EAAK;AAAA,UACnB,gBAAgBvB;AAAA,UAChB,SAAS,MAAMwB,EAA6BE,CAAK;AAAA,UAEhD,UAAAH,EAAK,eAAeG,MAAUrB,IAC7B,gBAAA0B,EAACO,IAAS,EAAA,KAAKC,EAAc,YAAY,KAAI,YAAA,CAAY,IAEzD,gBAAAR;AAAA,YAACS;AAAA,YAAA;AAAA,cACC,WAAWxC,IAAgB,cAAc;AAAA,cACzC,QAAQ0B,MAAUrB,IAAY,UAAU;AAAA,cACxC,eAAe;AAAA,cAEd,UAAQqB,IAAA;AAAA,YAAA;AAAA,UACX;AAAA,QAAA;AAAA,MAAA,EAEJ,GAnBwBA,CAoB1B,CACD;AAAA,MACAJ,KACC,gBAAAS,EAACU,IAAA,EACC,UAAA,gBAAAV;AAAA,QAACW;AAAA,QAAA;AAAA,UACC,KAAKC,EAAO;AAAA,UACZ,UAAUC;AAAA,QAAA;AAAA,MAAA,GAEd;AAAA,IAAA,EAAA,CAEJ,EACF,CAAA;AAAA,MAGD5B,IAAA1B,EAAMe,CAAS,MAAf,gBAAAW,EAAkB,oCAChB6B,IAA4B,EAAA,UAAAvD,EAAMe,CAAS,EAAE,cAAc,CAAA;AAAA,EAEhE,EAAA,CAAA;AAEJ,GAEayC,KAAWC,EAAKC,EAAW3D,EAAiB,CAAC;"}
@@ -0,0 +1,9 @@
1
+ const e = {
2
+ autoplay: !0,
3
+ loop: !1,
4
+ renderer: "canvas"
5
+ };
6
+ export {
7
+ e as allWorkOutsCompletedAnimationSetting
8
+ };
9
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/carousel/constants.ts"],"sourcesContent":["export const allWorkOutsCompletedAnimationSetting = {\n autoplay: true,\n loop: false,\n renderer: 'canvas',\n};\n"],"names":["allWorkOutsCompletedAnimationSetting"],"mappings":"AAAO,MAAMA,IAAuC;AAAA,EAClD,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AACZ;"}
@@ -0,0 +1,20 @@
1
+ import e from "styled-components";
2
+ const t = e.div`
3
+ display: flex;
4
+ gap: 16px;
5
+ height: 24px;
6
+ `, p = e.div`
7
+ display: flex;
8
+ align-items: center;
9
+ height: 24px;
10
+ `, d = e.img`
11
+ width: 24px;
12
+ height: 24px;
13
+ flex-shrink: 0;
14
+ `;
15
+ export {
16
+ p as Badge,
17
+ t as BadgeContainer,
18
+ d as StyledIcon
19
+ };
20
+ //# sourceMappingURL=carousel-badge-style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel-badge-style.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/carousel-badge/carousel-badge-style.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const BadgeContainer = styled.div`\n display: flex;\n gap: 16px;\n height: 24px;\n`;\n\nexport const Badge = styled.div`\n display: flex;\n align-items: center;\n height: 24px;\n`;\n\nexport const StyledIcon = styled.img`\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n`;\n"],"names":["BadgeContainer","styled","Badge","StyledIcon"],"mappings":";AAEO,MAAMA,IAAiBC,EAAO;AAAA;AAAA;AAAA;AAAA,GAMxBC,IAAQD,EAAO;AAAA;AAAA;AAAA;AAAA,GAMfE,IAAaF,EAAO;AAAA;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,17 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { BadgeContainer as e } from "./carousel-badge-style.js";
3
+ import { SingleBadge as a } from "./carousel-single-badge.js";
4
+ const u = ({ badges: l, style: t }) => /* @__PURE__ */ r(e, { style: t, children: l.map((o, i) => /* @__PURE__ */ r(
5
+ a,
6
+ {
7
+ illustration: o.illustration,
8
+ value: o.value,
9
+ color: o.color,
10
+ label: o.label
11
+ },
12
+ i
13
+ )) });
14
+ export {
15
+ u as BadgesGroup
16
+ };
17
+ //# sourceMappingURL=carousel-badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel-badge.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/carousel-badge/carousel-badge.tsx"],"sourcesContent":["import { BadgeContainer } from './carousel-badge-style';\nimport type { IBadgeData } from './carousel-badge-type';\nimport { SingleBadge } from './carousel-single-badge';\n\ninterface BadgesGroupProps {\n badges: IBadgeData[];\n style?: React.CSSProperties;\n}\n\nexport const BadgesGroup: React.FC<BadgesGroupProps> = ({ badges, style }) => {\n return (\n <BadgeContainer style={style}>\n {badges.map((badge, index) => (\n <SingleBadge\n key={index}\n illustration={badge.illustration}\n value={badge.value}\n color={badge.color}\n label={badge.label}\n />\n ))}\n </BadgeContainer>\n );\n};\n"],"names":["BadgesGroup","badges","style","BadgeContainer","badge","index","jsx","SingleBadge"],"mappings":";;;AASO,MAAMA,IAA0C,CAAC,EAAE,QAAAC,GAAQ,OAAAC,0BAE7DC,GAAe,EAAA,OAAAD,GACb,YAAO,IAAI,CAACE,GAAOC,MAClB,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IAEC,cAAcH,EAAM;AAAA,IACpB,OAAOA,EAAM;AAAA,IACb,OAAOA,EAAM;AAAA,IACb,OAAOA,EAAM;AAAA,EAAA;AAAA,EAJRC;AAMR,CAAA,EACH,CAAA;"}
@@ -0,0 +1,20 @@
1
+ import { jsxs as r, jsx as n } from "react/jsx-runtime";
2
+ import { useTheme as s } from "styled-components";
3
+ import d from "../../../../ui/text/text.js";
4
+ import { EDeviceType as p } from "../../../../ui/theme/constants.js";
5
+ import { Badge as l, StyledIcon as f } from "./carousel-badge-style.js";
6
+ const h = ({ illustration: o, value: t, color: m, label: e }) => {
7
+ const { device: c } = s(), i = c <= p.TABLET;
8
+ return /* @__PURE__ */ r(l, { children: [
9
+ /* @__PURE__ */ n(f, { src: o, alt: e || "badge" }),
10
+ /* @__PURE__ */ r(d, { $renderAs: i ? "ub3" : "ub2", $color: m, children: [
11
+ t,
12
+ " ",
13
+ e
14
+ ] })
15
+ ] });
16
+ };
17
+ export {
18
+ h as SingleBadge
19
+ };
20
+ //# sourceMappingURL=carousel-single-badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel-single-badge.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/carousel-badge/carousel-single-badge.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\n\nimport Text from '../../../../ui/text/text';\nimport { EDeviceType } from '../../../../ui/theme/constants';\nimport type { TColorNames } from '../../../../ui/types';\nimport { Badge, StyledIcon } from './carousel-badge-style';\n\nexport interface SingleBadgeProps {\n illustration: string;\n value: number | string;\n color: TColorNames;\n label?: string;\n}\n\nexport const SingleBadge: React.FC<SingleBadgeProps> = ({ illustration, value, color, label }) => {\n const { device } = useTheme();\n const useSmallFont = device <= EDeviceType.TABLET;\n\n return (\n <Badge>\n <StyledIcon src={illustration} alt={label || 'badge'} />\n <Text $renderAs={useSmallFont ? 'ub3' : 'ub2'} $color={color}>\n {value} {label}\n </Text>\n </Badge>\n );\n};\n"],"names":["SingleBadge","illustration","value","color","label","device","useTheme","useSmallFont","EDeviceType","Badge","jsx","StyledIcon","Text"],"mappings":";;;;;AAcO,MAAMA,IAA0C,CAAC,EAAE,cAAAC,GAAc,OAAAC,GAAO,OAAAC,GAAO,OAAAC,QAAY;AAC1F,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAeF,KAAUG,EAAY;AAE3C,2BACGC,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAW,EAAA,KAAKV,GAAc,KAAKG,KAAS,SAAS;AAAA,sBACrDQ,GAAK,EAAA,WAAWL,IAAe,QAAQ,OAAO,QAAQJ,GACpD,UAAA;AAAA,MAAAD;AAAA,MAAM;AAAA,MAAEE;AAAA,IAAA,GACX;AAAA,EACF,EAAA,CAAA;AAEJ;"}
@@ -0,0 +1,66 @@
1
+ import e from "styled-components";
2
+ import n from "../../../../ui/layout/flex-view.js";
3
+ import { GAME_LAUNCHER_SIZE as t } from "../card-container/constants.js";
4
+ import { BORDER_WIDTH as r, GAME_LAUNCHER_ASSET_PADDING as i, PILL_SIZE as o } from "./constants.js";
5
+ const l = e.div`
6
+ position: absolute;
7
+ z-index: 5;
8
+ height: ${t}px;
9
+ width: ${t}px;
10
+ border-radius: 50%;
11
+ border: ${r}px solid #fff;
12
+ cursor: pointer;
13
+ `, c = e.div`
14
+ position: absolute;
15
+ height: ${t + i}px;
16
+ width: ${t + i}px;
17
+ border-radius: 50%;
18
+ top: ${-i / 2 - r}px;
19
+ left: ${-i / 2 - r}px;
20
+ z-index: 4;
21
+ `, x = e.div`
22
+ height: ${o}px;
23
+ width: ${2 * o}px;
24
+ left: ${t / 2 - o / 2}px;
25
+ z-index: 6;
26
+ transform: translate(0%, -50%);
27
+ `;
28
+ e.div`
29
+ position: absolute;
30
+ width: ${t}px;
31
+ height: ${t}px;
32
+ border-radius: 50%;
33
+ background: transparent;
34
+ overflow: hidden;
35
+
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+ flex: 1;
40
+
41
+ transform-origin: center;
42
+ transform: rotate(0deg); // change dynamically if needed
43
+ `;
44
+ const f = e.img`
45
+ position: absolute;
46
+ width: 100%;
47
+ object-fit: contain;
48
+ pointer-events: none;
49
+ `, m = e.div`
50
+ position: relative;
51
+ display: flex;
52
+ justify-content: center;
53
+ `, h = e(n)`
54
+ position: absolute;
55
+ display: flex;
56
+ justify-content: center;
57
+ `;
58
+ export {
59
+ m as CardWithTickWrapper,
60
+ l as CircularGameCardWrapper,
61
+ f as DisplayNameImage,
62
+ h as ExtendedFlexView,
63
+ x as PillTickContainer,
64
+ c as ProgressRingLottieContainer
65
+ };
66
+ //# sourceMappingURL=circular-game-card-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circular-game-card-styled.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/circular-game-card/circular-game-card-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\nimport { GAME_LAUNCHER_SIZE } from '../card-container/constants';\nimport { GAME_LAUNCHER_ASSET_PADDING, BORDER_WIDTH, PILL_SIZE } from './constants';\n\nexport const CircularGameCardWrapper = styled.div`\n position: absolute;\n z-index: 5;\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n border-radius: 50%;\n border: ${BORDER_WIDTH}px solid #fff;\n cursor: pointer;\n`;\n\nexport const ProgressRingLottieContainer = 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\nexport const PillTickContainer = styled.div`\n height: ${PILL_SIZE}px;\n width: ${2 * PILL_SIZE}px;\n left: ${GAME_LAUNCHER_SIZE / 2 - PILL_SIZE / 2}px;\n z-index: 6;\n transform: translate(0%, -50%);\n`;\nexport const GameCardSegmentWrapper = styled.div`\n position: absolute;\n width: ${GAME_LAUNCHER_SIZE}px;\n height: ${GAME_LAUNCHER_SIZE}px;\n border-radius: 50%;\n background: transparent;\n overflow: hidden;\n\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1;\n\n transform-origin: center;\n transform: rotate(0deg); // change dynamically if needed\n`;\n\nexport const DisplayNameImage = styled.img`\n position: absolute;\n width: 100%;\n object-fit: contain;\n pointer-events: none;\n`;\n\nexport const CardWithTickWrapper = styled.div`\n position: relative;\n display: flex;\n justify-content: center;\n`;\n\nexport const ExtendedFlexView = styled(FlexView)`\n position: absolute;\n display: flex;\n justify-content: center;\n`;\n"],"names":["CircularGameCardWrapper","styled","GAME_LAUNCHER_SIZE","BORDER_WIDTH","ProgressRingLottieContainer","GAME_LAUNCHER_ASSET_PADDING","PillTickContainer","PILL_SIZE","DisplayNameImage","CardWithTickWrapper","ExtendedFlexView","FlexView"],"mappings":";;;;AAMO,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA,YAGlCC,CAAkB;AAAA,WACnBA,CAAkB;AAAA;AAAA,YAEjBC,CAAY;AAAA;AAAA,GAIXC,IAA8BH,EAAO;AAAA;AAAA,YAEtCC,IAAqBG,CAA2B;AAAA,WACjDH,IAAqBG,CAA2B;AAAA;AAAA,SAElD,CAACA,IAA8B,IAAIF,CAAY;AAAA,UAC9C,CAACE,IAA8B,IAAIF,CAAY;AAAA;AAAA,GAI5CG,IAAoBL,EAAO;AAAA,YAC5BM,CAAS;AAAA,WACV,IAAIA,CAAS;AAAA,UACdL,IAAqB,IAAIK,IAAY,CAAC;AAAA;AAAA;AAAA;AAIVN,EAAO;AAAA;AAAA,WAElCC,CAAkB;AAAA,YACjBA,CAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcvB,MAAMM,IAAmBP,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAO1BQ,IAAsBR,EAAO;AAAA;AAAA;AAAA;AAAA,GAM7BS,IAAmBT,EAAOU,CAAQ;AAAA;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,81 @@
1
+ import { jsxs as f, jsx as n } from "react/jsx-runtime";
2
+ import { memo as _, forwardRef as G, useRef as i, useState as d, useCallback as u, useImperativeHandle as v, useMemo as T } from "react";
3
+ import { LOTTIE as g } from "../../../../../assets/lottie/lottie.js";
4
+ import I from "../../../../ui/lottie-animation/lottie-animation.js";
5
+ import { CardContainer as F } from "../card-container/card-container.js";
6
+ import { GameCardContent as x } from "../game-card-content/game-card-content.js";
7
+ import { CardWithTickWrapper as H, CircularGameCardWrapper as M, ProgressRingLottieContainer as N, DisplayNameImage as j, ExtendedFlexView as w, PillTickContainer as O } from "./circular-game-card-styled.js";
8
+ const U = ({ data: r, label: L, initialValue: s = 0, value: t, maxValue: o = 1 }, h) => {
9
+ const l = i(null), a = i(null), c = i(null), [m, k] = d(!1), [P, R] = d("WHITE_T_87"), b = u(() => {
10
+ var e;
11
+ (e = r == null ? void 0 : r.onPress) == null || e.call(r);
12
+ }, [r]), y = u((e) => {
13
+ k(!0), R(e);
14
+ }, []);
15
+ v(h, () => ({
16
+ labelRef: l,
17
+ circularCardWrapperRef: a,
18
+ startLabelAnimation: y
19
+ }));
20
+ const p = T(() => {
21
+ if (o <= 0)
22
+ return;
23
+ const e = 92, C = e / o, E = Math.min(C * s, e), S = Math.min(C * t + 1, e);
24
+ return [E, S];
25
+ }, [s, o, t]), A = T(
26
+ () => ({
27
+ renderer: "canvas",
28
+ autoplay: !0,
29
+ loop: !1,
30
+ initialSegment: p
31
+ }),
32
+ [p]
33
+ ), W = {
34
+ autoplay: !1,
35
+ loop: !1,
36
+ renderer: "canvas"
37
+ };
38
+ return /* @__PURE__ */ f(H, { children: [
39
+ /* @__PURE__ */ n(
40
+ F,
41
+ {
42
+ ref: a,
43
+ labelRef: l,
44
+ label: L,
45
+ isAnimated: m,
46
+ labelColor: m ? P : "WHITE_T_60",
47
+ children: /* @__PURE__ */ f(M, { onClick: b, children: [
48
+ t !== 0 && /* @__PURE__ */ n(N, { children: /* @__PURE__ */ n(
49
+ I,
50
+ {
51
+ src: g.LEVELUP_RINGS,
52
+ settings: A,
53
+ animateOnIntersect: !0,
54
+ eventListener: {
55
+ name: "complete",
56
+ callback: () => {
57
+ var e;
58
+ (e = c.current) == null || e.play();
59
+ }
60
+ }
61
+ }
62
+ ) }),
63
+ /* @__PURE__ */ n(x, { card: r.card, isCompleted: r.isCompleted }),
64
+ /* @__PURE__ */ n(j, { src: r.displayNameImage || void 0 })
65
+ ] })
66
+ }
67
+ ),
68
+ /* @__PURE__ */ n(w, { children: /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(
69
+ I,
70
+ {
71
+ ref: c,
72
+ src: g.PILL_TICK,
73
+ settings: W
74
+ }
75
+ ) }) })
76
+ ] });
77
+ }, V = _(G(U));
78
+ export {
79
+ V as CircularGameCard
80
+ };
81
+ //# sourceMappingURL=circular-game-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circular-game-card.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/circular-game-card/circular-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 { LOTTIE } from '../../../../../assets/lottie/lottie';\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport { type ILottieAnimationRef } from '../../../../ui/lottie-animation/types';\nimport type { TColorNames } from '../../../../ui/types';\nimport { CardContainer } from '../card-container/card-container';\nimport { GameCardContent } from '../game-card-content/game-card-content';\nimport * as Styled from './circular-game-card-styled';\nimport type { ICircularGameCardProps, ICircularGameCardRefs } from './circular-game-card-types';\n\nconst CircularGameCardComponent: ForwardRefRenderFunction<\n ICircularGameCardRefs,\n ICircularGameCardProps\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 const greenTickLottieRef = useRef<ILottieAnimationRef>(null);\n const [isAnimated, setIsAnimated] = useState(false);\n const [animatedColor, setAnimatedColor] = useState<TColorNames>('WHITE_T_87');\n\n const onCardClick = useCallback(() => {\n data?.onPress?.();\n }, [data]);\n\n const startLabelAnimation = useCallback((color: TColorNames) => {\n setIsAnimated(true);\n setAnimatedColor(color);\n }, []);\n\n useImperativeHandle(ref, () => ({\n labelRef,\n circularCardWrapperRef: 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 const greenTickAnimationSettings = {\n autoplay: false,\n loop: false,\n renderer: 'canvas',\n };\n\n return (\n <Styled.CardWithTickWrapper>\n <CardContainer\n ref={cardWrapperRef}\n labelRef={labelRef}\n label={gameCategoryLabel}\n isAnimated={isAnimated}\n labelColor={isAnimated ? animatedColor : 'WHITE_T_60'}\n >\n <Styled.CircularGameCardWrapper onClick={onCardClick}>\n {value !== 0 && (\n <Styled.ProgressRingLottieContainer>\n <LottieAnimation\n src={LOTTIE.LEVELUP_RINGS}\n settings={levelUpAnimationSettings}\n animateOnIntersect\n eventListener={{\n name: 'complete',\n callback: () => {\n greenTickLottieRef.current?.play();\n },\n }}\n />\n </Styled.ProgressRingLottieContainer>\n )}\n <GameCardContent card={data.card} isCompleted={data.isCompleted} />\n\n <Styled.DisplayNameImage src={data.displayNameImage || undefined} />\n </Styled.CircularGameCardWrapper>\n </CardContainer>\n <Styled.ExtendedFlexView>\n <Styled.PillTickContainer>\n <LottieAnimation\n ref={greenTickLottieRef}\n src={LOTTIE.PILL_TICK}\n settings={greenTickAnimationSettings}\n />\n </Styled.PillTickContainer>\n </Styled.ExtendedFlexView>\n </Styled.CardWithTickWrapper>\n );\n};\n\nexport const CircularGameCard = memo(forwardRef(CircularGameCardComponent));\n"],"names":["CircularGameCardComponent","data","gameCategoryLabel","initialValue","value","maxValue","ref","labelRef","useRef","cardWrapperRef","greenTickLottieRef","isAnimated","setIsAnimated","useState","animatedColor","setAnimatedColor","onCardClick","useCallback","_a","startLabelAnimation","color","useImperativeHandle","animationSegments","useMemo","totalFrames","framesPerValue","initialFrameToPlay","finalFrameToPlay","levelUpAnimationSettings","greenTickAnimationSettings","jsxs","Styled.CardWithTickWrapper","jsx","CardContainer","Styled.CircularGameCardWrapper","Styled.ProgressRingLottieContainer","LottieAnimation","LOTTIE","GameCardContent","Styled.DisplayNameImage","Styled.ExtendedFlexView","Styled.PillTickContainer","CircularGameCard","memo","forwardRef"],"mappings":";;;;;;;AAoBA,MAAMA,IAGF,CAAC,EAAE,MAAAC,GAAM,OAAOC,GAAmB,cAAAC,IAAe,GAAG,OAAAC,GAAO,UAAAC,IAAW,EAAE,GAAGC,MAAQ;AAChF,QAAAC,IAAWC,EAAuB,IAAI,GACtCC,IAAiBD,EAAuB,IAAI,GAC5CE,IAAqBF,EAA4B,IAAI,GACrD,CAACG,GAAYC,CAAa,IAAIC,EAAS,EAAK,GAC5C,CAACC,GAAeC,CAAgB,IAAIF,EAAsB,YAAY,GAEtEG,IAAcC,EAAY,MAAM;;AACpC,KAAAC,IAAAjB,KAAA,gBAAAA,EAAM,YAAN,QAAAiB,EAAA,KAAAjB;AAAA,EAAgB,GACf,CAACA,CAAI,CAAC,GAEHkB,IAAsBF,EAAY,CAACG,MAAuB;AAC9D,IAAAR,EAAc,EAAI,GAClBG,EAAiBK,CAAK;AAAA,EACxB,GAAG,CAAE,CAAA;AAEL,EAAAC,EAAoBf,GAAK,OAAO;AAAA,IAC9B,UAAAC;AAAA,IACA,wBAAwBE;AAAA,IACxB,qBAAAU;AAAA,EACA,EAAA;AAEI,QAAAG,IAAkDC,EAAQ,MAAM;AACpE,QAAIlB,KAAY;AACd;AAGF,UAAMmB,IAAc,IACdC,IAAiBD,IAAcnB,GAE/BqB,IAAqB,KAAK,IAAID,IAAiBtB,GAAcqB,CAAW,GACxEG,IAAmB,KAAK,IAAIF,IAAiBrB,IAAQ,GAAGoB,CAAW;AAElE,WAAA,CAACE,GAAoBC,CAAgB;AAAA,EAC3C,GAAA,CAACxB,GAAcE,GAAUD,CAAK,CAAC,GAE5BwB,IAA2BL;AAAA,IAC/B,OAAO;AAAA,MACL,UAAU;AAAA,MACV,UAAU;AAAA,MACV,MAAM;AAAA,MACN,gBAAgBD;AAAA,IAAA;AAAA,IAElB,CAACA,CAAiB;AAAA,EAAA,GAGdO,IAA6B;AAAA,IACjC,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAIV,SAAA,gBAAAC,EAACC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,KAAKxB;AAAA,QACL,UAAAF;AAAA,QACA,OAAOL;AAAA,QACP,YAAAS;AAAA,QACA,YAAYA,IAAaG,IAAgB;AAAA,QAEzC,UAAC,gBAAAgB,EAAAI,GAAA,EAA+B,SAASlB,GACtC,UAAA;AAAA,UAAAZ,MAAU,KACT,gBAAA4B,EAACG,GAAA,EACC,UAAA,gBAAAH;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,KAAKC,EAAO;AAAA,cACZ,UAAUT;AAAA,cACV,oBAAkB;AAAA,cAClB,eAAe;AAAA,gBACb,MAAM;AAAA,gBACN,UAAU,MAAM;;AACd,mBAAAV,IAAAR,EAAmB,YAAnB,QAAAQ,EAA4B;AAAA,gBAC9B;AAAA,cACF;AAAA,YAAA;AAAA,UAAA,GAEJ;AAAA,4BAEDoB,GAAgB,EAAA,MAAMrC,EAAK,MAAM,aAAaA,EAAK,aAAa;AAAA,4BAEhEsC,GAAA,EAAwB,KAAKtC,EAAK,oBAAoB,QAAW;AAAA,QAAA,GACpE;AAAA,MAAA;AAAA,IACF;AAAA,sBACCuC,GAAA,EACC,UAAC,gBAAAR,EAAAS,GAAA,EACC,UAAA,gBAAAT;AAAA,MAACI;AAAA,MAAA;AAAA,QACC,KAAK1B;AAAA,QACL,KAAK2B,EAAO;AAAA,QACZ,UAAUR;AAAA,MAAA;AAAA,OAEd,EACF,CAAA;AAAA,EACF,EAAA,CAAA;AAEJ,GAEaa,IAAmBC,EAAKC,EAAW5C,CAAyB,CAAC;"}
@@ -0,0 +1,8 @@
1
+ import { GAME_LAUNCHER_SIZE as E } from "../card-container/constants.js";
2
+ const o = E * 17.5 / 100, t = Math.ceil(E / 200), A = E >= 296 ? 60 : 40;
3
+ export {
4
+ t as BORDER_WIDTH,
5
+ o as GAME_LAUNCHER_ASSET_PADDING,
6
+ A as PILL_SIZE
7
+ };
8
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/circular-game-card/constants.ts"],"sourcesContent":["import { GAME_LAUNCHER_SIZE } from '../card-container/constants';\n\nexport const GAME_LAUNCHER_ASSET_PADDING = (GAME_LAUNCHER_SIZE * 17.5) / 100;\n\nexport const BORDER_WIDTH = Math.ceil(GAME_LAUNCHER_SIZE / 200);\n\nexport const PILL_SIZE = GAME_LAUNCHER_SIZE >= 296 ? 60 : 40;\n"],"names":["GAME_LAUNCHER_ASSET_PADDING","GAME_LAUNCHER_SIZE","BORDER_WIDTH","PILL_SIZE"],"mappings":";AAEa,MAAAA,IAA+BC,IAAqB,OAAQ,KAE5DC,IAAe,KAAK,KAAKD,IAAqB,GAAG,GAEjDE,IAAYF,KAAsB,MAAM,KAAK;"}
@@ -0,0 +1,6 @@
1
+ import { GAME_LAUNCHER_SIZE as E } from "../card-container/constants.js";
2
+ const t = Math.ceil(E * 120 / 100);
3
+ export {
4
+ t as ASSET_CONTAINER_SIZE
5
+ };
6
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/game-card-content/constants.ts"],"sourcesContent":["import { GAME_LAUNCHER_SIZE } from '../card-container/constants';\n\nexport const ASSET_CONTAINER_SIZE = Math.ceil((GAME_LAUNCHER_SIZE * 120) / 100);\n"],"names":["ASSET_CONTAINER_SIZE","GAME_LAUNCHER_SIZE"],"mappings":";AAEO,MAAMA,IAAuB,KAAK,KAAMC,IAAqB,MAAO,GAAG;"}
@@ -0,0 +1,57 @@
1
+ import t from "styled-components";
2
+ import { GAME_LAUNCHER_SIZE as r } from "../card-container/constants.js";
3
+ import { ASSET_CONTAINER_SIZE as e } from "./constants.js";
4
+ const a = t.div`
5
+ position: absolute;
6
+ width: ${r}px;
7
+ height: ${r}px;
8
+ border-radius: 50%;
9
+ background: transparent;
10
+ overflow: hidden;
11
+
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ flex: 1;
16
+
17
+ transform-origin: center;
18
+ `, p = t.div`
19
+ position: absolute;
20
+ top: 50%;
21
+ left: 50%;
22
+ transform: translate(-50%, -50%);
23
+
24
+ width: ${e}px;
25
+ height: ${e}px;
26
+
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+
31
+ overflow: hidden;
32
+ background-color: transparent;
33
+ z-index: 1;
34
+ flex-shrink: 0;
35
+
36
+ &:hover {
37
+ background: ${({ theme: n }) => n.colors.WHITE_T_15};
38
+ cursor: pointer;
39
+ }
40
+ `;
41
+ t.div`
42
+ position: absolute;
43
+ height: ${e}px;
44
+ width: ${e}px;
45
+ z-index: 5;
46
+ backdrop-filter: blur(16px);
47
+ -webkit-backdrop-filter: blur(16px);
48
+ /* pointer-events: none; */
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ `;
53
+ export {
54
+ p as AssetContainer,
55
+ a as GameCardSegmentWrapper
56
+ };
57
+ //# sourceMappingURL=game-card-content-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-card-content-styled.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/game-card-content/game-card-content-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { GAME_LAUNCHER_SIZE } from '../card-container/constants';\nimport { ASSET_CONTAINER_SIZE } from './constants';\n\nexport const GameCardSegmentWrapper = styled.div`\n position: absolute;\n width: ${GAME_LAUNCHER_SIZE}px;\n height: ${GAME_LAUNCHER_SIZE}px;\n border-radius: 50%;\n background: transparent;\n overflow: hidden;\n\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1;\n\n transform-origin: center;\n`;\n\nexport const AssetContainer = styled.div`\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n\n width: ${ASSET_CONTAINER_SIZE}px;\n height: ${ASSET_CONTAINER_SIZE}px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n overflow: hidden;\n background-color: transparent;\n z-index: 1;\n flex-shrink: 0;\n\n &:hover {\n background: ${({ theme }) => theme.colors.WHITE_T_15};\n cursor: pointer;\n }\n`;\n\nexport const CircularOverlay = styled.div`\n position: absolute;\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"],"names":["GameCardSegmentWrapper","styled","GAME_LAUNCHER_SIZE","AssetContainer","ASSET_CONTAINER_SIZE","theme"],"mappings":";;;AAKO,MAAMA,IAAyBC,EAAO;AAAA;AAAA,WAElCC,CAAkB;AAAA,YACjBA,CAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAajBC,IAAiBF,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAM1BG,CAAoB;AAAA,YACnBA,CAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAYd,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAKzBJ,EAAO;AAAA;AAAA,YAE1BG,CAAoB;AAAA,WACrBA,CAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,9 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { memo as t } from "react";
3
+ import n from "../../../../ui/lottie-animation/lottie-animation.js";
4
+ import { GameCardSegmentWrapper as o, AssetContainer as m } from "./game-card-content-styled.js";
5
+ const i = { renderer: "canvas", loop: !0 }, d = t(({ card: e }) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(n, { src: e, settings: i, animateOnIntersect: !0 }) }) }));
6
+ export {
7
+ d as GameCardContent
8
+ };
9
+ //# sourceMappingURL=game-card-content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-card-content.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/game-card-content/game-card-content.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport * as Styled from './game-card-content-styled';\nimport type { IGameCardContentProps } from './game-card-content-types';\n\nconst renderSettings = { renderer: 'canvas', loop: true };\n\nexport const GameCardContent = memo(({ card }: IGameCardContentProps) => {\n return (\n <Styled.GameCardSegmentWrapper>\n <Styled.AssetContainer>\n <LottieAnimation src={card} settings={renderSettings} animateOnIntersect />\n </Styled.AssetContainer>\n </Styled.GameCardSegmentWrapper>\n );\n});\n"],"names":["renderSettings","GameCardContent","memo","card","Styled.GameCardSegmentWrapper","jsx","Styled.AssetContainer","LottieAnimation"],"mappings":";;;;AAMA,MAAMA,IAAiB,EAAE,UAAU,UAAU,MAAM,GAAK,GAE3CC,IAAkBC,EAAK,CAAC,EAAE,MAAAC,0BAElCC,GAAA,EACC,UAAA,gBAAAC,EAACC,GAAA,EACC,UAAC,gBAAAD,EAAAE,GAAA,EAAgB,KAAKJ,GAAM,UAAUH,GAAgB,oBAAkB,GAAC,CAAA,GAC3E,EACF,CAAA,CAEH;"}
@@ -0,0 +1,7 @@
1
+ import { GAME_LAUNCHER_SIZE as E } from "../card-container/constants.js";
2
+ const A = E * 17.5 / 100, R = 5;
3
+ export {
4
+ A as GAME_LAUNCHER_ASSET_PADDING,
5
+ R as GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH
6
+ };
7
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/segmented-game-card/constants.ts"],"sourcesContent":["import { GAME_LAUNCHER_SIZE } from '../card-container/constants';\n\nexport const GAME_LAUNCHER_ASSET_PADDING = (GAME_LAUNCHER_SIZE * 17.5) / 100;\n\n// to show the stroke of the card below points, this width needs to be reduced\nexport const GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH = 5;\n\n// asset container needs to be 350/400 % of GAME LAUNCHER SIZE\nexport const ASSET_CONTAINER_SIZE = Math.ceil((GAME_LAUNCHER_SIZE * 87.5) / 100);\n\n// ASSET x-axis OFFSET needs to be 37.5 % of 1/2 of GAME LAUNCHER SIZE\nexport const ASSET_OFFSET_X = (GAME_LAUNCHER_SIZE / 2) * (37.5 / 100);\n\n// ASSET y-axis OFFSET needs to be 37.5 % of 1/2 of GAME LAUNCHER SIZE\nexport const ASSET_OFFSET_Y = (GAME_LAUNCHER_SIZE / 2) * (12.5 / 100);\n\nconst RADIAN = Math.PI / 180;\n\nexport const BORDER_WIDTH = 2;\n\n// delta created by a segment from x axis is 30deg\n// sin30 = delta/(CARD_SIZE/2)\nexport const delta =\n Math.sin(30 * RADIAN) * (GAME_LAUNCHER_SIZE / 2 - GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH);\n"],"names":["GAME_LAUNCHER_ASSET_PADDING","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_PROGRESS_RING_STROKE_WIDTH"],"mappings":";AAEa,MAAAA,IAA+BC,IAAqB,OAAQ,KAG5DC,IAA2C;"}
@@ -0,0 +1,14 @@
1
+ import o from "styled-components";
2
+ import { GAME_LAUNCHER_SIZE as t } from "../card-container/constants.js";
3
+ const e = o.div`
4
+ position: absolute;
5
+ inset: 0;
6
+ z-index: 9999;
7
+ background: transparent;
8
+ height: ${1.5 * t}px;
9
+ width: ${t}px;
10
+ `;
11
+ export {
12
+ e as Overlay
13
+ };
14
+ //# sourceMappingURL=swipeable-card-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipeable-card-styled.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/swipable-card/swipeable-card-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { GAME_LAUNCHER_SIZE } from '../card-container/constants';\n\nexport const Overlay = styled.div`\n position: absolute;\n inset: 0;\n z-index: 9999;\n background: transparent;\n height: ${1.5 * GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n`;\n"],"names":["Overlay","styled","GAME_LAUNCHER_SIZE"],"mappings":";;AAIO,MAAMA,IAAUC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,YAKlB,MAAMC,CAAkB;AAAA,WACzBA,CAAkB;AAAA;"}
@@ -0,0 +1,24 @@
1
+ import { jsx as h } from "react/jsx-runtime";
2
+ import { useRef as e } from "react";
3
+ import { Overlay as m } from "./swipeable-card-styled.js";
4
+ const b = ({
5
+ onSwipeLeft: t,
6
+ onSwipeRight: n,
7
+ minSwipeDistance: o = 50
8
+ }) => {
9
+ const s = e(0), u = e(0), a = (c) => {
10
+ var r;
11
+ s.current = ((r = c.changedTouches[0]) == null ? void 0 : r.clientX) || 0;
12
+ }, l = (c) => {
13
+ var r;
14
+ u.current = ((r = c.changedTouches[0]) == null ? void 0 : r.clientX) || 0, d();
15
+ }, d = () => {
16
+ const c = s.current - u.current;
17
+ Math.abs(c) < o || (c > 0 ? t == null || t() : n == null || n());
18
+ };
19
+ return /* @__PURE__ */ h(m, { onTouchStart: a, onTouchEnd: l });
20
+ };
21
+ export {
22
+ b as default
23
+ };
24
+ //# sourceMappingURL=swipeable-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipeable-card.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/swipable-card/swipeable-card.tsx"],"sourcesContent":["import React, { useRef } from 'react';\n\nimport { Overlay } from './swipeable-card-styled';\n\ninterface ISwipeableFullScreenProps {\n onSwipeLeft?: () => void;\n onSwipeRight?: () => void;\n minSwipeDistance?: number;\n}\n\nconst SwipeableFullScreen: React.FC<ISwipeableFullScreenProps> = ({\n onSwipeLeft,\n onSwipeRight,\n minSwipeDistance = 50,\n}) => {\n const touchStartX = useRef(0);\n const touchEndX = useRef(0);\n\n const onTouchStart = (e: React.TouchEvent) => {\n touchStartX.current = e.changedTouches[0]?.clientX || 0;\n };\n\n const onTouchEnd = (e: React.TouchEvent) => {\n touchEndX.current = e.changedTouches[0]?.clientX || 0;\n handleSwipe();\n };\n\n const handleSwipe = () => {\n const distance = touchStartX.current - touchEndX.current;\n\n if (Math.abs(distance) < minSwipeDistance) return;\n\n if (distance > 0) {\n onSwipeLeft?.();\n } else {\n onSwipeRight?.();\n }\n };\n\n return <Overlay onTouchStart={onTouchStart} onTouchEnd={onTouchEnd} />;\n};\n\nexport default SwipeableFullScreen;\n"],"names":["SwipeableFullScreen","onSwipeLeft","onSwipeRight","minSwipeDistance","touchStartX","useRef","touchEndX","onTouchStart","e","_a","onTouchEnd","handleSwipe","distance","jsx","Overlay"],"mappings":";;;AAUA,MAAMA,IAA2D,CAAC;AAAA,EAChE,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,kBAAAC,IAAmB;AACrB,MAAM;AACE,QAAAC,IAAcC,EAAO,CAAC,GACtBC,IAAYD,EAAO,CAAC,GAEpBE,IAAe,CAACC,MAAwB;;AAC5C,IAAAJ,EAAY,YAAUK,IAAAD,EAAE,eAAe,CAAC,MAAlB,gBAAAC,EAAqB,YAAW;AAAA,EAAA,GAGlDC,IAAa,CAACF,MAAwB;;AAC1C,IAAAF,EAAU,YAAUG,IAAAD,EAAE,eAAe,CAAC,MAAlB,gBAAAC,EAAqB,YAAW,GACxCE;EAAA,GAGRA,IAAc,MAAM;AAClB,UAAAC,IAAWR,EAAY,UAAUE,EAAU;AAEjD,IAAI,KAAK,IAAIM,CAAQ,IAAIT,MAErBS,IAAW,IACCX,KAAA,QAAAA,MAECC,KAAA,QAAAA;AAAA,EACjB;AAGK,SAAA,gBAAAW,EAACC,GAAQ,EAAA,cAAAP,GAA4B,YAAAG,EAAwB,CAAA;AACtE;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../src/features/circle-games/game-launcher-v2/comps/tables-card/constants.ts"],"sourcesContent":["import type { AnimationSegment } from 'lottie-web';\n\nimport type { TColorNames } from '../../../../ui/types';\nimport type { TTableMode } from '../../dal/use-get-circle-home-details-dal/use-get-circle-home-dal-types';\n\nexport const TABLE_REVEAL_ANIMATION = {\n REVEAL: [0, 15] as AnimationSegment,\n REVEAL_CONTENT: [8, 15] as AnimationSegment,\n DISAPPEAR_CONTENT: [21, 29] as AnimationSegment,\n DISAPPEAR: [21, 38] as AnimationSegment,\n};\n\nexport const TABLE_MODE_LABEL_COLOR: Partial<Record<TTableMode, TColorNames>> = {\n random: 'BLUE_4',\n sequence: 'YELLOW_4',\n advance: 'PURPLE_4',\n};\n\n// z-index 1 to 20 are for table number arc segments\nexport const TABLE_CARD_SHADOW_Z_INDEX = 50;\nexport const INFINITE_MODE_Z_INDEX = TABLE_CARD_SHADOW_Z_INDEX + 1;\nexport const TABLE_MODE_CONTAINER_Z_INDEX = 100;\n\n// table modes\nexport const TABLE_MODE_OVERLAY_Z_INDEX = 1;\nexport const ABSOLUTE_VIEW_Z_INDEX = 2;\nexport const INFINITE_MODE_TEXT = 'INFINITY MODE';\n\nexport const NORMAL_TABLE_MODES = ['sequence', 'random', 'advance'] as Exclude<\n TTableMode,\n 'infinite'\n>[];\n"],"names":["TABLE_REVEAL_ANIMATION","TABLE_MODE_LABEL_COLOR","TABLE_CARD_SHADOW_Z_INDEX","INFINITE_MODE_Z_INDEX","TABLE_MODE_CONTAINER_Z_INDEX","TABLE_MODE_OVERLAY_Z_INDEX","ABSOLUTE_VIEW_Z_INDEX","INFINITE_MODE_TEXT","NORMAL_TABLE_MODES"],"mappings":"AAKO,MAAMA,IAAyB;AAAA,EACpC,QAAQ,CAAC,GAAG,EAAE;AAAA,EACd,gBAAgB,CAAC,GAAG,EAAE;AAAA,EACtB,mBAAmB,CAAC,IAAI,EAAE;AAAA,EAC1B,WAAW,CAAC,IAAI,EAAE;AACpB,GAEaC,IAAmE;AAAA,EAC9E,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AACX,GAGaC,IAA4B,IAC5BC,IAAwBD,IAA4B,GACpDE,IAA+B,KAG/BC,IAA6B,GAC7BC,IAAwB,GACxBC,IAAqB,iBAErBC,IAAqB,CAAC,YAAY,UAAU,SAAS;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infinite-mode-launcher-button.js","sources":["../../../../../../../src/features/circle-games/game-launcher-v2/comps/tables-card/infinite-button/infinite-mode-launcher-button.tsx"],"sourcesContent":["import React from 'react';\n\nimport { LOTTIE } from '../../../../../../assets/lottie/lottie';\nimport LottieAnimation from '../../../../../ui/lottie-animation/lottie-animation';\nimport * as Styled from '../tables-card-styled';\nimport type { InfiniteButtonCardProps } from './infinite-mode-launcher-button-type';\n\nconst rendererSettings = {\n renderer: 'canvas',\n};\n\nconst InfiniteButtonCard: React.FC<InfiniteButtonCardProps> = ({\n onClick,\n onMouseOver,\n onMouseLeave,\n buttonRef,\n}) => {\n return (\n <Styled.InfiniteButtonWrapper\n ref={buttonRef}\n onClick={onClick}\n onMouseOver={onMouseOver}\n onMouseLeave={onMouseLeave}\n >\n <Styled.ExtendedAbsoluteView>\n <LottieAnimation\n src={LOTTIE.INFINITE_BUTTON_BG}\n settings={rendererSettings}\n animateOnIntersect\n />\n </Styled.ExtendedAbsoluteView>\n <Styled.ExtendedAbsoluteView>\n <LottieAnimation\n src={LOTTIE.INFINITE_BUTTON_SYMBOL}\n settings={rendererSettings}\n animateOnIntersect\n />\n </Styled.ExtendedAbsoluteView>\n </Styled.InfiniteButtonWrapper>\n );\n};\n\nexport default React.memo(InfiniteButtonCard);\n"],"names":["rendererSettings","InfiniteButtonCard","onClick","onMouseOver","onMouseLeave","buttonRef","jsxs","Styled.InfiniteButtonWrapper","jsx","Styled.ExtendedAbsoluteView","LottieAnimation","LOTTIE","InfiniteButtonCard$1","React"],"mappings":";;;;;AAOA,MAAMA,IAAmB;AAAA,EACvB,UAAU;AACZ,GAEMC,IAAwD,CAAC;AAAA,EAC7D,SAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AACF,MAEI,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAKF;AAAA,IACL,SAAAH;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IAEA,UAAA;AAAA,MAAC,gBAAAI,EAAAC,GAAA,EACC,UAAA,gBAAAD;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,KAAKC,EAAO;AAAA,UACZ,UAAUX;AAAA,UACV,oBAAkB;AAAA,QAAA;AAAA,MAAA,GAEtB;AAAA,MACA,gBAAAQ,EAACC,GAAA,EACC,UAAA,gBAAAD;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,KAAKC,EAAO;AAAA,UACZ,UAAUX;AAAA,UACV,oBAAkB;AAAA,QAAA;AAAA,MAAA,GAEtB;AAAA,IAAA;AAAA,EAAA;AAAA,GAKNY,IAAeC,EAAM,KAAKZ,CAAkB;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../../src/features/circle-games/game-launcher-v2/comps/tables-card/spl-events-text/constants.ts"],"sourcesContent":["import { LOTTIE } from '../../../../../../assets/lottie/lottie';\nimport { CircleSoundKey } from '../../../../hooks/use-circle-sounds/use-circle-sounds-enums';\nimport { TSplEventsLottieType } from './spl-events-text-types';\n\nexport const LOTTIE_MAP: Record<TSplEventsLottieType, { src: string; audio: string }> = {\n [TSplEventsLottieType.KEEP_IT_UP]: {\n src: LOTTIE.KEEP_IT_UP,\n audio: CircleSoundKey.KEEP_IT_UP,\n },\n [TSplEventsLottieType.DOING_GREAT]: {\n src: LOTTIE.DOING_GREAT,\n audio: CircleSoundKey.DOING_GREAT,\n },\n [TSplEventsLottieType.ALL_DONE]: {\n src: LOTTIE.ALL_DONE,\n audio: CircleSoundKey.ALL_DONE,\n },\n};\n\nexport const COMPLETED_MODES_TO_SPL_EVENT_TYPE_MAP: Record<number, TSplEventsLottieType> = {\n 1: TSplEventsLottieType.KEEP_IT_UP,\n 2: TSplEventsLottieType.DOING_GREAT,\n 3: TSplEventsLottieType.ALL_DONE,\n};\n\nexport const splEventsLottieSettings = { loop: false, autoplay: true };\n"],"names":["LOTTIE_MAP","TSplEventsLottieType","LOTTIE","CircleSoundKey","COMPLETED_MODES_TO_SPL_EVENT_TYPE_MAP","splEventsLottieSettings"],"mappings":";;;AAIO,MAAMA,IAA2E;AAAA,EACtF,CAACC,EAAqB,UAAU,GAAG;AAAA,IACjC,KAAKC,EAAO;AAAA,IACZ,OAAOC,EAAe;AAAA,EACxB;AAAA,EACA,CAACF,EAAqB,WAAW,GAAG;AAAA,IAClC,KAAKC,EAAO;AAAA,IACZ,OAAOC,EAAe;AAAA,EACxB;AAAA,EACA,CAACF,EAAqB,QAAQ,GAAG;AAAA,IAC/B,KAAKC,EAAO;AAAA,IACZ,OAAOC,EAAe;AAAA,EACxB;AACF,GAEaC,IAA8E;AAAA,EACzF,GAAGH,EAAqB;AAAA,EACxB,GAAGA,EAAqB;AAAA,EACxB,GAAGA,EAAqB;AAC1B,GAEaI,IAA0B,EAAE,MAAM,IAAO,UAAU,GAAK;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spl-events-text-style.js","sources":["../../../../../../../src/features/circle-games/game-launcher-v2/comps/tables-card/spl-events-text/spl-events-text-style.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport { GAME_LAUNCHER_SIZE } from '../../card-container/constants';\n\nexport const StyledSpecialEventsText = styled(FlexView)`\n position: absolute;\n top: 90%;\n width: ${GAME_LAUNCHER_SIZE}px;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n`;\n"],"names":["StyledSpecialEventsText","styled","FlexView","GAME_LAUNCHER_SIZE"],"mappings":";;;AAKa,MAAAA,IAA0BC,EAAOC,CAAQ;AAAA;AAAA;AAAA,WAG3CC,CAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spl-events-text-types.js","sources":["../../../../../../../src/features/circle-games/game-launcher-v2/comps/tables-card/spl-events-text/spl-events-text-types.ts"],"sourcesContent":["import type { TTableMode } from '../../../dal/use-get-circle-home-details-dal/use-get-circle-home-dal-types';\n\nexport enum TSplEventsLottieType {\n KEEP_IT_UP = 'KEEP_IT_UP',\n DOING_GREAT = 'DOING_GREAT',\n ALL_DONE = 'ALL_DONE',\n}\n\nexport type ISplEventsTextProps = {\n completedModes: TTableMode[];\n};\n"],"names":["TSplEventsLottieType"],"mappings":"AAEY,IAAAA,sBAAAA,OACVA,EAAA,aAAa,cACbA,EAAA,cAAc,eACdA,EAAA,WAAW,YAHDA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spl-events-text.js","sources":["../../../../../../../src/features/circle-games/game-launcher-v2/comps/tables-card/spl-events-text/spl-events-text.tsx"],"sourcesContent":["import React from 'react';\n\nimport LottieAnimation from '../../../../../ui/lottie-animation/lottie-animation';\nimport { useCircleSounds } from '../../../../hooks/use-circle-sounds/use-circle-sounds';\nimport type { CircleSoundKey } from '../../../../hooks/use-circle-sounds/use-circle-sounds-enums';\nimport {\n COMPLETED_MODES_TO_SPL_EVENT_TYPE_MAP,\n LOTTIE_MAP,\n splEventsLottieSettings,\n} from './constants';\nimport { StyledSpecialEventsText } from './spl-events-text-style';\nimport type { ISplEventsTextProps } from './spl-events-text-types';\nimport { TSplEventsLottieType } from './spl-events-text-types';\n\nexport const SplEventsText = React.memo(({ completedModes }: ISplEventsTextProps) => {\n const { play } = useCircleSounds();\n const completedModesCount = completedModes.length;\n\n const splEvent =\n COMPLETED_MODES_TO_SPL_EVENT_TYPE_MAP[completedModesCount] || TSplEventsLottieType.KEEP_IT_UP;\n\n const { src, audio } = LOTTIE_MAP[splEvent];\n\n return (\n <StyledSpecialEventsText>\n <LottieAnimation\n src={src}\n settings={splEventsLottieSettings}\n onRender={() => play(audio as CircleSoundKey)}\n />\n </StyledSpecialEventsText>\n );\n});\n"],"names":["SplEventsText","React","completedModes","play","useCircleSounds","completedModesCount","splEvent","COMPLETED_MODES_TO_SPL_EVENT_TYPE_MAP","TSplEventsLottieType","src","audio","LOTTIE_MAP","StyledSpecialEventsText","jsx","LottieAnimation","splEventsLottieSettings"],"mappings":";;;;;;;AAcO,MAAMA,IAAgBC,EAAM,KAAK,CAAC,EAAE,gBAAAC,QAA0C;AAC7E,QAAA,EAAE,MAAAC,MAASC,KACXC,IAAsBH,EAAe,QAErCI,IACJC,EAAsCF,CAAmB,KAAKG,EAAqB,YAE/E,EAAE,KAAAC,GAAK,OAAAC,EAAM,IAAIC,EAAWL,CAAQ;AAE1C,2BACGM,GACC,EAAA,UAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAL;AAAA,MACA,UAAUM;AAAA,MACV,UAAU,MAAMZ,EAAKO,CAAuB;AAAA,IAAA;AAAA,EAEhD,EAAA,CAAA;AAEJ,CAAC;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-mode-styled.js","sources":["../../../../../../../src/features/circle-games/game-launcher-v2/comps/tables-card/table-mode/table-mode-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { GAME_LAUNCHER_SIZE } from '../../card-container/constants';\n\nexport const ModeContentSquareBlock = styled.div<{ $isBorderRightRequired?: boolean }>`\n border: 1px solid ${({ theme }) => theme.colors.WHITE};\n border-right-width: ${({ $isBorderRightRequired }) => ($isBorderRightRequired ? '1px' : '0px')};\n height: ${GAME_LAUNCHER_SIZE * 0.081}px;\n width: ${GAME_LAUNCHER_SIZE * 0.081}px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ${({ theme }) => theme.colors.BLACK_1};\n position: relative;\n`;\n\nexport const TableModeLottieContainer = styled.div<{ $bottom?: string; $right?: string }>`\n position: absolute;\n height: auto;\n width: ${GAME_LAUNCHER_SIZE * 0.081}px;\n right: ${({ $right = '0px' }) => $right};\n bottom: ${({ $bottom = 'unset' }) => $bottom};\n`;\n"],"names":["ModeContentSquareBlock","styled","theme","$isBorderRightRequired","GAME_LAUNCHER_SIZE","TableModeLottieContainer","$right","$bottom"],"mappings":";;AAIO,MAAMA,IAAyBC,EAAO;AAAA,sBACvB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,wBAC/B,CAAC,EAAE,wBAAAC,EAAA,MAA8BA,IAAyB,QAAQ,KAAM;AAAA,YACpFC,IAAqB,KAAK;AAAA,WAC3BA,IAAqB,KAAK;AAAA;AAAA;AAAA;AAAA,sBAIf,CAAC,EAAE,OAAAF,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA,GAI5CG,IAA2BJ,EAAO;AAAA;AAAA;AAAA,WAGpCG,IAAqB,KAAK;AAAA,WAC1B,CAAC,EAAE,QAAAE,IAAS,MAAA,MAAYA,CAAM;AAAA,YAC7B,CAAC,EAAE,SAAAC,IAAU,QAAA,MAAcA,CAAO;AAAA;"}