@cuemath/leap 3.5.30-link.4 → 3.5.31-as1

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 (270) hide show
  1. package/dist/assets/illustrations/illustrations.js +43 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/images/images.js +0 -12
  4. package/dist/assets/images/images.js.map +1 -1
  5. package/dist/assets/line-icons/icons/carat-right.js +26 -0
  6. package/dist/assets/line-icons/icons/carat-right.js.map +1 -0
  7. package/dist/assets/line-icons/icons/dots-icon.js +21 -0
  8. package/dist/assets/line-icons/icons/dots-icon.js.map +1 -0
  9. package/dist/assets/line-icons/icons/pause-icon.js +24 -0
  10. package/dist/assets/line-icons/icons/pause-icon.js.map +1 -0
  11. package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js +82 -0
  12. package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js.map +1 -0
  13. package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.styled.js +77 -0
  14. package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.styled.js.map +1 -0
  15. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +18 -91
  16. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  17. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +42 -58
  18. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  19. package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js +16 -32
  20. package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js.map +1 -1
  21. package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js +85 -87
  22. package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js.map +1 -1
  23. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +35 -35
  24. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  25. package/dist/features/homework/card-title.js +8 -8
  26. package/dist/features/homework/card-title.js.map +1 -1
  27. package/dist/features/milestone/constants.js +15 -28
  28. package/dist/features/milestone/constants.js.map +1 -1
  29. package/dist/features/milestone/create/milestone-create-helpers.js +42 -43
  30. package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
  31. package/dist/features/parent-dashboard/comps/compact-header/compact-header.js +5 -5
  32. package/dist/features/parent-dashboard/comps/compact-header/compact-header.js.map +1 -1
  33. package/dist/features/timeline/comps/constants.js +18 -18
  34. package/dist/features/timeline/comps/constants.js.map +1 -1
  35. package/dist/features/timeline/comps/daily-timeline-items/daily-timeline-items.js +14 -14
  36. package/dist/features/timeline/comps/daily-timeline-items/daily-timeline-items.js.map +1 -1
  37. package/dist/features/timeline/daily-timeline-styled.js +13 -9
  38. package/dist/features/timeline/daily-timeline-styled.js.map +1 -1
  39. package/dist/features/timeline/daily-timeline-types.js +4 -4
  40. package/dist/features/timeline/daily-timeline-types.js.map +1 -1
  41. package/dist/features/timeline/daily-timeline-view.js +9 -10
  42. package/dist/features/timeline/daily-timeline-view.js.map +1 -1
  43. package/dist/features/timeline/monthly-report/api/use-monthly-report-get.js +13 -0
  44. package/dist/features/timeline/monthly-report/api/use-monthly-report-get.js.map +1 -0
  45. package/dist/features/timeline/monthly-report/comps/achievements/achievements.js +59 -0
  46. package/dist/features/timeline/monthly-report/comps/achievements/achievements.js.map +1 -0
  47. package/dist/features/timeline/monthly-report/comps/achievements/achievements.styled.js +15 -0
  48. package/dist/features/timeline/monthly-report/comps/achievements/achievements.styled.js.map +1 -0
  49. package/dist/features/timeline/monthly-report/comps/achievements/constant.js +16 -0
  50. package/dist/features/timeline/monthly-report/comps/achievements/constant.js.map +1 -0
  51. package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.js +128 -0
  52. package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.js.map +1 -0
  53. package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js +53 -0
  54. package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js.map +1 -0
  55. package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js +121 -0
  56. package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js.map +1 -0
  57. package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js +58 -0
  58. package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js.map +1 -0
  59. package/dist/features/timeline/monthly-report/comps/activities/activities.js +27 -0
  60. package/dist/features/timeline/monthly-report/comps/activities/activities.js.map +1 -0
  61. package/dist/features/timeline/monthly-report/comps/activities/constants.js +96 -0
  62. package/dist/features/timeline/monthly-report/comps/activities/constants.js.map +1 -0
  63. package/dist/features/timeline/monthly-report/comps/activities/utils.js +15 -0
  64. package/dist/features/timeline/monthly-report/comps/activities/utils.js.map +1 -0
  65. package/dist/features/timeline/monthly-report/comps/attendance/attendance-constants.js +29 -0
  66. package/dist/features/timeline/monthly-report/comps/attendance/attendance-constants.js.map +1 -0
  67. package/dist/features/timeline/monthly-report/comps/attendance/attendance-utils.js +107 -0
  68. package/dist/features/timeline/monthly-report/comps/attendance/attendance-utils.js.map +1 -0
  69. package/dist/features/timeline/monthly-report/comps/attendance/attendance.js +44 -0
  70. package/dist/features/timeline/monthly-report/comps/attendance/attendance.js.map +1 -0
  71. package/dist/features/timeline/monthly-report/comps/attendance/attendance.styled.js +39 -0
  72. package/dist/features/timeline/monthly-report/comps/attendance/attendance.styled.js.map +1 -0
  73. package/dist/features/timeline/monthly-report/comps/attendance/attendence-view.js +52 -0
  74. package/dist/features/timeline/monthly-report/comps/attendance/attendence-view.js.map +1 -0
  75. package/dist/features/timeline/monthly-report/comps/feedback/feedback-styled.js +9 -0
  76. package/dist/features/timeline/monthly-report/comps/feedback/feedback-styled.js.map +1 -0
  77. package/dist/features/timeline/monthly-report/comps/feedback/feedback.js +94 -0
  78. package/dist/features/timeline/monthly-report/comps/feedback/feedback.js.map +1 -0
  79. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js +48 -0
  80. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js.map +1 -0
  81. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js +28 -0
  82. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js.map +1 -0
  83. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card.js +113 -0
  84. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card.js.map +1 -0
  85. package/dist/features/timeline/monthly-report/comps/goals/goals-constants.js +30 -0
  86. package/dist/features/timeline/monthly-report/comps/goals/goals-constants.js.map +1 -0
  87. package/dist/features/timeline/monthly-report/comps/goals/goals.js +22 -0
  88. package/dist/features/timeline/monthly-report/comps/goals/goals.js.map +1 -0
  89. package/dist/features/timeline/monthly-report/monthly-report-styled.js +14 -0
  90. package/dist/features/timeline/monthly-report/monthly-report-styled.js.map +1 -0
  91. package/dist/features/timeline/monthly-report/monthly-report-types.js +5 -0
  92. package/dist/features/timeline/monthly-report/monthly-report-types.js.map +1 -0
  93. package/dist/features/timeline/monthly-report/monthly-report.js +69 -0
  94. package/dist/features/timeline/monthly-report/monthly-report.js.map +1 -0
  95. package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js +10 -0
  96. package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js.map +1 -0
  97. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js +87 -0
  98. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js.map +1 -0
  99. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js +9 -0
  100. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js.map +1 -0
  101. package/dist/features/timeline/monthly-timeline/constants.js +40 -0
  102. package/dist/features/timeline/monthly-timeline/constants.js.map +1 -0
  103. package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js +13 -0
  104. package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js.map +1 -0
  105. package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js +6 -0
  106. package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js.map +1 -0
  107. package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js +28 -0
  108. package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js.map +1 -0
  109. package/dist/features/timeline/monthly-timeline/monthly-timeline.js +62 -0
  110. package/dist/features/timeline/monthly-timeline/monthly-timeline.js.map +1 -0
  111. package/dist/features/timeline/ptm-report/api/use-ptm-report-get.js +9 -0
  112. package/dist/features/timeline/ptm-report/api/use-ptm-report-get.js.map +1 -0
  113. package/dist/features/timeline/ptm-report/comps/key-need/key-need-styled.js +9 -0
  114. package/dist/features/timeline/ptm-report/comps/key-need/key-need-styled.js.map +1 -0
  115. package/dist/features/timeline/ptm-report/comps/key-need/key-need.js +35 -0
  116. package/dist/features/timeline/ptm-report/comps/key-need/key-need.js.map +1 -0
  117. package/dist/features/timeline/ptm-report/comps/parent-support/parent-support.js +53 -0
  118. package/dist/features/timeline/ptm-report/comps/parent-support/parent-support.js.map +1 -0
  119. package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js +19 -0
  120. package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js.map +1 -0
  121. package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects.js +50 -0
  122. package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects.js.map +1 -0
  123. package/dist/features/timeline/ptm-report/comps/report-card/report-card-styled.js +9 -0
  124. package/dist/features/timeline/ptm-report/comps/report-card/report-card-styled.js.map +1 -0
  125. package/dist/features/timeline/ptm-report/comps/report-card/report-card.js +22 -0
  126. package/dist/features/timeline/ptm-report/comps/report-card/report-card.js.map +1 -0
  127. package/dist/features/timeline/ptm-report/comps/school-support/school-support-styled.js +9 -0
  128. package/dist/features/timeline/ptm-report/comps/school-support/school-support-styled.js.map +1 -0
  129. package/dist/features/timeline/ptm-report/comps/school-support/school-support.js +84 -0
  130. package/dist/features/timeline/ptm-report/comps/school-support/school-support.js.map +1 -0
  131. package/dist/features/timeline/ptm-report/comps/strategies/strategies-constant.js +11 -0
  132. package/dist/features/timeline/ptm-report/comps/strategies/strategies-constant.js.map +1 -0
  133. package/dist/features/timeline/ptm-report/comps/strategies/strategies.js +36 -0
  134. package/dist/features/timeline/ptm-report/comps/strategies/strategies.js.map +1 -0
  135. package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card-styled.js +55 -0
  136. package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card-styled.js.map +1 -0
  137. package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card.js +35 -0
  138. package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card.js.map +1 -0
  139. package/dist/features/timeline/ptm-report/comps/student-info/student-info-styled.js +21 -0
  140. package/dist/features/timeline/ptm-report/comps/student-info/student-info-styled.js.map +1 -0
  141. package/dist/features/timeline/ptm-report/comps/student-info/student-info.js +21 -0
  142. package/dist/features/timeline/ptm-report/comps/student-info/student-info.js.map +1 -0
  143. package/dist/features/timeline/ptm-report/comps/support-card/support-card-styled.js +9 -0
  144. package/dist/features/timeline/ptm-report/comps/support-card/support-card-styled.js.map +1 -0
  145. package/dist/features/timeline/ptm-report/comps/support-card/support-card.js +30 -0
  146. package/dist/features/timeline/ptm-report/comps/support-card/support-card.js.map +1 -0
  147. package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js +9 -0
  148. package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js.map +1 -0
  149. package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations.js +56 -0
  150. package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations.js.map +1 -0
  151. package/dist/features/timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js +15 -0
  152. package/dist/features/timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js.map +1 -0
  153. package/dist/features/timeline/ptm-report/ptm-report-constants.js +16 -0
  154. package/dist/features/timeline/ptm-report/ptm-report-constants.js.map +1 -0
  155. package/dist/features/timeline/ptm-report/ptm-report-helpers.js +8 -0
  156. package/dist/features/timeline/ptm-report/ptm-report-helpers.js.map +1 -0
  157. package/dist/features/timeline/ptm-report/ptm-report-styled.js +11 -0
  158. package/dist/features/timeline/ptm-report/ptm-report-styled.js.map +1 -0
  159. package/dist/features/timeline/ptm-report/ptm-report-types.js +5 -0
  160. package/dist/features/timeline/ptm-report/ptm-report-types.js.map +1 -0
  161. package/dist/features/timeline/ptm-report/ptm-report.js +113 -0
  162. package/dist/features/timeline/ptm-report/ptm-report.js.map +1 -0
  163. package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js +5 -0
  164. package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js.map +1 -0
  165. package/dist/features/timeline/timeline-tabs/timeline-tabs.js +42 -0
  166. package/dist/features/timeline/timeline-tabs/timeline-tabs.js.map +1 -0
  167. package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js +37 -0
  168. package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js.map +1 -0
  169. package/dist/features/trial-session/comps/school-goals/school-goals.js +71 -82
  170. package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
  171. package/dist/features/trial-session/comps/worksheet/worksheet.js +33 -42
  172. package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
  173. package/dist/features/trial-session/helper.js +66 -69
  174. package/dist/features/trial-session/helper.js.map +1 -1
  175. package/dist/features/trial-session/hooks/use-slide-config-update.js +17 -22
  176. package/dist/features/trial-session/hooks/use-slide-config-update.js.map +1 -1
  177. package/dist/features/trial-session/hooks/use-trial-session-navigation.js +128 -139
  178. package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
  179. package/dist/features/trial-session/left-panel/index.js.map +1 -1
  180. package/dist/features/trial-session/trial-session-constants.js +9 -16
  181. package/dist/features/trial-session/trial-session-constants.js.map +1 -1
  182. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  183. package/dist/features/trial-session/trial-session.js +66 -68
  184. package/dist/features/trial-session/trial-session.js.map +1 -1
  185. package/dist/features/ui/animated-arc/animated-arc-styled.js +7 -7
  186. package/dist/features/ui/animated-arc/animated-arc-styled.js.map +1 -1
  187. package/dist/features/ui/animated-arc/animated-arc.js +37 -26
  188. package/dist/features/ui/animated-arc/animated-arc.js.map +1 -1
  189. package/dist/features/ui/linear-progress-bar/linear-progress-bar.js +39 -0
  190. package/dist/features/ui/linear-progress-bar/linear-progress-bar.js.map +1 -0
  191. package/dist/features/ui/linear-progress-bar/linear-progress-bar.styled.js +23 -0
  192. package/dist/features/ui/linear-progress-bar/linear-progress-bar.styled.js.map +1 -0
  193. package/dist/features/ui/swipeable-carousel/constants.js +16 -0
  194. package/dist/features/ui/swipeable-carousel/constants.js.map +1 -0
  195. package/dist/features/ui/swipeable-carousel/swipeable-carousel-styled.js +57 -0
  196. package/dist/features/ui/swipeable-carousel/swipeable-carousel-styled.js.map +1 -0
  197. package/dist/features/ui/swipeable-carousel/swipeable-carousel.js +150 -0
  198. package/dist/features/ui/swipeable-carousel/swipeable-carousel.js.map +1 -0
  199. package/dist/features/ui/swipeable-component/swipeable-component-styled.js.map +1 -0
  200. package/dist/features/ui/swipeable-component/swipeable-component.js +27 -0
  201. package/dist/features/ui/swipeable-component/swipeable-component.js.map +1 -0
  202. package/dist/features/ui/theme/text.js +14 -0
  203. package/dist/features/ui/theme/text.js.map +1 -1
  204. package/dist/index.d.ts +246 -41
  205. package/dist/index.js +588 -568
  206. package/dist/index.js.map +1 -1
  207. package/dist/static/2021.2a1a2ec9.svg +1 -0
  208. package/dist/static/2022.2091553a.svg +1 -0
  209. package/dist/static/2023.ed718b4e.svg +1 -0
  210. package/dist/static/2024.aa60edc5.svg +1 -0
  211. package/dist/static/2025.014a8ad3.svg +1 -0
  212. package/dist/static/2026.95d70f27.svg +1 -0
  213. package/dist/static/2027.fe83a41c.svg +1 -0
  214. package/dist/static/2028.b1c253ef.svg +1 -0
  215. package/dist/static/apr.cd56f13d.svg +1 -0
  216. package/dist/static/aug.3ceade02.svg +1 -0
  217. package/dist/static/coding-report-icon.91a1e900.svg +1 -0
  218. package/dist/static/dec.90729a5e.svg +1 -0
  219. package/dist/static/elp-icon.d45b457d.svg +1 -0
  220. package/dist/static/empty-reports.fe92faad.svg +1 -0
  221. package/dist/static/english-icon.50c2e005.svg +1 -0
  222. package/dist/static/feb.a9ecd320.svg +1 -0
  223. package/dist/static/focus-blue.664be268.svg +1 -0
  224. package/dist/static/full-report.00112c74.svg +1 -0
  225. package/dist/static/jan.f8fb9c39.svg +1 -0
  226. package/dist/static/jul.04a98cf0.svg +1 -0
  227. package/dist/static/jun.9b6ab6bf.svg +1 -0
  228. package/dist/static/key.fa0b4c98.svg +1 -0
  229. package/dist/static/live-session-blue.ec7fa85f.svg +1 -0
  230. package/dist/static/mar.f8b372ef.svg +1 -0
  231. package/dist/static/math-fit-grey.c32f37b3.svg +1 -0
  232. package/dist/static/may.23adae48.svg +1 -0
  233. package/dist/static/no-report.4158fad3.svg +1 -0
  234. package/dist/static/nov.c44e4739.svg +1 -0
  235. package/dist/static/oct.856b3b3f.svg +1 -0
  236. package/dist/static/opened-book-green.faacda34.svg +1 -0
  237. package/dist/static/percentage-pattern-yellow.6a25e820.svg +1 -0
  238. package/dist/static/pi-orange.132b108d.svg +1 -0
  239. package/dist/static/ptm-report-icon.5089218f.svg +1 -0
  240. package/dist/static/puzzle-purple.60ff4884.svg +1 -0
  241. package/dist/static/question-mark-yellow.1925aa04.svg +1 -0
  242. package/dist/static/renewal-blue.1ab3b2d4.svg +1 -0
  243. package/dist/static/sat-report-icon.4331be86.svg +1 -0
  244. package/dist/static/science-report-icon.a0014c40.svg +1 -0
  245. package/dist/static/sep.2d547b31.svg +1 -0
  246. package/dist/static/thumbs-up-green.6a03b9d2.svg +1 -0
  247. package/dist/static/thumps-down.a1192a62.svg +1 -0
  248. package/dist/static/thumps-up.caa35a98.svg +1 -0
  249. package/dist/static/time-purple.ab1a458d.svg +1 -0
  250. package/package.json +3 -2
  251. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js +0 -12
  252. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js.map +0 -1
  253. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +0 -34
  254. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +0 -1
  255. package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component-styled.js.map +0 -1
  256. package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component.js +0 -26
  257. package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component.js.map +0 -1
  258. package/dist/static/apr.09a50ff7.png +0 -0
  259. package/dist/static/aug.7179d37e.png +0 -0
  260. package/dist/static/dec.09f7e315.png +0 -0
  261. package/dist/static/feb.9e72504d.png +0 -0
  262. package/dist/static/jan.da91944a.png +0 -0
  263. package/dist/static/jul.5a1c4932.png +0 -0
  264. package/dist/static/jun.62639c2f.png +0 -0
  265. package/dist/static/mar.f51bcfa6.png +0 -0
  266. package/dist/static/may.7c542020.png +0 -0
  267. package/dist/static/nov.058343e7.png +0 -0
  268. package/dist/static/oct.573ee19d.png +0 -0
  269. package/dist/static/sep.3ccb6468.png +0 -0
  270. /package/dist/features/{circle-games/game-launcher/comps/swipable-component → ui/swipeable-component}/swipeable-component-styled.js +0 -0
@@ -1,95 +1,93 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { memo as L, useState as N, useCallback as n, useEffect as A } from "react";
3
- import { getTimezone as z } from "../../helpers/date-time.js";
4
- import F from "../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker.js";
5
- import { useGetMileStoneConfig as y } from "../milestone/create/api/milestone-config.js";
6
- import w from "../ui/error/error.js";
7
- import k from "../ui/loader/app-loader/app-loader.js";
8
- import { useGetTrialHome as x } from "./api/trial-home.js";
9
- import { filterAndUpdateSlideNavigation as G } from "./helper.js";
10
- import V from "./trial-session-view.js";
11
- import { USER_TYPE as s } from "../timeline/daily-timeline-types.js";
12
- const Z = L(function(E) {
13
- const { userType: e, teacherId: g, studentId: S, teacherClassroomId: _, height: u = "100vh" } = E, [l, D] = N(null), [R, H] = N(), {
14
- data: m,
15
- get: p,
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { memo as h, useState as I, useCallback as n, useEffect as p } from "react";
3
+ import { getTimezone as L } from "../../helpers/date-time.js";
4
+ import z from "../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker.js";
5
+ import { useGetMileStoneConfig as F } from "../milestone/create/api/milestone-config.js";
6
+ import y from "../ui/error/error.js";
7
+ import w from "../ui/loader/app-loader/app-loader.js";
8
+ import { useGetTrialHome as k } from "./api/trial-home.js";
9
+ import { filterAndUpdateSlideNavigation as x } from "./helper.js";
10
+ import G from "./trial-session-view.js";
11
+ const V = h(function(f) {
12
+ const { userType: e, teacherId: d, studentId: g, teacherClassroomId: N, height: S = "100vh" } = f, [m, A] = I(null), [D, _] = I(), {
13
+ data: T,
14
+ get: E,
15
+ isProcessing: v,
16
+ isProcessingFailed: H
17
+ } = k(), {
18
+ get: u,
19
+ data: a,
16
20
  isProcessing: P,
17
- isProcessingFailed: v
18
- } = x(), {
19
- get: I,
20
- data: r,
21
- isProcessing: C,
22
- isProcessingFailed: U
23
- } = y(), t = n(() => {
24
- p("trial-v3", {
25
- student_id: S,
26
- teacher_id: g,
21
+ isProcessingFailed: R
22
+ } = F(), t = n(() => {
23
+ E("trial-v3", {
24
+ student_id: g,
25
+ teacher_id: d,
27
26
  viewer: e.toLocaleLowerCase()
28
27
  });
29
- }, [p, S, g, e]), f = n(() => {
30
- t(), I("", {
28
+ }, [E, g, d, e]), l = n(() => {
29
+ t(), u("", {
31
30
  demo_type: "TRIAL_V3"
32
31
  });
33
- }, [t, I]), M = n(
34
- (T) => {
35
- e === s.STUDENT && T.forEach((i) => {
32
+ }, [t, u]), C = n(
33
+ (s) => {
34
+ e === "STUDENT" && s.forEach((i) => {
36
35
  i.eventName === "TRIAL_INFORMATION_UPDATED" && t();
37
- }), e === s.TEACHER && T.forEach((i) => {
36
+ }), e === "TEACHER" && s.forEach((i) => {
38
37
  if (i.eventName === "TRIAL_SESSION_STUDENT_TIMEZONE") {
39
38
  const {
40
- eventPayload: { timezone: c }
39
+ eventPayload: { timezone: O }
41
40
  } = i;
42
- H(c);
41
+ _(O);
43
42
  }
44
43
  });
45
44
  },
46
45
  [t, e]
47
- ), { publish: o } = F({
48
- teacherClassroomId: _,
49
- onMessageReceive: M
50
- }), O = n(() => {
51
- t(), e === s.TEACHER && (o == null || o({
46
+ ), { publish: o } = z({
47
+ teacherClassroomId: N,
48
+ onMessageReceive: C
49
+ }), M = n(() => {
50
+ t(), e === "TEACHER" && (o == null || o({
52
51
  eventName: "TRIAL_INFORMATION_UPDATED"
53
52
  }));
54
- }, [t, o, e]), h = n(() => {
55
- e === s.STUDENT && (o == null || o({
53
+ }, [t, o, e]), U = n(() => {
54
+ e === "STUDENT" && (o == null || o({
56
55
  eventName: "TRIAL_SESSION_STUDENT_TIMEZONE",
57
- eventPayload: { timezone: z() }
56
+ eventPayload: { timezone: L() }
58
57
  }));
59
58
  }, [o, e]);
60
- A(() => {
61
- f();
62
- }, [f]);
63
- const a = n(
64
- (T, i) => {
65
- if (m && r) {
66
- const c = e === s.TEACHER ? G({
67
- milestoneConfigData: r,
68
- trialHomeData: m,
69
- grade: T,
70
- goal: i
71
- }) : m;
72
- D(c);
59
+ p(() => {
60
+ l();
61
+ }, [l]);
62
+ const r = n(
63
+ (s) => {
64
+ if (T && a) {
65
+ const i = x({
66
+ milestoneConfigData: a,
67
+ trialHomeData: T,
68
+ grade: s
69
+ });
70
+ A(i);
73
71
  }
74
72
  },
75
- [r, m, e]
73
+ [a, T]
76
74
  );
77
- return A(() => {
78
- a == null || a();
79
- }, [a]), P && !l || C ? /* @__PURE__ */ d(k, { height: u }) : v || U ? /* @__PURE__ */ d(w, { height: u, onTryAgain: f }) : l && r ? /* @__PURE__ */ d(
80
- V,
75
+ return p(() => {
76
+ r == null || r();
77
+ }, [r]), v && !m || P ? /* @__PURE__ */ c(w, { height: S }) : H || R ? /* @__PURE__ */ c(y, { height: S, onTryAgain: l }) : m && a ? /* @__PURE__ */ c(
78
+ G,
81
79
  {
82
- ...E,
83
- onTrialInformationUpdate: O,
84
- onStudentTimezoneUpdate: h,
85
- trialHomeData: l,
86
- milestoneConfig: r,
87
- onRemoveOptionalSlides: a,
88
- studentTimezone: R
80
+ ...f,
81
+ onTrialInformationUpdate: M,
82
+ onStudentTimezoneUpdate: U,
83
+ trialHomeData: m,
84
+ milestoneConfig: a,
85
+ onRemoveOptionalSlides: r,
86
+ studentTimezone: D
89
87
  }
90
88
  ) : null;
91
- }), oe = Z;
89
+ }), b = V;
92
90
  export {
93
- oe as default
91
+ b as default
94
92
  };
95
93
  //# sourceMappingURL=trial-session.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"trial-session.js","sources":["../../../src/features/trial-session/trial-session.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useState, type FC } from 'react';\n\nimport { getTimezone } from '../../helpers/date-time';\nimport useTrialSessionMessageBroker from '../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker';\nimport type { TTrialSessionMessage } from '../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker-types';\nimport { useGetMileStoneConfig } from '../milestone/create/api/milestone-config';\nimport Error from '../ui/error/error';\nimport AppLoader from '../ui/loader/app-loader/app-loader';\nimport { useGetTrialHome } from './api/trial-home';\nimport { filterAndUpdateSlideNavigation } from './helper';\nimport type { ITrialHomeData, ITrialSessionProps } from './trial-session-types';\nimport TrialSessionView from './trial-session-view';\nimport { USER_TYPE } from '../timeline/daily-timeline-types';\n\nconst TrialSession: FC<ITrialSessionProps> = memo(function TrialSession(props) {\n const { userType, teacherId, studentId, teacherClassroomId, height = '100vh' } = props;\n const [trialHomeData, setTrialHomeData] = useState<ITrialHomeData | null>(null);\n const [studentTimezone, setStudentTimezone] = useState<string>();\n\n const {\n data: trialHomeResponse,\n get: getTrialHome,\n isProcessing: isProcessingTrialHome,\n isProcessingFailed: isProcessingFailedTrialHome,\n } = useGetTrialHome();\n const {\n get: getMilestoneConfig,\n data: milestoneConfigData,\n isProcessing: isProcessingMilestoneConfig,\n isProcessingFailed: isProcessingFailedMilestoneConfig,\n } = useGetMileStoneConfig();\n\n const fetchTrialHome = useCallback(() => {\n getTrialHome('trial-v3', {\n student_id: studentId,\n teacher_id: teacherId,\n viewer: userType.toLocaleLowerCase(),\n });\n }, [getTrialHome, studentId, teacherId, userType]);\n\n const fetchData = useCallback(() => {\n fetchTrialHome();\n getMilestoneConfig('', {\n demo_type: 'TRIAL_V3',\n });\n }, [fetchTrialHome, getMilestoneConfig]);\n\n const handleMessageReceive = useCallback(\n (messages: TTrialSessionMessage[]) => {\n if (userType === USER_TYPE.STUDENT) {\n messages.forEach(message => {\n if (message.eventName === 'TRIAL_INFORMATION_UPDATED') {\n fetchTrialHome();\n }\n });\n }\n\n if (userType === USER_TYPE.TEACHER) {\n messages.forEach(message => {\n if (message.eventName === 'TRIAL_SESSION_STUDENT_TIMEZONE') {\n const {\n eventPayload: { timezone },\n } = message;\n\n setStudentTimezone(timezone);\n }\n });\n }\n },\n [fetchTrialHome, userType],\n );\n\n const { publish } = useTrialSessionMessageBroker({\n teacherClassroomId,\n onMessageReceive: handleMessageReceive,\n });\n\n const handleOnTrialInformationUpdate = useCallback(() => {\n fetchTrialHome();\n\n if (userType === USER_TYPE.TEACHER) {\n publish?.({\n eventName: 'TRIAL_INFORMATION_UPDATED',\n });\n }\n }, [fetchTrialHome, publish, userType]);\n\n const handleOnTrialStudentTimezoneUpdate = useCallback(() => {\n if (userType === USER_TYPE.STUDENT) {\n publish?.({\n eventName: 'TRIAL_SESSION_STUDENT_TIMEZONE',\n eventPayload: { timezone: getTimezone() },\n });\n }\n }, [publish, userType]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n const handleRemoveOptionalSlides = useCallback(\n (grade?: string, goal?: string) => {\n if (trialHomeResponse && milestoneConfigData) {\n const updatedTrialHomeData =\n userType === USER_TYPE.TEACHER\n ? filterAndUpdateSlideNavigation({\n milestoneConfigData,\n trialHomeData: trialHomeResponse,\n grade,\n goal,\n })\n : trialHomeResponse;\n\n setTrialHomeData(updatedTrialHomeData);\n }\n },\n [milestoneConfigData, trialHomeResponse, userType],\n );\n\n useEffect(() => {\n handleRemoveOptionalSlides?.();\n }, [handleRemoveOptionalSlides]);\n\n if ((isProcessingTrialHome && !trialHomeData) || isProcessingMilestoneConfig) {\n return <AppLoader height={height} />;\n }\n\n if (isProcessingFailedTrialHome || isProcessingFailedMilestoneConfig) {\n return <Error height={height} onTryAgain={fetchData} />;\n }\n\n if (trialHomeData && milestoneConfigData) {\n return (\n <TrialSessionView\n {...props}\n onTrialInformationUpdate={handleOnTrialInformationUpdate}\n onStudentTimezoneUpdate={handleOnTrialStudentTimezoneUpdate}\n trialHomeData={trialHomeData}\n milestoneConfig={milestoneConfigData}\n onRemoveOptionalSlides={handleRemoveOptionalSlides}\n studentTimezone={studentTimezone}\n />\n );\n }\n\n return null;\n});\n\nexport default TrialSession;\n"],"names":["TrialSession","memo","props","userType","teacherId","studentId","teacherClassroomId","height","trialHomeData","setTrialHomeData","useState","studentTimezone","setStudentTimezone","trialHomeResponse","getTrialHome","isProcessingTrialHome","isProcessingFailedTrialHome","useGetTrialHome","getMilestoneConfig","milestoneConfigData","isProcessingMilestoneConfig","isProcessingFailedMilestoneConfig","useGetMileStoneConfig","fetchTrialHome","useCallback","fetchData","handleMessageReceive","messages","USER_TYPE","message","timezone","publish","useTrialSessionMessageBroker","handleOnTrialInformationUpdate","handleOnTrialStudentTimezoneUpdate","getTimezone","useEffect","handleRemoveOptionalSlides","grade","goal","updatedTrialHomeData","filterAndUpdateSlideNavigation","jsx","AppLoader","Error","TrialSessionView","TrialSession$1"],"mappings":"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"}
1
+ {"version":3,"file":"trial-session.js","sources":["../../../src/features/trial-session/trial-session.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useState, type FC } from 'react';\n\nimport { getTimezone } from '../../helpers/date-time';\nimport useTrialSessionMessageBroker from '../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker';\nimport type { TTrialSessionMessage } from '../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker-types';\nimport { useGetMileStoneConfig } from '../milestone/create/api/milestone-config';\nimport Error from '../ui/error/error';\nimport AppLoader from '../ui/loader/app-loader/app-loader';\nimport { useGetTrialHome } from './api/trial-home';\nimport { filterAndUpdateSlideNavigation } from './helper';\nimport type { ITrialHomeData, ITrialSessionProps } from './trial-session-types';\nimport TrialSessionView from './trial-session-view';\n\nconst TrialSession: FC<ITrialSessionProps> = memo(function TrialSession(props) {\n const { userType, teacherId, studentId, teacherClassroomId, height = '100vh' } = props;\n const [trialHomeData, setTrialHomeData] = useState<ITrialHomeData | null>(null);\n const [studentTimezone, setStudentTimezone] = useState<string>();\n\n const {\n data: trialHomeResponse,\n get: getTrialHome,\n isProcessing: isProcessingTrialHome,\n isProcessingFailed: isProcessingFailedTrialHome,\n } = useGetTrialHome();\n const {\n get: getMilestoneConfig,\n data: milestoneConfigData,\n isProcessing: isProcessingMilestoneConfig,\n isProcessingFailed: isProcessingFailedMilestoneConfig,\n } = useGetMileStoneConfig();\n\n const fetchTrialHome = useCallback(() => {\n getTrialHome('trial-v3', {\n student_id: studentId,\n teacher_id: teacherId,\n viewer: userType.toLocaleLowerCase(),\n });\n }, [getTrialHome, studentId, teacherId, userType]);\n\n const fetchData = useCallback(() => {\n fetchTrialHome();\n getMilestoneConfig('', {\n demo_type: 'TRIAL_V3',\n });\n }, [fetchTrialHome, getMilestoneConfig]);\n\n const handleMessageReceive = useCallback(\n (messages: TTrialSessionMessage[]) => {\n if (userType === 'STUDENT') {\n messages.forEach(message => {\n if (message.eventName === 'TRIAL_INFORMATION_UPDATED') {\n fetchTrialHome();\n }\n });\n }\n\n if (userType === 'TEACHER') {\n messages.forEach(message => {\n if (message.eventName === 'TRIAL_SESSION_STUDENT_TIMEZONE') {\n const {\n eventPayload: { timezone },\n } = message;\n\n setStudentTimezone(timezone);\n }\n });\n }\n },\n [fetchTrialHome, userType],\n );\n\n const { publish } = useTrialSessionMessageBroker({\n teacherClassroomId,\n onMessageReceive: handleMessageReceive,\n });\n\n const handleOnTrialInformationUpdate = useCallback(() => {\n fetchTrialHome();\n\n if (userType === 'TEACHER') {\n publish?.({\n eventName: 'TRIAL_INFORMATION_UPDATED',\n });\n }\n }, [fetchTrialHome, publish, userType]);\n\n const handleOnTrialStudentTimezoneUpdate = useCallback(() => {\n if (userType === 'STUDENT') {\n publish?.({\n eventName: 'TRIAL_SESSION_STUDENT_TIMEZONE',\n eventPayload: { timezone: getTimezone() },\n });\n }\n }, [publish, userType]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n const handleRemoveOptionalSlides = useCallback(\n (grade?: string) => {\n if (trialHomeResponse && milestoneConfigData) {\n const updatedTrialHomeData = filterAndUpdateSlideNavigation({\n milestoneConfigData,\n trialHomeData: trialHomeResponse,\n grade,\n });\n\n setTrialHomeData(updatedTrialHomeData);\n }\n },\n [milestoneConfigData, trialHomeResponse],\n );\n\n useEffect(() => {\n handleRemoveOptionalSlides?.();\n }, [handleRemoveOptionalSlides]);\n\n if ((isProcessingTrialHome && !trialHomeData) || isProcessingMilestoneConfig) {\n return <AppLoader height={height} />;\n }\n\n if (isProcessingFailedTrialHome || isProcessingFailedMilestoneConfig) {\n return <Error height={height} onTryAgain={fetchData} />;\n }\n\n if (trialHomeData && milestoneConfigData) {\n return (\n <TrialSessionView\n {...props}\n onTrialInformationUpdate={handleOnTrialInformationUpdate}\n onStudentTimezoneUpdate={handleOnTrialStudentTimezoneUpdate}\n trialHomeData={trialHomeData}\n milestoneConfig={milestoneConfigData}\n onRemoveOptionalSlides={handleRemoveOptionalSlides}\n studentTimezone={studentTimezone}\n />\n );\n }\n\n return null;\n});\n\nexport default TrialSession;\n"],"names":["TrialSession","memo","props","userType","teacherId","studentId","teacherClassroomId","height","trialHomeData","setTrialHomeData","useState","studentTimezone","setStudentTimezone","trialHomeResponse","getTrialHome","isProcessingTrialHome","isProcessingFailedTrialHome","useGetTrialHome","getMilestoneConfig","milestoneConfigData","isProcessingMilestoneConfig","isProcessingFailedMilestoneConfig","useGetMileStoneConfig","fetchTrialHome","useCallback","fetchData","handleMessageReceive","messages","message","timezone","publish","useTrialSessionMessageBroker","handleOnTrialInformationUpdate","handleOnTrialStudentTimezoneUpdate","getTimezone","useEffect","handleRemoveOptionalSlides","grade","updatedTrialHomeData","filterAndUpdateSlideNavigation","jsx","AppLoader","Error","TrialSessionView","TrialSession$1"],"mappings":"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"}
@@ -1,6 +1,6 @@
1
1
  import r, { keyframes as e } from "styled-components";
2
- import { ANIMATED_ARC_Z_INDEX as n, RAINBOW_COLOR_ANIMATION_DURATION as s } from "./animated-arc-constants.js";
3
- const F = e`
2
+ import { RAINBOW_COLOR_ANIMATION_DURATION as n } from "./animated-arc-constants.js";
3
+ const s = e`
4
4
  0% {
5
5
  stroke: #FFB700;
6
6
  color: #FFB700;
@@ -17,17 +17,17 @@ const F = e`
17
17
  stroke: #33CCFF;
18
18
  color: #33CCFF;
19
19
  }
20
- `, C = r.svg`
20
+ `, a = r.svg`
21
21
  position: absolute;
22
- z-index: ${n};
22
+ z-index: ${({ $zIndex: o }) => o};
23
23
  pointer-events: none;
24
24
  `, c = r.path`
25
25
  stroke: ${({ theme: o, stroke: t }) => o.colors[t]};
26
- animation: ${({ $showAnimatedRainbowArc: o }) => o ? F : "undefined"}
27
- ${s}s ease infinite forwards;
26
+ animation: ${({ $showAnimatedRainbowArc: o }) => o ? s : "undefined"}
27
+ ${n}s ease infinite forwards;
28
28
  `;
29
29
  export {
30
30
  c as Path,
31
- C as Svg
31
+ a as Svg
32
32
  };
33
33
  //# sourceMappingURL=animated-arc-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"animated-arc-styled.js","sources":["../../../../src/features/ui/animated-arc/animated-arc-styled.tsx"],"sourcesContent":["import styled, { keyframes } from 'styled-components';\n\nimport type { TColorNames } from '../types';\nimport { ANIMATED_ARC_Z_INDEX, RAINBOW_COLOR_ANIMATION_DURATION } from './animated-arc-constants';\n\nconst rainbowColorAnimation = keyframes`\n 0% {\n stroke: #FFB700;\n color: #FFB700;\n }\n 33% {\n stroke: #FF884C;\n color: #FF884C;\n }\n 66% {\n stroke: #FF80F4;\n color: #FF80F4;\n }\n 100% {\n stroke: #33CCFF;\n color: #33CCFF;\n }\n`;\n\nexport const Svg = styled.svg`\n position: absolute;\n z-index: ${ANIMATED_ARC_Z_INDEX};\n pointer-events: none;\n`;\n\nexport const Path = styled.path<{ stroke: TColorNames; $showAnimatedRainbowArc: boolean }>`\n stroke: ${({ theme, stroke }) => theme.colors[stroke]};\n animation: ${({ $showAnimatedRainbowArc }) =>\n $showAnimatedRainbowArc ? rainbowColorAnimation : 'undefined'}\n ${RAINBOW_COLOR_ANIMATION_DURATION}s ease infinite forwards;\n`;\n"],"names":["rainbowColorAnimation","keyframes","Svg","styled","ANIMATED_ARC_Z_INDEX","Path","theme","stroke","$showAnimatedRainbowArc","RAINBOW_COLOR_ANIMATION_DURATION"],"mappings":";;AAKA,MAAMA,IAAwBC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAmBjBC,IAAMC,EAAO;AAAA;AAAA,aAEbC,CAAoB;AAAA;AAAA,GAIpBC,IAAOF,EAAO;AAAA,YACf,CAAC,EAAE,OAAAG,GAAO,QAAAC,EAAA,MAAaD,EAAM,OAAOC,CAAM,CAAC;AAAA,eACxC,CAAC,EAAE,yBAAAC,EAAA,MACZA,IAA0BR,IAAwB,WAAW;AAAA,MAC7DS,CAAgC;AAAA;"}
1
+ {"version":3,"file":"animated-arc-styled.js","sources":["../../../../src/features/ui/animated-arc/animated-arc-styled.tsx"],"sourcesContent":["import styled, { keyframes } from 'styled-components';\n\nimport type { TColorNames } from '../types';\nimport { RAINBOW_COLOR_ANIMATION_DURATION } from './animated-arc-constants';\n\nconst rainbowColorAnimation = keyframes`\n 0% {\n stroke: #FFB700;\n color: #FFB700;\n }\n 33% {\n stroke: #FF884C;\n color: #FF884C;\n }\n 66% {\n stroke: #FF80F4;\n color: #FF80F4;\n }\n 100% {\n stroke: #33CCFF;\n color: #33CCFF;\n }\n`;\n\nexport const Svg = styled.svg<{ $zIndex: number }>`\n position: absolute;\n z-index: ${({ $zIndex }) => $zIndex};\n pointer-events: none;\n`;\n\nexport const Path = styled.path<{ stroke: TColorNames; $showAnimatedRainbowArc: boolean }>`\n stroke: ${({ theme, stroke }) => theme.colors[stroke]};\n animation: ${({ $showAnimatedRainbowArc }) =>\n $showAnimatedRainbowArc ? rainbowColorAnimation : 'undefined'}\n ${RAINBOW_COLOR_ANIMATION_DURATION}s ease infinite forwards;\n`;\n"],"names":["rainbowColorAnimation","keyframes","Svg","styled","$zIndex","Path","theme","stroke","$showAnimatedRainbowArc","RAINBOW_COLOR_ANIMATION_DURATION"],"mappings":";;AAKA,MAAMA,IAAwBC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAmBjBC,IAAMC,EAAO;AAAA;AAAA,aAEb,CAAC,EAAE,SAAAC,EAAQ,MAAMA,CAAO;AAAA;AAAA,GAIxBC,IAAOF,EAAO;AAAA,YACf,CAAC,EAAE,OAAAG,GAAO,QAAAC,EAAA,MAAaD,EAAM,OAAOC,CAAM,CAAC;AAAA,eACxC,CAAC,EAAE,yBAAAC,EAAA,MACZA,IAA0BR,IAAwB,WAAW;AAAA,MAC7DS,CAAgC;AAAA;"}
@@ -1,48 +1,59 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { useRef as u, useMemo as A, useLayoutEffect as g } from "react";
2
+ import { useRef as u, useMemo as R, useLayoutEffect as g } from "react";
3
3
  import { describeArc as w } from "./animated-arc-helpers.js";
4
- import { Svg as R, Path as k } from "./animated-arc-styled.js";
5
- const b = ({
4
+ import { Svg as k, Path as D } from "./animated-arc-styled.js";
5
+ import { ANIMATED_ARC_Z_INDEX as d } from "./animated-arc-constants.js";
6
+ const x = ({
6
7
  radius: e,
7
8
  strokeWidth: i,
8
- color: y,
9
+ color: $,
9
10
  targetAngle: a,
10
11
  startAngle: c = 0,
11
- duration: s = 2,
12
- mode: o = "draw",
12
+ duration: o = 2,
13
+ mode: s = "draw",
13
14
  delay: n = 0,
14
- showAnimatedRainbowArc: $ = !1
15
+ showAnimatedRainbowArc: y = !1,
16
+ zIndex: A = d
15
17
  }) => {
16
- const f = u(null), r = e, l = e - i / 2, h = A(
17
- () => w(r, r, l, c, a),
18
- [a, c, l, r]
18
+ const f = u(null), r = e, m = e - i / 2, l = R(
19
+ () => w(r, r, m, c, a),
20
+ [a, c, m, r]
19
21
  );
20
22
  return g(() => {
21
23
  const t = f.current;
22
24
  if (t) {
23
- if (o === "draw") {
24
- const m = t.getTotalLength();
25
- t.style.strokeDasharray = `${m}`, t.style.strokeDashoffset = `${m}`, t.getBoundingClientRect(), requestAnimationFrame(() => {
26
- t.style.transition = `stroke-dashoffset ${s}s linear ${n}s`, t.style.strokeDashoffset = "0";
25
+ if (s === "draw") {
26
+ const h = t.getTotalLength();
27
+ t.style.strokeDasharray = `${h}`, t.style.strokeDashoffset = `${h}`, t.getBoundingClientRect(), requestAnimationFrame(() => {
28
+ t.style.transition = `stroke-dashoffset ${o}s linear ${n}s`, t.style.strokeDashoffset = "0";
27
29
  });
28
30
  }
29
- o === "fade" && (t.style.opacity = "0", t.getBoundingClientRect(), requestAnimationFrame(() => {
30
- t.style.transition = `opacity ${s}s ease-in-out ${n}s`, t.style.opacity = "1";
31
+ s === "fade" && (t.style.opacity = "0", t.getBoundingClientRect(), requestAnimationFrame(() => {
32
+ t.style.transition = `opacity ${o}s ease-in-out ${n}s`, t.style.opacity = "1";
31
33
  }));
32
34
  }
33
- }, [h, o, s, n]), /* @__PURE__ */ p(R, { width: 2 * e, height: 2 * e, viewBox: `0 0 ${2 * e} ${2 * e}`, children: /* @__PURE__ */ p(
35
+ }, [l, s, o, n]), /* @__PURE__ */ p(
34
36
  k,
35
37
  {
36
- ref: f,
37
- d: h,
38
- fill: "none",
39
- stroke: y,
40
- strokeWidth: i,
41
- strokeLinecap: "butt",
42
- $showAnimatedRainbowArc: $
38
+ width: 2 * e,
39
+ height: 2 * e,
40
+ viewBox: `0 0 ${2 * e} ${2 * e}`,
41
+ $zIndex: A,
42
+ children: /* @__PURE__ */ p(
43
+ D,
44
+ {
45
+ ref: f,
46
+ d: l,
47
+ fill: "none",
48
+ stroke: $,
49
+ strokeWidth: i,
50
+ strokeLinecap: "butt",
51
+ $showAnimatedRainbowArc: y
52
+ }
53
+ )
43
54
  }
44
- ) });
45
- }, L = b;
55
+ );
56
+ }, L = x;
46
57
  export {
47
58
  L as default
48
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"animated-arc.js","sources":["../../../../src/features/ui/animated-arc/animated-arc.tsx"],"sourcesContent":["import { useRef, useLayoutEffect, useMemo, type FC } from 'react';\n\nimport { describeArc } from './animated-arc-helpers';\nimport * as Styled from './animated-arc-styled';\nimport type { IAnimatedArcProps } from './animated-arc-types';\n\nconst AnimatedArc: FC<IAnimatedArcProps> = ({\n radius,\n strokeWidth,\n color,\n targetAngle,\n startAngle = 0,\n duration = 2,\n mode = 'draw',\n delay = 0,\n showAnimatedRainbowArc = false,\n}) => {\n const pathRef = useRef<SVGPathElement>(null);\n\n const center = radius;\n const arcRadius = radius - strokeWidth / 2; // draw arc inside the visible bounds\n const arcPath = useMemo(\n () => describeArc(center, center, arcRadius, startAngle, targetAngle),\n [targetAngle, startAngle, arcRadius, center],\n );\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 ${duration}s 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 $showAnimatedRainbowArc={showAnimatedRainbowArc}\n />\n </Styled.Svg>\n );\n};\n\nexport default AnimatedArc;\n"],"names":["AnimatedArc","radius","strokeWidth","color","targetAngle","startAngle","duration","mode","delay","showAnimatedRainbowArc","pathRef","useRef","center","arcRadius","arcPath","useMemo","describeArc","useLayoutEffect","path","length","Styled.Svg","jsx","Styled.Path","AnimatedArc$1"],"mappings":";;;;AAMA,MAAMA,IAAqC,CAAC;AAAA,EAC1C,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,wBAAAC,IAAyB;AAC3B,MAAM;AACE,QAAAC,IAAUC,EAAuB,IAAI,GAErCC,IAASX,GACTY,IAAYZ,IAASC,IAAc,GACnCY,IAAUC;AAAA,IACd,MAAMC,EAAYJ,GAAQA,GAAQC,GAAWR,GAAYD,CAAW;AAAA,IACpE,CAACA,GAAaC,GAAYQ,GAAWD,CAAM;AAAA,EAAA;AAG7C,SAAAK,EAAgB,MAAM;AACpB,UAAMC,IAAOR,EAAQ;AAErB,QAAKQ,GAEL;AAAA,UAAIX,MAAS,QAAQ;AACb,cAAAY,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,qBAAqBZ,CAAQ,YAAYE,CAAK,KACtEU,EAAK,MAAM,mBAAmB;AAAA,QAAA,CAC/B;AAAA,MACH;AAEA,MAAIX,MAAS,WACXW,EAAK,MAAM,UAAU,KACrBA,EAAK,sBAAsB,GAE3B,sBAAsB,MAAM;AAC1B,QAAAA,EAAK,MAAM,aAAa,WAAWZ,CAAQ,iBAAiBE,CAAK,KACjEU,EAAK,MAAM,UAAU;AAAA,MAAA,CACtB;AAAA;AAAA,KAEF,CAACJ,GAASP,GAAMD,GAAUE,CAAK,CAAC,qBAGhCY,GAAA,EAAW,OAAO,IAAInB,GAAQ,QAAQ,IAAIA,GAAQ,SAAS,OAAO,IAAIA,CAAM,IAAI,IAAIA,CAAM,IACzF,UAAA,gBAAAoB;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,KAAKZ;AAAA,MACL,GAAGI;AAAA,MACH,MAAK;AAAA,MACL,QAAQX;AAAA,MACR,aAAAD;AAAA,MACA,eAAc;AAAA,MACd,yBAAyBO;AAAA,IAAA;AAAA,EAE7B,EAAA,CAAA;AAEJ,GAEAc,IAAevB;"}
1
+ {"version":3,"file":"animated-arc.js","sources":["../../../../src/features/ui/animated-arc/animated-arc.tsx"],"sourcesContent":["import { useRef, useLayoutEffect, useMemo, type FC } from 'react';\n\nimport { describeArc } from './animated-arc-helpers';\nimport * as Styled from './animated-arc-styled';\nimport type { IAnimatedArcProps } from './animated-arc-types';\nimport { ANIMATED_ARC_Z_INDEX } from './animated-arc-constants';\n\nconst AnimatedArc: FC<IAnimatedArcProps> = ({\n radius,\n strokeWidth,\n color,\n targetAngle,\n startAngle = 0,\n duration = 2,\n mode = 'draw',\n delay = 0,\n showAnimatedRainbowArc = false,\n zIndex = ANIMATED_ARC_Z_INDEX,\n}) => {\n const pathRef = useRef<SVGPathElement>(null);\n\n const center = radius;\n const arcRadius = radius - strokeWidth / 2; // draw arc inside the visible bounds\n const arcPath = useMemo(\n () => describeArc(center, center, arcRadius, startAngle, targetAngle),\n [targetAngle, startAngle, arcRadius, center],\n );\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 ${duration}s ease-in-out ${delay}s`;\n path.style.opacity = '1';\n });\n }\n }, [arcPath, mode, duration, delay]);\n\n return (\n <Styled.Svg\n width={2 * radius}\n height={2 * radius}\n viewBox={`0 0 ${2 * radius} ${2 * radius}`}\n $zIndex={zIndex}\n >\n <Styled.Path\n ref={pathRef}\n d={arcPath}\n fill=\"none\"\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"butt\"\n $showAnimatedRainbowArc={showAnimatedRainbowArc}\n />\n </Styled.Svg>\n );\n};\n\nexport default AnimatedArc;\n"],"names":["AnimatedArc","radius","strokeWidth","color","targetAngle","startAngle","duration","mode","delay","showAnimatedRainbowArc","zIndex","ANIMATED_ARC_Z_INDEX","pathRef","useRef","center","arcRadius","arcPath","useMemo","describeArc","useLayoutEffect","path","length","jsx","Styled.Svg","Styled.Path","AnimatedArc$1"],"mappings":";;;;;AAOA,MAAMA,IAAqC,CAAC;AAAA,EAC1C,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,wBAAAC,IAAyB;AAAA,EACzB,QAAAC,IAASC;AACX,MAAM;AACE,QAAAC,IAAUC,EAAuB,IAAI,GAErCC,IAASb,GACTc,IAAYd,IAASC,IAAc,GACnCc,IAAUC;AAAA,IACd,MAAMC,EAAYJ,GAAQA,GAAQC,GAAWV,GAAYD,CAAW;AAAA,IACpE,CAACA,GAAaC,GAAYU,GAAWD,CAAM;AAAA,EAAA;AAG7C,SAAAK,EAAgB,MAAM;AACpB,UAAMC,IAAOR,EAAQ;AAErB,QAAKQ,GAEL;AAAA,UAAIb,MAAS,QAAQ;AACb,cAAAc,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,qBAAqBd,CAAQ,YAAYE,CAAK,KACtEY,EAAK,MAAM,mBAAmB;AAAA,QAAA,CAC/B;AAAA,MACH;AAEA,MAAIb,MAAS,WACXa,EAAK,MAAM,UAAU,KACrBA,EAAK,sBAAsB,GAE3B,sBAAsB,MAAM;AAC1B,QAAAA,EAAK,MAAM,aAAa,WAAWd,CAAQ,iBAAiBE,CAAK,KACjEY,EAAK,MAAM,UAAU;AAAA,MAAA,CACtB;AAAA;AAAA,KAEF,CAACJ,GAAST,GAAMD,GAAUE,CAAK,CAAC,GAGjC,gBAAAc;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,OAAO,IAAItB;AAAA,MACX,QAAQ,IAAIA;AAAA,MACZ,SAAS,OAAO,IAAIA,CAAM,IAAI,IAAIA,CAAM;AAAA,MACxC,SAASS;AAAA,MAET,UAAA,gBAAAY;AAAA,QAACE;AAAAA,QAAA;AAAA,UACC,KAAKZ;AAAA,UACL,GAAGI;AAAA,UACH,MAAK;AAAA,UACL,QAAQb;AAAA,UACR,aAAAD;AAAA,UACA,eAAc;AAAA,UACd,yBAAyBO;AAAA,QAAA;AAAA,MAC3B;AAAA,IAAA;AAAA,EAAA;AAGN,GAEAgB,IAAezB;"}
@@ -0,0 +1,39 @@
1
+ import { jsx as s, jsxs as d } from "react/jsx-runtime";
2
+ import { ProgressContainer as c, ProgressBar as m, ProgressFill as t } from "./linear-progress-bar.styled.js";
3
+ const f = ({
4
+ fillColor: a = "YELLOW_4",
5
+ backgroundColor: i = "WHITE_T_10",
6
+ borderRadius: o = 0,
7
+ height: n = 8,
8
+ percentage: $,
9
+ delta: h = 0,
10
+ deltaProgressColor: g = "GREEN_5"
11
+ }) => {
12
+ const r = Math.min(Math.max($, 0), 100), e = Math.min(Math.max(h, 0), 100 - r);
13
+ return /* @__PURE__ */ s(c, { children: /* @__PURE__ */ d(m, { $background: i, $height: n, children: [
14
+ /* @__PURE__ */ s(
15
+ t,
16
+ {
17
+ $width: `${r}%`,
18
+ $background: a,
19
+ $offset: 0,
20
+ $borderRadius: o,
21
+ $height: "100%"
22
+ }
23
+ ),
24
+ e > 0 && /* @__PURE__ */ s(
25
+ t,
26
+ {
27
+ $width: `${e}%`,
28
+ $background: g,
29
+ $offset: r,
30
+ $height: "100%",
31
+ $borderRadius: o
32
+ }
33
+ )
34
+ ] }) });
35
+ }, P = f;
36
+ export {
37
+ P as default
38
+ };
39
+ //# sourceMappingURL=linear-progress-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear-progress-bar.js","sources":["../../../../src/features/ui/linear-progress-bar/linear-progress-bar.tsx"],"sourcesContent":["import { type FC } from 'react';\n\nimport { type ILinearProgressBarProps } from './linear-progress-bar-types';\nimport * as Styled from './linear-progress-bar.styled';\n\nconst LinearProgressBar: FC<ILinearProgressBarProps> = ({\n fillColor = 'YELLOW_4',\n backgroundColor = 'WHITE_T_10',\n borderRadius = 0,\n height = 8,\n percentage,\n delta = 0,\n deltaProgressColor = 'GREEN_5',\n}) => {\n const progress = Math.min(Math.max(percentage, 0), 100);\n const deltaProgress = Math.min(Math.max(delta, 0), 100 - progress);\n\n return (\n <Styled.ProgressContainer>\n <Styled.ProgressBar $background={backgroundColor} $height={height}>\n <Styled.ProgressFill\n $width={`${progress}%`}\n $background={fillColor}\n $offset={0}\n $borderRadius={borderRadius}\n $height=\"100%\"\n />\n {deltaProgress > 0 && (\n <Styled.ProgressFill\n $width={`${deltaProgress}%`}\n $background={deltaProgressColor}\n $offset={progress}\n $height=\"100%\"\n $borderRadius={borderRadius}\n />\n )}\n </Styled.ProgressBar>\n </Styled.ProgressContainer>\n );\n};\n\nexport default LinearProgressBar;\n"],"names":["LinearProgressBar","fillColor","backgroundColor","borderRadius","height","percentage","delta","deltaProgressColor","progress","deltaProgress","jsx","Styled.ProgressContainer","jsxs","Styled.ProgressBar","Styled.ProgressFill","LinearProgressBar$1"],"mappings":";;AAKA,MAAMA,IAAiD,CAAC;AAAA,EACtD,WAAAC,IAAY;AAAA,EACZ,iBAAAC,IAAkB;AAAA,EAClB,cAAAC,IAAe;AAAA,EACf,QAAAC,IAAS;AAAA,EACT,YAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,oBAAAC,IAAqB;AACvB,MAAM;AACE,QAAAC,IAAW,KAAK,IAAI,KAAK,IAAIH,GAAY,CAAC,GAAG,GAAG,GAChDI,IAAgB,KAAK,IAAI,KAAK,IAAIH,GAAO,CAAC,GAAG,MAAME,CAAQ;AAG/D,SAAA,gBAAAE,EAACC,GAAA,EACC,UAAA,gBAAAC,EAACC,GAAA,EAAmB,aAAaX,GAAiB,SAASE,GACzD,UAAA;AAAA,IAAA,gBAAAM;AAAA,MAACI;AAAAA,MAAA;AAAA,QACC,QAAQ,GAAGN,CAAQ;AAAA,QACnB,aAAaP;AAAA,QACb,SAAS;AAAA,QACT,eAAeE;AAAA,QACf,SAAQ;AAAA,MAAA;AAAA,IACV;AAAA,IACCM,IAAgB,KACf,gBAAAC;AAAA,MAACI;AAAAA,MAAA;AAAA,QACC,QAAQ,GAAGL,CAAa;AAAA,QACxB,aAAaF;AAAA,QACb,SAASC;AAAA,QACT,SAAQ;AAAA,QACR,eAAeL;AAAA,MAAA;AAAA,IACjB;AAAA,EAAA,EAEJ,CAAA,EACF,CAAA;AAEJ,GAEAY,IAAef;"}
@@ -0,0 +1,23 @@
1
+ import i from "styled-components";
2
+ import r from "../layout/flex-view.js";
3
+ const l = i.div`
4
+ position: relative;
5
+ width: 100%;
6
+ `, n = i.div`
7
+ width: 100%;
8
+ height: ${({ $height: o }) => o}px;
9
+ background-color: ${({ theme: o, $background: t }) => o.colors[t || "GREY_1"]};
10
+ overflow: hidden;
11
+ position: relative;
12
+ `, d = i(r)`
13
+ height: 100%;
14
+ position: absolute;
15
+ top: 0;
16
+ left: ${({ $offset: o }) => o}%;
17
+ `;
18
+ export {
19
+ n as ProgressBar,
20
+ l as ProgressContainer,
21
+ d as ProgressFill
22
+ };
23
+ //# sourceMappingURL=linear-progress-bar.styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear-progress-bar.styled.js","sources":["../../../../src/features/ui/linear-progress-bar/linear-progress-bar.styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../layout/flex-view';\nimport { type TColorNames } from '../types';\n\nexport const ProgressContainer = styled.div`\n position: relative;\n width: 100%;\n`;\n\nexport const ProgressBar = styled.div<{ $height: number; $background: TColorNames }>`\n width: 100%;\n height: ${({ $height }) => $height}px;\n background-color: ${({ theme, $background }) => theme.colors[$background || 'GREY_1']};\n overflow: hidden;\n position: relative;\n`;\n\nexport const ProgressFill = styled(FlexView)<{ $offset: number }>`\n height: 100%;\n position: absolute;\n top: 0;\n left: ${({ $offset }) => $offset}%;\n`;\n"],"names":["ProgressContainer","styled","ProgressBar","$height","theme","$background","ProgressFill","FlexView","$offset"],"mappings":";;AAKO,MAAMA,IAAoBC,EAAO;AAAA;AAAA;AAAA,GAK3BC,IAAcD,EAAO;AAAA;AAAA,YAEtB,CAAC,EAAE,SAAAE,EAAQ,MAAMA,CAAO;AAAA,sBACd,CAAC,EAAE,OAAAC,GAAO,aAAAC,QAAkBD,EAAM,OAAOC,KAAe,QAAQ,CAAC;AAAA;AAAA;AAAA,GAK1EC,IAAeL,EAAOM,CAAQ;AAAA;AAAA;AAAA;AAAA,UAIjC,CAAC,EAAE,SAAAC,EAAQ,MAAMA,CAAO;AAAA;"}
@@ -0,0 +1,16 @@
1
+ const t = {
2
+ dotColor: "BLACK_1",
3
+ inactiveDotColor: "WHITE_1",
4
+ activeIndicatorSize: "8px",
5
+ inactiveIndicatorSize: "8px",
6
+ spacing: "8px"
7
+ }, o = {
8
+ buttonVariant: "secondary",
9
+ buttonSize: "xsmall",
10
+ spacing: 8
11
+ };
12
+ export {
13
+ t as defaultDotConfig,
14
+ o as defaultNavigationConfig
15
+ };
16
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../src/features/ui/swipeable-carousel/constants.ts"],"sourcesContent":["const defaultDotConfig = {\n dotColor: 'BLACK_1' as const,\n inactiveDotColor: 'WHITE_1' as const,\n activeIndicatorSize: '8px',\n inactiveIndicatorSize: '8px',\n spacing: '8px',\n};\n\nconst defaultNavigationConfig = {\n buttonVariant: 'secondary' as const,\n buttonSize: 'xsmall' as const,\n spacing: 8,\n};\n\nexport { defaultDotConfig, defaultNavigationConfig };\n"],"names":["defaultDotConfig","defaultNavigationConfig"],"mappings":"AAAA,MAAMA,IAAmB;AAAA,EACvB,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,uBAAuB;AAAA,EACvB,SAAS;AACX,GAEMC,IAA0B;AAAA,EAC9B,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,SAAS;AACX;"}
@@ -0,0 +1,57 @@
1
+ import i from "styled-components";
2
+ const r = i.div`
3
+ width: 100%;
4
+ height: 100%;
5
+ position: relative;
6
+ display: flex;
7
+ justify-content: center;
8
+ touch-action: none;
9
+ `;
10
+ i.div`
11
+ width: 100%;
12
+ height: 100%;
13
+ position: relative;
14
+ display: flex;
15
+ justify-content: center;
16
+ touch-action: none;
17
+ `;
18
+ const a = i.div`
19
+ display: flex;
20
+ width: 100%;
21
+ flex-grow: 1;
22
+ transform: ${({ $translate: o = 0 }) => `translateX(${-o}%)`};
23
+ transition: ${({ $translateDuration: o }) => `all ${o}ms ease-in`};
24
+ touch-action: none;
25
+ `, l = i.div`
26
+ width: 100%;
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ flex-grow: 1;
31
+ flex-shrink: 0;
32
+ touch-action: none;
33
+ `, c = i.span`
34
+ background: ${({ theme: o, $isCurrent: t, $dotColor: n, $inactiveDotColor: e }) => t ? o.colors[n] : o.colors[e]};
35
+ border: 1px solid ${({ theme: o, $dotColor: t }) => o.colors[t]};
36
+ width: ${({ $isCurrent: o, $activeIndicatorSize: t, $inactiveIndicatorSize: n }) => o ? t : n};
37
+ height: ${({ $isCurrent: o, $activeIndicatorSize: t, $inactiveIndicatorSize: n }) => o ? t : n};
38
+ border-radius: 50%;
39
+ display: inline-block;
40
+ transition: all 0.3s ease;
41
+ cursor: pointer;
42
+
43
+ &:hover {
44
+ opacity: 0.8;
45
+ }
46
+ `, d = i.div`
47
+ position: absolute;
48
+ bottom: ${({ $bottom: o }) => o || "-48px"};
49
+ `;
50
+ export {
51
+ r as Carousel,
52
+ l as CarouselItemContainer,
53
+ a as CarouselWrapper,
54
+ c as Dot,
55
+ d as NavigationContainer
56
+ };
57
+ //# sourceMappingURL=swipeable-carousel-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipeable-carousel-styled.js","sources":["../../../../src/features/ui/swipeable-carousel/swipeable-carousel-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport type { TColorNames } from '../types';\n\nexport const Carousel = styled.div`\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n justify-content: center;\n touch-action: none;\n`;\n\nexport const CarouselContent = styled.div`\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n justify-content: center;\n touch-action: none;\n`;\n\nexport const CarouselWrapper = styled.div<{ $translate?: number; $translateDuration?: number }>`\n display: flex;\n width: 100%;\n flex-grow: 1;\n transform: ${({ $translate = 0 }) => `translateX(${-$translate}%)`};\n transition: ${({ $translateDuration }) => `all ${$translateDuration}ms ease-in`};\n touch-action: none;\n`;\n\nexport const CarouselItemContainer = styled.div`\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n flex-shrink: 0;\n touch-action: none;\n`;\n\ninterface IDotProps {\n $isCurrent: boolean;\n $dotColor: TColorNames;\n $inactiveDotColor: TColorNames;\n $activeIndicatorSize: string;\n $inactiveIndicatorSize: string;\n}\n\nexport const Dot = styled.span<IDotProps>`\n background: ${({ theme, $isCurrent, $dotColor, $inactiveDotColor }) =>\n $isCurrent ? theme.colors[$dotColor] : theme.colors[$inactiveDotColor]};\n border: 1px solid ${({ theme, $dotColor }) => theme.colors[$dotColor]};\n width: ${({ $isCurrent, $activeIndicatorSize, $inactiveIndicatorSize }) =>\n $isCurrent ? $activeIndicatorSize : $inactiveIndicatorSize};\n height: ${({ $isCurrent, $activeIndicatorSize, $inactiveIndicatorSize }) =>\n $isCurrent ? $activeIndicatorSize : $inactiveIndicatorSize};\n border-radius: 50%;\n display: inline-block;\n transition: all 0.3s ease;\n cursor: pointer;\n\n &:hover {\n opacity: 0.8;\n }\n`;\n\nexport const NavigationContainer = styled.div<{ $bottom?: string }>`\n position: absolute;\n bottom: ${({ $bottom }) => $bottom || '-48px'};\n`;\n"],"names":["Carousel","styled","CarouselWrapper","$translate","$translateDuration","CarouselItemContainer","Dot","theme","$isCurrent","$dotColor","$inactiveDotColor","$activeIndicatorSize","$inactiveIndicatorSize","NavigationContainer","$bottom"],"mappings":";AAIO,MAAMA,IAAWC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASAA,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS/B,MAAMC,IAAkBD,EAAO;AAAA;AAAA;AAAA;AAAA,eAIvB,CAAC,EAAE,YAAAE,IAAa,QAAQ,cAAc,CAACA,CAAU,IAAI;AAAA,gBACpD,CAAC,EAAE,oBAAAC,EAAyB,MAAA,OAAOA,CAAkB,YAAY;AAAA;AAAA,GAIpEC,IAAwBJ,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAkB/BK,IAAML,EAAO;AAAA,gBACV,CAAC,EAAE,OAAAM,GAAO,YAAAC,GAAY,WAAAC,GAAW,mBAAAC,EAAkB,MAC/DF,IAAaD,EAAM,OAAOE,CAAS,IAAIF,EAAM,OAAOG,CAAiB,CAAC;AAAA,sBACpD,CAAC,EAAE,OAAAH,GAAO,WAAAE,EAAA,MAAgBF,EAAM,OAAOE,CAAS,CAAC;AAAA,WAC5D,CAAC,EAAE,YAAAD,GAAY,sBAAAG,GAAsB,wBAAAC,QAC5CJ,IAAaG,IAAuBC,CAAsB;AAAA,YAClD,CAAC,EAAE,YAAAJ,GAAY,sBAAAG,GAAsB,wBAAAC,QAC7CJ,IAAaG,IAAuBC,CAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAWjDC,IAAsBZ,EAAO;AAAA;AAAA,YAE9B,CAAC,EAAE,SAAAa,QAAcA,KAAW,OAAO;AAAA;"}